/* Presencia — public landing page.
   Visual system follows the app (web/src/styles/tokens.css): midnight observatory,
   champagne gold for the selected moment, cyan and violet light used sparingly.
   Everything is self-hosted; this page makes no external requests. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/fraunces-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/fraunces-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  --space: #040711;
  --space-2: #070c1b;
  --glass: rgba(11, 18, 35, 0.66);
  --glass-solid: #0b1223;
  --glass-raised: #101a31;
  --edge: rgba(150, 178, 222, 0.14);
  --edge-strong: rgba(150, 178, 222, 0.26);
  --highlight: rgba(255, 255, 255, 0.045);

  --text: #eef3fc;
  --text-2: #afbed2;
  --text-3: #8492aa;

  --cyan: #64e8ff;
  --ice: #9fe9f5;
  --violet: #a88bff;
  --gold: #ebc88b;
  --gold-ink: #1b1408;
  --amber: #f0a868;
  --mint: #72f5cf;

  --display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: "Figtree", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  background: var(--space);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--space);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* the room behind everything below the hero (decorative) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(38, 72, 140, 0.26), transparent 70%),
    radial-gradient(700px 480px at 92% 38%, rgba(120, 90, 220, 0.09), transparent 72%),
    radial-gradient(900px 420px at 6% 88%, rgba(40, 120, 150, 0.08), transparent 70%),
    linear-gradient(180deg, #050915 0%, var(--space) 46%, #03050c 100%);
}

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { font-weight: 600; color: var(--text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.faint { color: var(--text-3); }
.label { font: 500 0.72rem/1.2 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f5dfb2 0%, #e6bf80 100%);
  box-shadow: 0 0 0 1px rgba(235, 200, 139, 0.55), 0 12px 40px -12px rgba(235, 200, 139, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(235, 200, 139, 0.75), 0 18px 60px -12px rgba(235, 200, 139, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.035); border-color: var(--edge-strong); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: rgba(150, 178, 222, 0.4); }

.btn-outline { color: var(--gold); border-color: rgba(235, 200, 139, 0.45); background: rgba(235, 200, 139, 0.05); }
.btn-outline:hover { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
}
.site-header.is-scrolled {
  background: rgba(4, 7, 17, 0.74);
  border-bottom-color: var(--edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 1rem/1 var(--display); letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.wordmark .mark { flex: none; }

.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.01em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { flex: none; gap: 0.3em; }

@media (max-width: 880px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .wordmark { letter-spacing: 0.28em; font-size: 0.92rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 50% 34%, rgba(46, 78, 160, 0.30), transparent 72%),
    radial-gradient(40% 40% at 82% 22%, rgba(130, 96, 230, 0.16), transparent 70%),
    radial-gradient(38% 36% at 14% 30%, rgba(40, 140, 170, 0.12), transparent 70%),
    linear-gradient(180deg, #03060f 0%, #050a1a 60%, #040711 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 22%;
  z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 17, 0) 0%, rgba(4, 7, 17, 0.7) 60%, var(--space) 100%);
}

.sky, .sky-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky-fallback { display: block; }
.js .sky-fallback { display: none; }

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px;
  padding: calc(var(--header-h) + 36px) var(--gutter) 244px;
  text-align: center;
}
.hero-inner::before {
  /* quiet text protection behind the headline */
  content: ""; position: absolute; inset: 12% -4% 26% -4%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(3, 6, 15, 0.55), transparent 75%);
  pointer-events: none;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(235, 200, 139, 0.28); border-radius: 999px;
  background: rgba(8, 12, 26, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.86rem; color: var(--text-2);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(240, 168, 104, 0.6); animation: breathe 3.6s ease-in-out infinite; }

.eyebrow { margin-top: 30px; font: 400 0.8rem/1 var(--mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ice); opacity: 0.9; }

.hero h1 {
  margin-top: 20px;
  font: 300 clamp(2.9rem, 7.4vw, 6.3rem)/1.0 var(--display);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(3, 6, 15, 0.8);
}
.hero h1 em {
  font-style: italic; font-weight: 300;
  color: var(--gold);
  background: linear-gradient(100deg, #f7e2b8 10%, #ebc88b 45%, #d9a765 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.lede {
  max-width: 38em; margin: 30px auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.6;
  color: var(--text-2);
  text-shadow: 0 1px 20px rgba(3, 6, 15, 0.9);
}

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-3); text-decoration: none;
  font: 400 0.68rem/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(180deg, rgba(235, 200, 139, 0), rgba(235, 200, 139, 0.8)); transform-origin: top; animation: drip 2.8s var(--ease) infinite; }
.scroll-cue:hover { color: var(--text); }

