/* ==========================================================================
   eDOC AS — Redesign 2026
   Dark, precise, alive. Brand red as light source on graphite.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* light — original eDOC palette */
  --bg: #fcfcfc;
  --bg-2: #f4f4f5;
  --tint: 25, 25, 25;
  --surface: #ffffff;
  --surface-2: rgba(25, 25, 25, 0.04);
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-shadow: 0 1px 2px rgba(25, 25, 25, 0.04), 0 18px 40px -24px rgba(25, 25, 25, 0.22);
  --line: rgba(25, 25, 25, 0.09);
  --line-2: rgba(25, 25, 25, 0.16);
  --text: #191919;
  --text-2: #4b4b4c;
  --muted: #76767a;
  --red: #bd1a26;
  --red-2: #bd1a26;
  --red-deep: #a50814;
  --red-glow: rgba(189, 26, 38, 0.28);
  --green: #1f9d63;
  /* orange — signal colour for highlights (dots, highlighted words, key figures); red stays the brand colour */
  --orange: rgb(255, 75, 0);
  --orange-glow: rgba(255, 75, 0, 0.18);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* dark bands — original eDOC charcoal #191919 */
.dark {
  --bg: #191919;
  --bg-2: #1f1f21;
  --tint: 255, 255, 255;
  --surface: rgba(var(--tint), 0.035);
  --surface-2: rgba(var(--tint), 0.06);
  --card: linear-gradient(180deg, rgba(var(--tint), 0.045), rgba(var(--tint), 0.015));
  --card-solid: #222224;
  --card-shadow: none;
  --line: rgba(var(--tint), 0.09);
  --line-2: rgba(var(--tint), 0.16);
  --text: #f4f4f5;
  --text-2: #cfcfd2;
  --muted: #94949a;
  --red: #d42532;
  --red-2: var(--orange); /* small accents on dark: brand orange (headline <em> stays logo red, see below) */
  --red-glow: rgba(224, 49, 60, 0.35);
  --green: #3ecf8e;
  background-color: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Typography ---------- */
.display, h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.3; }
em, .accent { font-style: italic; color: var(--red-2); }
.dark :is(h1, h2, h3, .display) em { color: #bd1a26; } /* logo red for headline accents on dark bands */
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(var(--tint), 0.03);
  backdrop-filter: blur(8px);
  font-size: 0.85rem; color: var(--text-2);
}
.card .eyebrow { justify-self: start; align-self: flex-start; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow), 0 0 14px var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 75, 0, 0.05), 0 0 22px var(--orange); } }

.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--b);
  background: rgba(var(--tint), 0.04);
  font-weight: 550; font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: rgba(var(--tint), 0.08); transform: translateY(-1px); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  --b: rgba(165, 8, 20, 0.6);
  background: linear-gradient(180deg, #d02633, #ad1420);
  box-shadow: 0 0 0 1px rgba(120, 6, 15, 0.35), 0 10px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(180deg, #dc2f3c, #b8161f); box-shadow: 0 0 0 1px rgba(120, 6, 15, 0.35), 0 14px 40px -8px rgba(224, 49, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red-2); font-weight: 550; font-size: 0.92rem; }
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60;
  --bg: #191919; --text: #f4f4f5; --text-2: #cfcfd2; --line-2: rgba(255,255,255,.16); --red-2: var(--orange);
  color: var(--text-2);
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  font-size: 0.86rem; color: var(--text-2);
  background: linear-gradient(90deg, rgba(224, 49, 60, 0) 0%, rgba(224, 49, 60, 0.14) 50%, rgba(224, 49, 60, 0) 100%), var(--bg);
  border-bottom: 1px solid rgba(224, 49, 60, 0.22);
  text-align: center;
}
.announce strong { color: var(--orange); font-weight: 600; }
.announce a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.announce a:hover { text-decoration-color: var(--red-2); }
.announce .sep { width: 1px; height: 14px; background: var(--line-2); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  width: min(1320px, 100% - 28px); margin: 14px auto 0;
  display: flex; align-items: center; gap: 12px;
  height: 66px; padding: 0 10px 0 22px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.45);
  background: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(252, 252, 252, 0.92); border-color: var(--line-2); box-shadow: 0 20px 50px -24px rgba(25, 25, 25, 0.35); }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  font-size: 0.93rem; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.open > button { color: var(--text); background: rgba(var(--tint), 0.05); }
.nav-links .chev { width: 10px; height: 10px; transition: transform 0.25s; }
.nav-links li.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.lang { font-family: var(--mono); font-size: 0.78rem !important; letter-spacing: 0.06em; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 16px); left: 50%;
  width: 640px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(25, 25, 25, 0.4);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 12px; border-radius: 12px; transition: background 0.2s; }
