/* Nur Ifran Arpon — portfolio. Two looks: "black" (default, quiet greyscale) and "navy" (the Spaceadom blues).
   Each project chapter repaints the page in that product's own colours while it is on screen (see site.js). */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff") format("woff"); font-weight: 300 700; font-display: swap; }

:root, :root[data-theme="black"] {
  --bg: #0e0e0f;
  --bg-2: #161617;
  --bg-3: #1d1d1f;
  --line: #2c2c2e;
  --ink: #f2f2f4;
  --ink-2: #a8a8ad;
  --ink-3: #7c7c82;
  --accent: #9db0ff;
  --cta-bg: #f2f2f4;
  --cta-ink: #0e0e0f;
  --font-display: "Inter", system-ui, sans-serif;
  --display-weight: 560;
  --display-track: -0.045em;
  --chapter-font: var(--font-display);
  color-scheme: dark;
}
:root[data-theme="navy"] {
  --bg: #070b17;
  --bg-2: #0d1326;
  --bg-3: #131b33;
  --line: #222b48;
  --ink: #eef1fb;
  --ink-2: #a3aac4;
  --ink-3: #8189a8;
  --accent: #7d97ff;
  --cta-bg: #7d97ff;
  --cta-ink: #070b17;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cta-bg); color: var(--cta-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:root { --gutter: clamp(16px, 4vw, 48px); --header-h: 76px; }

/* ---------- buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 18px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px; line-height: 1.2; color: var(--ink-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill.live .dot { background: #4cc38a; }
.pill.test .dot { background: #f0b44c; }
.pill.build .dot { background: #f0b44c; }

.eyebrow { display: block; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 20px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, border-color .35s, transform .45s cubic-bezier(.2,.7,.2,1);
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.header.hidden { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; gap: 24px; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.wordmark span { color: var(--ink-3); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 17px; padding: 10px 14px; border-radius: 999px; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }

.theme-switch {
  display: inline-flex; align-items: center; padding: 4px; gap: 2px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer;
}
.theme-switch span { padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: background-color .3s, color .3s; }
:root[data-theme="black"] .theme-switch [data-v="black"],
:root[data-theme="navy"] .theme-switch [data-v="navy"] { background: var(--ink); color: var(--bg); }

.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn i { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .3s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .3s; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-6px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet a:not(.btn) { font-family: var(--font-display); font-size: 40px; font-weight: var(--display-weight); letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 24px; }
.sheet .theme-switch { align-self: flex-start; margin-top: 16px; }

@media (max-width: 900px) {
  .nav, .header .theme-switch, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 185vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding-top: var(--header-h); }
.hero-copy { position: relative; z-index: 3; width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(60px, min(11vw, 20vh), 210px); line-height: .9; letter-spacing: var(--display-track);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .soft { color: var(--ink-3); }
.hero-lede { max-width: 560px; margin: 32px 0 0; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-hint { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 15px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ink-3), transparent); display: block; }

/* the revolving ring of real project pictures */
.orbit { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; perspective: 1000px; perspective-origin: 72% 50%; pointer-events: none; }
.orbit-cam { position: relative; transform-style: preserve-3d; width: 0; height: 0; }
.ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.card3d {
  position: absolute; left: 0; top: 0; width: var(--cw, 340px); aspect-ratio: 16 / 10; margin: calc(var(--cw, 340px) * -0.3125) 0 0 calc(var(--cw, 340px) * -0.5);
  border-radius: 18px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: pointer; pointer-events: auto;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  padding: 0; display: block; transition: border-color .3s;
}
.card3d:hover { border-color: var(--ink-3); }
.card3d img { width: 100%; height: 100%; object-fit: cover; }
.card3d .tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(10,10,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.card3d .tag img { width: 24px; height: 24px; border-radius: 6px; }
.orbit-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 62%), linear-gradient(to top, var(--bg) 0%, transparent 18%); }

@media (max-width: 900px) {
  .orbit { perspective-origin: 50% 30%; }
  .hero { height: 160vh; }
  .hero-pin { place-items: end center; padding-bottom: 40px; }
  .orbit { align-items: start; padding-top: calc(var(--header-h) + 12vh); }
  .orbit-shade { background: linear-gradient(to top, var(--bg) 52%, transparent 70%); }
  .hero-kicker { margin-bottom: 20px; }
}
@media (max-width: 520px) {
  .hero-kicker { display: none; }
  .hero-lede { margin-top: 22px; }
  .hero-actions { margin-top: 26px; }
  .hero-hint { display: none; }
}