@media (max-width: 719px) {
  .hero-inner { padding-bottom: 168px; }
}

/* arrival */
.rise { animation: rise 1.5s var(--ease) both; }
.d1 { animation-delay: 0.25s; } .d2 { animation-delay: 0.4s; } .d3 { animation-delay: 0.55s; }
.d4 { animation-delay: 0.85s; } .d5 { animation-delay: 1.05s; } .d6 { animation-delay: 1.25s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 168, 104, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(240, 168, 104, 0); } }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(96px, 12vw, 168px) var(--gutter); }
.section + .section { padding-top: clamp(40px, 6vw, 96px); }

.section-head { max-width: 780px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 0.76rem/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, rgba(235, 200, 139, 0), var(--gold)); }
.section-head h2 {
  margin-top: 22px;
  font: 300 clamp(2.1rem, 4.6vw, 3.7rem)/1.06 var(--display);
  letter-spacing: -0.022em;
}
.section-head h2 .soft { color: var(--text-2); }
.intro { margin-top: 22px; max-width: 40em; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--text-2); }

/* reveal on scroll (only when JS and motion are available) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Experiences ---------- */

.experiences { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.exp {
  --tint: var(--text);
  --tint-soft: rgba(238, 243, 252, 0.10);
  position: relative; overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 24px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.66), rgba(8, 13, 27, 0.66));
  box-shadow: inset 0 1px 0 var(--highlight), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.exp::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(420px 260px at 0% 0%, var(--tint-soft), transparent 70%);
  opacity: 0.9; transition: opacity 0.6s var(--ease);
}
.exp::after {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--tint), transparent); opacity: 0.35;
}
.exp:hover { border-color: var(--edge-strong); }
.exp:hover::before { opacity: 1.4; }
.exp > * { position: relative; }

.exp-ice { --tint: #eef3fc; --tint-soft: rgba(238, 243, 252, 0.09); }
.exp-cyan { --tint: var(--cyan); --tint-soft: rgba(100, 232, 255, 0.11); }
.exp-gold { --tint: var(--gold); --tint-soft: rgba(235, 200, 139, 0.12); }
.exp-violet { --tint: var(--violet); --tint-soft: rgba(168, 139, 255, 0.13); }

.exp-top { display: flex; align-items: center; justify-content: space-between; }
.exp-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--tint);
  border: 1px solid var(--edge-strong);
  background: radial-gradient(circle at 50% 35%, var(--tint-soft), rgba(4, 7, 17, 0.4) 72%);
  box-shadow: 0 0 30px -6px var(--tint-soft);
}
.exp-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.exp-num { font: 400 0.8rem/1 var(--mono); color: var(--text-3); letter-spacing: 0.1em; }

.exp h3 { margin-top: 26px; font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--display); letter-spacing: -0.015em; }
.exp h3 span { color: var(--text-2); font-weight: 300; }
.exp-line { margin-top: 10px; font: 300 italic 1.12rem/1.45 var(--display); color: var(--tint); }
.exp p:not(.exp-line):not(.exp-status) { margin-top: 16px; color: var(--text-2); }
.exp-status { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--edge); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-3); }
.exp-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(114, 245, 207, 0.7); flex: none; }
.exp-status a { color: var(--gold); }

@media (max-width: 760px) {
  .experiences { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
}

/* journey */
.journey { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--edge); }
.journey-steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center; }
.journey-steps li {
  display: inline-flex; align-items: center; gap: 8px;
  font: 300 1.12rem/1.3 var(--display); color: var(--text);
}
.journey-steps li:not(:last-child)::after { content: ""; width: 22px; height: 1px; margin-left: 2px; background: linear-gradient(90deg, rgba(235, 200, 139, 0.2), rgba(235, 200, 139, 0.7)); }
.journey-steps li:last-child { color: var(--gold); font-style: italic; }
.journey-note { margin-top: 20px; max-width: 46em; color: var(--text-2); }

/* ---------- Your words ---------- */

.words-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.words-shot { position: sticky; top: calc(var(--header-h) + 40px); margin-top: 8px; }

.principles { list-style: none; margin: 52px 0 0; padding: 0; display: grid; gap: 34px; }
.principles > li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.p-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 300 italic 1rem/1 var(--display); color: var(--gold);
  border: 1px solid rgba(235, 200, 139, 0.35);
  background: radial-gradient(circle at 50% 30%, rgba(235, 200, 139, 0.12), transparent 70%);
}
.principles h3 { font: 400 1.4rem/1.25 var(--display); }
.principles p { margin-top: 8px; color: var(--text-2); }

.origins { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.origins li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem; color: var(--text-2);
}

