/* Arca — landing page. Cefriel brand (Brand Guidelines v2): Lato; Cefriel Blue #002060 as the
 * structural colour, Cefriel Yellow #FFDC06 only for accents, numbers, separators and CTAs; never
 * white text on yellow; never a semi-transparent yellow over navy (it turns olive: yellow moves,
 * scales or is masked, it doesn't fade). The visual language is the Arca motion graphics'.
 * Everything self-hosted; no third-party requests. */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url(../../public/fonts/lato-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(../../public/fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url(../../public/fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(../../public/fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url(../../public/fonts/lato-latin-900-normal.woff2) format("woff2"); }

:root {
  --navy: #002060; --yellow: #ffdc06; --white: #ffffff; --gray: #f2f2f2; --dark: #404040;
  --cobalt: #0053ff; --sky: #5eaaf0; --cyan: #40d3cc; --slate: #5b6587; --deep: #0a2a6e; --abyss: #001643;
  --ink: #0f1424; --muted: #6b7390; --info: #e8edf7; --warn: #fff9d6; --app-bg: #f3f4fc;
  --soft: #c9d6f2; /* body text on navy */
  --mist: #f3f6fd; --ice: #e3ecfb; --arca: #4480f7; /* the lighter sections; Arca blue is the logo's arch */
  --line: rgba(15, 20, 36, 0.1);
  --wrap: 1280px; --gutter: clamp(20px, 5vw, 72px); --header: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px rgba(0, 8, 40, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", Arial, Helvetica, sans-serif; color: var(--dark); background: var(--navy); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 900; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy); }

/* ============ type ============ */
.kicker { display: inline-flex; align-items: center; gap: 14px; font-weight: 900; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px; }
.kicker::before { content: ""; width: 34px; height: 5px; background: var(--yellow); }
.kicker-navy { color: var(--navy); }
.display { font-weight: 900; line-height: 1.02; letter-spacing: -0.015em; font-size: clamp(42px, 5.6vw, 88px); color: var(--white); }
.display .line { display: block; }
.display.one-line .line { display: inline-block; vertical-align: top; } /* both parts on one line (they still wrap on narrow screens) */
.display .yellow { color: var(--yellow); }
/* the yellow highlight under navy words: drawn as an underline, so it follows each line when the words wrap */
.display .accent > span { color: var(--navy); text-decoration: underline var(--yellow); text-decoration-thickness: 0.2em; text-underline-offset: -0.06em; text-decoration-skip-ink: none; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--soft); max-width: 42ch; margin-top: 28px; }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px; font-weight: 900; font-size: 17px; text-decoration: none; line-height: 1; border: 0; cursor: pointer;
  transition: box-shadow 0.25s var(--ease), background-color 0.2s; will-change: transform; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { box-shadow: 0 14px 34px rgba(0, 8, 40, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.12); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); background: transparent; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-lg { padding: 24px 40px; font-size: 19px; }
.btn-meta { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* icons filled in from icons.js ([data-ico]): stroke drawings in currentColor */
[data-ico] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* scroll progress */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }

/* ============ header ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header); color: var(--white); transition: background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
.site-header.scrolled { background: rgba(0, 32, 96, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.site-header.hide { transform: translateY(-100%); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand-mark { height: 36px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: 18px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--soft); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
.lang button { font: 900 12px/1 "Lato", sans-serif; letter-spacing: 0.1em; color: var(--soft); background: none; border: 0; padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
/* the menu: phones and tablets, where the nav doesn't fit (≤ 1180 px) */
.menu-btn { display: none; position: relative; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 1px; background: var(--white); transition: transform 0.35s var(--ease); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; padding: 4px 0 26px; background: rgba(0, 32, 96, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 40px -24px rgba(0, 8, 40, 0.7); opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.4s; }
.menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--white); text-decoration: none;
  font-weight: 900; font-size: 22px; }
.menu-nav a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--soft); border-right: 2px solid var(--soft); transform: rotate(45deg); }
.menu-nav a.active { color: var(--yellow); }
.menu-cta { margin-top: 22px; } .menu-cta .btn { width: 100%; justify-content: center; }
.site-header.menu-open { background: rgba(0, 32, 96, 0.97); }


/* ============ 1 · the payoff, full screen (calm: one entrance, then nothing moves) ============ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: calc(var(--header) + 30px) var(--gutter) 130px;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(68, 128, 247, 0.16), transparent 72%), var(--navy); }
/* the lockup: logo | rule | payoff, as in the Arca payoff artwork */
.payoff { --h: min(15.5vw, 29vh); position: relative; display: flex; align-items: center; gap: calc(var(--h) * 0.34); font-weight: 400; }
.payoff-logo { display: block; overflow: hidden; }
.payoff-logo img { display: block; height: var(--h); width: auto; animation: rise 1.2s var(--ease) both; }
.payoff-rule { width: 1.5px; height: var(--h); background: rgba(255, 255, 255, 0.75); transform-origin: 50% 50%; animation: ruleIn 1s 0.35s var(--ease) both; }
.payoff-text { display: flex; flex-direction: column; font-size: calc(var(--h) * 0.21); line-height: 1.14; color: var(--white); letter-spacing: 0.005em; white-space: nowrap; }
.pl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.pl > span { display: inline-block; animation: rise 1s 0.55s var(--ease) both; }
.pl + .pl > span { animation-delay: 0.65s; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes ruleIn { from { transform: scaleY(0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 900; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); animation: fadeIn 1s 1.2s both; }
.scroll-cue i { width: 2px; height: 46px; background: rgba(255, 255, 255, 0.2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--yellow); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@keyframes fadeIn { from { opacity: 0; } }

/* drawings laid out in a fixed box (--fw × --fh px), scaled down to the column by JS (--k);
   phones get a narrower layout of the same drawing (see the 600 px breakpoint) */
.q-1 .fit { --fw: 600; --fh: 170; }
.q-2 .fit { --fw: 600; --fh: 330; }
.fit { position: relative; width: 100%; height: calc(var(--fh) * var(--k, 1) * 1px); }
.fit-box { position: absolute; left: 50%; top: 0; width: calc(var(--fw) * 1px); height: calc(var(--fh) * 1px); transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 0; }

/* ============ 2 · two questions ============ */
.questions { background: var(--mist); color: var(--dark); padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 9vh, 110px); } /* straight into question 01 */
.questions .display { color: var(--navy); }
.q { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(44px, 8vh, 90px) 0; }
.q + .q { border-top: 1.5px solid rgba(0, 32, 96, 0.1); }
.q-copy { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 34px); }
.q-num { position: relative; flex-shrink: 0; font-weight: 900; font-size: clamp(56px, 6.4vw, 100px); line-height: 0.92; letter-spacing: -0.02em; color: var(--navy); }
.q-text { font-weight: 700; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.26; color: var(--navy); max-width: 22ch; padding-top: 0.12em; }
.q-text b { font-weight: 900; background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 100% 0.26em no-repeat; }

/* 01 · the onboarding track: the new hire crawls on and never reaches the goal */
.onboard { --x0: 60px; --tw: 500px; }
.ob-track { position: absolute; left: var(--x0); top: 96px; width: var(--tw); height: 6px; border-radius: 3px; background: rgba(0, 32, 96, 0.12); opacity: 0; transition: opacity 0.4s; }
.ob-fill { position: absolute; inset: 0; border-radius: 3px; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); transition: transform 5.5s cubic-bezier(0.2, 0.75, 0.3, 1) 0.5s; }
.ob-tick, .ob-lbl { position: absolute; left: calc(var(--x0) + var(--x) * var(--tw)); opacity: 0; transition: opacity 0.5s, transform 0.7s var(--ease); transition-delay: calc(0.12s + var(--n) * 0.08s); }
.ob-tick { top: 88px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: rgba(0, 32, 96, 0.3); transform: translateY(8px); }
.ob-lbl { top: 126px; transform: translate(-50%, 10px); font-weight: 700; font-size: 20px; color: var(--navy); white-space: nowrap; }
.ob-goal, .ob-ring { position: absolute; left: calc(var(--x0) + var(--tw) - 30px); top: 69px; width: 60px; height: 60px; border-radius: 50%; }
.ob-goal { display: grid; place-items: center; background: var(--yellow); box-shadow: inset 0 0 0 3px var(--navy); color: var(--navy); font-weight: 900; font-size: 34px; line-height: 1;
  transform: scale(0); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s; }
.ob-ring { border: 3px solid var(--navy); opacity: 0; }
.ob-hire { position: absolute; left: var(--x0); top: 99px; width: 0; height: 0; transition: left 5.5s cubic-bezier(0.2, 0.75, 0.3, 1) 0.5s; }
.ob-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--navy), 0 0 0 7px var(--mist);
  transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s; }