.mega a:hover { background: rgba(var(--tint), 0.05); }
.mega .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(189, 26, 38, 0.07); border: 1px solid rgba(189, 26, 38, 0.22); color: var(--red-2); font-family: var(--mono); font-size: 0.72rem; }
.mega strong { font-size: 0.92rem; font-weight: 600; }
.mega small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.mega .mega-foot a { display: inline-flex; padding: 0; grid-template-columns: none; }
.mega .mega-foot a:hover { background: none; }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 14px 14px 6px; border-top: 1px solid var(--line); font-size: 0.88rem; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s, background 0.3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.menu-open .burger span { background: transparent; }
.nav.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -80px; padding: 190px 0 120px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(224, 49, 60, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(25, 25, 25, 0.82), rgba(25, 25, 25, 0.93) 60%, #191919),
    url("/images/2012-02-11_img_3022.webp") center 30% / cover no-repeat,
    #191919;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, #191919); }
.hero-inner { display: grid; justify-items: center; text-align: center; gap: 28px; }
.hero h1 { max-width: 13ch; }
.hero h1 .line { display: block; }
.hero .lead { margin: 0 auto; max-width: 52ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 4px 0 0; color: var(--text-2); font-size: 0.9rem; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { color: var(--orange); }

/* word-by-word headline reveal */
.split .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); animation: wordIn 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* live classification demo */
.demo {
  position: relative;
  width: min(760px, 100%); margin: 56px auto 0;
  border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(var(--tint), 0.18), rgba(var(--tint), 0.04) 40%, rgba(224, 49, 60, 0.45));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -30px var(--red-glow);
  text-align: left;
}
.demo-inner { border-radius: 21px; background: rgba(20, 20, 21, 0.94); backdrop-filter: blur(10px); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.demo-bar .lights { display: flex; gap: 6px; }
.demo-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
.demo-bar .tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.demo-bar .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.demo-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.demo-col { padding: 22px; }
.demo-col + .demo-col { border-left: 1px solid var(--line); background: rgba(var(--tint), 0.015); }
.demo-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.demo-input { font-family: var(--mono); font-size: 0.92rem; color: var(--text); min-height: 3.2em; }
.demo-input .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.18em; background: var(--orange); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.74rem; color: var(--text-2); background: rgba(var(--tint), 0.03); }
.demo-code { font-family: var(--mono); font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: 0.04em; color: var(--text); display: flex; gap: 0.35em; }
.demo-code span { display: inline-block; min-width: 2ch; transition: color 0.3s; }
.demo-code .rolling { color: var(--muted); }
.demo-conf { margin-top: 14px; }
.demo-conf .bar { height: 6px; border-radius: 99px; background: rgba(var(--tint), 0.07); overflow: hidden; }
.demo-conf .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 75, 0, 0.6), var(--orange)); box-shadow: 0 0 12px var(--orange); transition: width 1.1s var(--ease); }
.demo-conf .row { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-top: 8px; }
.demo-verify { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 0.82rem; color: var(--muted); transition: all 0.5s var(--ease); }
.demo-verify .av { width: 26px; height: 26px; border-radius: 50%; background: #222 center/cover; flex: none; filter: grayscale(1); transition: filter 0.5s; }
.demo-verify.ok { border-style: solid; border-color: rgba(62, 207, 142, 0.4); background: rgba(62, 207, 142, 0.07); color: var(--text); }
.demo-verify.ok .av { filter: none; }
.demo-verify .tick { margin-left: auto; color: var(--green); opacity: 0; transform: scale(0.5); transition: all 0.4s var(--ease); }
.demo-verify.ok .tick { opacity: 1; transform: none; }
.demo-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }

/* ---------- Logo marquee ---------- */
.logos { padding: 30px 0 90px; }
.logos p { text-align: center; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: grid; place-items: center; height: 46px; flex: none; }
.marquee img {
  height: 30px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.marquee a:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* ---------- Intro / scroll-lit statement ---------- */
.intro { padding: 60px 0 120px; }
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.14; letter-spacing: -0.01em; max-width: 26ch; margin: 0; }
.statement .w { color: rgba(var(--tint), 0.16); transition: color 0.4s; }
.statement .w.lit { color: var(--text); }
.statement .w.lit.hl { color: var(--orange); font-style: italic; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; margin-top: 72px; align-items: start; }
.intro-copy p { color: var(--text-2); margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: 28px 24px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat .num sup { font-size: 0.5em; color: var(--orange); vertical-align: 0.7em; margin-left: 2px; }
.stat .lbl { color: var(--muted); font-size: 0.86rem; margin-top: 10px; }
.origin { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; gap: 16px; align-items: center; }
.origin svg { flex: none; color: var(--orange); }
.origin p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Cards & bento ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
/* pointer-following spotlight */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 49, 60, 0.09), transparent 60%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 49, 60, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card:not(.dark .card):hover { box-shadow: 0 1px 2px rgba(25, 25, 25, 0.04), 0 28px 60px -28px rgba(25, 25, 25, 0.3); transform: translateY(-2px); }