@media (max-width: 960px) {
  .words-grid { grid-template-columns: minmax(0, 1fr); }
  .words-shot { position: relative; top: 0; }
}

/* ---------- Screens ---------- */

.shot-figure { margin: 0; }
.shot {
  position: relative; display: block; overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--edge-strong);
  background: var(--glass-solid);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.018), 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(80, 120, 220, 0.35);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.5s;
  cursor: zoom-in;
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
}
.shot img { width: 100%; }
.shot:hover { transform: translateY(-3px); border-color: rgba(235, 200, 139, 0.45); box-shadow: 0 0 0 6px rgba(235, 200, 139, 0.04), 0 50px 110px -40px rgba(0, 0, 0, 0.95), 0 0 90px -30px rgba(235, 200, 139, 0.3); }
.shot:focus-visible { outline-offset: 5px; border-radius: 16px; }
.shot-phone { border-radius: 30px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 0 0 7px var(--edge), 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 70px -30px rgba(80, 120, 220, 0.35); }
.shot-phone:focus-visible { border-radius: 30px; }

.shot-figure figcaption { margin-top: 16px; font-size: 0.92rem; color: var(--text-2); max-width: 60em; }
.synthetic {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: 6px; padding: 2px 10px 2px 8px;
  border: 1px dashed rgba(240, 168, 104, 0.55); border-radius: 999px;
  font: 500 0.74rem/1.6 var(--body); letter-spacing: 0.02em; color: var(--amber);
  white-space: nowrap; vertical-align: 1px;
}
.synthetic::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--amber); transform: rotate(45deg); }

.gallery { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.g-wide { grid-column: 1 / -1; }

.g-phones {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; border: 1px solid var(--edge);
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(100, 232, 255, 0.07), transparent 70%),
    radial-gradient(50% 70% at 20% 90%, rgba(235, 200, 139, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(16, 26, 49, 0.5), rgba(8, 13, 27, 0.5));
}
.g-phones-copy h3 { margin-top: 18px; font: 300 clamp(1.7rem, 2.8vw, 2.4rem)/1.1 var(--display); letter-spacing: -0.015em; }
.g-phones-copy p:last-child { margin-top: 14px; color: var(--text-2); }
.phone-figure { max-width: 300px; justify-self: center; width: 100%; }
.phone-figure figcaption { font-size: 0.86rem; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .g-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-phones-copy { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .g-phones { padding: 24px 18px; gap: 28px 14px; border-radius: 24px; }
  .phone-figure .synthetic { white-space: normal; font-size: 0.7rem; padding: 2px 8px 2px 7px; gap: 6px; }
  .shot-phone { border-radius: 22px; }
}

/* ---------- Today ---------- */

.ladder-wrap { margin-top: 64px; overflow-x: auto; padding-bottom: 6px; }
.ladder {
  list-style: none; margin: 0; padding: 0 0 38px;
  display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr));
  position: relative; min-width: 700px;
}
.ladder::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px;
  background: linear-gradient(90deg, rgba(100, 232, 255, 0.5) 0%, rgba(235, 200, 139, 0.8) 42%, rgba(150, 178, 222, 0.18) 50%, rgba(150, 178, 222, 0.12) 100%);
}
.ladder li { position: relative; padding-top: 36px; font-size: 0.92rem; color: var(--text-3); }
.ladder .rung {
  position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--edge-strong); background: var(--space);
}
.ladder .is-past { color: var(--text-2); }
.ladder .is-past .rung { background: rgba(100, 232, 255, 0.25); border-color: rgba(100, 232, 255, 0.6); }
.ladder .is-here { color: var(--text); font-weight: 500; }
.ladder .is-here .rung {
  width: 23px; height: 23px; top: 0; left: -4px;
  border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 35%, rgba(235, 200, 139, 0.15) 40% 100%);
  box-shadow: 0 0 24px rgba(235, 200, 139, 0.6);
}
.here-tag {
  position: absolute; left: 0; top: 64px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  font: 400 0.76rem/1.5 var(--mono); color: var(--gold-ink); background: var(--gold);
}

.status-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.status-col {
  padding: clamp(26px, 3vw, 40px);
  border-radius: 24px; border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.6), rgba(8, 13, 27, 0.6));
}
.col-now { border-color: rgba(114, 245, 207, 0.22); background: radial-gradient(80% 60% at 0% 0%, rgba(114, 245, 207, 0.07), transparent 70%), linear-gradient(180deg, rgba(16, 26, 49, 0.66), rgba(8, 13, 27, 0.66)); }
.col-next { border-style: dashed; }
.status-col h3 { font: 400 1.6rem/1.2 var(--display); }
.col-sub { margin-top: 6px; font-size: 0.9rem; color: var(--text-3); }
.status-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.status-list li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; }
.status-list strong { font-weight: 500; }
.status-list p { margin-top: 4px; font-size: 0.95rem; color: var(--text-2); }
.slice {
  justify-self: start; margin-top: 2px;
  padding: 3px 9px; border-radius: 999px;
  font: 400 0.72rem/1.5 var(--mono); white-space: nowrap;
  color: var(--mint); border: 1px solid rgba(114, 245, 207, 0.4); background: rgba(114, 245, 207, 0.06);
}
.slice-next { color: var(--text-3); border: 1px dashed var(--edge-strong); background: transparent; }
.col-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 0.9rem; color: var(--text-3); }