.ob-pill { position: absolute; left: 0; bottom: 26px; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 11px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-weight: 900; font-size: 19px; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 8, 40, 0.14), 0 0 0 1.5px rgba(0, 32, 96, 0.06); transform: translateX(-50%) scale(0.6); opacity: 0;
  transition: transform 0.5s var(--ease) 0.55s, opacity 0.3s 0.55s; }
.ob-pill::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--white); }
.ob-pill [data-ico] { width: 22px; height: 22px; }
.q-1.on .ob-track { opacity: 1; }
.q-1.on .ob-fill { transform: scaleX(0.885); }
.q-1.on .ob-tick { opacity: 1; transform: none; }
.q-1.on .ob-lbl { opacity: 1; transform: translateX(-50%); }
.q-1.on .ob-goal, .q-1.on .ob-dot { transform: none; }
.q-1.on .ob-ring { animation: ring 2s 1.1s ease-out; }
.q-1.on .ob-hire { left: calc(var(--x0) + 0.885 * var(--tw)); }
.q-1.on .ob-pill { transform: translateX(-50%); opacity: 1; }
@keyframes ring { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* 02 · the door: Marco stops by it, his know-how leaves through it */
.ex-floor { position: absolute; left: 0; top: 300px; width: 100%; height: 2px; background: rgba(0, 32, 96, 0.16); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) 0.1s; }
.ex-door { position: absolute; left: 456px; top: 40px; width: 116px; height: 260px; perspective: 700px; clip-path: inset(100% -220px 0 -220px); transition: clip-path 0.8s var(--ease) 0.2s; }
.ex-light { position: absolute; inset: 0; border-radius: 4px 4px 0 0; background: radial-gradient(ellipse 80% 70% at 50% 58%, #fff 35%, #d7e3f8); box-shadow: inset 0 0 0 6px var(--navy); }
.ex-leaf { position: absolute; inset: 6px 6px 0; background: #163a86; border-radius: 2px 2px 0 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); transform-origin: 0 50%;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.8s; }
.ex-leaf b { position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.ex-marco { position: absolute; left: 40px; bottom: 30px; display: flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border-radius: 999px; background: var(--white); color: var(--navy);
  white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 8, 40, 0.14), 0 0 0 1.5px rgba(0, 32, 96, 0.06); opacity: 0; transform: translateX(-80px); }
.ex-marco .avatar { width: 58px; height: 58px; font-size: 18px; }
.ex-marco b { display: block; font-size: 22px; line-height: 1.1; }
.ex-marco small { display: block; font-size: 15px; font-weight: 700; color: var(--slate); margin-top: 2px; }
.ex-chip { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 250px; padding: 9px 14px 9px 9px; border-radius: 14px;
  background: var(--white); color: var(--navy); font-weight: 900; font-size: 16px; line-height: 1.2; box-shadow: 0 14px 34px rgba(0, 8, 40, 0.16), 0 0 0 1.5px rgba(0, 32, 96, 0.06);
  visibility: hidden; will-change: transform, opacity; }
.ex-chip [data-ico] { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--info); color: var(--cobalt); flex-shrink: 0; }
.q-2.on .ex-floor { transform: none; }
.q-2.on .ex-door { clip-path: inset(-30px -220px 0 -220px); }
.q-2.on .ex-leaf { transform: rotateY(-112deg); }
.q-2.on .ex-marco { animation: walkIn 2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s forwards; }
@keyframes walkIn { 15% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ============ 3 · the iceberg ============ */
.ice-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(30px, 4vw, 70px); }
.ice-sky { background: linear-gradient(180deg, var(--white) 0%, #edf3fd 50%, #d2e1f8 100%); padding-top: clamp(100px, 14vh, 160px); }
.ice-sky .ice-grid { align-items: end; margin-top: clamp(10px, 3vh, 30px); }
.ice-sky .display { color: var(--navy); }
.ice-lbl { display: flex; align-items: center; gap: 14px; font-weight: 900; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.ice-lbl::before { content: ""; width: 34px; height: 5px; background: var(--yellow); }
.ice-above { padding-bottom: clamp(24px, 4vh, 40px); }
.ice-items { margin-top: 12px; font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; color: var(--navy); }
.ice-sub { margin-top: 6px; font-size: clamp(17px, 1.35vw, 20px); color: var(--slate); }
.ice-tip { overflow: hidden; }
.ice-tip svg { display: block; width: 100%; height: auto; transform: translateY(45%); transition: transform 1.6s var(--ease); }
.ice-tip.in svg { transform: none; }
.ice-sea { position: relative; color: var(--white); padding-bottom: clamp(90px, 13vh, 150px); background: linear-gradient(180deg, #0b2e78 0%, #062161 38%, var(--navy) 100%); }
/* marine snow: a still texture, densest just under the surface */
.ice-sea::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.6px);
  background-size: 61px 83px, 97px 71px; background-position: 0 0, 30px 40px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.ice-wave { position: absolute; left: 0; top: -7px; width: 100%; height: 14px; overflow: visible; z-index: 1; }
.ice-sea .ice-grid { position: relative; align-items: stretch; }
.ice-below { position: sticky; top: 32vh; padding-top: clamp(70px, 12vh, 130px); }
.ice-sea .ice-lbl { color: var(--yellow); }
.ice-stmt { margin-top: 18px; font-weight: 900; font-size: clamp(30px, 3.3vw, 52px); line-height: 1.08; letter-spacing: -0.01em; color: var(--white); }
.ice-stmt em { font-style: normal; color: var(--yellow); }
.ice-body { position: relative; height: clamp(780px, 112vh, 1000px); }
.ice-berg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ice-chips { position: absolute; left: 0; right: 0; top: 19%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, max-content);
  justify-content: center; gap: clamp(30px, 5vh, 50px) 16px; }
.ice-chip { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 14px; white-space: nowrap;
  font-weight: 900; font-size: clamp(15px, 1.15vw, 18px); color: rgba(255, 255, 255, 0.6); background: rgba(8, 44, 120, 0.7);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24), 0 14px 34px rgba(0, 8, 40, 0.35); transition: color 0.6s, background-color 0.6s, box-shadow 0.6s; }
.ice-chip:nth-child(even) { top: 28px; }
.ice-chip .tile { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(94, 170, 240, 0.18); color: #8fb9ea; flex-shrink: 0; transition: background-color 0.6s, color 0.6s; }
.ice-chip::after { content: ""; position: absolute; inset: -7px; border-radius: 20px; border: 2px solid var(--white); opacity: 0; pointer-events: none; }
.ice-chip.lit { color: var(--white); background: rgba(14, 60, 156, 0.86); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 14px 34px rgba(0, 8, 40, 0.35); }
.ice-chip.lit .tile { background: rgba(94, 170, 240, 0.36); color: #d5e9ff; }
.ice-chip.lit::after { animation: flash 1.1s var(--ease); }
@keyframes flash { from { opacity: 0.9; transform: scale(0.96); } to { opacity: 0; transform: scale(1.14); } }
.ice-files { position: absolute; inset: 0; pointer-events: none; }
.ice-file { position: absolute; width: 34px; height: 43px; margin: -21px 0 0 -17px; border-radius: 6px; background: #dfe7f5; overflow: hidden; opacity: 0.4; }
.ice-file b { position: absolute; left: 7px; right: 7px; height: 2.5px; border-radius: 2px; background: rgba(0, 32, 96, 0.25); }
.ice-file i { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: grid; place-items: center; font: 900 8px/1 "Lato", sans-serif; letter-spacing: 0.04em; color: var(--white); font-style: normal; }
.ice-close { position: relative; padding-top: clamp(30px, 6vh, 70px); }
.ice-close .display { font-size: clamp(32px, 4.4vw, 66px); font-weight: 400; letter-spacing: -0.01em; } /* Lato regular */

/* ============ 4 · a working day ============ */
.day { background: var(--navy); color: var(--white); padding: clamp(30px, 5vh, 60px) 0 clamp(90px, 13vh, 150px); } /* it carries on from the deep */
.day-chart { margin-top: clamp(40px, 7vh, 72px); }
.day-lbl { margin-bottom: 16px; }
.day-bar { position: relative; height: 84px; border-radius: 16px; background: var(--deep); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); overflow: hidden; }
.day-sep { position: absolute; top: 0; bottom: 0; left: calc(var(--h) * 12.5%); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.12); }
/* nine searches of 12 minutes each (2.5 % of an 8-hour day): scattered, then side by side */
.day-frag { position: absolute; top: 8px; bottom: 8px; left: calc(var(--x) * 100%); width: calc(2.5% - 2px); margin-left: 1px; display: grid; place-items: center; background: var(--yellow); color: var(--navy);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.15s + var(--i) * 0.07s), left 1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i) * 0.035s); }
.day-frag [data-ico] { width: 22px; height: 22px; stroke-width: 2; }
.day.on .day-frag { transform: none; }
.day.collapsed .day-frag { left: calc(var(--i) * 2.5%); }
.day-hours { position: relative; height: 26px; margin-top: 10px; }
.day-hours span { position: absolute; left: calc(var(--h) * 12.5%); transform: translateX(-50%); font-weight: 700; font-size: 15px; color: var(--soft); font-variant-numeric: tabular-nums; }
.day-hours span:first-child { transform: none; } .day-hours span:last-child { transform: translateX(-100%); }
.day-big { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 50px); margin-top: clamp(26px, 4vh, 44px); }
.day-num { overflow: hidden; padding-bottom: 0.04em; font-weight: 900; font-size: clamp(88px, 11vw, 160px); line-height: 1; letter-spacing: -0.02em; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.day-num > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) 0.5s; }
.du { font-size: 0.55em; margin-left: 0.08em; }
.day-desc { max-width: 32ch; font-size: clamp(20px, 2vw, 30px); line-height: 1.4; opacity: 0; transform: translateY(16px); transition: opacity 0.7s 0.8s, transform 0.9s var(--ease) 0.8s; }
.day-desc b { font-weight: 900; }
.day-src { display: inline-block; margin-left: 6px; padding: 5px 12px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); font-weight: 900; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; vertical-align: 5px; line-height: 1; }
.day.collapsed .day-num > span, .day.collapsed .day-desc { transform: none; opacity: 1; }
.day-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vh, 64px); }
/* the tiles carry yellow numbers: they are clipped in, never faded (yellow over navy turns olive) */
.day-tile { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 28px 30px 24px; border-radius: 24px; background: var(--deep); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  clip-path: inset(0 0 100% 0 round 24px); transform: translateY(40px); transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }
.day-tile:nth-child(2) { transition-delay: 0.12s; } .day-tile:nth-child(3) { transition-delay: 0.24s; }
.day-tiles.in .day-tile { clip-path: inset(0 0 0 0 round 24px); transform: none; }
.dt-num { font-weight: 900; font-size: clamp(52px, 5vw, 78px); line-height: 1; color: var(--yellow); white-space: nowrap; }
.dt-txt { margin-top: 12px; max-width: 24ch; font-size: 19px; line-height: 1.4; }
.dt-txt b { font-weight: 900; }
.dt-src { margin-top: auto; padding-top: 18px; font-weight: 900; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.dt-chart { position: absolute; right: 28px; top: 26px; display: flex; align-items: flex-end; gap: 10px; }
.dt-chart span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--soft); }
.dt-chart i { width: 24px; height: calc(var(--v) / 16.4 * 66px); border-radius: 5px 5px 0 0; background: var(--white); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.9s var(--ease) 0.6s; }
.dt-chart span:nth-child(2) i { transition-delay: 0.75s; }
.dt-chart span:last-child i { background: var(--yellow); transition-delay: 0.9s; }
.day-tiles.in .dt-chart i { transform: none; }
.day-note { margin-top: 26px; font-size: 14px; font-style: italic; color: rgba(255, 255, 255, 0.6); }

