/* ==========================================================================
   Nox Science — single stylesheet
   1. Tokens   2. Base   3. Components   4. Header   5. Sections   6. Pages   7. Responsive

   To change the look of the site, start with the tokens (section 1).
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  /* Colours */
  --bg:          #0c0f0d;   /* page background */
  --bg-alt:      #111613;   /* alternate sections: one step lighter than the page */
  --bg-header:   #121714;   /* header */
  --surface:     #161b18;   /* cards, fields */
  --surface-2:   #1c221e;   /* placeholders */
  --line:        #272e29;   /* hairlines */
  --line-strong: #3b443e;   /* outlines of secondary buttons and chips */
  --text:        #f3f5f0;
  --text-soft:   #cdd3cd;   /* secondary text, nav links */
  --muted:       #a3ada6;   /* tertiary text */
  --accent:      #d6f46a;   /* lime: buttons, highlights */
  --accent-ink:  #10140a;   /* text on an accent background */

  /* Typography */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: var(--font-sans);   /* small labels, numbers, chips: same family as the text (no monospace) */

  /* Spacing and widths */
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --max:       72rem;
  --section-y: clamp(3rem, 5vw, 4.5rem);
  --header-h:  4.5rem;
  --radius:    0.625rem;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* 3. COMPONENTS ----------------------------------------------------------- */

/* Section label: "SOLUTIONS" */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Headings */
.h-display {
  font-size: clamp(2.1rem, 3.7vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 40rem; }

.section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* Highlighted keyword */
.mark {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}
u {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: #e4ff7e; border-color: #e4ff7e; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

/* "Read the case study →" */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--text);
}
.link-arrow::after { content: "→"; color: var(--accent); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 500;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted);
}
.chip--accent { display: inline-block; border-color: transparent; background: rgba(214, 244, 106, 0.14); color: var(--accent); }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Placeholder box (photos, charts) */
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-label); font-size: 0.75rem; color: var(--muted);
}

/* "Signal" divider */
.signal { width: 100%; height: 3.5rem; }
.signal path { fill: none; vector-effect: non-scaling-stroke; }

/* 4. HEADER --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.8); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Logo: image supplied by the brand, used as is. "lighten" makes its near-black
   background disappear on the header. Replace assets/logo-nox.png by the SVG later. */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem; text-decoration: none; }
.logo__img { height: 2.2rem; width: auto; mix-blend-mode: lighten; }
/* "Science" sits under NOX, small and spaced, like the LinkedIn mark */
.logo__lab {
  font-size: 0.6rem; font-weight: 500; line-height: 1; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.42em; margin-right: -0.42em;
}

/* Navigation: all on the right, logo alone on the left */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__links { display: flex; gap: 0.25rem; align-self: stretch; }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0 0.9rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
/* Current section (set by js/main.js): bar on the bottom edge of the header */
.nav__links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: -1px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__links a[aria-current] { color: #fff; }
.nav__links a[aria-current]::after { transform: scaleX(1); }

/* Language switch: globe + the language you can switch to */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-left: 0.5rem; padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-soft); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.lang-switch svg { width: 1.1rem; height: 1.1rem; }
.lang-switch:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav .btn { margin-left: 0.5rem; }

/* Mobile menu button (hidden on desktop) */
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* 5. SECTIONS ------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--glow { background: radial-gradient(44rem 22rem at 8% 0%, rgba(214, 244, 106, 0.09), transparent 70%), var(--bg); }

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46rem 26rem at 85% 0%, rgba(214, 244, 106, 0.08), transparent 70%),
    var(--bg);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 500; color: var(--accent); }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Rotating phrase: "We help you [analyse your data]" (4 items, CSS only) */
