/* ANKH Enterprise: black space, gold and electric cyan.
   A fixed WebGL canvas (js/stage.js) sits behind a minimal HTML overlay. The
   overlay is a sticky full-screen layer inside the tall scroll track #journey;
   js/overlay.js scrubs every chapter's words in and out against scroll.
   Gold carries the brand; cyan marks the technology. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --space: #020306;
  --gold-hi: #f2c35e;
  --gold: #d9a441;
  --gold-deep: #8a6420;
  --cyan: #4fd8ff;
  --cyan-deep: #12a6d8;
  --ink: #f4f1ea;
  --mute: #a9b3c4;
  --line: rgb(217 164 65 / 0.3);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-origin: clamp(1.9rem, 1rem + 2.6vw, 3.6rem);
  --t-origin-sub: clamp(0.62rem, 0.56rem + 0.3vw, 0.86rem);
  --t-section: clamp(1.9rem, 1.1rem + 3.3vw, 4.1rem);
  --t-unity: clamp(1.9rem, 1rem + 3.4vw, 4.1rem);
  --t-line: clamp(1rem, 0.92rem + 0.45vw, 1.3rem);
  --t-label: clamp(0.7rem, 0.66rem + 0.2vw, 0.82rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --pad-x: clamp(1.25rem, 0.2rem + 6vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Where the opening title block sits above the bottom edge (the engine owns the centre). */
  --origin-bottom: clamp(2.6rem, 7vh, 4.6rem);
  --stage-bottom: clamp(2.2rem, 10vh, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgb(217 164 65 / 0.4) var(--space); caret-color: var(--gold); background: var(--space); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--space); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: rgb(242 195 94 / 0.85); color: var(--space); }
a { color: inherit; }
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: 8px; background: var(--gold-hi); color: var(--space); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* ---------- Stage and layers ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.is-ready { opacity: 1; }
main { position: relative; z-index: 1; display: block; outline: none; }
.site-footer { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(0.9rem + env(safe-area-inset-top, 0px)) var(--gutter) 1.4rem;
  background: linear-gradient(rgb(2 3 6 / 0.82), rgb(2 3 6 / 0));
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); opacity: 0; }
.site-header.is-hidden:focus-within { transform: none; opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: 0.3em; font-size: 1.05rem; color: var(--ink); }
.brand svg { width: 16px; height: 22px; color: var(--gold-hi); flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: 0.9rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--mute); transition: color 0.25s, border-color 0.25s; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--gold-hi); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1.05rem; background: rgb(2 3 6 / 0.35); }
.site-nav .nav-cta:hover { border-color: var(--gold-hi); color: var(--ink); }