/* ============ 5 · use cases ============ */
.cases { background: var(--white); padding: clamp(100px, 14vh, 160px) 0; }
.cases .display { color: var(--navy); }
.cases .lead { color: var(--slate); max-width: 56ch; }
/* the four use cases of the AIDA presentation: the problem, what Arca does, the result */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(44px, 7vh, 70px); }
/* each card spans 9 rows of the grid and shares them (subgrid), so titles, taglines, problems and results line up across the cards */
.case { position: relative; display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 28px 24px 26px; border-radius: 24px; background: var(--mist); }
.case.reveal { transition: opacity 0.9s var(--ease), transform 0.7s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s; }
.case:nth-child(2) { transition-delay: 0.07s; } .case:nth-child(3) { transition-delay: 0.14s; } .case:nth-child(4) { transition-delay: 0.21s; }
.case.in:hover { transform: translateY(-6px); transition-delay: 0s; background: var(--white); box-shadow: 0 0 0 1.5px rgba(0, 32, 96, 0.08), 0 30px 60px rgba(0, 8, 40, 0.12); }
.case-ico { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.case-ico > span { width: 32px; height: 32px; }
.case-ico > span svg { stroke-width: 1.6; }
.case-badge { position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--yellow); color: var(--navy); box-shadow: 0 0 0 4px var(--mist); transition: box-shadow 0.3s; }
.case-badge svg { stroke-width: 2.4; }
.case.in:hover .case-badge { box-shadow: 0 0 0 4px var(--white); }
.case h3 { margin-top: 22px; font-weight: 900; font-size: 22px; line-height: 1.15; color: var(--navy); }
.case-sub { margin: 6px 0 18px; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--cobalt); }
.case-dl { display: contents; }
.case-dl dt { margin-top: 16px; font-weight: 900; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.case-dl dt:first-child { margin-top: 0; }
.case-dl dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--dark); }
/* the result: in navy, over a hairline */
.case-dl dt:last-of-type { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0, 32, 96, 0.1); }
.case-res { font-weight: 900; color: var(--navy) !important; }

