/* BrainAI Team Partner Fund 1. One page, light and dark themes, scroll-staged, no build step.
   Layout works without JS. html.motion = motion is welcome; html.staged = GSAP is running the scroll scenes. */

/* Fonts, self-hosted. Inter is a variable font covering 400 to 600. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-400-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks, so text doesn't jump when the real fonts arrive. */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 86%; ascent-override: 100%; descent-override: 26%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

:root {
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --sans: "Inter", "Sans Fallback", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --accent: #04AEC7;
  --wrap: 1240px;
  --pad: 40px;
  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Themes. Every colour on the page comes from these. All text pairs pass WCAG AA. */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --bg-soft: #F4F5F6; --card: #FFFFFF;
  --veil: 255, 255, 255;
  --ink: #0B1117; --ink-2: #4A5561; --ink-3: #66707B;
  --line: #E4E7EA; --rule: #C9CFD5;
  --accent-ink: #036E7F;
  --btn-bg: #0B1117; --btn-ink: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, .84);
  --tick-bg: rgba(4, 174, 199, .14);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F151C; --bg-soft: #141B23; --card: #18202A;
  --veil: 15, 21, 28;
  --ink: #EEF2F5; --ink-2: #A6B0BA; --ink-3: #808B97;
  --line: #1E2731; --rule: #334150;
  --accent-ink: #3CCBE0;
  --btn-bg: #EEF2F5; --btn-ink: #0A0E13;
  --nav-bg: rgba(10, 14, 19, .8);
  --tick-bg: rgba(60, 203, 224, .16);
}
/* Dark blocks stay dark in both themes: the full-bleed photographs and the close over them. */
.dark-block {
  color-scheme: dark;
  --bg: #070A0E; --bg-soft: #0C1117; --card: rgba(255, 255, 255, .04);
  --ink: #F1F4F6; --ink-2: #B3BCC5; --ink-3: #8C97A2;
  --line: rgba(255, 255, 255, .1); --rule: rgba(255, 255, 255, .22);
  --accent-ink: #3CCBE0;
  --btn-bg: #F1F4F6; --btn-ink: #070A0E;
  --tick-bg: rgba(60, 203, 224, .16);
  background: var(--bg); color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:not(.motion) { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
/* Film grain over everything, so flat colour never looks flat. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--tick-bg); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.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: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.dot { color: var(--ink-3); margin: 0 .5em; }

/* Nav. Fixed, so the opening scene runs edge to edge. Over a dark block it turns light-on-dark. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.nav.scrolled { background: var(--bg); background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav.on-dark, html:not(.js) .nav {
  color-scheme: dark;
  --ink: #F1F4F6; --ink-2: #B3BCC5; --ink-3: #8C97A2; --line: rgba(255, 255, 255, .1); --rule: rgba(255, 255, 255, .22);
  --btn-bg: #F1F4F6; --btn-ink: #070A0E; --bg: #070A0E; --accent-ink: #3CCBE0;
  --nav-bg: rgba(7, 10, 14, .62);
}
.nav.on-dark:not(.scrolled), html:not(.js) .nav { background: transparent; }
/* Without JS the nav cannot track what is under it, so it stays at the top of the dark opening. */
html:not(.js) .nav { position: absolute; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 20px; width: auto; }
.logo-light-text { display: none; }
[data-theme="dark"] .logo-dark-text, .nav.on-dark .logo-dark-text, html:not(.js) .logo-dark-text { display: none; }
[data-theme="dark"] .logo-light-text, .nav.on-dark .logo-light-text, html:not(.js) .logo-light-text { display: block; }
.links { display: flex; gap: 30px; }
.links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Theme toggle: one button, 44px touch target. Hidden without JS, since it needs JS to work. */
html:not(.js) .theme-toggle { display: none; }
.theme-toggle { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s, transform .3s var(--ease); }
.theme-toggle::after { content: ""; position: absolute; inset: -4px; }
.theme-toggle:hover { color: var(--ink); border-color: var(--rule); }
.theme-toggle:active { transform: rotate(-20deg); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.i-moon { fill: currentColor; stroke: none; }
.i-sun { opacity: 0; transform: rotate(-60deg) scale(.7); }
[data-theme="dark"] .i-moon { opacity: 0; transform: rotate(60deg) scale(.7); }
[data-theme="dark"] .i-sun { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; font-size: 15.5px;
  border: 1px solid var(--btn-bg); transition: transform .25s var(--ease), opacity .2s, background-color .35s, color .35s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn-small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: rgba(var(--veil), .6); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-2); opacity: 1; }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; margin: 0 0 28px; }
.eyebrow span:not(.dot) { white-space: nowrap; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 7.6vw, 112px); line-height: .98; letter-spacing: -.025em; margin: 0; max-width: 10.5em; text-wrap: balance; }
.display em { font-style: italic; color: var(--accent-ink); }
.display-sm { font-size: clamp(44px, 6vw, 88px); max-width: 13ch; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 32em; margin: 30px 0 0; line-height: 1.6; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 28px; text-wrap: balance; }
h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -.005em; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.label { font-size: 13.5px; color: var(--ink-3); margin: 0 0 22px; letter-spacing: .01em; }
.num { color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-right: 10px; font-weight: 500; }
.section { padding: 144px 0; }