.services { padding: 120px 0; position: relative; background: var(--bg-2); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.bento .card { grid-column: span 4; display: flex; flex-direction: column; }
.bento .card.wide { grid-column: span 8; }
.bento .card.half { grid-column: span 6; }
.bento .viz { position: relative; flex: 1; min-height: 180px; padding-top: 44px; display: grid; place-items: center; overflow: hidden; }
.bento .txt { padding: 0 26px 26px; }
.bento .txt p { color: var(--muted); font-size: 0.92rem; margin: 8px 0 14px; }
.bento .txt .link-arrow { font-size: 0.86rem; }
.bento .num { position: absolute; top: 18px; left: 22px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; z-index: 2; }
.bento .card > a.cover { position: absolute; inset: 0; z-index: 3; }
.services-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* viz: tariff code roll */
.v-code { display: flex; flex-direction: column; gap: 10px; width: 86%; }
.v-code .row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint), 0.025); font-size: 0.82rem; color: var(--text-2); }
.v-code .row .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-code .row .c { font-family: var(--mono); color: var(--text); letter-spacing: 0.05em; }
.v-code .row .s { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: none; }
.v-code .row.active { border-color: rgba(255, 75, 0, 0.4); background: rgba(255, 75, 0, 0.06); }
.v-code .row.active .s { background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 1.2s infinite; }
.v-code .row.active .c { color: var(--red-2); }
.v-code-list { display: flex; flex-direction: column; gap: 10px; animation: codeScroll 14s var(--ease) infinite; }
.v-code-mask { height: 190px; overflow: hidden; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
@keyframes codeScroll { 0%, 12% { transform: translateY(0); } 25%, 37% { transform: translateY(-56px); } 50%, 62% { transform: translateY(-112px); } 75%, 87% { transform: translateY(-168px); } 100% { transform: translateY(-224px); } }

/* viz: master data grid */
.v-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 80%; }
.v-grid i { aspect-ratio: 1.6; border-radius: 6px; background: rgba(var(--tint), 0.04); border: 1px solid var(--line); animation: cell 6s infinite; animation-delay: calc(var(--d) * 1s); }
@keyframes cell { 0%, 70%, 100% { background: rgba(var(--tint), 0.04); } 78% { background: rgba(255, 75, 0, 0.75); border-color: rgba(255, 75, 0, 0.8); box-shadow: 0 0 16px rgba(255, 75, 0, 0.35); } 86% { background: rgba(31, 157, 99, 0.3); border-color: rgba(31, 157, 99, 0.5); } }

/* viz: export control scan */
.v-scan { width: 84%; display: flex; flex-direction: column; gap: 8px; position: relative; }
.v-scan .ln { height: 12px; border-radius: 4px; background: rgba(var(--tint), 0.06); }
.v-scan .ln:nth-child(2n) { width: 82%; }
.v-scan .ln:nth-child(3n) { width: 64%; }
.v-scan .ln.flag { background: rgba(255, 75, 0, 0.2); position: relative; }
.v-scan .ln.flag::after { content: "ECCN 2B001"; position: absolute; right: -4px; top: 50%; transform: translate(100%, -50%); font-family: var(--mono); font-size: 0.62rem; color: var(--orange); white-space: nowrap; padding-left: 8px; }
.v-scan .beam { position: absolute; left: -6%; right: -6%; height: 34px; top: 0; background: linear-gradient(180deg, transparent, rgba(255, 75, 0, 0.12), transparent); border-bottom: 1px solid rgba(255, 75, 0, 0.7); animation: beam 3.6s ease-in-out infinite alternate; }
@keyframes beam { to { top: calc(100% - 34px); } }

