/* Jysk Plast Industri ApS – jyskplast.css (CocioDark design)
   Colours from the logo (red #e30016, blue #008bd0) and the old site's steel blue; Barlow Semi Condensed for headings,
   Inter for text (both SIL Open Font License, self-hosted). */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0f2238;          /* header, footer, dark bands */
  --navy-2: #16304d;
  --steel: #1d4e7a;         /* the old site's steel blue */
  --blue: #008bd0;          /* logo text */
  --cocio-model-color: var(--blue);   /* 3D models in the gallery's lightbox */
  --blue-dark: #006fa8;
  --red: #e30016;           /* logo ring */
  --red-dark: #b80012;
  --ink: #142233;
  --muted: #56677a;
  --line: #dde4ec;
  --paper: #f3f6f9;
  --white: #fff;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgb(15 34 56 / 0.10);
  --shadow-lg: 0 24px 60px rgb(15 34 56 / 0.18);
  --wrap: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.45em;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(15 34 56 / 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand img { width: 104px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.25)); }

.main-nav { margin-left: auto; }
.main-nav .cocio-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.main-nav .cocio-menu a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 255 255 / 0.86);
  border-radius: 8px;
  position: relative;
}

.main-nav .cocio-menu a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.main-nav .cocio-menu a:hover { color: var(--white); }
.main-nav .cocio-menu a:hover::after, .main-nav .cocio-menu a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .cocio-menu a[aria-current="page"] { color: var(--white); }

.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 18px 8px 40px;
  border-radius: 999px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") 16px center / 16px no-repeat;
  transition: background-color 0.2s;
}

.header-phone:hover { background-color: var(--red-dark); color: var(--white); }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.button-ghost { background: transparent; border-color: rgb(255 255 255 / 0.55); }
.button-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-blue { background: var(--blue); border-color: var(--blue); }
.button-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8em;
}

.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }

/* Hero (front page) */

.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) url("images/hero-domicil.jpg") center 35% / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 34 56 / 0.94) 0%, rgb(15 34 56 / 0.78) 42%, rgb(15 34 56 / 0.15) 100%),
    linear-gradient(0deg, rgb(15 34 56 / 0.55), transparent 40%);
}