/* Opening stage ---------------------------------------------------------------------------------- */
.stage { position: relative; overflow: clip; }
.stage-sticky { position: relative; }
.globe { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.globe.ready { opacity: 1; }
/* The pre-rendered globe, for visitors who don't get the live one: no JS, reduced motion, or no WebGL. */
.globe-still { position: absolute; top: 0; right: -6vw; width: min(62vw, 100svh); height: 100vh; height: 100svh; background: url("/assets/globe-still.webp") center / contain no-repeat; display: none; }
[data-theme="light"] .globe-still { background-image: url("/assets/globe-still-light.webp"); }
html:not(.motion) .globe-still, .no-webgl .globe-still { display: block; }
html:not(.motion) .globe, .no-webgl .globe { display: none; }
.stage-vignette {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 50%, transparent 30%, rgba(var(--veil), .55) 75%),
    linear-gradient(90deg, rgba(var(--veil), .92) 0%, rgba(var(--veil), .55) 42%, transparent 70%);
}
.stage-layer { position: relative; }
.hero-layer { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 96px; }
.hero-layer .wrap { width: 100%; }
.why-layer { padding: 120px 0 144px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink-3), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html:not(.motion) .scroll-cue { display: none; }

.why-layer h2 { max-width: 12em; }
.why-intro { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 30em; }
.problems { list-style: none; margin: 40px 0 36px; padding: 0; max-width: 36em; border-top: 1px solid var(--line); }
.problems li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -.01em; }
.p-num { font-family: var(--sans); font-size: 13px; color: var(--accent-ink); font-style: italic; letter-spacing: .04em; }
.why-close { color: var(--ink-2); max-width: 34em; }

/* With the scroll scenes running, the native scrollbar is hidden; a thin progress line on the right edge replaces it.
   Without JS or with reduced motion, the normal scrollbar stays. */
.staged { scrollbar-width: none; }
.staged::-webkit-scrollbar { display: none; }
.progress { display: none; }
.staged .progress { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: 2px; z-index: 60; pointer-events: none; background: rgba(127, 140, 153, .18); }
.staged .progress i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }

/* Staged: the stage is tall, its content sticks, and the two layers share one screen. */
.staged .stage { height: 360vh; }
.staged .stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.staged .stage-layer { position: absolute; inset: 0; display: flex; align-items: center; }
.staged .hero-layer { padding: var(--nav-h) 0 0; }
.staged .why-layer { padding: var(--nav-h) 0 0; visibility: hidden; }
.staged .why-layer .wrap { width: 100%; }
.staged .problems { margin: 28px 0 26px; }
.staged .problems li { padding: 14px 0; }

/* Numbers ---------------------------------------------------------------------------------------- */
.numbers { padding: 128px 0 120px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.fact { padding: 0 28px 0 0; overflow: hidden; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--serif); font-size: clamp(40px, 3.8vw, 60px); line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; text-wrap: balance; }
.fact dd { margin: 18px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 16em; text-wrap: pretty; }