/* viz: origin map */
.v-map { width: 100%; height: 100%; position: absolute; inset: 0; }
.v-map .dotc { fill: rgba(var(--tint), 0.13); }
.v-map text { fill: var(--text-2); }
.v-map text.hl { fill: var(--orange); }
.v-map .s2 { stop-color: var(--text-2); }
.v-map .route { fill: none; stroke: url(#routeGrad); stroke-width: 1.4; stroke-dasharray: 4 6; animation: dash 2.4s linear infinite; }
.v-map .node { fill: var(--orange); }
.v-map .halo { fill: var(--orange); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes halo { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(2.6); opacity: 0; } }

/* viz: stacked declarations */
.v-docs { position: relative; width: 220px; height: 170px; }
.v-docs .doc { position: absolute; width: 150px; height: 92px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-solid); padding: 12px; box-shadow: 0 18px 36px -16px rgba(25, 25, 25, 0.35); transition: transform 0.6s var(--ease); }
.v-docs .doc b { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-2); }
.v-docs .doc i { display: block; height: 5px; border-radius: 3px; background: rgba(var(--tint), 0.08); margin-top: 7px; }
.v-docs .doc i:last-of-type { width: 60%; }
.v-docs .doc .st { position: absolute; bottom: 10px; left: 12px; font-size: 0.62rem; color: var(--green); display: flex; align-items: center; gap: 5px; }
.v-docs .doc .st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.v-docs .d1 { left: 0; top: 52px; transform: rotate(-8deg); }
.v-docs .d2 { left: 36px; top: 26px; transform: rotate(-2deg); }
.v-docs .d3 { left: 70px; top: 0; transform: rotate(5deg); border-color: rgba(189, 26, 38, 0.4); background: linear-gradient(160deg, #fff4f4, #ffffff); }
.card:hover .v-docs .d1 { transform: rotate(-12deg) translate(-12px, 6px); }
.card:hover .v-docs .d3 { transform: rotate(9deg) translate(12px, -6px); }

/* viz: CBAM emissions */
.v-cbam { width: 86%; height: 150px; display: flex; align-items: flex-end; gap: 8px; position: relative; }
.v-cbam i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(189, 26, 38, 0.9), rgba(189, 26, 38, 0.12)); height: var(--h); transform-origin: bottom; animation: grow 3.2s var(--ease) infinite alternate; animation-delay: calc(var(--i) * 0.12s); }
.v-cbam i:nth-child(odd) { background: linear-gradient(180deg, rgba(var(--tint), 0.22), rgba(var(--tint), 0.03)); }
.v-cbam .lbl { position: absolute; top: -6px; right: 0; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* viz: technical drawing */
.v-draw { width: 82%; }
.v-draw path, .v-draw circle, .v-draw rect, .v-draw line { fill: none; stroke: rgba(var(--tint), 0.55); stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 6s var(--ease) infinite; }
.v-draw .dim { stroke: var(--orange); stroke-width: 1; }
.v-draw text { fill: var(--orange); font-family: var(--mono); font-size: 9px; opacity: 0; animation: fadeTxt 6s infinite; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fadeTxt { 0%, 40% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* viz: document sorting */
.v-dms { display: flex; gap: 18px; align-items: flex-end; }
.v-dms .folder { width: 66px; height: 52px; border-radius: 4px 10px 10px 10px; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--mono); font-size: 0.58rem; color: var(--muted); }
.v-dms .folder::before { content: ""; position: absolute; top: -8px; left: -1px; width: 28px; height: 9px; border-radius: 4px 4px 0 0; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; }
.v-dms .folder.hot { border-color: rgba(255, 75, 0, 0.5); }
.v-dms-wrap { position: relative; padding-top: 70px; }
.v-dms .file { position: absolute; top: 0; width: 26px; height: 32px; border-radius: 4px; background: #9a9a9f; opacity: 0; animation: drop 4.5s var(--ease) infinite; }
.v-dms .file::after { content: ""; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: var(--card-solid); border-right-color: var(--card-solid); }
.v-dms .f1 { left: 20px; animation-delay: 0s; }
.v-dms .f2 { left: 104px; animation-delay: 1.5s; background: var(--orange); }
.v-dms .f3 { left: 188px; animation-delay: 3s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-10px) rotate(-10deg); } 15% { opacity: 1; } 55% { opacity: 1; transform: translateY(46px) rotate(0); } 70%, 100% { opacity: 0; transform: translateY(58px) scale(0.7); } }

/* ---------- KI section ---------- */
.ki { position: relative; padding: 140px 0; overflow: hidden; isolation: isolate; }
.ki::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: -1;
  width: min(1100px, 140%); height: 720px;
  background: conic-gradient(from 180deg at 50% 0%, transparent 152deg, rgba(224, 49, 60, 0.28) 172deg, rgba(255, 120, 126, 0.42) 180deg, rgba(224, 49, 60, 0.28) 188deg, transparent 208deg);
  filter: blur(30px);
  mask-image: linear-gradient(#000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 85%);
  animation: cone 9s ease-in-out infinite alternate;
}
@keyframes cone { from { opacity: 0.7; transform: translateX(-50%) scaleX(0.9); } to { opacity: 1; transform: translateX(-50%) scaleX(1.12); } }
.ki-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 72px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.ki-features div { background: var(--bg-2); padding: 22px 20px; }
.ki-features b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; display: block; color: var(--text); }
.ki-features b::after { content: "."; color: var(--orange); }
.ki-features p { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }

.ki-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.ki-split > :last-child { position: sticky; top: 120px; }
.steps { display: grid; gap: 10px; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s; text-align: left; width: 100%; }
.step .n { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--mono); color: var(--muted); background: rgba(var(--tint), 0.03); border: 1px solid var(--line); transition: all 0.3s; }
.step h3 { align-self: end; color: var(--text-2); transition: color 0.3s; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s; }
.step.active { background: var(--surface-2); border-color: var(--line-2); }
.step.active .n { color: var(--orange); background: rgba(255, 75, 0, 0.12); border-color: rgba(255, 75, 0, 0.4); box-shadow: 0 0 24px -6px rgba(255, 75, 0, 0.35); }
.step.active h3 { color: var(--text); }
.step.active p { max-height: 160px; opacity: 1; margin-top: 4px; }
.step .prog { grid-column: 2; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 10px; display: none; }
.step.active .prog { display: block; }
.step.active .prog i { display: block; height: 100%; width: 0; background: var(--orange); animation: prog var(--dur, 6s) linear forwards; }
@keyframes prog { to { width: 100%; } }

.video-frame { position: relative; border-radius: 24px; padding: 10px; background: linear-gradient(160deg, rgba(var(--tint), 0.12), rgba(var(--tint), 0.02) 50%, rgba(224, 49, 60, 0.3)); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px var(--red-glow); }
.video-frame video { width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-frame .badge { position: absolute; left: -18px; bottom: 34px; padding: 12px 16px; border-radius: 14px; background: rgba(28, 28, 30, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8); }
.video-frame .badge small { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.video-frame .badge strong { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.video-frame .badge strong span { color: var(--orange); }
.standards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Packages ---------- */
.packages { padding: 120px 0; }
.pk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pk { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.pk .pk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--tint), 0.04); border: 1px solid var(--line-2); color: var(--orange); margin-bottom: 8px; }
.pk p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.pk.featured { border-color: rgba(189, 26, 38, 0.35); background: radial-gradient(120% 80% at 50% 0%, rgba(189, 26, 38, 0.08), transparent 60%), var(--card-solid); }
.pk .flag { position: absolute; top: 22px; right: 22px; font-size: 0.7rem; color: var(--red-2); font-weight: 600; }
.ztn-bar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; }
.ztn-bar p { margin: 0; color: var(--text-2); }