/* ============ 2 · ask ============ */
.ask { position: relative; background: var(--abyss); color: var(--white); padding: clamp(100px, 14vh, 160px) 0; overflow: hidden; }
.marquee { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 3vh 0; transform: rotate(-4deg) scale(1.12); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.mq-row { display: flex; gap: 18px; width: max-content; animation: mq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 85s; }
.mq-row:nth-child(2) { display: none; } /* two rows, at the edges: clear of the headline */
.mq-row:nth-child(3) { animation-duration: 95s; }
.mq-row span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 22px 14px 14px; border-radius: 999px; font-weight: 700; font-size: 20px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.42); }
.mq-row span i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
@keyframes mq { to { transform: translateX(-50%); } }
.ask-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 90px); align-items: center; }

/* the app mock */
.hero-demo { position: relative; perspective: 1400px; }
.app { background: var(--app-bg); color: var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease); }
.app-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--white); border-bottom: 1.5px solid var(--line); font-size: 18px; color: var(--navy); }
.app-ctx { color: var(--muted); font-size: 15px; }
.app-chat { padding: 26px 24px 8px; min-height: 380px; display: flex; flex-direction: column; gap: 22px; }
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg p { font-size: 18px; line-height: 1.55; min-height: 1.55em; }
.msg-user p { font-weight: 700; color: var(--navy); padding-top: 6px; }
.answer b { color: var(--navy); font-weight: 900; }
.av-ai { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); flex-shrink: 0; display: grid; place-items: center; position: relative; }
.av-ai i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--yellow); }
.av-user { width: 38px; height: 38px; border-radius: 10px; background: var(--yellow); flex-shrink: 0; display: grid; place-items: center; }
.av-user svg { width: 22px; height: 22px; fill: var(--navy); }
.cite { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin: 0 2px; border-radius: 6px; background: var(--navy); color: var(--white);
  font: 900 13px/1 "Lato", sans-serif; vertical-align: 2px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.src-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: 14px; font-weight: 700; color: var(--navy);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.src-chip.in { opacity: 1; transform: none; }
.src-chip .n { color: var(--muted); font-weight: 700; }
.badge, .fchip { display: inline-grid; place-items: center; padding: 4px 8px; border-radius: 7px; font: 900 12px/1 "Lato", sans-serif; letter-spacing: 0.06em; color: var(--white); }
.t-pdf { background: var(--navy); } .t-docx, .t-mail { background: var(--cobalt); } .t-mp4 { background: var(--slate); }
.t-xlsx { background: var(--cyan); color: var(--navy); } .t-jpg { background: var(--sky); color: var(--navy); } .t-sql { background: var(--yellow); color: var(--navy); }
.app-composer { margin: 10px 18px 18px; padding: 14px 14px 14px 20px; background: var(--white); border: 2px solid var(--line); border-radius: 18px; display: flex; align-items: center; color: #9aa2b8; font-size: 16px; }
.send { margin-left: auto; width: 40px; height: 40px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; }
.send svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--navy); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-dots { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.demo-dots button { width: 34px; height: 6px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; transition: background-color 0.3s, width 0.3s var(--ease); }
.demo-dots button[aria-selected="true"] { background: var(--yellow); width: 54px; }

/* ============ 7 · how it works: seven ideas ============ */
/* Quiet and neutral: the drawings sit on a sheet of paper with a fine dot grid, in navy ink and hairlines,
   with soft shadows; yellow only where something matters. The Arca symbol speaks for Arca. */
.how { --hair: rgba(15, 20, 36, 0.09); --hair2: rgba(15, 20, 36, 0.17); --tint: #f3f4f7; --cream: #fff6c4;
  --lift: 0 1px 2px rgba(15, 20, 36, 0.04), 0 14px 34px -16px rgba(15, 20, 36, 0.2);
  background: #f4f5f7; color: var(--dark); padding: clamp(100px, 14vh, 160px) 0 clamp(60px, 8vh, 100px); }
.how .display { color: var(--navy); }
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); margin-top: 30px; }
.steps { list-style: none; padding: 0; }
.step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px 0; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.step.active { opacity: 1; }
.step-num { display: flex; align-items: center; gap: 14px; font-weight: 900; font-size: 13px; letter-spacing: 0.18em; color: var(--navy); font-variant-numeric: tabular-nums; }
.step-num::after { content: ""; width: 56px; height: 2px; background: var(--hair2); transition: background-color 0.4s; }
.step.active .step-num::after { background: var(--yellow); }
.step > h3 { margin-top: 18px; font-weight: 900; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.step > p { margin-top: 14px; max-width: 36ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--dark); }

.stage { min-width: 0; position: sticky; top: calc(var(--header) + 3vh); height: calc(100vh - var(--header) - 6vh); display: flex; align-items: center; justify-content: center; border-radius: 28px;
  background: radial-gradient(rgba(15, 20, 36, 0.07) 1px, transparent 1.5px) 50% 50% / 22px 22px, var(--white);
  box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -40px rgba(15, 20, 36, 0.28); }
.stage-count { position: absolute; left: 30px; top: 26px; display: flex; align-items: baseline; gap: 6px; font-weight: 900; font-size: 13px; letter-spacing: 0.16em; color: var(--slate); font-variant-numeric: tabular-nums; }
.stage-count b { color: var(--navy); }
.stage-count i { position: absolute; left: 0; top: calc(100% + 10px); width: 84px; height: 2px; background: var(--hair2); }
.stage-count i::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform-origin: 0 50%; transform: scaleX(var(--k, 0.14)); transition: transform 0.6s var(--ease); }
.stage-inner { position: relative; width: 560px; height: 460px; flex-shrink: 0; transform-origin: 50% 50%; color: var(--ink); }
.vis { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), visibility 0s 0.5s; }
.vis.active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), visibility 0s; }
/* shared: a question someone asks */
.v-ask { position: relative; display: inline-block; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.35;
  box-shadow: 0 0 0 1px var(--hair), var(--lift); }