.rotator { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; line-height: 1.4; }
.rotator__lead { color: var(--text-soft); }
.rotator__view { display: inline-block; vertical-align: bottom; height: 1.4em; overflow: hidden; color: var(--accent); }
.rotator__track { display: block; animation: rotate 12s ease-in-out infinite; }
.rotator__track span { display: block; height: 1.4em; white-space: nowrap; }
@keyframes rotate {
  0%, 21%   { transform: translateY(0); }
  25%, 46%  { transform: translateY(-20%); }
  50%, 71%  { transform: translateY(-40%); }
  75%, 96%  { transform: translateY(-60%); }
  100%      { transform: translateY(-80%); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__more { margin-top: 2rem; }

/* Offer card: free call + scoping note */
.offer {
  position: relative; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(214, 244, 106, 0.1), rgba(214, 244, 106, 0) 55%), var(--surface);
  border: 1.5px solid var(--accent); border-radius: 0.875rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.offer__tag { margin-bottom: 1.1rem; }
.offer__title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.offer__text { margin: 0.75rem 0 1.5rem; color: var(--muted); }
/* E-mail or phone */
.offer__text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.offer__text a:hover { color: var(--accent); }
.offer__ways { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.offer__ways .btn { padding-inline: 1.1rem; white-space: nowrap; }
.offer__or { font-family: var(--font-label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.btn--lg { width: 100%; padding: 1.05rem 1.75rem; font-size: 1.05rem; }
.btn--lg::after { content: "→"; transition: transform .2s; }
.btn--lg:hover::after { transform: translateX(3px); }

/* Scrolling band: where we have worked */
.marquee { border-block: 1px solid var(--line); background: var(--bg-alt); }
.marquee__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.marquee__label { flex: none; font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee__view {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__view:hover .marquee__track { animation-play-state: paused; }
.marquee__item { padding-inline: 1.75rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-soft); opacity: 0.75; white-space: nowrap; }
.marquee__item img { height: 1.75rem; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Solutions: question + drop-down --- */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem clamp(2rem, 6vw, 5rem); }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
/* Icons: two-tone drawings framed by two corner ticks (no tile) */
.qa__icon-wrap, .step__icon { position: relative; display: grid; place-items: center; flex: none; }
.qa__icon-wrap::before, .qa__icon-wrap::after, .step__icon::before, .step__icon::after {
  content: ""; position: absolute; width: 0.5rem; height: 0.5rem; border: 0 solid var(--line-strong);
}
.qa__icon-wrap::before, .step__icon::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.qa__icon-wrap::after, .step__icon::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.qa__icon-wrap { width: 2.9rem; height: 2.9rem; }
.qa__icon-wrap .icon { width: 1.9rem; height: 1.9rem; }
.qa__text { display: grid; gap: 0.1rem; }
.qa__tag { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qa__q { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; transition: color .2s; }
.qa summary:hover .qa__q { color: #fff; }
.qa__toggle { position: relative; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .2s; }
.qa__toggle::before, .qa__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .2s; }
.qa__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__toggle { border-color: var(--accent); }
.qa[open] .qa__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { padding: 0 0 1.5rem 3.85rem; max-width: 42rem; }
.qa__body p { color: var(--muted); }
.qa__body .chips { margin-top: 1rem; }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.step { position: relative; }
.step__top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.step__icon { width: 3rem; height: 3rem; }
.step__icon .icon { width: 2rem; height: 2rem; }
.step__num { font-family: var(--font-label); font-size: 0.8rem; color: var(--muted); }
/* thin connector between steps */
.step:not(:last-child) .step__top::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); margin-right: -1rem; }
.step__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.step__text { color: var(--muted); }

/* --- Case studies --- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.case { display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.4rem, 2.5vw, 1.75rem); transition: border-color .2s, transform .2s; }
.case:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.case__kicker { font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.case__text { color: var(--muted); }
.case__meta { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-label); font-size: 0.75rem; color: var(--muted); }
.case__foot { min-height: 1.75rem; }

/* --- Team --- */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.member { display: flex; flex-direction: column; align-items: flex-start; }
.member__photo { width: 9.5rem; height: 9.5rem; border-radius: 50%; margin-bottom: 1.5rem;
  border: 2px solid var(--accent); box-shadow: 0 0 0 0.45rem rgba(214, 244, 106, 0.07); } /* lime ring and soft halo, as on the social slides */
.member__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.member__name { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.member__in { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0.4rem; color: var(--muted); transition: color .2s, border-color .2s; }
.member__in:hover { color: var(--text); border-color: var(--text); }
.member__in svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.member__role { font-size: 1.0625rem; font-weight: 500; color: var(--accent); margin-bottom: 0.6rem; }
.member__bio { color: var(--muted); max-width: 32rem; }
.member .chips { margin-top: 1rem; }

/* --- Contact --- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.contact__title { max-width: 12ch; margin-bottom: 1.25rem; }
.contact__text { color: var(--muted); margin-bottom: 1.25rem; max-width: 28rem; }
.contact__mail { font-size: 1.05rem; }
.contact__place { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  font: inherit; font-size: 1rem;
  transition: border-color .2s;
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.form__actions { grid-column: 1 / -1; }
.form__status { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }   /* anti-spam trap, do not remove */

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.social { display: flex; gap: 0.6rem; }
.social a { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0.4rem; transition: color .2s, border-color .2s; }
.social a:hover { border-color: var(--text); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; }

/* 6. PAGES (case study, legal) --------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem); background: radial-gradient(44rem 24rem at 90% -20%, rgba(214, 244, 106, 0.08), transparent 70%), var(--bg); }
.breadcrumb { display: inline-flex; gap: 0.4rem; margin-bottom: 1.75rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.breadcrumb:hover { color: var(--text); }
.page-hero .lead { margin-top: 1.25rem; }

.facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.facts dd { font-size: 0.9375rem; font-weight: 500; }
.facts a { color: var(--text); }

.prose { max-width: 44rem; }
.prose-block + .prose-block { margin-top: clamp(2rem, 4vw, 3rem); }
.prose-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.prose-block p { font-size: 1.0625rem; color: var(--text-soft); }
.prose-block p + p { margin-top: 1rem; }
.prose-block a { color: var(--text); }
.prose-block .placeholder { margin-top: 1.25rem; min-height: 15rem; }
.todo { background: rgba(214, 244, 106, 0.14); color: var(--accent); padding: 0.05em 0.35em; border-radius: 0.25rem; }

/* Case study pages: key figures, tables, figures, session flow, references */
.prose--case { max-width: 52rem; }
.case-title { max-width: 22ch; }
.page-hero .published { margin-top: 1rem; font-family: var(--font-label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats { margin-bottom: clamp(2rem, 4vw, 3rem); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat__num { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.stat__label { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

.prose-block h2 { scroll-margin-top: 6rem; }
.prose-block strong { color: var(--text); font-weight: 600; }
.lede-box { margin-top: 0.25rem; padding: 1.1rem 1.35rem; background: linear-gradient(160deg, rgba(214, 244, 106, 0.1), rgba(214, 244, 106, 0) 70%), var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.prose-block .lede-box { font-size: 1.15rem; color: var(--text); line-height: 1.5; letter-spacing: -0.01em; }
.prose-list { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.prose-list li { position: relative; padding-left: 1.35rem; font-size: 1.0625rem; color: var(--text-soft); }
.prose-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 2px; background: var(--accent); }
.prose-block > .table-wrap + *, .prose-block > .figure + *, .prose-block > .lede-box + *, .prose-block > .prose-list + *, .prose-block > .flow + * { margin-top: 1.25rem; }
.prose-block > .prose-list:first-child, .prose-block > p + .prose-list { margin-top: 1rem; }

.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 34rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.data-table thead th { font-family: var(--font-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.data-table tbody th { font-weight: 500; color: var(--text); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 0.6rem; font-size: 0.85rem !important; color: var(--muted) !important; }

.figure { margin: 1.5rem 0 0; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.figure--sm { max-width: 28rem; }
.figure__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.figure figcaption, .flow figcaption { margin-top: 0.65rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.flow { margin: 0 0 1.5rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow__title { font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.flow__row { display: grid; grid-template-columns: 7rem 1fr auto 1.35fr auto 1fr; align-items: stretch; gap: 0.5rem; }
.flow__label { align-self: center; display: flex; flex-direction: column; gap: 0.1rem; color: var(--text); }
.flow__label span { font-size: 0.8rem; color: var(--muted); }
.flow__step { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.flow__step strong { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.flow__step--scene { border-color: var(--accent); background: rgba(214, 244, 106, 0.07); }
.flow__arrow { align-self: center; color: var(--muted); }
.flow__break { margin: 1.1rem 0; text-align: center; font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-top: 1px dashed var(--line-strong); line-height: 0; }
.flow__break span { background: var(--surface); padding: 0 0.75rem; }

.refs { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.refs h2 { font-size: 1rem !important; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600 !important; }
.refs ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.refs li { font-size: 0.85rem; color: var(--muted); line-height: 1.5; padding-left: 0.25rem; }
.refs a { color: var(--text-soft); overflow-wrap: anywhere; }

.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band .h-section { max-width: 24ch; }

.legal { padding-block: 4rem 6rem; max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.legal p { color: var(--muted); }
.legal ul { color: var(--muted); list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.legal li + li { margin-top: 0.4rem; }
.legal strong { color: var(--text); font-weight: 600; }

/* 7. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .offer { max-width: 26rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step .step__top::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
  :root { --header-h: 4rem; }
  .logo__img { height: 1.95rem; }
  .logo__lab { font-size: 0.55rem; }

  /* Mobile menu */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; align-self: auto; }
  .nav__links a { padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current] { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); padding-left: 0.9rem; }
  .lang-switch { align-self: flex-start; margin: 0.75rem 0 1rem -0.7rem; font-size: 0.95rem; }
  .nav .btn { margin: 0; padding: 0.85rem 1.2rem; font-size: 0.95rem; }

  .case-grid, .team__grid, .contact__grid, .form { grid-template-columns: 1fr; }
  .marquee__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .marquee__view { width: 100%; }
  .qa__body { padding-left: 0; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 36rem) {
  .facts, .steps { grid-template-columns: 1fr; }
}

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

@media (max-width: 860px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .flow__row { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .flow__label { flex-direction: row; gap: 0.6rem; align-items: baseline; }
}
@media (max-width: 560px) {
  .figure__pair { grid-template-columns: 1fr; }
}