/* Dhaka ------------------------------------------------------------------------------------------ */
.citybreak { padding: 0; }
.citybreak-fig { margin: 0; position: relative; }
.citybreak-frame { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.citybreak-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.citybreak-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 10, 14, .75) 0%, rgba(7, 10, 14, 0) 45%); }
.citybreak-cap { position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 1; font-family: var(--serif); font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; color: #F1F4F6; }
.citybreak-cap em { color: #3CCBE0; }

/* Offer ------------------------------------------------------------------------------------------ */
.offer { background: var(--bg-soft); padding: 144px 0; transition: background-color .35s var(--ease); }
.offer-track { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offer-intro { grid-column: 1 / -1; margin-bottom: 40px; }
.offer-intro h2 { max-width: 10em; margin: 0; }
.offer-hint { display: none; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 32px 34px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; transition: background-color .35s var(--ease), border-color .25s var(--ease), transform .4s var(--ease); }
.card:hover { border-color: var(--rule); }
.card-num { position: absolute; top: 18px; left: 30px; font-family: var(--serif); font-style: italic; font-size: 88px; line-height: 1; letter-spacing: -.03em; color: var(--accent-ink); opacity: .9; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; text-wrap: pretty; }
.card-image { margin: 0; padding: 0; overflow: hidden; border: 0; }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-note { background: transparent; border-style: dashed; }
/* The money leads: the first card is inverted in both themes. */
.card-lead { background: #070A0E; border-color: #070A0E; --ink: #F1F4F6; --ink-2: #B3BCC5; --accent-ink: #3CCBE0; color: var(--ink); }
.card-note p { font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--ink); margin-bottom: 18px; }
.text-link { color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.text-link span { display: inline-block; transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* Wide screens with motion: one long row, pinned, travelling sideways. */
.hscroll .offer { padding: 0; }
.hscroll .offer-pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; overflow: clip; }
.hscroll .offer-track { display: flex; align-items: stretch; gap: 20px; max-width: none; width: max-content; margin: 0; padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); will-change: transform; }
.hscroll .offer-intro { flex: 0 0 440px; margin: 0 60px 0 0; display: flex; flex-direction: column; justify-content: center; }
.hscroll .offer-hint { display: block; margin-top: 36px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hscroll .offer-hint span { display: inline-block; margin-left: 6px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.hscroll .card { flex: 0 0 340px; height: min(52vh, 440px); min-height: 0; }
.hscroll .card-image { flex-basis: 520px; }
.hscroll .card-image img { left: -10%; width: 120%; max-width: none; }

/* Fit -------------------------------------------------------------------------------------------- */
.fit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; align-items: center; }
.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 36px 0 0; }
.fit-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 14px; background: var(--card); }
.fit-col h3 { margin-bottom: 18px; }
.checks, .crosses { list-style: none; margin: 0; padding: 0; }
.checks li, .crosses li { position: relative; padding: 0 0 14px 30px; color: var(--ink-2); font-size: 15.5px; }
.checks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; }
.checks li::before { background: var(--tick-bg); }
.checks li::after, .crosses li::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  -webkit-mask: var(--icon) center / 18px no-repeat; mask: var(--icon) center / 18px no-repeat;
}
.checks li::after { background: var(--accent-ink); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.2l2.5 2.5 5.1-5.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { box-shadow: inset 0 0 0 1px var(--rule); }
.crosses li::after { background: var(--ink-3); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6.5 6.5l5 5m0-5l-5 5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fit-image { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #070A0E; }
.fit-image img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }

/* Process ---------------------------------------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.process-head { position: sticky; top: calc(var(--nav-h) + 64px); }
.process-note { color: var(--ink-2); max-width: 26em; }
.steps-wrap { position: relative; padding-left: 72px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps-line { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
html:not(.staged) .steps-line i { transform: none; }
.step { position: relative; padding: 0 0 72px; }
.step:last-child { padding-bottom: 0; }
.step-num { position: absolute; left: -72px; top: -4px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--rule); transition: color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
html:not(.staged) .step-num, .step.lit .step-num { color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(4, 174, 199, .12); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 0; max-width: 30em; text-wrap: pretty; }

/* Documents -------------------------------------------------------------------------------------- */
.documents { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 144px 0; }
.documents-bg { position: absolute; inset: 0; }
.documents-bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 70% 50%; }
.documents-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 10, 14, .94) 0%, rgba(7, 10, 14, .8) 40%, rgba(7, 10, 14, .1) 80%); }
.documents-inner { position: relative; width: 100%; }
.documents-inner h2 { max-width: 9em; }
.documents-inner p:not(.label) { color: var(--ink-2); max-width: 28em; font-size: 18px; }