.ci svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } /* also the integrations' icons */
@keyframes pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
/* 01 · every source wired to Arca; small dots travel in along the lines */
.v1-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v1-lines path { fill: none; stroke: var(--hair2); stroke-width: 1.25; }
.v1-lines path.soon { stroke-dasharray: 2 5; }
.v1-lines .ring { fill: none; stroke: var(--hair); stroke-width: 1; }
.v1-conns { position: absolute; inset: 0; }
.v1-conn { position: absolute; display: flex; flex-direction: column; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift);
  color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; }
.v1-name { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 9px; }
/* the products behind a chip, in their own colours, on a hairline shelf under the name */
.v1-logos, .v1-note { display: flex; align-items: center; gap: 13px; height: 34px; padding: 0 14px 2px; border-top: 1px solid var(--hair); }
.v1-logos img { display: block; flex-shrink: 0; }
/* a note in place of logos: the protocols, or "built on request" for ERP and MES */
.v1-note { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.v1-conn .ci { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; }
.v1-conn .ci svg { width: 17px; height: 17px; stroke-width: 1.6; }
.v1-conn.soon { background: transparent; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--slate); }
.v1-conn.soon .ci { background: transparent; } .v1-conn.soon .ci svg { stroke: var(--slate); }
.v1-hub { position: absolute; left: 220px; top: 160px; width: 120px; height: 120px; border-radius: 50%; background: var(--white); display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--hair), 0 26px 50px -22px rgba(0, 32, 96, 0.4); }
.v1-hub img { width: 52px; height: auto; position: relative; top: 1px; }
.v1-orbit { position: absolute; inset: -30px; border-radius: 50%; animation: spin 18s linear infinite; }
.v1-orbit b { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--hair); }
.v1-dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); offset-rotate: 0deg; animation: travel 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.vis-1:not(.active) .v1-dot, .vis-1:not(.active) .v1-orbit { animation-play-state: paused; }
@keyframes travel { from { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
/* 02 · a field of meanings: two wordings travel to the same place */
.v2-space { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v2-space .bg { fill: rgba(15, 20, 36, 0.12); }
.v2-space .dot { fill: #c3cad6; } .v2-space .dot.k { fill: var(--navy); }
.v2-space .lk { stroke: rgba(15, 20, 36, 0.07); stroke-width: 1; } .v2-space .lk.k { stroke: rgba(0, 32, 96, 0.22); }
.v2-path { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.vis-2.active .v2-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) 0.35s; }
.vis-2.active .v2-path + .v2-path { transition-delay: 0.95s; }
.v2-ring, .v2-hit { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.v2-ring { fill: var(--white); stroke: var(--navy); stroke-width: 1.25; } .v2-hit { fill: var(--yellow); }
.vis-2.active .v2-ring, .vis-2.active .v2-hit { transform: none; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s; }
.v2-q { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 14px 14px 14px 4px; background: var(--white); color: var(--navy);
  font-weight: 700; font-size: 14.5px; white-space: nowrap; box-shadow: 0 0 0 1px var(--hair), var(--lift); }
.v2-q [data-ico] { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--tint); }
.v2-q1 { left: 0; top: 36px; } .v2-q2 { left: 28px; bottom: 36px; }
.v2-c { position: absolute; left: 410px; top: 236px; display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-weight: 900; font-size: 13px; white-space: nowrap; box-shadow: 0 0 0 1px var(--hair2); opacity: 0; transform: translateY(6px); }
.v2-c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.vis-2.active .v2-c { opacity: 1; transform: none; transition: opacity 0.6s 2.2s, transform 0.8s var(--ease) 2.2s; }
/* 03 · each citation lights its source, in turn */
.v3-answer { position: absolute; left: 0; right: 0; top: 50px; padding: 20px 24px 22px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift);
  font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.v3-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; color: var(--navy); }
.v3-head img { width: 20px; height: auto; }
.vis-3 .cite { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--white); color: var(--navy); font-size: 12px; box-shadow: inset 0 0 0 1px var(--hair2);
  transition: background-color 0.35s, box-shadow 0.35s; }
.vis-3 .cite.hot { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.v3-srcs { position: absolute; left: 0; right: 0; bottom: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v3-src { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.v3-src::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.v3-src.hot { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--hair2), 0 26px 44px -20px rgba(15, 20, 36, 0.32); }
.v3-src.hot::before { transform: none; }
.ftag { align-self: flex-start; padding: 4px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair2); font: 900 10px/1 "Lato", sans-serif; letter-spacing: 0.12em; color: var(--slate); }
.v3-src b { font-size: 14.5px; line-height: 1.25; color: var(--navy); } .v3-src small { font-size: 12.5px; font-weight: 700; color: var(--slate); }
.v3-n { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 6px; background: var(--tint); color: var(--navy); font: 900 11px/20px "Lato", sans-serif; text-align: center; transition: background-color 0.35s; }
.v3-src.hot .v3-n { background: var(--yellow); }
/* 04 · the query Arca writes, then the table */
.vis-4 .v-ask { position: absolute; right: 0; top: 0; }
.v4-sql { position: absolute; left: 0; top: 66px; width: 72%; margin: 0; padding: 14px 18px 16px; border-radius: 14px; background: #fafbfc; box-shadow: 0 0 0 1px var(--hair);
  font: 13.5px/1.75 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); white-space: normal; }
.v4-sql b { color: var(--navy); font-weight: 700; } .v4-sql i, .v4-sql u { color: var(--slate); font-style: normal; text-decoration: none; }
.v4-tag { display: inline-block; padding: 4px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair2); font: 900 10px/1 "Lato", sans-serif; letter-spacing: 0.12em; color: var(--navy); }
.v4-by { margin-left: 8px; font: 700 12.5px/1 "Lato", sans-serif; color: var(--slate); }
.v4-sql .sl { display: block; white-space: pre; opacity: 0; transform: translateX(-6px); }
.v4-sql .sl:first-of-type { margin-top: 8px; }
.vis-4.active .v4-sql .sl { animation: lineIn 0.45s var(--ease) forwards; }
.vis-4.active .v4-sql .sl:nth-of-type(1) { animation-delay: 0.5s; } .vis-4.active .v4-sql .sl:nth-of-type(2) { animation-delay: 0.8s; }
.vis-4.active .v4-sql .sl:nth-of-type(3) { animation-delay: 1.1s; } .vis-4.active .v4-sql .sl:nth-of-type(4) { animation-delay: 1.4s; }
.v4-table { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift); overflow: hidden; font-size: 14px; }
.v4-tr { display: grid; grid-template-columns: 1fr 1.3fr 1.4fr; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--hair); }
.v4-tr.th { border: 0; background: var(--tint); font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.v4-tr span:first-child { color: var(--slate); font-variant-numeric: tabular-nums; } .v4-tr span:nth-child(2) { font-weight: 700; color: var(--navy); }
.v4-tr.top { box-shadow: inset 3px 0 0 var(--yellow); }
.v4-bar { display: flex; align-items: center; gap: 10px; }
.v4-bar i { height: 6px; width: 0; flex-shrink: 0; border-radius: 3px; background: var(--navy); transition: width 1s var(--ease); }
.v4-tr.top .v4-bar i { background: var(--yellow); }
.vis-4.active .v4-bar i { width: calc(var(--w) * 0.7); transition-delay: 1.7s; }
.v4-bar em { font-style: normal; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
/* 05 · same question, two permissions */
.vis-5 { display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.v5-col { display: flex; flex-direction: column; gap: 14px; padding: 0 22px; }
.v5-col:first-child { padding-left: 0; } .v5-col:last-child { padding-right: 0; box-shadow: inset 1px 0 0 var(--hair2); }
.v5-who { display: flex; align-items: center; gap: 12px; }
.v5-av { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--tint); color: var(--navy); font: 900 13px/42px "Lato", sans-serif; text-align: center; box-shadow: inset 0 0 0 1px var(--hair2); }
.v5-who b { display: block; font-size: 15px; line-height: 1.2; color: var(--navy); } .v5-who small { font-size: 12.5px; font-weight: 700; color: var(--slate); }
.v5-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.v5-badge [data-ico] { width: 14px; height: 14px; } .v5-badge [data-ico] svg { stroke-width: 2.4; }
.v5-badge.ok { background: var(--cream); color: var(--navy); } .v5-badge.no { background: var(--tint); color: var(--slate); }
.vis-5 .v-ask { align-self: flex-end; font-size: 13px; padding: 9px 13px; text-wrap: balance; }
.v5-ans { display: flex; gap: 10px; min-height: 92px; padding: 14px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift); font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); }
.v5-ans img { width: 20px; height: auto; flex-shrink: 0; align-self: flex-start; margin-top: 1px; }
.v5-ans.none p { color: var(--slate); font-style: italic; }
.vis-5.active .v5-ans { animation: lineIn 0.6s var(--ease) forwards; }
.vis-5.active .v5-col:first-child .v5-ans { animation-delay: 0.6s; } .vis-5.active .v5-col:last-child .v5-ans { animation-delay: 1.3s; }
/* 06 · every "I don't know" becomes a signal */
/* the wall, then the count and the gap it reveals, as one group centred in the box */
.vis-6 { display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: end; gap: 40px 0; }
.v6-wall { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.v6-q { position: relative; padding: 11px 36px 11px 13px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.3;
  hyphens: auto; overflow-wrap: break-word; transition: box-shadow 0.4s; }
.v6-q::after { content: "✓"; position: absolute; right: 11px; top: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900;
  color: var(--slate); box-shadow: inset 0 0 0 1px var(--hair2); }
.v6-q.gapq::after { content: "?"; background: var(--yellow); color: var(--navy); box-shadow: none; }
.v6-q.gapq.lit { box-shadow: 0 0 0 1.5px var(--yellow), 0 12px 26px -14px rgba(15, 20, 36, 0.3); }
.v6-count { display: flex; align-items: baseline; gap: 10px; color: var(--navy); }
.v6-count b { min-width: 1.15em; font-weight: 900; font-size: 58px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.v6-count span { font-weight: 900; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.v6-gap { position: relative; padding: 13px 20px 13px 22px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift); overflow: hidden;
  font-weight: 900; font-size: 16px; line-height: 1.2; color: var(--navy); }
.v6-gap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--yellow); }
.v6-gap small { display: block; margin-top: 3px; font-weight: 700; font-size: 12.5px; color: var(--slate); }
/* 07 · the expert closes the gap */
.vis-7 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.v7-expert { display: flex; align-items: center; gap: 18px; padding: 14px 30px 14px 14px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift); color: var(--navy); }
.v7-av { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: var(--white); font: 900 19px/64px "Lato", sans-serif; text-align: center; }
.v7-av::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--white); }
.v7-expert b { display: block; font-size: 20px; line-height: 1.15; } .v7-expert small { display: block; font-size: 13.5px; font-weight: 700; color: var(--slate); }
.v7-years { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 6px; background: var(--cream); font-weight: 900; font-size: 12px; }
.v7-rec { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); }
.v7-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--cream); }
.v7-lbl { font-weight: 900; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.v7-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.v7-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--navy); transform: scaleY(var(--h)); animation: talk 1.3s ease-in-out var(--d) infinite alternate; }
@keyframes talk { to { transform: scaleY(calc(var(--h) * 0.3)); } }
.vis-7:not(.active) .v7-wave i { animation-play-state: paused; }
.v7-time { font-weight: 700; font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }
.v7-done { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--hair), var(--lift); opacity: 0; transform: translateY(8px); }
.vis-7.active .v7-done { animation: lineIn 0.7s var(--ease) 1.2s forwards; }
.v7-done img { width: 26px; height: auto; }
.v7-done b { display: block; font-size: 15px; line-height: 1.2; color: var(--navy); } .v7-done small { font-size: 12.5px; font-weight: 700; color: var(--slate); }
/* the people in the questions above still use these */
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--yellow); flex-shrink: 0; }