/* ---------- CBAM feature ---------- */
.cbam { padding: 0 0 120px; }
.cbam-card { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 440px; border-color: rgba(189, 26, 38, 0.25); }
.cbam-visual { position: relative; overflow: hidden; background: radial-gradient(80% 80% at 30% 70%, rgba(224, 49, 60, 0.55), transparent 70%), linear-gradient(160deg, #bd1a26, #6e0b13); }
.cbam-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cbam-visual .big { position: absolute; left: 36px; bottom: 30px; font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.92); }
.cbam-visual .big small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.cbam-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cbam-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cbam-copy p { margin: 0; color: var(--text-2); }
.risk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.risk div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 0.8rem; color: var(--muted); }
.risk div b { display: block; color: var(--text); font-weight: 600; font-size: 0.86rem; margin-bottom: 2px; }

/* ---------- Team / contact ---------- */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-grid h2 { margin: 18px 0 18px; }
.contact-grid .lead a { color: var(--text); border-bottom: 1px solid var(--red-2); }
.contact-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.people { display: grid; gap: 14px; }
.person { display: flex; align-items: center; gap: 18px; padding: 18px; }
.person img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; object-position: top; filter: grayscale(0.4); transition: filter 0.4s; }
.person:hover img { filter: none; }
.person .meta { flex: 1; }
.person .meta strong { display: block; font-weight: 600; }
.person .meta small { color: var(--muted); }
.person .tel { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); margin-top: 4px; display: inline-block; }
.person .tel:hover { color: var(--red-2); }
.person .call { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all 0.25s; flex: none; }
.person .call:hover { background: var(--red); border-color: var(--red); }
.addr { display: flex; gap: 14px; align-items: center; padding: 16px 18px; font-size: 0.86rem; color: var(--muted); }
.addr strong { color: var(--text-2); font-weight: 500; }

/* ---------- Career ---------- */
.career { padding: 120px 0; }
.career-card { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 420px; }
.career-img { position: relative; overflow: hidden; }
.career-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.career-card:hover .career-img img { transform: scale(1.02); }
.career-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--card-solid)); }
.career-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.career-copy p { margin: 0; color: var(--text-2); }
.career-copy .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Final CTA ---------- */
.final { padding: 0 0 120px; }
.final-card { position: relative; text-align: center; box-shadow: 0 40px 80px -40px rgba(25, 25, 25, 0.5); padding: clamp(60px, 9vw, 120px) 24px; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; isolation: isolate; background: radial-gradient(60% 90% at 50% 120%, rgba(224, 49, 60, 0.35), transparent 70%), radial-gradient(40% 60% at 15% 30%, rgba(224, 49, 60, 0.08), transparent 70%), #191919; }
.final-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final-card h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 14ch; margin: 0 auto 22px; }
.final-card .lead { margin: 0 auto 34px; }
.final-card .row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid.cols-3 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer .logo img { height: 32px; width: auto; margin-bottom: 18px; }
.footer p, .footer li { color: var(--muted); font-size: 0.9rem; }
.footer h4 { margin: 0 0 16px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--text); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: all 0.25s; }
.social a:hover { background: var(--surface-2); color: var(--text); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 20px; }
.wordmark { font-family: var(--serif); font-size: clamp(5rem, 18vw, 16rem); line-height: 0.8; letter-spacing: -0.04em; text-align: center; margin: 64px 0 -0.12em; background: linear-gradient(180deg, rgba(var(--tint), 0.08), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }

/* ---------- Scroll reveal (progressive: only hides when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
  .burger { display: grid; }
  .nav-cta { margin-left: 0; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    max-height: calc(100vh - 120px); overflow: auto;
    padding: 12px; border-radius: 20px; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
  }
  .nav.menu-open .nav-links > li > a, .nav.menu-open .nav-links > li > button { width: 100%; height: 48px; justify-content: space-between; font-size: 1rem; }
  .mega { position: static; width: auto; transform: none; display: none; grid-template-columns: 1fr; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px; opacity: 1; visibility: visible; }
  .has-mega.open .mega { display: grid; transform: none; }
  .mega small { display: none; }
  .mega .ic { grid-row: auto; }
  .mega a { align-items: center; }
  .mega .mega-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bento .card, .bento .card.wide, .bento .card.half { grid-column: span 6; }
  .ki-features { grid-template-columns: repeat(3, 1fr); }
  .pk-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid, .foot-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid.cols-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .intro-grid, .ki-split, .contact-grid, .cbam-card, .career-card { grid-template-columns: 1fr; }
  .ki-split > :last-child { position: static; }
  .cbam-visual { min-height: 260px; }
  .career-img { min-height: 260px; }
  .career-img::after { background: linear-gradient(180deg, transparent 55%, var(--card-solid)); }
  .demo-body { grid-template-columns: 1fr; }
  .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--line); }
  .video-frame .badge { left: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { width: calc(100% - 20px); top: 10px; height: 60px; padding-left: 16px; }
  .nav .logo img { height: 26px; }
  .nav-cta .btn-primary { display: none; }
  .hero { padding: 150px 0 80px; }
  .announce .sep, .hide-sm { display: none; }
  .bento .card, .bento .card.wide, .bento .card.half { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .ki-features { grid-template-columns: 1fr 1fr; }
  .ki-features div:last-child { grid-column: 1 / -1; }
  .pk-grid { grid-template-columns: 1fr; }
  .risk { grid-template-columns: 1fr; }
  .foot-grid, .foot-grid.cols-3 { grid-template-columns: 1fr; }
  .person { gap: 14px; }
  .person img, .person .person-ic { width: 56px; height: 56px; }
  .person .meta { min-width: 0; }
  .person .meta small { overflow-wrap: anywhere; }
  .value { min-height: 0; }
  .video-frame .badge { display: none; }
  .btn { height: 48px; }
  .hero-ctas .btn { width: 100%; }
  .checks { gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .split .w { opacity: 1; transform: none; filter: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .statement .w { color: var(--text); }
}

/* ---------- Dark-band specifics ---------- */
.dark .marquee img { filter: grayscale(1) invert(1) contrast(1.4); mix-blend-mode: screen; }
.dark .v-docs .doc { box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); }