.hero-inner { min-height: min(760px, calc(100vh - var(--header-h))); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 140px; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { color: rgb(255 255 255 / 0.85); max-width: 40ch; }
.hero .eyebrow { color: #ff5a66; }

/* Page hero (other pages) */

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgb(0 139 208 / 0.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 300px;
  border: 26px solid rgb(227 0 22 / 0.22);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.page-hero .wrap { position: relative; z-index: 1; padding: 72px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero .lead { color: rgb(255 255 255 / 0.82); max-width: 56ch; margin: 0; }
.page-hero .eyebrow { color: #ff5a66; }

/* Stats band */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stats li { padding: 28px 28px 26px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.stats strong span { color: var(--red); }
.stats li > span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

/* Sections */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy); color: rgb(255 255 255 / 0.86); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-dark .section-head p { color: rgb(255 255 255 / 0.7); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Capability cards */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--muted); }
.card > img { border-radius: var(--radius); margin-bottom: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }


/* Capability icons: the card's icon class picks the drawing (.card.icon-mill …). */

.card[class*="icon-"]::before {
  content: "";
  display: block;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--icon) center / 28px no-repeat, linear-gradient(135deg, var(--blue), var(--steel));
}

.icon-mill { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6M9 8h6l-1 5h-4z'/%3E%3Cpath d='M10 13l-1 4h6l-1-4'/%3E%3Cpath d='M4 21h16'/%3E%3Cpath d='M7 21v-4h10v4'/%3E%3C/svg%3E"); }
.icon-turn { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 4v2M12 18v2M4 12h2M18 12h2'/%3E%3C/svg%3E"); }
.icon-grind { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.icon-mould { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='M8 7V4h8v3M9 12h6'/%3E%3C/svg%3E"); }
.icon-measure { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l7-7M14 4l6 6-9 9-6-6z'/%3E%3Cpath d='M17 7l-3 3'/%3E%3C/svg%3E"); }
.icon-code { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H4z'/%3E%3Cpath d='M8 20h8M12 16v4M8 9l2 2-2 2M12 13h4'/%3E%3C/svg%3E"); }

/* Process steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid rgb(255 255 255 / 0.08); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; }
.steps p { margin: 0; color: rgb(255 255 255 / 0.72); font-size: 0.98rem; }

/* News */

.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.news-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.news-card .media { aspect-ratio: 16 / 9; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; }
.news-card .media.contain img { object-fit: contain; padding: 18px; }
.news-card .body { padding: 24px 26px 28px; }
.news-card time, .tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 8px; }
.news-card h3 { font-size: 1.4rem; }
.news-card p { margin: 0; color: var(--muted); }

/* CTA band */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgb(0 139 208 / 0.45), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--steel));
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
}

.cta h2 { color: var(--white); margin-bottom: 0.25em; }
.cta p { margin: 0; color: rgb(255 255 255 / 0.8); font-size: 1.1rem; }
.cta .actions { margin: 0; }

/* Machines */

.machine-list { display: grid; gap: 28px; }

.machine {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.machine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.machine h3 { font-size: 1.8rem; margin-bottom: 0.15em; }
.machine .tag { margin-bottom: 4px; }
.machine p:last-child, .machine ul:last-child { margin-bottom: 0; }

.specs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.specs li { padding-left: 22px; position: relative; }
.specs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }

.machine-group { margin-top: 72px; }
.machine-group:first-child { margin-top: 0; }

.docs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.docs a:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.docs a::before { content: "PDF"; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--white); background: var(--red); border-radius: 6px; padding: 4px 7px; }
.docs small { display: block; color: var(--muted); }

/* Stories */

.stories { display: grid; gap: 40px; }

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.story:nth-child(even) .story-media { order: 2; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-pair img { aspect-ratio: 1; }

/* Gallery */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.g-item {
  position: relative;
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  color: var(--white);
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item:hover { color: var(--white); }

.g-item figcaption, .g-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font-size: 0.95rem;
  line-height: 1.35;
  background: linear-gradient(transparent, rgb(15 34 56 / 0.88));
}

/* The "3D" mark on a model: the old tiles and the gallery module's (Galleri). */
.g-badge, .cocio-gallery-grid .cocio-gallery-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 4px 10px 4px 30px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4a2 2 0 0 0 1-1.7z'/%3E%3Cpath d='M3.3 7 12 12l8.7-5M12 22V12'/%3E%3C/svg%3E") 9px center / 15px no-repeat;
}

/* The gallery module's grid (Galleri: /coreadmin → Gallery) looks like the tiles above, its title on the picture. */

.cocio-gallery-grid > ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cocio-gallery-grid > ul a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  color: var(--white);
  text-decoration: none;
  aspect-ratio: 4 / 3;
}
.cocio-gallery-grid > ul img { height: 100%; transition: transform 0.5s; }
.cocio-gallery-grid > ul a:hover img { transform: scale(1.05); }
.cocio-gallery-grid .cocio-gallery-caption {
  display: block;
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font-size: 0.95rem;
  line-height: 1.35;
  background: linear-gradient(transparent, rgb(15 34 56 / 0.88));
}

/* Forside: the design's 3D model comes before the page's last section, the contact band (.jp-end). */

.jp-front { display: flex; flex-direction: column; }
.jp-front > .jp-end { order: 1; }

/* Galleri: the page hero first, then the 3D model (design), then the page's grid of pictures. */

.jp-gallery { display: flex; flex-direction: column; }
.jp-gallery > .page-hero { order: -2; }
.jp-gallery > .jp-gallery-3d { order: -1; }

/* The 3D viewer: a canvas filled in by js/stl-viewer.js; without scripts the link to the model stays. */

.viewer-feature { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

.stl-viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e6edf4 60%, #cfdae6 100%);
  box-shadow: var(--shadow-lg);
  touch-action: none;
}

.stl-viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.stl-viewer canvas:active { cursor: grabbing; }
.stl-viewer .stl-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stl-viewer .stl-fallback img { width: 100%; height: 100%; object-fit: cover; }
.stl-viewer.is-ready .stl-fallback { display: none; }

.stl-hint {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--ink);
  background: rgb(255 255 255 / 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
}

.stl-viewer.is-touched .stl-hint { opacity: 0; }

.stl-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.stl-tools button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: rgb(255 255 255 / 0.9);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(15 34 56 / 0.15);
}
.stl-tools button:hover { background: var(--white); color: var(--red); }
.stl-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Profile */

.quote {
  margin: 0;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  position: relative;
}

.quote::before { content: "“"; position: absolute; top: -18px; left: 28px; font-size: 6rem; line-height: 1; color: var(--red); }
.quote p { margin: 0; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.person { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.person h3 { margin-bottom: 0.1em; }
.person .role { color: var(--muted); margin-bottom: 12px; }
.person a { font-weight: 600; }

/* Sale */

.sale { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.price { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--red); margin: 0.2em 0 0.6em; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.contact-card h2 { font-size: 1.8rem; }
.contact-card address { font-style: normal; }
.big-link { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; text-decoration: none; color: var(--navy); }
.big-link:hover { color: var(--red); }
.contact-photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* An ordinary page (Side, Nyhed) and the privacy policy: plain text in a readable column */

.jp-text { width: min(100% - 32px, 820px); margin-inline: auto; padding: clamp(48px, 7vw, 88px) 0; }
.jp-text h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.jp-text h2 { font-size: 1.8rem; margin-top: 1.4em; }
.jp-text img { border-radius: var(--radius); }
.news-intro { font-size: 1.25rem; color: var(--muted); }
.jp-news figure { margin: 24px 0 0; }

/* The map block (cocio-map) on Kontakt */

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap .cocio-map-show {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
}
.map-wrap .cocio-map-show:hover { background: var(--red-dark); }

/* Footer */

.site-footer { background: var(--navy); color: rgb(255 255 255 / 0.75); font-size: 0.96rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.site-footer h2 { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ff5a66; }
.footer-lines span { display: block; }
.footer-credit { background: #0a1828; text-align: center; padding: 8px 16px; font-size: 0.85rem; color: rgb(255 255 255 / 0.7); }
.footer-credit p { margin: 0; }
.footer-privacy { margin-top: 10px; font-size: 0.9rem; }

/* Tablet */

.main-nav .cocio-menu a { white-space: nowrap; }

@media (max-width: 1200px) {
  .header-phone { display: none; }
}

@media (max-width: 1120px) {
  .header-inner { gap: 12px; }
  .main-nav .cocio-menu a { padding: 8px 8px; font-size: 1.02rem; letter-spacing: 0.02em; }
  .main-nav .cocio-menu a::after { left: 8px; right: 8px; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .brand img { width: 86px; }
  .menu-button {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    margin-left: auto;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.08);
    cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .menu-toggle:checked + .menu-button .bars { background: transparent; }
  .menu-toggle:checked + .menu-button .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-button .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--blue); }

  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    display: none;
  }
  .menu-toggle:checked ~ .main-nav { display: block; }
  .main-nav .cocio-menu { flex-direction: column; padding: 8px 16px 20px; }
  .main-nav .cocio-menu a { padding: 12px 8px; font-size: 1.25rem; border-bottom: 1px solid rgb(255 255 255 / 0.06); border-radius: 0; }
  .main-nav .cocio-menu a::after { left: 8px; right: auto; width: 32px; bottom: 6px; }

  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .story, .viewer-feature, .sale, .cta { grid-template-columns: 1fr; }
  .story:nth-child(even) .story-media { order: 0; }
  .machine { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { background-position: 92% 35%; }
  .hero-inner { padding: 64px 0 120px; }
  .stats li { padding: 20px; }
  .stats strong { font-size: 2.1rem; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item figcaption, .g-item .caption { font-size: 0.8rem; padding: 28px 10px 8px; }
  .cocio-gallery-grid > ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cocio-gallery-grid .cocio-gallery-caption { font-size: 0.8rem; padding: 28px 10px 8px; }
  .machine { padding: 16px; }
  .quote { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