/* ---------- The scroll track and its sticky overlay ---------- */
.journey { position: relative; height: 1500vh; /* real value is written from chapters.js (TRACK_VH) */ }
.overlay { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.chapter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.chapter-inner { position: relative; z-index: 1; will-change: transform, opacity; }
.scrim { position: absolute; inset: 0; pointer-events: none; }

/* Chapters wait invisible until the scroll timeline brings them in. */
html.js:not(.no-webgl) .chapter:not(.origin) { opacity: 0; }
html.js:not(.no-webgl):not(.reduced) .origin .fx-title,
html.js:not(.no-webgl):not(.reduced) .origin .origin-sub,
html.js:not(.no-webgl):not(.reduced) .origin .tagline,
html.js:not(.no-webgl):not(.reduced) .origin .scroll-cue { opacity: 0; }
html.js.reduced:not(.no-webgl) .origin .chapter-inner { opacity: 0; }

/* ---------- Gold title type: per-character gold with a travelling band of light ---------- */
.fx-title {
  position: relative; display: block; width: fit-content; font-family: var(--display); font-weight: 600; line-height: 1.08; text-wrap: balance;
  background: linear-gradient(180deg, #f8dc92 0%, #f2c35e 34%, #d9a441 62%, #a9772a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.fx-title.is-split { background: none; --sw: 0; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.fx-title .char {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(100deg, transparent 43%, rgb(255 246 220 / 0.95) 50%, transparent 57%),
    linear-gradient(180deg, #f8dc92 0%, #f2c35e 34%, #d9a441 62%, #a9772a 100%);
  background-size: calc(var(--tw, 600px) * 3) 100%, 100% 100%;
  background-position: calc((var(--sw, 1) * 2 - 2) * var(--tw, 600px) - var(--cx, 0px)) 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Origin ---------- */
.origin { align-items: center; text-align: center; }
.origin .scrim { background: linear-gradient(to top, rgb(2 3 6 / 0.82) 0%, rgb(2 3 6 / 0.5) 26%, rgb(2 3 6 / 0) 58%); }
.origin .chapter-inner { display: grid; justify-items: center; gap: 0.55rem; padding: 0 var(--gutter) var(--origin-bottom); }
.origin h1 { display: grid; justify-items: center; gap: clamp(0.6rem, 1.6vh, 1.1rem); }
.origin-name { font-size: var(--t-origin); letter-spacing: 0.32em; padding-left: 0.32em; line-height: 1; margin-inline: auto; }
.origin-sub {
  display: block; font-family: var(--display); font-weight: 500; font-size: var(--t-origin-sub); letter-spacing: 0.62em; padding-left: 0.62em; text-transform: uppercase; color: var(--gold-hi);
}
.tagline { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); text-wrap: balance; }
.scroll-cue { position: absolute; z-index: 1; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; display: grid; justify-items: center; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); }
.cue-in { display: grid; justify-items: center; gap: 0.55rem; padding-left: 0.3em; }
.scroll-cue i { width: 1px; height: 2.4rem; background: linear-gradient(var(--gold-hi), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Dissolve: one quiet line ---------- */
.dissolve { align-items: center; text-align: center; }
.dissolve .chapter-inner { padding: 0 var(--gutter) var(--stage-bottom); }
.whisper { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.36em; padding-left: 0.36em; text-transform: uppercase; color: rgb(244 241 234 / 0.72); text-wrap: balance; }
.whisper span { display: inline-block; }

/* ---------- Product sections: lower-left, never over the centre ---------- */
.section .scrim { background: radial-gradient(ellipse 78% 74% at 0% 100%, rgb(2 3 6 / 0.82) 0%, rgb(2 3 6 / 0.52) 42%, rgb(2 3 6 / 0) 76%); }
.section .chapter-inner { display: grid; justify-items: start; gap: clamp(0.8rem, 2vh, 1.3rem); padding: 0 var(--pad-x) var(--stage-bottom); max-width: min(100%, 60rem); }
.sec-head { display: flex; align-items: center; gap: 1rem; width: min(100%, 22rem); }
.num { position: relative; display: inline-grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold-hi); }
.num svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1.5; transform: rotate(-90deg); overflow: visible; }
.num .ring-bg { stroke: rgb(217 164 65 / 0.2); }
.num .ring { stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.num b { font-weight: 600; }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), rgb(217 164 65 / 0)); transform-origin: left center; }
.sec-title { font-size: var(--t-section); letter-spacing: 0.045em; max-width: 13em; }
.sec-line { font-size: var(--t-line); font-weight: 500; letter-spacing: 0.07em; color: var(--ink); }
.sec-line span { display: inline-block; }

/* ---------- Unity: the invitation, in the bottom half ---------- */
.unity { align-items: center; text-align: center; }
.unity .scrim { background: linear-gradient(to top, rgb(2 3 6 / 0.88) 0%, rgb(2 3 6 / 0.6) 30%, rgb(2 3 6 / 0) 62%); }
.unity .chapter-inner { display: grid; justify-items: center; gap: clamp(1rem, 2.6vh, 1.7rem); padding: 0 var(--gutter) clamp(1.5rem, 5vh, 3rem); width: min(100%, 64rem); }
.unity-title { font-size: var(--t-unity); letter-spacing: 0.05em; margin-inline: auto; }
.unity-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem clamp(1.2rem, 3vw, 2.4rem); }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.7rem; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #ffe3a3, var(--gold-hi) 52%, var(--gold)); color: #1a1205; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgb(255 230 170 / 0.5) inset, 0 14px 30px -14px rgb(0 0 0 / 0.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.7) 50%, transparent 65%); transform: translateX(-130%); transition: transform 0.9s var(--ease); }
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.contact-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn { font: 600 0.72rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); background: rgb(2 3 6 / 0.4); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.85rem; cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.copy-btn:hover { border-color: var(--gold-hi); color: var(--ink); }
.biz { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--mute); text-wrap: balance; }
.biz span:first-child { color: rgb(244 241 234 / 0.86); font-weight: 600; letter-spacing: 0.16em; }
.biz .sep { color: var(--gold); }

/* Only live actions take the pointer; the overlay never blocks the scene. */
.unity.is-live .btn, .unity.is-live .copy-btn, .unity.is-live .contact-line span { pointer-events: auto; }