/* ---------- statement (words light up as you scroll) ---------- */
.statement { padding: clamp(60px, 10vh, 140px) 0 clamp(120px, 18vh, 220px); }
.statement p { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.6vw, 76px); line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; }
.statement .w { color: var(--ink); transition: color .2s; }
.js .statement .w { color: var(--line); }
.js .statement .w.on { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(64px, 10vh, 120px); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 4.2vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.fact span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(48px, 7vw, 120px); line-height: .95; letter-spacing: var(--display-track); }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 19px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- work chapters ---------- */
.work-intro { padding: clamp(80px, 14vh, 160px) 0 0; }
.chapter { position: relative; height: 260vh; }
.chapter-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: var(--header-h); }
.chapter-copy { position: relative; z-index: 2; }
.chapter-num { font-size: 15px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.chapter-num img { width: 36px; height: 36px; border-radius: 9px; }
.chapter h3 { margin: 0; font-family: var(--chapter-font); font-weight: var(--chapter-weight, 600); font-size: clamp(44px, min(5.6vw, 10vh), 96px); line-height: .95; letter-spacing: var(--chapter-track, -0.04em); }
.chapter h3 em { font-style: italic; font-weight: 400; }
.chapter .tagline { margin: 18px 0 0; font-size: clamp(20px, 1.6vw, 24px); color: var(--ink); max-width: 30ch; line-height: 1.4; }
.chapter ul { list-style: none; margin: clamp(16px, 2.6vh, 26px) 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.chapter li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.chapter li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chapter .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 2.6vh, 26px); }
.chapter .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 2.8vh, 28px); }
@media (min-width: 901px) and (max-height: 820px) { .chapter li { font-size: 16px; } .chapter .tagline { font-size: 19px; margin-top: 12px; } .chapter-num { margin-bottom: 12px; } }
.chapter .btn-primary { background: var(--accent); color: var(--bg); }

.media { position: relative; z-index: 1; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); transform-origin: 50% 50%; box-shadow: 0 50px 120px -50px rgba(0,0,0,.75); }
.media.square { aspect-ratio: 1 / 1; width: min(100%, 72vh); margin-inline: auto; }
.media > img, .media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .slide { opacity: 0; }
.media .slide:first-child { opacity: 1; }
.media .caption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(8,8,10,.7); color: #fff; font-size: 15px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.phones { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 32px); }
.phone { width: min(270px, 38vw); aspect-ratio: 540 / 1170; border-radius: 34px; overflow: hidden; border: 6px solid #1a1a1c; background: #000; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(2) { transform: translateY(48px); }

@media (max-width: 900px) {
  .chapter { height: auto; }
  .chapter-pin { position: relative; height: auto; overflow: visible; padding: 72px 0; display: block; }
  .chapter-grid { grid-template-columns: 1fr; padding-top: 0; gap: 36px; }
  .chapter-copy { order: 2; }
  .media.square { width: 100%; }
  .phone { width: min(200px, 42vw); border-radius: 26px; border-width: 5px; }
  .phone:nth-child(2) { transform: translateY(28px); }
}

/* ---------- timeline ---------- */
.timeline { position: relative; }
.tl-pin { position: relative; }
.tl-track { display: flex; gap: 0; }
.tl-item { flex: 0 0 auto; width: clamp(300px, 28vw, 420px); padding: 32px 32px 0 0; border-top: 1px solid var(--line); position: relative; }
.tl-item::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
.tl-item.big::before { background: var(--accent); border-color: var(--accent); }
.tl-date { font-size: 15px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.tl-item h4 { margin: 10px 0 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.tl-item p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 34ch; }
.tl-item a { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; text-decoration: none; }
.tl-item a:hover { text-decoration: underline; }
.tl-progress { height: 2px; background: var(--accent); width: 0; margin-top: -1px; position: relative; z-index: 1; }
.timeline.horizontal { height: var(--tl-h, 300vh); }
.timeline.horizontal .tl-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.timeline.horizontal .tl-track { will-change: transform; padding-left: max(var(--gutter), (100vw - 1320px) / 2); }
.timeline:not(.horizontal) .tl-track { flex-direction: column; gap: 0; padding-left: 6px; }
#timeline:not(.horizontal) .tl-track { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.timeline:not(.horizontal) .tl-item { width: auto; padding: 0 0 40px 32px; border-top: 0; border-left: 1px solid var(--line); }
.timeline:not(.horizontal) .tl-item::before { top: 4px; left: -6px; }

/* ---------- habits / services ---------- */
.grid-lines { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.grid-lines > * { padding: 36px 28px 40px 0; }
.grid-lines > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
.grid-lines .n { font-size: 15px; color: var(--ink-3); letter-spacing: .1em; }
.grid-lines h4 { margin: 18px 0 12px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.grid-lines p { margin: 0; color: var(--ink-2); font-size: 17px; }
.grid-lines a.proof { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; text-decoration: none; }
.grid-lines a.proof:hover { text-decoration: underline; }
@media (max-width: 1100px) { .grid-lines { --cols: 2 !important; } .grid-lines > * { border-bottom: 1px solid var(--line); } .grid-lines > *:nth-child(2n+1) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) { .grid-lines { --cols: 1 !important; } .grid-lines > * { padding: 28px 0 !important; border-left: 0 !important; } }

.block { padding: clamp(100px, 16vh, 200px) 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--bg-3); }
.reveal-photo { position: relative; perspective: 1200px; }
.reveal-photo.tiled { overflow: visible; background: transparent; border-color: transparent; }
.reveal-photo.tiled > img { opacity: 0; border-radius: 22px; }
.flip-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); gap: 0; transform-style: preserve-3d; border-radius: 22px; }
.flip { position: relative; transform-style: preserve-3d; will-change: transform; }
.flip i { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-repeat: no-repeat; }
.flip .f { filter: saturate(1.1); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }
.flip .b { transform: rotateY(180deg); }
.flip.tl i { border-top-left-radius: 22px; } .flip.tr i { border-top-right-radius: 22px; } .flip.bl i { border-bottom-left-radius: 22px; } .flip.br i { border-bottom-right-radius: 22px; }
.facts-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-text .about-card { margin-top: 12px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--bg-2); }
.about-card dl { margin: 0; display: grid; gap: 18px; }
.about-card dt { font-size: 14px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.about-card dd { margin: 4px 0 0; font-size: 18px; }
.about-text p { margin: 0 0 22px; font-size: clamp(19px, 1.45vw, 22px); color: var(--ink-2); max-width: 60ch; }
.about-text p:first-child { color: var(--ink); }
.about-side { position: sticky; top: calc(var(--header-h) + 24px); }
.sec-title { margin: 0 0 32px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(48px, 7vw, 120px); line-height: .95; letter-spacing: var(--display-track); }
.proof-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.proof-link:hover { text-decoration: underline; }
.contact-alt a { color: var(--ink-2); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-side { position: static; max-width: 460px; } }
@media (max-width: 520px) { .facts-dl { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding: clamp(120px, 20vh, 240px) 0 clamp(80px, 12vh, 140px); text-align: center; }
.contact h2 { margin: 0 auto; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(56px, 10vw, 180px); line-height: .92; letter-spacing: var(--display-track); max-width: 12ch; }
.contact p { margin: 28px auto 0; max-width: 560px; color: var(--ink-2); font-size: 20px; }
.contact .hero-actions { justify-content: center; }
.btn-whatsapp { background: var(--cta-bg); color: var(--cta-ink); min-height: 64px; padding: 0 34px; font-size: 20px; }
.contact-alt { margin-top: 28px; font-size: 17px; color: var(--ink-3); }
.contact-alt button { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 17px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-2); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h5 { margin: 0 0 14px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .big { font-family: var(--font-display); font-size: 28px; font-weight: var(--display-weight); color: var(--ink); letter-spacing: -0.02em; margin: 0 0 10px; }
.footer .kofi { margin-top: 18px; }
.footer .kofi a { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { padding: calc(var(--header-h) + clamp(60px, 12vh, 140px)) 0 clamp(48px, 8vh, 96px); }
.page-head h1 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(56px, 9vw, 160px); line-height: .92; letter-spacing: var(--display-track); }
.page-head p { margin: 28px 0 0; max-width: 620px; color: var(--ink-2); font-size: clamp(19px, 1.5vw, 22px); }
.prose { max-width: 720px; }
.prose h2 { margin: 64px 0 16px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.prose p, .prose li { color: var(--ink-2); font-size: 19px; }
.prose a { color: var(--accent); }

/* ---------- reveal + reduced motion ---------- */
.js .rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: 100svh; }
  .chapter { height: auto; }
  .chapter-pin { position: relative; height: auto; padding: 96px 0; }
  .js .statement .w { color: var(--ink); }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- SpaceZ only: process steps, brief builder, questions ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: s; }
.steps > div { padding: 32px 24px 36px 0; }
.steps > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.steps b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: -0.02em; margin: 14px 0 10px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 1100px) { .steps { grid-template-columns: 1fr; } .steps > div { padding: 24px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); } }