/* ==========================================================================
   Subpage components
   ========================================================================== */

.nav-links [aria-current="page"] { color: var(--text); background: rgba(25, 25, 25, 0.06); }
.person-ic { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--tint), 0.05); border: 1px solid var(--line-2); color: var(--orange); flex: none; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; margin-top: -80px; padding: 180px 0 96px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 15% 0%, rgba(224, 49, 60, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(25, 25, 25, 0.96) 35%, rgba(25, 25, 25, 0.86)),
    var(--hero-img, none) center / cover no-repeat,
    #191919;
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, #191919); }
.page-hero .wrap { display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); max-width: 18ch; }
.page-hero h1 .line { display: block; }
.page-hero .lead { max-width: 58ch; margin: 0; }
.page-hero .hero-ctas { justify-content: flex-start; }
.page-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; width: 100%; }
.page-hero-grid > div:first-child { display: grid; gap: 22px; justify-items: start; }
.hero-aside { padding: 24px; display: grid; gap: 14px; }
.hero-aside .k { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-aside .k:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-aside .k b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.hero-aside .k span { color: var(--muted); font-size: 0.86rem; text-align: right; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text-2); }

/* ---------- Generic sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section.tight { padding: 72px 0; }
.section.flush-top { padding-top: 0; }
.section-head.left { justify-items: start; text-align: left; }
.section-head.left .lead { margin: 0; }
.section-head h2 + .lead { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
h1.split, h2.split, h3.split { display: block; }
.split.wide-left { grid-template-columns: 1.25fr 1fr; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 20px; }
.media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card-solid); box-shadow: var(--card-shadow); }
.media img, .media video { width: 100%; height: auto; }
.media.pad { padding: clamp(16px, 3vw, 32px); }
.media.cover img { height: 100%; object-fit: cover; }
.media figcaption { padding: 12px 18px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
.sticky { position: sticky; top: 120px; }

.prose { color: var(--text-2); max-width: 72ch; }
.prose :where(p, ul, ol) { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 1.12rem; color: var(--text); margin-top: 1.8em; }
.prose h4 { font-size: 1rem; color: var(--text); margin: 1.4em 0 0; }
.prose a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(189, 26, 38, 0.35); word-break: break-word; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--text); }
.prose .lead { color: var(--text-2); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(255, 75, 0, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ff4b00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid rgba(255, 75, 0, 0.25);
}
.dark .checklist li::before { background-color: rgba(255, 75, 0, 0.12); border-color: rgba(255, 75, 0, 0.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ff4b00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.checklist-card { padding: clamp(24px, 3vw, 36px); }
.checklist-card h3 { margin-bottom: 18px; }

/* ---------- Process timeline (fills while scrolling) ---------- */
.process { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; --p: 0; }
.process::before, .process::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; }
.process::before { background: var(--line); }
.process::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 12px rgba(255, 75, 0, 0.35); }
.process > li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.process .n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); background: var(--card-solid); border: 1px solid var(--line-2); transition: all 0.4s var(--ease); }
.process > li.on .n { color: #fff; background: linear-gradient(180deg, var(--orange), #e04200); border-color: transparent; box-shadow: 0 10px 24px -8px rgba(255, 75, 0, 0.45); }
.process .body { padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--card-shadow); }
.process .body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process .body p { margin: 0 0 10px; color: var(--text-2); }
.process .body p:last-child { margin-bottom: 0; }
.process .body .checklist, .process .body .chips { margin-top: 14px; }
.process .body .media { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.feature { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--orange); background: rgba(255, 75, 0, 0.07); border: 1px solid rgba(255, 75, 0, 0.22); }
.dark .feature-ic { background: rgba(255, 75, 0, 0.1); border-color: rgba(255, 75, 0, 0.3); }
.feature-ic img { width: 26px; height: 26px; object-fit: contain; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.feature .link-arrow { margin-top: auto; padding-top: 8px; }
.feature.big h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }

/* ---------- Quote ---------- */
.quote { margin: 0; padding: clamp(32px, 5vw, 56px); border-radius: 28px; position: relative; overflow: hidden; }
.quote::before { content: "“"; position: absolute; top: -0.15em; right: 0.15em; font-family: var(--serif); font-size: 16rem; line-height: 1; color: rgba(189, 26, 38, 0.1); pointer-events: none; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; color: var(--text); max-width: 32ch; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption small { color: var(--muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; }
.member .ph { aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--bg-2); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(0.35); transform: scale(1.02); transition: filter 0.5s, transform 0.8s var(--ease); }
.member:hover .ph img { filter: none; transform: scale(1.06); }
.member .info { padding: 18px 20px 20px; display: grid; gap: 2px; }
.member .info strong { font-weight: 600; font-size: 1.02rem; }
.member .info small { color: var(--muted); font-size: 0.86rem; margin-bottom: 10px; }
.member .info a { font-size: 0.84rem; color: var(--text-2); word-break: break-all; }
.member .info a:hover { color: var(--red-2); }
.member .info .mono { font-size: 0.78rem; }

/* ---------- Logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logo-wall a { display: grid; place-items: center; height: 104px; padding: 20px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform 0.3s var(--ease), border-color 0.3s; }
.logo-wall a:hover { transform: translateY(-3px); border-color: var(--line-2); }
.logo-wall img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; mix-blend-mode: multiply; transition: filter 0.3s, opacity 0.3s; }
.logo-wall a:hover img { filter: none; opacity: 1; }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.case .case-img { background: var(--bg-2); display: grid; place-items: center; min-height: 280px; }
.case .case-img img { width: 100%; height: 100%; object-fit: cover; }
.case .case-body { padding: clamp(26px, 4vw, 48px); display: grid; gap: 14px; align-content: center; }
.case .case-body p { margin: 0; color: var(--text-2); }
.case + .case { margin-top: 16px; }

/* ---------- Locations ---------- */
.locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.location { padding: 22px 24px; display: grid; gap: 4px; }
.location .tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2); font-weight: 600; }
.location h3 { margin-bottom: 6px; }
.location p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.location a { color: var(--text-2); font-family: var(--mono); font-size: 0.82rem; margin-top: 8px; }
.location a:hover { color: var(--red-2); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin-bottom: 12px; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; grid-column: span 3; }
.field.full { grid-column: 1 / -1; }
.field.s2 { grid-column: span 2; }
.field.s4 { grid-column: span 4; }
.field label, .field .lbl { font-size: 0.86rem; font-weight: 550; color: var(--text); }
.field label .req, .req { color: var(--red-2); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--text);
  padding: 13px 15px; border-radius: 12px;
  background: var(--card-solid); border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(189, 26, 38, 0.12); }
.field input[type="file"] { padding: 10px; background: var(--bg-2); border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-size: 0.86rem; border: 1px solid var(--line-2); background: var(--card-solid); color: var(--text); padding: 7px 12px; border-radius: 8px; margin-right: 12px; cursor: pointer; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-solid); cursor: pointer; font-size: 0.92rem; }
.radio-group label:has(input:checked) { border-color: var(--red); background: rgba(189, 26, 38, 0.05); }
.radio-group input, .check input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.check input { margin-top: 2px; }
.check a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; background: rgba(31, 157, 99, 0.08); border: 1px solid rgba(31, 157, 99, 0.3); color: var(--text); font-size: 0.92rem; }
.form-status.show { display: block; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.price-tag b { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.price-tag span { color: var(--muted); font-size: 0.84rem; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); font-weight: 400; transition: transform 0.3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- Callout band ---------- */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); background: radial-gradient(80% 120% at 100% 0%, rgba(189, 26, 38, 0.1), transparent 60%), var(--card-solid); }
.callout h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.callout p { margin: 6px 0 0; color: var(--text-2); max-width: 60ch; }