/* ---------- Progress rail ---------- */
.rail {
  position: fixed; z-index: 40; right: clamp(0.9rem, 2.2vw, 2rem); top: 50%; height: min(44vh, 360px); transform: translateY(-50%);
  width: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.rail.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.rail.is-away { opacity: 0; visibility: hidden; transition-delay: 0s, 0.7s; }
.rail-line { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgb(244 241 234 / 0.16); }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 10px rgb(242 195 94 / 0.55); }
.rail-item { position: absolute; right: 0; transform: translateY(-50%); }
.rail-item a { display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; padding: 0.55rem 0 0.55rem 0.6rem; text-decoration: none; }
.rail-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(169 179 196 / 0.72); transition: color 0.4s, opacity 0.4s, transform 0.5s var(--ease); }
.rail-dot { flex: none; width: 7px; height: 7px; margin-right: -3px; border-radius: 50%; border: 1px solid rgb(169 179 196 / 0.7); background: var(--space); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
.rail-item.is-reached .rail-dot { border-color: var(--gold-hi); background: var(--gold-hi); box-shadow: 0 0 10px rgb(242 195 94 / 0.8); }
.rail-item.is-reached .rail-label { color: var(--gold); }
.rail-item.is-active .rail-dot { transform: scale(1.5); }
.rail-item.is-active .rail-label { color: var(--gold-hi); }
.rail-item a:hover .rail-label { color: var(--ink); }
/* Only the current section is named; the others show as dots (their labels would sit on the devices). */
.rail-item:not(.is-active) .rail-label { opacity: 0; transform: translateX(6px); }
.rail:hover .rail-item .rail-label, .rail-item a:focus-visible .rail-label { opacity: 1; transform: none; }
.rail-item a:focus-visible { outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #000; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3.2rem var(--gutter) calc(2.6rem + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.footer-brand { display: grid; gap: 0.7rem; align-content: start; color: var(--mute); font-size: 0.9rem; }
.footer-support a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal { display: grid; gap: 0.55rem; font-size: 0.84rem; line-height: 1.6; color: var(--mute); }
.legal strong { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.legal .copy { margin-top: 0.5rem; font-size: 0.78rem; }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; background: var(--gold-hi); color: var(--space); padding: 0.7rem 1.1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; transition: opacity 0.3s, transform 0.3s var(--ease); max-width: calc(100vw - 2rem); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* The static gold Ankh only appears when there is no WebGL one. */
.fallback-ankh { display: none; width: clamp(64px, 11vh, 110px); height: auto; color: var(--gold-hi); filter: drop-shadow(0 0 22px rgb(242 195 94 / 0.35)); }

/* ---------- Small screens: titles sit at the bottom ---------- */
@media (max-width: 759.98px) {
  :root { --pad-x: 1.35rem; --stage-bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px)); --origin-bottom: calc(8.2rem + env(safe-area-inset-bottom, 0px)); }
  .section .scrim { background: linear-gradient(to top, rgb(2 3 6 / 0.9) 0%, rgb(2 3 6 / 0.62) 34%, rgb(2 3 6 / 0) 66%); }
  .section .chapter-inner { padding-right: 3rem; }
  .sec-head { width: min(100%, 15rem); }
  .num { width: 2.9rem; height: 2.9rem; font-size: 0.85rem; }
  .origin-name { letter-spacing: 0.26em; padding-left: 0.26em; }
  .origin-sub { letter-spacing: 0.46em; padding-left: 0.46em; }
  .tagline { letter-spacing: 0.2em; }
  .site-nav .nav-cta { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
  .brand { font-size: 0.95rem; }
  .unity .chapter-inner { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); gap: 1.05rem; }
  .biz { flex-direction: column; align-items: center; gap: 0.15rem; letter-spacing: 0.08em; }
  .biz .sep { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  /* The rail shrinks to dots. */
  .rail { right: 0.55rem; height: min(40vh, 280px); }
  .rail-label { display: none; }
  .rail-item a { padding: 0.7rem 0.5rem 0.7rem 0.9rem; }
}

/* ---------- No WebGL (or no script): a normal, readable document ---------- */
html.no-webgl .journey, html:not(.js) .journey { height: auto !important; }
html.no-webgl .overlay, html:not(.js) .overlay { position: static; height: auto; overflow: visible; pointer-events: auto; }
html.no-webgl .chapter, html:not(.js) .chapter {
  position: relative; inset: auto; min-height: 100vh; min-height: 100svh; justify-content: center; align-items: center; text-align: center;
  padding: calc(5rem + env(safe-area-inset-top, 0px)) var(--gutter) 4rem; opacity: 1 !important; isolation: isolate;
}
html.no-webgl .chapter::before, html:not(.js) .chapter::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 46% at 50% 50%, rgb(217 164 65 / 0.09), rgb(2 3 6 / 0) 70%);
}
html.no-webgl .dissolve, html:not(.js) .dissolve { display: none; }
html.no-webgl .scrim, html:not(.js) .scrim, html.no-webgl .rail, html:not(.js) .rail { display: none; }
html.no-webgl .chapter-inner, html:not(.js) .chapter-inner { display: grid; justify-items: center; padding: 0; gap: 1.2rem; will-change: auto; }
html.no-webgl .fallback-ankh, html:not(.js) .fallback-ankh { display: block; margin-bottom: 0.6rem; }
html.no-webgl .origin .chapter-inner, html:not(.js) .origin .chapter-inner { gap: 1rem; }
html.no-webgl .section .chapter-inner, html:not(.js) .section .chapter-inner { justify-items: center; max-width: 44rem; }
html.no-webgl .sec-head, html:not(.js) .sec-head { justify-content: center; }
html.no-webgl .rule, html:not(.js) .rule { display: none; }
html.no-webgl .sec-title, html:not(.js) .sec-title { margin-inline: auto; }
html.no-webgl .unity-actions, html:not(.js) .unity-actions { pointer-events: auto; }
html.no-webgl .scroll-cue, html:not(.js) .scroll-cue { display: none; }
/* Short windows: the title block reaches the bottom edge, so the cue would sit on the words. */
@media (max-height: 720px) { .scroll-cue { display: none; } }