.brief { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.brief-form { border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); background: var(--bg-2); }
.brief fieldset { border: 0; margin: 0 0 30px; padding: 0; }
.brief legend { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px; padding: 0; }
.brief legend small { font-family: "Inter", sans-serif; font-weight: 400; font-size: 16px; color: var(--ink-3); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 17px; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:hover + span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.brief label.field { display: block; font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }
.brief textarea, .brief input[type="text"] { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.brief textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.brief textarea:focus, .brief input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.brief .err { color: #ff8a80; font-size: 16px; margin: 10px 0 0; min-height: 1em; }
.brief .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief-preview { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.brief-preview h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.brief-preview pre { margin: 0; white-space: pre-wrap; font: 17px/1.6 "Inter", sans-serif; color: var(--ink); }
.brief-preview ul { margin: 22px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.brief-preview li + li { margin-top: 6px; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } .brief-preview { position: static; } .brief .row2 { grid-template-columns: 1fr; } }

.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 300; color: var(--ink-3); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--ink-2); font-size: 18px; max-width: 64ch; }
.also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.also a { text-decoration: none; }
.hero-long h1 { font-size: clamp(52px, min(7.2vw, 14vh), 150px); }
.hero-long .orbit-shade { background: linear-gradient(90deg, var(--bg) 26%, color-mix(in srgb, var(--bg) 78%, transparent) 50%, transparent 74%), linear-gradient(to top, var(--bg) 0%, transparent 18%); }
@media (max-width: 900px) { .hero-long h1 { font-size: clamp(46px, 11vw, 96px); } .hero-long .orbit-shade { background: linear-gradient(to top, var(--bg) 52%, transparent 70%); } }