/* ---------- Related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-solid); box-shadow: var(--card-shadow); font-weight: 550; font-size: 0.93rem; transition: border-color 0.3s, transform 0.3s var(--ease); }
.related-grid a span { color: var(--red-2); transition: transform 0.3s var(--ease); }
.related-grid a:hover { border-color: rgba(189, 26, 38, 0.35); transform: translateY(-2px); }
.related-grid a:hover span { transform: translateX(4px); }
.related-grid .num { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-right: 10px; }

/* ---------- Value cards ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.value { padding: 26px 22px; display: grid; gap: 10px; align-content: start; min-height: 240px; }
.value .n { font-family: var(--mono); font-size: 0.78rem; color: var(--orange); }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.value p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Booking modal ---------- */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 26px; background: var(--card-solid); color: var(--text); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.55); overflow: hidden; }
.modal::backdrop { background: rgba(15, 15, 16, 0.55); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.35s var(--ease); }
.modal[open]::backdrop { animation: fadeIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-top { position: relative; padding: 34px 34px 26px; background: radial-gradient(70% 120% at 0% 0%, rgba(224, 49, 60, 0.28), transparent 70%), #191919; color: #f4f4f5; overflow: hidden; }
.modal-top h2 { font-size: clamp(2rem, 5vw, 2.6rem); margin-top: 16px; }
.modal-top em { color: #bd1a26; }
.modal-top .eyebrow { color: #cfcfd2; border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.modal-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #f4f4f5; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); transition: background 0.2s; }
.modal-x:hover { background: rgba(255, 255, 255, 0.12); }
.modal-body { padding: 26px 34px 32px; display: grid; gap: 18px; }
.modal-body p { margin: 0; color: var(--text-2); }
.modal-mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.modal-mail a { font-family: var(--mono); font-size: 1rem; color: var(--text); word-break: break-all; }
.modal-mail button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-solid); font-size: 0.84rem; font-weight: 550; white-space: nowrap; transition: all 0.2s; }
.modal-mail button:hover { border-color: var(--text-2); }
.modal-mail button.ok { color: var(--green); border-color: rgba(31, 157, 99, 0.4); }
.modal-body .row { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-body .row .btn { flex: 1; }
.modal-body small { color: var(--muted); font-size: 0.8rem; }
body.modal-open { overflow: hidden; }

/* ---------- Cookie banner (non-blocking, bottom left) ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px 26px 20px; display: grid; gap: 16px; border: 1px solid var(--line-2); border-radius: 24px; background: radial-gradient(90% 70% at 0% 0%, rgba(224, 49, 60, 0.22), transparent 70%), var(--bg); color: var(--text); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(16px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.consent[hidden] { display: none; }
/* invisible (fading in/out) banner must never catch taps or swipes */
.consent:not(.show) { pointer-events: none; }
.consent.show { opacity: 1; transform: none; }
.consent h2 { font-size: 2rem; }
.consent p { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.consent a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.consent-opts { display: grid; gap: 8px; }
.consent-opts[hidden] { display: none; }
.consent-opt { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.consent-opt > span { display: grid; gap: 3px; }
.consent-opt strong { font-size: 0.92rem; font-weight: 600; }
.consent-opt small, .consent-note { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.consent-note { padding: 2px 4px; }
.switch { appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: rgba(var(--tint), 0.16); cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 0.25s var(--ease); }
.switch:checked { background: #bd1a26; }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: 0.55; cursor: default; }
.switch:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; padding: 0 14px; }
.consent-actions .btn-primary { flex-basis: 100%; }
.consent-links { display: flex; gap: 16px; font-size: 0.76rem; }
.consent-links a { color: var(--muted); text-decoration: none; }
.consent-links a:hover { color: var(--text); }
/* tablets, small or short windows: flat bar (text left, buttons right) so it covers as little content as possible */
@media (min-width: 641px) and (max-width: 1100px), (min-width: 641px) and (max-height: 760px) {
  .consent { left: 16px; right: 16px; width: auto; max-width: 1080px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 28px; row-gap: 8px; padding: 18px 22px; border-radius: 20px; }
  .consent h2, .consent p, .consent-links { grid-column: 1; }
  .consent-opts { grid-column: 1 / -1; grid-row: 3; }
  .consent-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-self: center; }
  .consent-actions .btn { flex: none; width: 100%; height: 38px; }
  .consent h2 { font-size: 1.4rem; }
  .consent p { font-size: 0.84rem; }
  .consent-links { display: none; }
}
@media (min-width: 1000px) and (max-width: 1100px), (min-width: 1000px) and (max-height: 760px) {
  .consent { grid-template-columns: minmax(0, 1fr) auto; }
  .consent-actions { flex-direction: row; }
  .consent-actions .btn { width: auto; padding: 0 18px; }
}
/* phones: compact bottom sheet */
@media (max-width: 640px) {
  .consent { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px 18px 14px; gap: 12px; border-radius: 20px; }
  .consent h2 { font-size: 1.5rem; }
  .consent p { font-size: 0.84rem; }
  .consent-actions .btn { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ---------- Simple header for minimal pages (EN) ---------- */
.nav-simple .nav-cta { margin-left: auto; }

@media (max-width: 1080px) {
  .feature-grid.cols-4, .feature-grid.cols-5, .values { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-hero-grid, .split, .split.wide-left, .case { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .feature-grid, .feature-grid.cols-4, .feature-grid.cols-5, .values { grid-template-columns: repeat(2, 1fr); }
  .sticky { position: static; }
  .locations { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 140px 0 64px; }
  .section { padding: 80px 0; }
  .feature-grid, .feature-grid.cols-2, .feature-grid.cols-4, .feature-grid.cols-5, .values, .related-grid { grid-template-columns: 1fr; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field, .field.s2, .field.s4 { grid-column: 1 / -1; }
  .process > li { grid-template-columns: 44px 1fr; gap: 14px; }
  .process .n { width: 44px; height: 44px; border-radius: 12px; font-size: 0.8rem; }
  .process::before, .process::after { left: 21px; }
  .process .body { padding: 18px; }
  .modal-top, .modal-body { padding-left: 22px; padding-right: 22px; }
  .modal-body .row .btn { flex: 1 1 100%; }
}

/* ---------- Scrollytelling: process + sticky figure ---------- */
.scrolly { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.scrolly-fig { position: sticky; top: 110px; aspect-ratio: 1; border-radius: 28px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden; }
.scrolly-fig img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(0.96) rotate(-4deg); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.scrolly-fig img.active { opacity: 1; transform: none; }
.scrolly-fig .cap { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-fig { display: none; }
}

/* ---------- Video play button ---------- */
.video-frame .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; color: #fff; background: linear-gradient(180deg, #d02633, #ad1420); box-shadow: 0 0 0 10px rgba(224, 49, 60, 0.18), 0 20px 50px -10px rgba(224, 49, 60, 0.7); transition: transform 0.3s var(--ease), opacity 0.3s; z-index: 2; }
.video-frame .play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(224, 49, 60, 0.5); animation: ring 2.2s ease-out infinite; }
.video-frame .play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-frame.playing .play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (max-width: 640px) { .video-frame .play { width: 64px; height: 64px; } }