/* FAQ -------------------------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: baseline; }
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.25; color: var(--ink); transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 26px; padding-right: 48px; color: var(--ink-2); max-width: 38em; }

/* Apply ------------------------------------------------------------------------------------------ */
.apply { position: relative; overflow: hidden; padding: 176px 0 160px; }
.apply-bg { position: absolute; inset: 0; }
.apply-bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 60% 50%; opacity: .55; }
.apply-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 10, 14, .96) 0%, rgba(7, 10, 14, .82) 50%, rgba(7, 10, 14, .45) 100%); }
.apply-inner { position: relative; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 16px; margin-top: 48px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .2s var(--ease); }
.contact-card:hover { border-color: var(--rule); }
.contact-kind { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-value { font-size: 21px; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-value::after { content: "→"; display: inline-block; margin-left: .3em; transition: transform .2s var(--ease); color: var(--accent-ink); }
.contact-value:hover::after { transform: translateX(4px); }
.contact-hint { font-size: 14px; color: var(--ink-3); }
.copy { font: inherit; font-size: 14px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.copy:hover { color: var(--ink); }
html:not(.js) .copy { display: none; }

/* Footer ----------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 44px; font-size: 14px; color: var(--ink-3); }
.footer-mark { font-family: var(--serif); font-size: clamp(64px, 15vw, 232px); line-height: .9; letter-spacing: -.035em; color: var(--ink); margin: 0 0 56px; white-space: nowrap; }
.footer-mark em { color: var(--accent-ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer-note { max-width: 44em; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  body::after, .nav, .theme-toggle, .copy, .skip, .globe, .stage-vignette, .scroll-cue { display: none !important; }
  .dark-block { background: #fff !important; color: #000 !important; --ink: #000; --ink-2: #333; --ink-3: #555; }
  .staged .stage { height: auto; }
  .staged .stage-sticky { position: static; height: auto; overflow: visible; }
  .staged .stage-layer { position: static; visibility: visible !important; opacity: 1 !important; }
  .citybreak-frame { height: 50vh; clip-path: none !important; }
  [data-reveal], .fact dt, .fact dd, .step { opacity: 1 !important; transform: none !important; }
  .section, .apply, .documents, .numbers { padding: 40px 0; min-height: 0; }
}

/* Small laptop */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .links { gap: 22px; }
  .fit-grid, .process-grid { gap: 56px; }
}

/* Tablet and below: single column; the offer becomes a grid. */
@media (max-width: 900px) {
  .links { display: none; }
  .section, .offer { padding: 112px 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fit-grid, .process-grid { grid-template-columns: minmax(0, 1fr); }
  .fit-image { aspect-ratio: 16 / 10; }
  .process-head { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stage-vignette { background: linear-gradient(0deg, rgba(var(--veil), .6) 0%, rgba(var(--veil), .88) 50%, rgba(var(--veil), .95) 100%); }
  .globe-still { right: auto; left: 50%; top: auto; bottom: -18svh; width: 110vw; height: 110vw; transform: translateX(-50%); opacity: .6; }
  .staged .stage { height: 300vh; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --pad: 22px; --nav-h: 64px; }
  body { font-size: 16px; }
  .logo { height: 17px; }
  .nav-right { gap: 8px; }
  .eyebrow { font-size: 12px; letter-spacing: .1em; }
  .hero-layer { align-items: flex-start; padding-top: calc(var(--nav-h) + 48px); }
  .staged .hero-layer, .staged .why-layer { align-items: flex-start; padding-top: calc(var(--nav-h) + 36px); }
  .cta-row .btn { width: 100%; }
  .problems li { grid-template-columns: 36px 1fr; }
  .staged .why-intro { display: none; }
  .numbers { padding: 88px 0; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .fact, .fact + .fact { padding: 0 0 0 0; border-left: 0; }
  .fact + .fact { padding-top: 36px; border-top: 1px solid var(--line); }
  .section, .offer { padding: 88px 0; }
  .offer-track { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 250px; padding: 28px 26px 30px; }
  .card-num { font-size: 64px; left: 26px; }
  .card-image { min-height: 240px; }
  .steps-wrap { padding-left: 60px; }
  .step-num { left: -60px; width: 40px; height: 40px; }
  .steps-line { left: 19px; }
  .step { padding-bottom: 52px; }
  .documents { padding: 96px 0; }
  .documents-bg::after { background: linear-gradient(0deg, rgba(7, 10, 14, .95) 30%, rgba(7, 10, 14, .55) 100%); }
  .apply { padding: 112px 0 96px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-value { font-size: 18px; }
  .footer-inner { flex-direction: column; }
}
