/*!
 * 35energy.com — stylesheet
 * Deep ink-green + mint (#00D9A0) B2B photovoltaic brand system.
 * Self-hosted, no fonts / CDN / framework / build step.
 *
 * Organisation (cascade layers, lowest -> highest):
 *   1. tokens      design tokens, dark-surface token scopes
 *   2. base        reset, typography, accessibility primitives
 *   3. layout      container, sections, grids
 *   4. components  nav, hero, cards, tables, forms, footer ...
 *   5. responsive  breakpoints 1180 / 1080 / 760 / 480
 *   6. motion      reduced-motion overrides
 *
 * Colour contrast (WCAG 2.2 AA): --accent-dim #087A58 and --text-soft #5F746B
 * clear 4.5:1 on --paper. Dark surfaces re-point --accent-dim to --accent and
 * --text-soft to --text-inv-soft (see "dark surface scope"), so inline
 * style="color:var(--text-soft)" stays legible on both.
 */

@layer tokens, base, layout, components, responsive, motion;

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
@layer tokens {
  :root {
    --ink: #05100D;
    --ink-2: #0A1915;
    --ink-3: #0E241D;
    --paper: #F2F6F4;
    --paper-2: #E8EFEC;
    --paper-3: #DDE7E2;
    --accent: #00D9A0;
    --accent-dim: #087A58;
    --accent-ink: #031A13;
    --text: #0B1713;
    --text-mute: #4B635C;
    --text-soft: #5F746B;
    --text-inv: #F2F6F4;
    --text-inv-mute: rgba(242, 246, 244, .62);
    --text-inv-soft: rgba(242, 246, 244, .56);
    --line: rgba(9, 40, 32, .12);
    --line-inv: rgba(242, 246, 244, .14);
    --field-line: #75897F;
    --danger: #B3261E;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --font: var(--font-sans);

    --maxw: 1280px;
    --gutter: clamp(18px, 4vw, 40px);
    --section-y: clamp(64px, 9vw, 118px);
    --nav-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --grid-line: rgba(9, 40, 32, .05);
    --grid-line-inv: rgba(242, 246, 244, .045);
  }

  /*
   * Dark surface scope. Anything painted ink re-maps the semantic tokens, so
   * components (and inline style="...var(--text-soft)") adapt without extra
   * per-component dark rules.
   */
  .section--ink,
  .page-head,
  .hero,
  .cta-band,
  .footer,
  .card--ink,
  .diagram,
  .cookie,
  .nav,
  .marquee,
  .pcard__visual {
    --text: var(--text-inv);
    --text-mute: var(--text-inv-mute);
    --text-soft: var(--text-inv-soft);
    --line: var(--line-inv);
    --accent-dim: var(--accent);
    --paper-2: rgba(242, 246, 244, .06);
    --grid-line: var(--grid-line-inv);
    color: var(--text-inv);
  }

  /* Slightly darker soft text on tinted light surfaces (paper-2 = 4.3:1 otherwise). */
  .section--paper2,
  .spec,
  .legal {
    --text-soft: #566B62;
  }
}

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

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    scrollbar-width: thin;
    scrollbar-color: #9DB0A8 transparent;
    color-scheme: light;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
  }

  h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--text);
    text-wrap: balance;
  }
  h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.04; }
  h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; }
  h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
  h4 { font-size: 1rem; line-height: 1.3; letter-spacing: -.015em; }
  h5 { font-size: .8125rem; }

  p { color: var(--text-mute); text-wrap: pretty; }
  strong, b { font-weight: 600; }
  p strong { color: var(--text); }

  a { color: inherit; text-decoration: none; }
  ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
  li { color: inherit; }

  img, svg, video { max-width: 100%; }
  img { display: block; height: auto; }
  svg { flex: none; }
  svg:not([width]) { height: auto; }

  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  [hidden] { display: none !important; }

  table { border-collapse: collapse; border-spacing: 0; }

  ::selection { background: var(--accent); color: var(--accent-ink); }

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

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #9DB0A8; border-radius: 99px; border: 2px solid var(--paper); }
  ::-webkit-scrollbar-track { background: transparent; }

  .mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dim);
  }
  .eyebrow::before {
    content: "";
    flex: none;
    width: 22px;
    height: 1px;
    background: currentColor;
  }

  .lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-mute);
    max-width: 62ch;
    margin: 0;
  }

  .hl { color: var(--accent-dim); font-weight: 600; }
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .container--narrow { max-width: 860px; }

  .section {
    position: relative;
    padding: var(--section-y) 0;
    background: var(--paper);
    color: var(--text);
  }
  .section--paper2 { background: var(--paper-2); }
  .section--tight { padding: 56px 0 48px; }

  .section--ink {
    background:
      radial-gradient(60% 55% at 88% 0%, rgba(0, 217, 160, .09), transparent 70%),
      linear-gradient(var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      var(--ink);
  }

  .sec-head {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(28px, 5vw, 80px);
    align-items: end;
    margin-bottom: 56px;
  }
  .sec-head > * { min-width: 0; }
  .sec-head h2 { max-width: 20ch; }
  .sec-head .lede { margin: 0; }

  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }
  .split > * { min-width: 0; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  /* "top aligned": stretch so sticky children have room to travel */
  .split--top { align-items: stretch; }
  .split--top > .diagram,
  .split--top > .viz,
  .split--top > .spec-wrap { align-self: start; }

  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .cards > * { min-width: 0; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }

  .tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .tiles > * { min-width: 0; }

  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  html:not(.js) .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */
@layer components {

  /* ---------------- Buttons ---------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  }
  .btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }
  .btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

  .btn--primary { background: var(--accent); color: var(--accent-ink); }
  .btn--primary:hover {
    background: #22EDB7;
    box-shadow: 0 0 0 4px rgba(0, 217, 160, .16), 0 10px 30px -10px rgba(0, 217, 160, .55);
  }
  .btn--ghost { border-color: rgba(9, 40, 32, .28); color: var(--text); }
  .btn--ghost:hover { border-color: var(--text); }
  .btn--ghost-inv { border-color: rgba(242, 246, 244, .28); color: var(--text-inv); }
  .btn--ghost-inv:hover { border-color: var(--accent); color: var(--accent); }
  .btn--solid { background: var(--ink); color: var(--paper); }
  .btn--solid:hover { background: var(--ink-3); box-shadow: 0 0 0 4px rgba(5, 16, 13, .1); }
  .btn--sm { padding: 8px 14px; font-size: 12.5px; }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-dim);
  }
  .link-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
  .link-arrow:hover svg { transform: translateX(3px); }

  /* ---------------- Navigation ---------------- */
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(5, 16, 13, .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-inv);
    transition: background-color .3s var(--ease);
  }
  .nav.is-solid { background: rgba(5, 16, 13, .94); }
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--nav-h);
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-inv);
    flex: none;
  }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
  .brand__name span { color: var(--accent); }

  .nav__links { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
  .nav__link {
    position: relative;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-inv-mute);
    transition: color .2s var(--ease);
  }
  .nav__link:hover { color: var(--text-inv); }
  .nav__link.is-active { color: var(--accent); }
  .nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: var(--accent);
  }
  .nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

  .nav__burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-inv);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-inv);
  }
  .nav__burger span,
  .nav__burger span::before,
  .nav__burger span::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 1.5px;
    margin-left: -9px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
  }
  .nav__burger span { top: 50%; margin-top: -.75px; }
  .nav__burger span::before, .nav__burger span::after { content: ""; left: 0; margin-left: 0; }
  .nav__burger span::before { top: -6px; }
  .nav__burger span::after { top: 6px; }
  .nav__burger[aria-expanded="true"] span { background: transparent; }
  .nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

  .nav__mobile { display: none; }

  /* ---------------- Hero (home) ---------------- */
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
  }
  .hero__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    transform: scale(1.04);
  }
  .hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(104deg, rgba(5, 16, 13, .90) 0%, rgba(5, 16, 13, .52) 42%, rgba(5, 16, 13, .10) 100%),
      linear-gradient(180deg, rgba(5, 16, 13, .66) 0%, rgba(5, 16, 13, 0) 26%, rgba(5, 16, 13, .78) 100%);
  }
  .hero__slides { position: relative; flex: 1; display: grid; }
  .slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s linear .8s;
  }
  .slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    min-height: 480px;
    padding-block: 24px;
  }
  .hero__inner > * { min-width: 0; }
  .slide-title {
    margin: 0 0 24px;
    font-size: clamp(2.7rem, 5.4vw, 4.9rem);
    line-height: .96;
    font-weight: 600;
    letter-spacing: -.045em;
    color: var(--text-inv);
  }
  .slide-title em { font-style: normal; color: var(--accent); }
  .hero__sub { max-width: 52ch; font-size: 1.05rem; color: var(--text-inv-mute); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .hero__meta {
    margin: 28px 0 0;
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.7;
    color: var(--text-inv-soft);
  }
  .hero__figure { display: flex; align-items: center; justify-content: center; }
  .slide__shot {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line-inv);
    border-radius: 18px;
    background: var(--ink-2);
    box-shadow: inset 0 0 0 1px rgba(242, 246, 244, .04);
  }
  .slide__shot--float {
    transform: rotate(-1.2deg);
    box-shadow: inset 0 0 0 1px rgba(242, 246, 244, .04), 0 36px 60px -34px rgba(0, 0, 0, .75);
  }
  .slide__shot img {
    max-width: 100%;
    max-height: min(62vh, 560px);
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .slide__shot img[width="1500"] { width: 100%; }
  .slide__shot img[width="1172"] { height: min(62vh, 560px); width: auto; }
  .slide__shot svg { display: block; width: 100%; max-height: min(62vh, 520px); }

  .hero__foot {
    position: relative;
    border-top: 1px solid var(--line-inv);
    background: linear-gradient(180deg, rgba(5, 16, 13, .35), rgba(5, 16, 13, .8));
  }
  .stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 22px 24px 22px 0; min-width: 0; }
  .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-inv); }
  .stat__val {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
  }
  .stat__val sup {
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: top;
    position: relative;
    top: .45em;
    color: var(--accent-dim);
  }
  .stat__key {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.5;
    letter-spacing: .01em;
    color: var(--text-soft);
  }
  .hero__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line-inv);
  }
  .hero__dots { display: flex; align-items: center; gap: 8px; }
  .hero__dot {
    position: relative;
    width: 26px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    transition: width .4s var(--ease);
  }
  .hero__dot::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 11px;
    height: 2px;
    background: var(--line-inv);
    transition: background-color .3s var(--ease);
  }
  .hero__dot:hover::before { background: rgba(242, 246, 244, .4); }
  .hero__dot.is-active { width: 46px; }
  .hero__dot.is-active::before { background: var(--accent); }
  .hero__count {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    color: var(--text-inv-soft);
  }
  .hero__count b { font-weight: 500; color: var(--text-inv); }
  .hero__arrows { display: flex; gap: 10px; }
  .hero__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-inv);
    border-radius: 50%;
    background: transparent;
    color: var(--text-inv);
    transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
  }
  .hero__arrow svg { width: 18px; height: 18px; }
  .hero__arrow:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 217, 160, .06); }
  .hero__progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: transparent;
    pointer-events: none;
  }
  .hero__progress-bar { width: 0; height: 100%; background: var(--accent); transition: width linear; }

  .marquee {
    overflow: hidden;
    padding: 16px 0;
    background: var(--ink-2);
    border-block: 1px solid var(--line-inv);
  }
  .marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 48s linear infinite;
  }
  .marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-inv-mute);
  }
  .marquee__track span::after {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .8;
  }
  @keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

  /* ---------------- Page head (sub pages) ---------------- */
  .page-head {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 64px) 0 64px;
    background: var(--ink);
    isolation: isolate;
  }
  .page-head__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(50% 70% at 92% 0%, rgba(0, 217, 160, .14), transparent 70%),
      repeating-linear-gradient(0deg, transparent 0 63px, var(--grid-line-inv) 63px 64px),
      repeating-linear-gradient(90deg, transparent 0 63px, var(--grid-line-inv) 63px 64px);
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  }
  .page-head__inner { position: relative; }
  .crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
  }
  .crumbs a { transition: color .2s var(--ease); }
  .crumbs a:hover { color: var(--accent); }
  .crumbs span { opacity: .6; }
  .page-head h1 { max-width: 20ch; margin: 0 0 22px; }
  .page-head .lede { color: var(--text-inv-mute); }

  /* ---------------- Cards ---------------- */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
  }
  .card:hover { transform: translateY(-3px); border-color: var(--accent-dim); }
  .card h3 { margin: 0 0 10px; font-size: 1.25rem; }
  .card p { font-size: 14px; line-height: 1.6; color: var(--text-mute); }
  .card p:last-child { margin-bottom: 0; }
  .card__num {
    margin: 0 0 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-dim);
  }
  .card__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .card > p + .card__foot, .card > ul + .card__foot { margin-top: 22px; }
  .card h3 + p + .card__foot { margin-top: 22px; }
  .card--ink {
    background: var(--ink);
    border-color: var(--line-inv);
    color: var(--text-inv);
  }
  .card--ink:hover { border-color: var(--accent); }
  .card--accent {
    background: linear-gradient(rgba(0, 217, 160, .08), rgba(0, 217, 160, .08)), #fff;
    border-color: var(--accent);
  }
  /* Inline rgba(5,16,13,.55) on tinted mint only reaches ~4.2:1 — lifted to AA. */
  .card--accent .card__num[style] { color: var(--accent-dim) !important; }
  .card--outline { background: transparent; }
  .card--outline:hover { background: #fff; }
  a.card { text-decoration: none; }

  .tile {
    display: block;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  }
  .tile__ico { width: 26px; height: 26px; margin-bottom: 18px; color: var(--accent-dim); }
  .tile h4 { margin: 0 0 4px; font-size: 15px; }
  .tile p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-mute); }
  .tile:hover { background: #fff; border-color: var(--accent-dim); }
  .section--ink .tile:hover { background: rgba(242, 246, 244, .05); border-color: var(--accent); }

  /* Product card (modules) */
  .pcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
  }
  .pcard:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
  .pcard__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 270px;
    padding: 22px;
    background:
      radial-gradient(60% 70% at 50% 100%, rgba(0, 217, 160, .14), transparent 70%),
      linear-gradient(var(--grid-line-inv) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, var(--grid-line-inv) 1px, transparent 1px) 0 0 / 32px 32px,
      var(--ink-2);
    border-bottom: 1px solid var(--line-inv);
  }
  .pcard__visual svg { width: auto; height: 232px; max-width: 100%; }
  .pcard__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
  .pcard__tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 4px 10px;
    border: 1px solid rgba(8, 122, 88, .4);
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-dim);
  }
  .pcard__body h3 { font-size: 1.6rem; letter-spacing: -.035em; }
  .pcard__meta {
    margin: 6px 0 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--text-mute);
  }
  .pcard__specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .pcard__specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .pcard__specs span { color: var(--text-mute); }
  .pcard__specs b {
    font-family: var(--font-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--text);
  }
  .pcard__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

  /* ---------------- Panels: viz / diagram ---------------- */
  .viz {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
  }
  .viz::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(60% 50% at 100% 0%, rgba(0, 217, 160, .10), transparent 70%),
      linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
  }
  .viz__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }
  .viz__title h4 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
  .viz__title span {
    flex: none;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-dim);
  }
  .viz__cap { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--text-soft); }
  .section--ink .viz { --text: var(--text-inv); --text-mute: var(--text-inv-mute); --text-soft: var(--text-inv-soft); --line: var(--line-inv); --accent-dim: var(--accent); --grid-line: var(--grid-line-inv); color: var(--text-inv); }
  /* Inline rgba(242,246,244,.4/.45) captions in ink sections: raised to AA. */
  .section--ink .viz__cap[style],
  .section--ink .viz__title span[style] { color: var(--text-inv-soft) !important; }

  .bar-rows { display: grid; gap: 14px; margin: 22px 0 20px; }
  .bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 64px;
    align-items: center;
    gap: 14px;
  }
  .bar-row__label { font-size: 12.5px; line-height: 1.3; color: var(--text-mute); }
  .bar-row.is-hl .bar-row__label { color: var(--text); font-weight: 600; }
  .bar-row__track {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(9, 40, 32, .09);
  }
  .section--ink .bar-row__track { background: rgba(255, 255, 255, .08); }
  .bar-row__fill {
    width: 0;
    height: 100%;
    border-radius: 99px;
    background: rgba(9, 40, 32, .26);
    transition: width 1.1s var(--ease);
  }
  .bar-row__fill.is-hl {
    background: linear-gradient(90deg, var(--accent), #4be6bd);
    box-shadow: 0 0 14px rgba(0, 217, 160, .45);
  }
  .bar-row__val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--text);
  }
  html:not(.js) .bar-row { grid-template-columns: 1fr auto; }
  html:not(.js) .bar-row__track { display: none; }

  .diagram {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--line-inv);
    border-radius: var(--r-lg);
  }
  .diagram::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(60% 50% at 100% 0%, rgba(0, 217, 160, .12), transparent 70%),
      linear-gradient(var(--grid-line-inv) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, var(--grid-line-inv) 1px, transparent 1px) 0 0 / 32px 32px;
  }
  .diagram__inner { padding: 28px 28px 14px; }
  .diagram__inner svg { display: block; width: 100%; height: auto; }
  .diagram__cap {
    padding: 14px 28px 18px;
    border-top: 1px solid var(--line-inv);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    color: var(--text-inv-soft);
  }

  /* ---------------- Data lists ---------------- */
  .feature-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
  .feature-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .feature-list__idx {
    padding-top: 3px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--accent-dim);
  }
  .feature-list h4 { margin: 0 0 6px; font-size: 1.02rem; }
  .feature-list p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-mute); }

  .timeline { position: relative; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 3px; top: 10px; bottom: 10px;
    width: 1px;
    background: var(--line);
  }
  .timeline__item { position: relative; padding: 0 0 32px 28px; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__item::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 217, 160, .18);
  }
  .timeline__year {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--accent-dim);
  }
  .timeline__item h3 { margin-bottom: 6px; }
  .timeline__item p { font-size: 14px; }

  .kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    border-top: 1px solid var(--line);
  }
  .kv--single { grid-template-columns: 1fr; }
  .kv__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
  }
  .kv__k { font-size: 12.5px; color: var(--text-soft); }
  .kv__v {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--text);
  }

  .info-list { border-top: 1px solid var(--line); }
  .info-list__row {
    display: grid;
    grid-template-columns: minmax(110px, 200px) 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .info-list__k { font-size: 12.5px; color: var(--text-soft); }
  .info-list__v {
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    overflow-wrap: anywhere;
  }
  .info-list__v a { transition: color .2s var(--ease); }
  .info-list__v a:hover { color: var(--accent-dim); text-decoration: underline; text-underline-offset: 3px; }

  .dl-list { border-top: 1px solid var(--line); }
  .dl-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 16px;
    margin-inline: -12px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: background-color .2s var(--ease);
  }
  .dl-row:hover { background: var(--paper-2); }
  .dl-row__ico {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--accent-dim);
  }
  .dl-row__ico svg { width: 18px; height: 18px; }
  .dl-row__name { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); }
  .dl-row__sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-soft); }
  .dl-row__type {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-soft);
  }
  .dl-row__act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-dim);
  }
  .dl-row__act svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
  .dl-row:hover .dl-row__act svg { transform: translateX(3px); }

  /* ---------------- Tables ---------------- */
  .spec-wrap {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
  }
  .spec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .spec-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
  .spec-head span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-soft);
  }
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .tbl-scroll:focus-visible { outline-offset: -2px; }
  table.spec { width: 100%; min-width: 560px; }
  .spec th {
    padding: 11px 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-soft);
  }
  .spec td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    vertical-align: top;
  }
  .spec tbody tr:last-child td { border-bottom: 0; }
  .spec td:first-child { color: var(--text-mute); }
  .spec tbody tr { transition: background-color .15s var(--ease); }
  .spec td.hl { color: var(--accent-dim); font-weight: 600; }
  .unit {
    display: inline-block;
    margin-left: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .02em;
    white-space: nowrap;
    color: var(--text-soft);
  }
  .tbl-note {
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-soft);
  }

  /* ---------------- Badges / notice / prose ---------------- */
  .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-mute);
  }

  .notice {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(0, 217, 160, .08);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-mute);
  }
  .notice__ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-dim); }
  .notice strong { color: var(--text); }

  .prose h3 { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
  .prose p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--text-mute); }
  .prose p:last-child { margin-bottom: 0; }
  .prose strong { color: var(--text); }
  .prose a { color: var(--accent-dim); text-decoration: underline; text-underline-offset: 3px; }

  .legal { color: var(--text-mute); }
  .legal table { table-layout: fixed; width: 100%; }
  @media (max-width: 760px) {
    .legal th, .legal td { padding: 9px 8px; font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }
  }
  .legal p { margin: 0 0 14px; }
  .legal strong { color: var(--text); }
  .legal h2 { color: var(--text); }

  /* ---------------- CTA band ---------------- */
  .cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
    background:
      radial-gradient(50% 120% at 100% 0%, rgba(0, 217, 160, .14), transparent 70%),
      linear-gradient(var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, var(--grid-line-inv) 1px, transparent 1px) 0 0 / 64px 64px,
      var(--ink);
    border: 1px solid var(--line-inv);
    border-radius: var(--r-lg);
  }
  .cta-band::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    opacity: .8;
  }
  .cta-band__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
  }
  .cta-band__inner > * { min-width: 0; }
  .cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; max-width: 20ch; }
  .cta-band p { max-width: 56ch; color: var(--text-inv-mute); }
  .cta-band__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

  /* ---------------- Footer ---------------- */
  .footer { padding: 72px 0 28px; background: var(--ink); }
  .footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer__top > * { min-width: 0; }
  .footer__brand p { max-width: 38ch; margin-top: 18px; font-size: 13.5px; color: var(--text-inv-mute); }
  .footer__col h5 {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-inv-soft);
  }
  .footer__col a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-inv-mute);
    overflow-wrap: anywhere;
    transition: color .2s var(--ease);
  }
  .footer__col a:hover, .footer__legal a:hover { color: var(--accent); }
  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--line-inv);
    font-size: 12.5px;
    color: var(--text-inv-soft);
  }
  .footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .footer__legal a { transition: color .2s var(--ease); }

  /* ---------------- Cookie ---------------- */
  .cookie {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 560px;
    padding: 20px 22px;
    background: rgba(8, 24, 19, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-inv);
    border-radius: var(--r-lg);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
    animation: rise .5s var(--ease) both;
  }
  .cookie[hidden] { display: none; }
  .cookie__txt { flex: 1; font-size: 12.5px; line-height: 1.55; color: var(--text-inv-mute); }
  .cookie__txt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .cookie__act { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  /* ---------------- Forms ---------------- */
  .form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .form > * { min-width: 0; }
  .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
  .field--full { grid-column: 1 / -1; }
  .field label { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--text); }
  .req { color: var(--accent-dim); }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--field-line);
    border-radius: var(--r-sm);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field select {
    padding-right: 38px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234B635C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
  }
  .field ::placeholder { color: var(--text-soft); opacity: 1; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-mute); }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(0, 217, 160, .28);
  }
  .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
  .field__hint { display: block; font-size: 11.5px; line-height: 1.5; color: var(--text-soft); }
  .field__err { font-size: 11.5px; line-height: 1.4; color: var(--danger); }
  .form__note { margin: 0; max-width: 46ch; font-size: 12px; line-height: 1.55; color: var(--text-soft); }
  .form__foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .form-ok { display: none; }
  .form-ok.is-visible {
    display: block;
    padding: 20px;
    background: rgba(0, 217, 160, .08);
    border: 1px solid rgba(0, 217, 160, .3);
    border-radius: var(--r-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-mute);
  }
  .form-ok strong { color: var(--text); }
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@layer responsive {

  @media (max-width: 1180px) {
    .nav__links { gap: 20px; }
    .nav__link { font-size: 12.5px; }
    .footer__top { gap: 32px; }
  }

  @media (max-width: 1080px) {
    /* Navigation -> mobile drawer */
    .nav__links { display: none; }
    .nav__burger { display: inline-block; }
    .nav__mobile {
      position: absolute;
      top: 100%;
      left: 0; right: 0;
      display: flex;
      flex-direction: column;
      gap: 18px;
      max-height: calc(100svh - var(--nav-h));
      overflow-y: auto;
      padding: 24px var(--gutter) 32px;
      background: var(--ink);
      border-bottom: 1px solid var(--line-inv);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    }
    .nav__mobile.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: none;
      transition-delay: 0s;
    }
    .nav__mobile > a:not(.btn) {
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line-inv);
      font-size: 17px;
      color: var(--text-inv);
    }
    .nav__mobile > a:not(.btn):hover { color: var(--accent); }
    .nav__mobile .btn { align-self: stretch; }
    /* no JS: burger cannot open anything, so show the list inline */
    html:not(.js) .nav__burger { display: none; }
    html:not(.js) .nav__mobile {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 6px 18px;
      padding: 10px var(--gutter) 14px;
      opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    }
    html:not(.js) .nav__mobile > a:not(.btn) { padding: 0; border: 0; font-size: 13px; }
    html:not(.js) .nav__mobile .btn { display: none; }

    /* Hero -> single column */
    .hero { min-height: auto; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-block: 40px 32px; }
    .slide__shot img, .slide__shot svg { max-height: 40vh; }
    .slide__shot img[width="1172"] { height: 40vh; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 22px 20px 22px 0; }
    .stat + .stat { padding-left: 20px; }
    .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line-inv); }

    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .split, .split--wide-left { grid-template-columns: 1fr; gap: 40px; }
    .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
    .sec-head h2 { max-width: 26ch; }
    .cta-band__inner { grid-template-columns: 1fr; }
    .cta-band__actions { justify-content: flex-start; }
    .footer__top { grid-template-columns: 1fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .viz[style*="sticky"] { position: static !important; }
  }

  @media (max-width: 760px) {
    :root { --section-y: 64px; }
    .section--tight { padding: 40px 0 36px; }

    .hero__figure { display: none; }
    .slide-title { font-size: clamp(2.3rem, 10vw, 3rem); }
    .hero__inner { padding-block: 28px 24px; }
    .hero__sub { font-size: 1rem; }
    .hero__meta { margin-top: 22px; }
    .hero__controls { padding-block: 14px 20px; }

    .cards, .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
    /* technology.html carries an inline repeat(3,1fr); needs !important to collapse. */
    .cards[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tile { padding: 20px; }

    .page-head { padding: calc(var(--nav-h) + 36px) 0 44px; }
    .crumbs { margin-bottom: 20px; }
    .lede { font-size: 1.02rem; }

    .stat-strip--light .stat { padding: 20px 18px; }
    .kv { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
    .form__foot { flex-direction: column; align-items: stretch; }
    .form__foot .btn { width: 100%; }
    .info-list__row { grid-template-columns: 1fr; gap: 4px; }

    .dl-row { grid-template-columns: 36px 1fr auto; gap: 12px; }
    .dl-row__type { display: none; }

    .viz { padding: 24px 20px; }
    .bar-row { grid-template-columns: 96px 1fr 52px; gap: 10px; }
    .diagram__inner { padding: 20px 18px 10px; }
    .diagram__cap { padding: 12px 18px 16px; }
    .pcard__body, .card { padding: 24px; }
    .pcard__visual { min-height: 240px; }
    .pcard__visual svg { height: 200px; }

    .footer { padding: 56px 0 24px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer__bottom { margin-top: 40px; }
    .cta-band { border-radius: var(--r-md); }
  }

  @media (max-width: 480px) {
    .btn { padding: 13px 20px; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn,
    .cta-band__actions .btn,
    .pcard__foot .btn { width: 100%; }
    .cta-band__actions { flex-direction: column; }
    .stat__val { font-size: 1.9rem; }
    .hero__arrow { width: 40px; height: 40px; }
    .cookie {
      left: 12px; right: 12px; bottom: 12px;
      max-width: none;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      padding: 18px;
    }
    .cookie__act .btn { flex: 1; }
    .footer__top { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: 1fr; }
  }
}

/* ==========================================================================
   6. MOTION
   ========================================================================== */
@layer motion {
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      transition-delay: 0s !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
    .slide, .slide.is-active { transform: none; }
    .card:hover, .pcard:hover { transform: none; }
  }
}

/* ==========================================================================
   Late overrides — structural wrappers, inline-colour fixes
   (kept unlayered so they win over @layer components)
   ========================================================================== */
.hero__copy,
.slide__copy,
.slide__figure {
  min-width: 0;
}

.nav--dark {
  color: var(--text-inv);
}

/* modules.html ships an inline rgba(242,246,244,.4) note inside a dark band;
   .4 alpha lands at ~3.6:1 — lift it to the dark-surface soft token. */
.section--ink p[style*="rgba(242,246,244,.4)"] {
  color: var(--text-inv-soft) !important;
}

/* ---- fold tuning: keep the home hero compact on tablets / phones ---- */
@media (max-width: 1080px) {
  .hero__figure { display: none; }
}

@media (max-width: 760px) {
  .hero__inner { padding-block: calc(var(--nav-h) + 30px) 10px; }
  .slide-title { margin-bottom: 16px; }
  .hero__sub { margin-top: 16px; }
  .hero__cta { margin-top: 22px; }
  .hero__meta { margin-top: 18px; }
  .stat { padding-block: 14px; }
  .hero__controls { padding-block: 10px 14px; }
}

@media (max-width: 760px) {
  .hero__cta { gap: 8px; }
  .hero__cta .btn {
    flex: 1 1 0;
    padding: 11px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .stat { padding-block: 12px; }
}

@media (max-width: 760px) {
  .stat { padding-block: 10px; }
  .hero__controls { padding-block: 8px 10px; }
  .hero__meta { margin-top: 14px; }
  .slide-title { margin-bottom: 12px; }
}