/* ============ 4 · episodes ============ */
.episodes { background: var(--white); padding: clamp(100px, 14vh, 160px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.episodes .display { color: var(--navy); }
.ep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.ep-nav { display: flex; gap: 12px; }
.round { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.round:hover { transform: scale(1.08); }
.round svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-track { display: flex; gap: clamp(18px, 2vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 56px;
  padding: 20px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 30px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.ep-track::-webkit-scrollbar { display: none; }
.ep { flex: 0 0 auto; width: clamp(230px, 21vw, 300px); scroll-snap-align: start; cursor: pointer; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 7px #0b1838, 0 34px 70px rgba(0, 8, 40, 0.3);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.phone img, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone video { opacity: 0; transition: opacity 0.6s; }
.phone video.on { opacity: 1; }
.phone .pbtn { position: absolute; left: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 8, 40, 0.4); transition: transform 0.35s var(--ease); }
.phone .pbtn svg { width: 22px; height: 22px; fill: var(--navy); margin-left: 3px; }
.ep:hover .phone, .ep:focus-visible .phone { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 0 0 7px var(--yellow), 0 44px 80px rgba(0, 8, 40, 0.35); }
.ep:hover .pbtn { transform: scale(1.12); }
.ep-cap { margin-top: 26px; }
.ep-cap small { font-weight: 900; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.ep-cap b { display: block; font-weight: 900; font-size: 22px; line-height: 1.15; color: var(--navy); margin-top: 6px; }
.ep-cap b span { display: block; }
.ep-note { color: var(--muted); font-size: 15px; margin-top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 16, 48, 0.88); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; }
.lb-phone { height: min(88vh, 900px); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; box-shadow: 0 0 0 8px #0b1838, 0 50px 120px rgba(0, 0, 0, 0.6); background: var(--navy); animation: pop 0.5s var(--ease); }
.lb-phone video { width: 100%; height: 100%; object-fit: cover; }
@keyframes pop { from { transform: scale(0.9) translateY(30px); opacity: 0; } }
.lb-close { position: fixed; right: 24px; top: 24px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }

/* ============ 5 · film ============ */
.film { position: relative; background: var(--navy); color: var(--white); padding: clamp(100px, 14vh, 160px) 0 0; }
.film-frame { position: relative; height: 180vh; margin-top: 30px; }
/* --vw × --vh: the film's box as it widens (--p 0 → 1); the button and the chip are placed in it */
.player { --p: 0; --w0: min(var(--wrap), 100vw - 2 * var(--gutter)); --vw: calc(var(--w0) + (100vw - var(--w0)) * var(--p)); --vh: calc(var(--w0) * 0.5625 + (100vh - var(--w0) * 0.5625) * var(--p));
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.player .film-bg, .player .film-main { position: absolute; left: 50%; top: 50%; object-fit: cover; background: #000; width: var(--vw); height: var(--vh);
  transform: translate(-50%, -50%); border-radius: calc(28px * (1 - var(--p))); }
.player .film-main { object-fit: contain; }
/* lower left of the film, under the cover's logo, clear of its title and its tiles */
.player .play { position: absolute; z-index: 2; left: calc(50% - var(--vw) / 2 + var(--vw) * 0.0625); bottom: calc(50% - var(--vh) / 2 + var(--vh) * 0.1); display: inline-flex; align-items: center; gap: 16px; padding: 12px 30px 12px 12px; border-radius: 999px; border: 0; background: var(--yellow); color: var(--navy);
  font: 900 18px/1 "Lato", sans-serif; cursor: pointer; box-shadow: 0 20px 50px rgba(0, 8, 40, 0.45); }
.play-ico { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.play-ico svg { width: 24px; height: 24px; fill: var(--yellow); margin-left: 4px; }
.player.playing .play, .player.playing .lang-chip { display: none; }
.lang-chip { position: absolute; z-index: 2; left: calc(50% - var(--vw) / 2 + var(--vw) * 0.0625); bottom: calc(50% - var(--vh) / 2 + var(--vh) * 0.1 + 96px); background: var(--white); color: var(--navy); font-weight: 900; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.player .missing { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; background: rgba(0, 8, 40, 0.75); color: var(--white); font-size: 14px; z-index: 3; }

/* ============ 6 · integrations ============ */
.integrations { background: var(--navy); color: var(--white); padding: clamp(110px, 15vh, 170px) 0; position: relative; overflow: hidden; }
.int-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(60px, 8vw, 130px); align-items: center; }
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.formats-l { font-weight: 900; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); width: 100%; }
.formats .fchip { font-size: 14px; padding: 8px 12px; }
.orbit { position: relative; width: min(100% - 120px, 520px); aspect-ratio: 1; margin: 60px auto; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.18); }
.orbit-ring.r1 { inset: 0; } .orbit-ring.r2 { inset: 19%; border-style: solid; border-color: rgba(255, 255, 255, 0.08); }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 40px; background: var(--deep); display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), var(--shadow); }
.orbit-core i { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 11px var(--deep), 0 0 0 18px var(--yellow); animation: pulse 2.4s var(--ease) infinite; }
.orbit-core b { position: absolute; bottom: -40px; z-index: 1; font-weight: 400; font-size: 26px; -webkit-text-stroke: 0.5px var(--white); }
.orbit-items { list-style: none; padding: 0; position: absolute; inset: 0; animation: spin 90s linear infinite; }
.orbit-items li { position: absolute; width: 0; height: 0; }
.oi { display: flex; align-items: center; gap: 10px; transform: translate(-50%, -50%); padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--white); color: var(--navy); font-weight: 900; font-size: 15px;
  white-space: nowrap; box-shadow: var(--shadow); animation: spin 90s linear infinite reverse; width: max-content; }
.oi small { display: block; font-weight: 700; font-size: 12px; color: var(--slate); }
.oi .ci { width: 36px; height: 36px; border-radius: 10px; background: var(--info); display: grid; place-items: center; flex-shrink: 0; }
.oi.soon { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.oi.soon small { color: var(--soft); } .oi.soon .ci { background: rgba(255, 255, 255, 0.12); } .oi.soon .ci svg { stroke: var(--white); }
.orbit-items.inner { animation-duration: 60s; animation-direction: reverse; }
.orbit-items.inner .oi { padding: 0; background: none; box-shadow: none; animation-duration: 60s; animation-direction: normal; }
@keyframes spin { to { rotate: 360deg; } }
.orbit:hover .orbit-items, .orbit:hover .oi { animation-play-state: paused; }
.int-list { display: none; }

/* ============ 7 · security ============ */
.security { background: var(--white); padding: clamp(110px, 15vh, 170px) 0; }
.security .display { color: var(--navy); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.sec-card { position: relative; border-radius: 24px; padding: 34px 28px 30px; background: var(--gray); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.sec-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.sec-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0, 8, 40, 0.12); }
.sec-card:hover::before { transform: scaleX(1); }
.sec-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.sec-card:hover .sec-ico { transform: rotate(-8deg) scale(1.06); }
.sec-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sec-card h3 { font-weight: 900; font-size: 22px; color: var(--navy); margin-top: 24px; line-height: 1.2; }
.sec-card p { margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* ============ 8 · finale ============ */
.finale { position: relative; background: var(--navy); color: var(--white); padding: clamp(110px, 15vh, 170px) 0 clamp(120px, 16vh, 180px); overflow: hidden; text-align: center; }
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
/* the Arca logo rises out of a mask (it carries yellow: moved, never faded) */
.giant { position: relative; overflow: hidden; margin-bottom: clamp(30px, 5vh, 56px); }
.giant img { display: block; width: clamp(260px, 46vw, 680px); height: auto; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.giant.in img { transform: none; }
.finale-title { font-size: clamp(36px, 4.4vw, 68px); }
.finale .lead { margin: 26px auto 44px; text-align: center; }

/* ============ footer ============ */
.site-footer { background: var(--white); padding: 56px 0 30px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 22px; color: var(--navy); font-weight: 700; }
.footer-brand img { height: 46px; width: auto; }
.footer-cefriel img { height: 64px; width: auto; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
/* the Milan office: address and contacts */
.footer-info { margin-top: 38px; }
.footer-city { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.footer-city::before { content: ""; width: 28px; height: 4px; background: var(--yellow); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 8px clamp(40px, 6vw, 90px); margin-top: 14px; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--dark); }
.footer-cols > span { display: flex; flex-direction: column; }
.site-footer a:not(.footer-cefriel) { color: var(--navy); text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--ease); }
.site-footer a:not(.footer-cefriel):hover { background-size: 100% 2px; }
.footer-cols a { align-self: flex-start; font-weight: 700; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-weight: 700; }

/* ============ reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-mask { overflow: hidden; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.reveal-mask > span { display: inline-block; transform: translate3d(0, 115%, 0) rotate(3deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); }
.reveal-mask.in > span { transform: none; }
.display .line:nth-child(2) > span { transition-delay: 0.1s; }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 1181px) {
  .menu { display: none; }
}
@media (min-width: 601px) {
  .menu-cta { display: none; } /* the header shows "Parliamone" itself down to 600 px */
  .menu { padding-bottom: 10px; }
}
@media (max-width: 1080px) {
  .ask-grid, .int-grid { grid-template-columns: 1fr; }
  .orbit { width: min(100% - 100px, 520px); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the iceberg in one column: the tip and the mass take the full width */
  .ice-grid { grid-template-columns: minmax(0, 1fr); }
  .ice-tip { width: min(100%, 760px); margin-inline: auto; margin-top: 10px; }
  .ice-body { width: min(100%, 760px); margin-inline: auto; }
  .ice-sea .ice-copy { order: 2; }
  .ice-below { position: relative; top: auto; padding-top: 10px; }
}
@media (max-width: 860px) {
  .q { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .q-text { max-width: 26ch; }
  .day-big { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .day-tiles { grid-template-columns: minmax(0, 1fr); }
  .day-tile { min-height: 0; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* each step carries its own drawing, on its own sheet, above the text: nothing sticky */
  .stage { display: none; }
  .step-vis { align-self: stretch; margin-bottom: 26px; padding: 14px 6px; border-radius: 22px; color: var(--ink);
    background: radial-gradient(rgba(15, 20, 36, 0.07) 1px, transparent 1.5px) 50% 50% / 20px 20px, var(--white);
    box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -36px rgba(15, 20, 36, 0.32); }
  .step-vis .fit { --fw: 560; --fh: 460; }
  .stage-count { display: none; }
  .step { min-height: 0; justify-content: flex-start; padding: 0 0 64px; opacity: 1; }
  .film-frame { height: auto; padding-bottom: 90px; }
  .player { position: relative; height: auto; aspect-ratio: 16 / 9; width: calc(100% - 2 * var(--gutter)); margin-inline: auto; border-radius: 20px; }
  .player .film-bg, .player .film-main { inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; border-radius: 0; }
  .lang-chip { left: 5%; top: 5%; bottom: auto; }
  .player .play { left: 5%; bottom: 7%; padding: 6px 16px 6px 6px; gap: 10px; font-size: 14px; } .play-ico { width: 36px; height: 36px; } .play-ico svg { width: 18px; height: 18px; margin-left: 3px; }
}
@media (max-width: 600px) {
  /* a small film: just the round play button (its label stays for screen readers) */
  .player .play { padding: 5px; box-shadow: 0 10px 24px rgba(0, 8, 40, 0.4); }
  .player .play > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 700px) {
  /* the lockup stacks: logo, a short rule, the payoff */
  .payoff { --h: min(29vw, 24vh); flex-direction: column; gap: calc(var(--h) * 0.22); text-align: center; }
  .payoff-rule { width: calc(var(--h) * 0.5); height: 1.5px; animation-name: ruleInX; }
  .payoff-text { font-size: calc(var(--h) * 0.27); align-items: center; }
  @keyframes ruleInX { from { transform: scaleX(0); } }
}
@media (max-width: 600px) {
  :root { --header: 64px; }
  .header-tools .btn { display: none; }
  .header-tools { gap: 10px; }
  .lang button { padding: 8px 8px; }
  /* the four use cases: a row you swipe, the next card peeking in */
  .case-grid { grid-template-columns: none; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); }
  .case-grid::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 84%; scroll-snap-align: start; }
  .case.reveal { opacity: 1; transform: none; }
  .q-copy { flex-direction: column; gap: 14px; }
  .q-num { font-size: 52px; }
  /* the two drawings, laid out 420 px wide so their type stays readable once scaled */
  .q-1 .fit, .q-2 .fit { --fw: 420; }
  .onboard { --x0: 54px; --tw: 330px; }
  .ob-lbl { font-size: 16px; }
  .ex-door { left: 296px; width: 108px; }
  .ex-marco { left: 4px; }
  .ex-marco small { white-space: normal; max-width: 150px; line-height: 1.25; }
  .ice-body { height: 860px; margin-inline: calc(-1 * var(--gutter)); width: auto; }
  .ice-tip { margin-inline: calc(-1 * var(--gutter)); width: auto; }
  .ice-chips { grid-template-columns: max-content; top: 15%; gap: 22px; }
  .ice-chip:nth-child(even) { top: 0; }
  .ice-chip { font-size: 15px; }
  .day-hours span:nth-child(even) { display: none; }
  .day-frag [data-ico] { display: none; }
  .day-bar { height: 64px; }
  .dt-chart { position: static; margin-top: 18px; order: 2; align-self: flex-start; }
  .dt-src { order: 3; }
  .sec-grid { grid-template-columns: 1fr; }
  .app-chat { min-height: 340px; }
  .orbit { display: none; }
  .int-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin-top: 40px; }
  .int-list .oi { transform: none; animation: none; width: auto; white-space: normal; font-size: 14px; line-height: 1.2; }
  .int-list .oi small { font-size: 12px; }
  .orbit-core { width: 96px; height: 96px; margin: -48px; border-radius: 26px; } .orbit-core i { width: 20px; height: 20px; box-shadow: 0 0 0 7px var(--deep), 0 0 0 12px var(--yellow); }
  .orbit-core b { font-size: 20px; bottom: -32px; }
  .ep-head { flex-direction: column; align-items: flex-start; } .ep-nav { display: none; }
  .footer-legal { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 10px; }
}

/* the smallest phones: a narrower language switch, so the menu button still fits */
@media (max-width: 380px) {
  .lang button { padding: 7px 6px; font-size: 11px; letter-spacing: 0.06em; }
  .brand-mark { height: 30px; }
}

/* ============ reduced motion: everything in place, nothing moving ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-mask > span, .v4-sql .sl, .v5-ans, .v7-done, .src-chip, .giant img, .ice-tip svg, .ex-marco { opacity: 1 !important; transform: none !important; }
  .day-tile { clip-path: none !important; transform: none !important; }
  .v4-bar i { width: calc(var(--w) * 0.7); }
  html { scroll-behavior: auto; }
}