@media (max-width: 860px) {
  .status-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ladder-wrap { overflow: visible; }
  .ladder { grid-template-columns: 1fr; min-width: 0; padding: 0; gap: 0; }
  .ladder::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(100, 232, 255, 0.5) 0%, rgba(235, 200, 139, 0.8) 45%, rgba(150, 178, 222, 0.18) 55%); }
  .ladder li { padding: 6px 0 6px 38px; min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  .ladder .rung { top: 12px; }
  .ladder .is-here .rung { top: 8px; left: -4px; }
  .here-tag { position: static; }
  .status-list li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Closing ---------- */

.section-cta { padding-bottom: clamp(96px, 12vw, 160px); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 88px);
  border-radius: 32px;
  border: 1px solid rgba(235, 200, 139, 0.28);
  background:
    radial-gradient(70% 90% at 85% 50%, rgba(235, 200, 139, 0.12), transparent 70%),
    radial-gradient(60% 80% at 10% 100%, rgba(100, 232, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(16, 26, 49, 0.78), rgba(6, 10, 22, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 120px -50px rgba(0, 0, 0, 0.9);
}
.cta-orbit {
  position: absolute; z-index: -1; right: -6%; top: 50%;
  width: min(560px, 70%); height: auto; transform: translateY(-50%);
  opacity: 0.8;
}
.orbit-ring { stroke-opacity: 0.55; stroke-dasharray: 943; stroke-dashoffset: 0; }
.orbit-arc { stroke-opacity: 0.7; stroke-dasharray: 420; stroke-dashoffset: 0; }
.reveal-on .cta-panel .orbit-ring { stroke-dashoffset: 943; transition: stroke-dashoffset 2.6s var(--ease) 0.3s; }
.reveal-on .cta-panel .orbit-arc { stroke-dashoffset: 420; transition: stroke-dashoffset 2s var(--ease) 1.2s; }
.reveal-on .cta-panel.is-in .orbit-ring, .reveal-on .cta-panel.is-in .orbit-arc { stroke-dashoffset: 0; }

.cta-copy { max-width: 620px; }
.cta-copy h2 { margin-top: 22px; font: 300 clamp(2.3rem, 5vw, 4rem)/1.04 var(--display); letter-spacing: -0.025em; }
.cta-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cta-points li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--edge-strong); background: rgba(4, 7, 17, 0.4);
  font-size: 0.9rem; color: var(--text);
}
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-domain { color: var(--text-3); }

@media (max-width: 760px) {
  .cta-orbit { right: -30%; top: 12%; width: 110%; opacity: 0.35; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 56px var(--gutter) max(56px, env(safe-area-inset-bottom)); border-top: 1px solid var(--edge); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); }
.footer-brand p.mono { margin-top: 6px; }
.footer-notes { display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-2); align-content: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1480px, 94vw); max-width: none; max-height: 94vh;
  padding: 0; border: 1px solid var(--edge-strong); border-radius: 18px;
  background: var(--glass-solid); color: var(--text);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(2, 4, 10, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in 0.45s var(--ease) both; }
.lightbox.is-phone { width: min(520px, 94vw); }
.lb-img { width: 100%; height: auto; }
.lightbox.is-phone .lb-img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.lb-cap { padding: 14px 20px 18px; font-size: 0.92rem; color: var(--text-2); }
.lb-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text); background: rgba(4, 7, 17, 0.8); border: 1px solid var(--edge-strong);
  cursor: pointer;
}
.lb-close:hover { border-color: var(--gold); color: var(--gold); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */

.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.lost-mark { display: block; margin: 0 auto 28px; width: 120px; height: 120px; filter: drop-shadow(0 0 18px rgba(235, 200, 139, 0.35)); }
.lost h1 { margin-top: 32px; font: 300 clamp(2.4rem, 6vw, 4.4rem)/1.05 var(--display); letter-spacing: -0.025em; }
.lost p { margin: 18px auto 0; max-width: 32em; color: var(--text-2); }
.lost .hero-actions { margin-top: 34px; }