/* ---------- Reduced motion: opacity changes only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .scroll-cue i { transform: none; opacity: 0.8; }
}

/* ---------- product captions (placed by js/journey/products.js) ---------- */
.product-captions { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.product-caption {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font: 600 0.74rem/1.2 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250, 244, 230, 0.96); white-space: nowrap; text-shadow: 0 0 6px rgba(2, 3, 6, 1), 0 0 18px rgba(2, 3, 6, 0.95);
}
.product-caption i { width: 1px; height: 18px; background: linear-gradient(to bottom, rgba(242, 195, 94, 0), rgba(242, 195, 94, 0.9)); }
.product-caption span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0.6em 0.12em 0; border-radius: 50%; background: #4fd8ff; box-shadow: 0 0 8px #4fd8ff; vertical-align: middle; }
html.no-webgl .product-captions { display: none; }
@media (max-width: 759px) {
  .product-caption { font-size: 0.6rem; letter-spacing: 0.16em; }
  /* Two columns of devices on a phone: long service names wrap onto two centred lines. */
  .product-caption span { white-space: normal; max-width: 42vw; text-align: center; line-height: 1.45; }
}

/* ---------- finale: the words span the frame beneath the Ankh ---------- */
@media (min-width: 760px) {
  .unity { align-items: stretch; text-align: left; }
  .unity .chapter-inner {
    width: 100%; max-width: none; padding-inline: var(--pad-x);
    grid-template-columns: auto auto; justify-content: space-between; align-items: end; justify-items: start; column-gap: clamp(2rem, 4vw, 5rem);
  }
  .unity-title { grid-column: 1; margin: 0; text-align: left; white-space: nowrap; font-size: clamp(1.7rem, 0.8rem + 2vw, 2.9rem); }
  .unity-actions { grid-column: 2; justify-content: flex-end; }
  .unity .biz {
    grid-column: 1 / -1; width: 100%; display: flex; justify-content: space-between; gap: 1rem;
    padding-top: 1rem; border-top: 1px solid rgba(242, 195, 94, 0.18);
  }
  .unity .biz .sep { display: none; }
}

/* The progress rail steps aside for the finale, which uses the whole frame. */
html.is-finale #rail { opacity: 0 !important; pointer-events: none !important; transition: opacity 0.6s var(--ease); }

/* Portrait tablets: the rail keeps its dots but drops its labels, so it never sits on a product. */
@media (max-aspect-ratio: 9/10), (max-width: 1199px) { .rail-label { display: none; } }

/* ---------- services under each section title ---------- */
.sec-services {
  list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.4rem; max-width: 34rem;
}
.sec-services li {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(244 236 220 / 0.82);
  display: flex; align-items: center; gap: 0.55rem;
}
.sec-services li::before { content: ""; width: 14px; height: 1px; background: var(--gold); box-shadow: 0 0 6px rgb(242 195 94 / 0.6); }
html.js:not(.no-webgl):not(.reduced) .sec-services li { opacity: 0; }
@media (max-width: 759px) {
  .sec-services { gap: 0.35rem 1rem; margin-top: 0.7rem; }
  .sec-services li { font-size: 0.62rem; letter-spacing: 0.12em; }
}
