/* site.css — El Arquitecto marketing site.
   Design language lifted from the app: navy ink, gold, parchment, blueprint grid,
   Anton jersey display, Special Elite typewriter labels, JetBrains Mono telemetry,
   Oswald body. Two surfaces: navy (.s-navy) and parchment (.s-paper). */

:root {
  --paper: #e7dcbe;
  --paper-2: #ddcfa9;
  --paper-3: #d3c39a;
  --ink: #182039;
  --ink-soft: rgba(24, 32, 57, 0.70);
  --ink-faint: rgba(24, 32, 57, 0.16);
  --navy: #0b1430;
  --navy-2: #10172e;
  --cream: #efe2bd;
  --cream-soft: rgba(239, 226, 189, 0.6);
  --cream-faint: rgba(239, 226, 189, 0.14);
  --gold: #bd8f3c;
  --gold-2: #d9ac57;
  --gold-deep: #7a5a1f;
  --race: #b23a2c;
  --maxw: 1240px;

  --f-disp: 'Anton', sans-serif;
  --f-type: 'Special Elite', monospace;
  --f-mono: 'JetBrains Mono', monospace;
  --f-body: 'Oswald', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared atoms ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.kicker {
  font-family: var(--f-type);
  font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0;
}
.s-navy .kicker { color: var(--gold-2); }

.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0;
}
.s-navy .eyebrow { color: var(--cream-soft); }

h1, h2, h3 { font-family: var(--f-disp); font-weight: 400; letter-spacing: 0.01em; margin: 0; }
h2.display { font-size: clamp(34px, 5.4vw, 66px); line-height: 0.96; }
h2.display em { font-style: normal; color: var(--gold-deep); }
.s-navy h2.display em { color: var(--gold-2); }

.lede { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-soft); font-weight: 300; max-width: 52ch; }
.s-navy .lede { color: var(--cream-soft); }

/* drafting stamp button */
.stamp-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-disp); font-size: 17px; letter-spacing: 0.05em;
  color: var(--navy); background: var(--gold-2);
  background-image: linear-gradient(160deg, #e6c478 0%, #d9ac57 46%, #c89a44 100%);
  padding: 15px 26px 13px; border: none; border-radius: 4px; cursor: pointer;
  box-shadow: 0 14px 30px rgba(189, 143, 60, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(122,90,31,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.stamp-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(189, 143, 60, 0.44),
  inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(122,90,31,0.5), inset 0 0 0 1px rgba(255,255,255,0.25); }
.stamp-btn:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(189,143,60,0.3),
  inset 0 2px 5px rgba(122,90,31,0.55), inset 0 0 0 1px rgba(255,255,255,0.12); }
.stamp-btn .sm { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; opacity: 0.7; font-weight: 700; }
.stamp-btn .glyph { width: 20px; height: 20px; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 13px 20px; border-radius: 4px; cursor: pointer;
  color: var(--cream); background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--cream-faint);
  transition: box-shadow 0.16s, color 0.16s;
}
.ghost-btn:hover { box-shadow: inset 0 0 0 1.5px var(--gold-2); color: var(--gold-2); }

/* ---------- surfaces ---------- */
.s-navy { background: var(--navy); color: var(--cream); position: relative; }
.s-navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(159, 176, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 176, 224, 0.05) 1px, transparent 1px);
  background-size: 38px 38px; z-index: 0;
}
.s-paper {
  background: var(--paper);
  background-image:
    radial-gradient(75% 60% at 50% -8%, rgba(244, 236, 214, 0.7), transparent 60%),
    linear-gradient(180deg, #ece1c3, #ddceaa);
  color: var(--ink); position: relative;
}
.s-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 32, 57, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 57, 0.05) 1px, transparent 1px);
  background-size: 34px 34px; z-index: 0;
}
.s-navy > .wrap, .s-paper > .wrap, .sec > .wrap { position: relative; z-index: 1; }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

/* texture: parchment fiber grain + navy vignette (Pass 2) */
.s-paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px; opacity: 0.5; mix-blend-mode: multiply;
}
.s-navy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(125% 85% at 50% 45%, transparent 52%, rgba(4, 7, 20, 0.6) 100%);
}

/* drafting dimension rule (Pass 2) */
.rule {
  display: flex; align-items: center; gap: 16px; margin: 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.s-navy .rule { color: var(--cream-soft); }
.rule .line {
  flex: 1; height: 0; position: relative;
  border-top: 1px solid var(--gold);
  opacity: 0.55;
}
.rule .line::before, .rule .line::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--gold);
}
.rule .line::before { left: 0; }
.rule .line::after { right: 0; }
.rule .tag { color: var(--gold-deep); }
.s-navy .rule .tag { color: var(--gold-2); }

/* ---------- top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(11, 20, 48, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 rgba(217, 172, 87, 0.18);
  padding: 12px 40px;
}
.nav .wm {
  font-family: var(--f-disp); font-size: 21px; letter-spacing: 0.02em; color: var(--cream);
  display: flex; align-items: center; gap: 10px;
}
.nav .wm .wm-icon {
  width: 28px; height: 28px; border-radius: 6px; display: block;
  align-self: center;
}
.nav .wm b { color: var(--gold-2); font-weight: 400; }
.nav .wm .no { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--cream-soft); margin-left: 2px; }
.nav .links { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nav .links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-soft); transition: color 0.16s;
}
.nav .links a:hover { color: var(--gold-2); }
.nav .links a.active { color: var(--gold-2); }
.nav .links a:not(.nav-cta) { position: relative; padding-bottom: 3px; }
.nav .links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--gold-2); transition: width 0.28s cubic-bezier(0.22,0.7,0.2,1);
}
.nav .links a:not(.nav-cta).active::after, .nav .links a:not(.nav-cta):hover::after { width: 100%; }
.nav .links .nav-cta {
  color: var(--navy); background: var(--gold-2); padding: 9px 16px; border-radius: 3px;
  font-family: var(--f-disp); letter-spacing: 0.04em; font-size: 14px;
}
@media (max-width: 880px) { .nav .links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: var(--navy); }
#hero3d { position: absolute; inset: 0; z-index: 0; }
#hero3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 16% 56%, rgba(11, 20, 48, 0.8) 0%, rgba(11, 20, 48, 0.2) 44%, transparent 68%),
    linear-gradient(180deg, rgba(11,20,48,0.45) 0%, transparent 24%, transparent 78%, rgba(7,11,28,0.7) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  min-height: 100vh; padding: 0 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(52px, 8.5vw, 112px); line-height: 1.0; color: var(--cream);
  margin: 22px 0 0; letter-spacing: 0.005em;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lede { color: var(--cream-soft); margin: 26px 0 0; max-width: 46ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 38px; }
.hero .req { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--cream-soft); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-soft); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 1px; height: 38px; background: linear-gradient(var(--gold-2), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* hero spec ribbon */
.hero-specs {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  border-top: 1px solid var(--cream-faint);
  background: linear-gradient(180deg, transparent, rgba(7,11,28,0.6));
}
.hero-specs .wrap { display: flex; flex-wrap: wrap; gap: 0; }
.hero-specs .spec {
  flex: 1 1 0; min-width: 150px; padding: 20px 8px; display: flex; align-items: center; gap: 12px;
  border-left: 1px solid var(--cream-faint);
}
.hero-specs .spec:first-child { border-left: none; padding-left: 0; }
.hero-specs .spec .v { font-family: var(--f-disp); font-size: 30px; color: var(--gold-2); line-height: 1; }
.hero-specs .spec .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); line-height: 1.4; }
@media (max-width: 720px) { .hero-specs { display: none; } }

/* ---------- concept / manifesto ---------- */
.concept .wrap { display: grid; grid-template-columns: 1fr; gap: 30px; }
.manifesto {
  font-family: var(--f-disp); font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04;
  letter-spacing: 0.005em; max-width: 18ch;
}
.manifesto .dim { color: var(--ink-faint); }
.manifesto em { font-style: normal; color: var(--gold-deep); }
.concept-foot { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.concept-foot .note { max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.draft-meta { font-family: var(--f-mono); font-size: 11px; line-height: 1.9; letter-spacing: 0.1em; color: var(--ink-soft); text-align: right; }
.draft-meta .st {
  display: inline-block; font-family: var(--f-disp); font-size: 14px; letter-spacing: 0.04em;
  color: var(--gold-deep); transform: rotate(-2deg); padding: 4px 11px; border: 1.5px solid var(--gold);
  border-radius: 3px; margin-bottom: 8px;
}

/* ---------- feature rows ---------- */
.feat { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.feat + .feat { margin-top: clamp(90px, 11vw, 150px); }
.feat.flip { grid-template-columns: 0.95fr 1.05fr; }
.feat.flip .feat-copy { order: 2; }
.feat.flip .feat-stage { order: 1; }
.feat-copy .num { font-family: var(--f-disp); font-size: 16px; color: var(--gold-deep); letter-spacing: 0.1em; }
.feat-copy h3 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.0; margin: 16px 0 0; }
.feat-copy h3 em { font-style: normal; color: var(--gold-deep); }
.feat-copy p { font-size: 17px; line-height: 1.62; color: var(--ink-soft); font-weight: 300; margin: 18px 0 0; max-width: 42ch; }
.feat-copy .micro { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feat-copy .chip, .station-copy .chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 3px; color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold);
  white-space: nowrap;
}

/* stage that holds a live phone */
.feat-stage { display: flex; justify-content: center; position: relative; }
.phone-pedestal {
  position: relative; width: 384px; max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(11, 20, 48, 0.4));
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}
.phone-pedestal:hover {
  transform: translateY(-12px);
  filter: drop-shadow(0 60px 80px rgba(11, 20, 48, 0.52));
}
.phone-pedestal .callout {
  position: absolute; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  opacity: 0.82; transition: opacity 0.4s ease, transform 0.4s ease;
}
.phone-pedestal:hover .callout { opacity: 1; }
/* default callouts hang off the right edge; .right ones off the left edge — always outside the frame.
   Only shown where the 1fr column has room for an outboard label; hidden below that to avoid clipping. */
.phone-pedestal .callout { display: none; left: 100%; margin-left: 16px; }
.phone-pedestal .callout.right { left: auto; right: 100%; margin-right: 16px; }
@media (min-width: 1400px) { .phone-pedestal .callout { display: flex; } }
.phone-pedestal .callout::before { content: ""; width: 28px; height: 1px; background: var(--gold); transition: width 0.4s cubic-bezier(0.2,0.7,0.2,1); }
.phone-pedestal:hover .callout::before { width: 42px; }
.phone-pedestal .callout.right { flex-direction: row-reverse; }
.phone-pedestal .callout.right::before { background: var(--gold); }

/* responsive scale for the fixed 384px phone */
.phone-fit { position: relative; width: 100%; }
.scaler { transform-origin: top left; width: 384px; }

/* App Store screenshot rendered as a bezelled device screen */
.dev-shot-img[hidden] { display: none !important; }
.phone-pedestal .dev-phone { max-width: 100%; }
.station-shot { position: relative; width: 384px; max-width: 100%; border-radius: 46px; overflow: hidden; }
.station-shot img { display: block; width: 100%; height: auto; }
.station-shot::after {
  content: ""; position: absolute; inset: 0; border-radius: 46px; pointer-events: none;
  box-shadow: inset 0 0 0 8px #0c0c0e, inset 0 0 0 9px rgba(255,255,255,0.07), inset 0 0 22px rgba(0,0,0,0.28);
}

/* ---------- editions ---------- */
.editions .ed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.ed-toggle { display: inline-flex; padding: 5px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--cream-faint); background: rgba(255,255,255,0.03); }
.ed-toggle button {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 22px; border: none; background: transparent; color: var(--cream-soft); cursor: pointer;
  border-radius: 4px; transition: all 0.18s;
}
.ed-toggle button.on { background: var(--gold-2); color: var(--navy); }
.ed-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ed-demo .ed-note { max-width: 34ch; }
.ed-demo .ed-note h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.02; }
.ed-demo .ed-note p { color: var(--cream-soft); font-weight: 300; font-size: 16px; line-height: 1.6; margin-top: 16px; }
.ed-demo .ed-note.r { text-align: right; }
.ed-demo .ed-note.r p { margin-left: auto; }
.ed-stage { display: flex; justify-content: center; filter: drop-shadow(0 40px 70px rgba(0,0,0,0.5)); }

/* ---- dynamic edition theming: the section recolors with the toggle ----
   Re-define the section's color tokens per edition; every descendant that
   reads --cream / --cream-soft / --gold-2 etc. recolors, and the transitions
   below animate the swap. (--navy is left intact so the gold toggle's navy
   text and the silver frame keep their fixed colors.) */
#editions {
  --ed-bg: var(--navy);
  --ed-grid: rgba(159, 176, 224, 0.05);
  --ed-vignette: rgba(4, 7, 20, 0.6);
  background: var(--ed-bg);
  transition: background-color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#editions::before { background-image:
  linear-gradient(var(--ed-grid) 1px, transparent 1px),
  linear-gradient(90deg, var(--ed-grid) 1px, transparent 1px); }
#editions::after { background: radial-gradient(125% 85% at 50% 45%, transparent 52%, var(--ed-vignette) 100%); }
#editions h1, #editions h2, #editions h3, #editions p,
#editions .kicker, #editions .ed-note h3, #editions .ed-toggle,
#editions .ed-toggle button {
  transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#editions[data-edition="light"] {
  --ed-bg: var(--paper);
  --ed-grid: rgba(24, 32, 57, 0.06);
  --ed-vignette: rgba(122, 90, 31, 0);
  --cream: var(--ink);
  --cream-soft: var(--ink-soft);
  --cream-faint: var(--ink-faint);
  --gold-2: var(--gold-deep);
}
#editions[data-edition="light"] .ed-toggle { background: rgba(24, 32, 57, 0.04); }
@media (prefers-reduced-motion: reduce) {
  #editions, #editions * { transition-duration: 0.01ms !important; }
}
@media (max-width: 900px) {
  .ed-demo { grid-template-columns: 1fr; }
  .ed-demo .ed-note, .ed-demo .ed-note.r { text-align: center; }
  .ed-demo .ed-note.r p { margin: 16px auto 0; }
}

/* ---------- the craft ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--cream-faint); margin-top: 56px; box-shadow: 0 0 0 1px var(--cream-faint); }
.craft-card { background: var(--navy); padding: 32px 26px 30px; position: relative; min-height: 230px; display: flex; flex-direction: column; transition: background 0.35s ease; }
.craft-card:hover { background: #0e1838; }
.craft-card .cspec, .craft-card .cspec.tw, .craft-card .cspec.mono { transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), color 0.35s ease; transform-origin: left center; }
.craft-card:hover .cspec { transform: scale(1.04); }
.craft-card .cspec { font-family: var(--f-disp); font-size: clamp(40px, 4vw, 58px); color: var(--gold-2); line-height: 0.85; }
.craft-card .cspec.tw { font-family: var(--f-type); font-size: 30px; }
.craft-card .cspec.mono { font-family: var(--f-mono); font-weight: 700; font-size: 34px; }
.craft-card .cspec.glyphs { display: flex; align-items: center; gap: 10px; color: var(--gold-2); line-height: 1; }
.craft-card .cspec.glyphs svg { width: 54px; height: 54px; display: block; }
.craft-card h4 { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin: auto 0 8px; font-weight: 600; }
.craft-card p { font-size: 14px; line-height: 1.55; color: var(--cream-soft); font-weight: 300; margin: 0; }
.craft-card .tag { position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); font-size: 10px; color: var(--cream-faint); letter-spacing: 0.1em; }
@media (max-width: 900px) { .craft-card { grid-column: span 6 !important; } }
@media (max-width: 520px) { .craft-card { grid-column: span 12 !important; } }

/* ---------- app store listing ---------- */
.listing { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.asl-card {
  background: var(--paper); border-radius: 18px; padding: 26px 30px; position: relative;
  max-width: 540px; margin: 0 auto;
  box-shadow: 0 30px 60px rgba(11,20,48,0.22), inset 0 0 0 1px rgba(24,32,57,0.08);
}
/* drafting crop marks at the four corners */
.asl-card::before {
  content: ""; position: absolute; inset: -13px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 13px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1.5px 13px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 13px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 1.5px 13px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 13px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1.5px 13px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 13px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1.5px 13px no-repeat;
  opacity: 0.65;
  transform-origin: 50% 50%;
}
/* "targeting" settle: the corner frame converges onto the CTA card with a
   subtle overshoot once the card has revealed. The static end-state (above)
   is the default, so no-JS / reduced-motion / print just show the marks. */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .asl-card.in::before {
    animation: aslCropTarget 760ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both,
               aslCropIdle 2600ms ease-in-out 1280ms infinite;
  }
}
@keyframes aslCropTarget {
  0%   { transform: scale(1.11); opacity: 0; }
  55%  { opacity: 0.65; }
  80%  { transform: scale(0.978); }
  100% { transform: scale(1); opacity: 0.65; }
}
/* gentle continuous breathing once it's locked on */
@keyframes aslCropIdle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
.asl-top { display: flex; gap: 22px; align-items: center; }
.asl-icon { width: 110px; height: 110px; border-radius: 24px; box-shadow: 0 10px 24px rgba(11,20,48,0.3), inset 0 0 0 1px rgba(255,255,255,0.12); flex: 0 0 auto; }
.asl-id { flex: 1; min-width: 0; }
.asl-id h3 { font-family: var(--f-disp); font-size: 27px; line-height: 1; color: var(--ink); }
.asl-id .sub { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; margin-top: 6px; }
.asl-id .dev { font-family: var(--f-mono); font-size: 12px; color: var(--gold-deep); margin-top: 10px; }
.asl-get {
  font-family: var(--f-disp); font-size: 15px; letter-spacing: 0.06em; color: #fff; background: var(--ink);
  border: none; border-radius: 20px; padding: 9px 22px 7px; cursor: pointer; margin-top: 0;
  flex: 0 0 auto; display: inline-block; text-decoration: none;
}
.asl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink-faint); }
.asl-stat { text-align: center; border-left: 1px solid var(--ink-faint); padding: 0 6px; }
.asl-stat:first-child { border-left: none; }
.asl-stat .v { font-family: var(--f-disp); font-size: 22px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 4px; }
.asl-stat .l { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }

.asl-shots { display: flex; gap: 14px; margin-top: 26px; overflow: hidden; }
.asl-shots .mini { flex: 1; min-width: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 22px rgba(11,20,48,0.22); }
.asl-shots .phone-fit { overflow: hidden; }

.asl-side h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.0; }
.asl-side h3 em { font-style: normal; color: var(--gold-deep); }
.asl-side .lede { margin-top: 18px; }
.whatsnew { margin-top: 30px; border-top: 1px solid var(--ink-faint); padding-top: 20px; }
.whatsnew .wn-head { display: flex; align-items: baseline; justify-content: space-between; }
.whatsnew .wn-head h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.whatsnew .wn-head .ver { font-family: var(--f-mono); font-size: 11px; color: var(--gold-deep); letter-spacing: 0.1em; }
.whatsnew ul { list-style: none; margin: 16px 0 0; padding: 0; }
.whatsnew li { font-size: 15px; line-height: 1.5; color: var(--ink-soft); font-weight: 300; padding-left: 22px; position: relative; margin-bottom: 10px; }
.whatsnew li::before { content: "▸"; position: absolute; left: 0; color: var(--gold-deep); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin-top: 26px; }
.info-grid .row { border-top: 1px solid var(--ink-faint); padding-top: 10px; }
.info-grid .row .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.info-grid .row .v { font-family: var(--f-body); font-size: 16px; color: var(--ink); margin-top: 3px; }

/* ---------- footer ---------- */
.foot { padding: clamp(70px, 9vw, 120px) 0 50px; }
.foot-store { text-align: center; padding-bottom: clamp(50px, 7vw, 80px); margin-bottom: clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--cream-faint); }
.foot-store .kicker { margin-bottom: 34px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--cream-faint); }
.foot-cta h2 { font-size: clamp(40px, 6vw, 82px); line-height: 0.92; color: var(--cream); }
.foot-cta h2 em { font-style: normal; color: var(--gold-2); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-top: 46px; }
.foot-wm { font-family: var(--f-disp); font-size: 26px; color: var(--cream); }
.foot-wm b { color: var(--gold-2); font-weight: 400; }
.foot-wm .tl { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.2em; color: var(--cream-soft); margin-top: 8px; text-transform: uppercase; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--cream-soft); margin-bottom: 9px; transition: color 0.16s; white-space: nowrap; }
.foot-col a:hover { color: var(--cream); }
.foot-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 56px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--cream-soft); }
.foot-fine a { color: var(--gold-2); text-decoration: none; border-bottom: 1px solid var(--cream-faint); transition: color 0.16s, border-color 0.16s; }
.foot-fine a:hover { color: var(--cream); border-color: var(--gold-2); }
.foot-fine a.coffee { border-bottom: none; font-size: 14px; opacity: 0.85; transition: opacity 0.16s, transform 0.16s; }
.foot-fine .credit { display: inline-flex; align-items: center; gap: 8px; }
.foot-fine a.coffee:hover { opacity: 1; transform: translateY(-1px); }

@media (max-width: 920px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 44px; }
  .feat.flip .feat-copy { order: 1; } .feat.flip .feat-stage { order: 2; }
  .feat-copy { text-align: center; } .feat-copy .micro { justify-content: center; }
  .feat-copy p { margin-left: auto; margin-right: auto; }
  .listing { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 14px 22px; }
}

/* ---------- scroll choreography (Pass 1) ---------- */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s cubic-bezier(0.22, 0.7, 0.2, 1),
              transform 0.72s cubic-bezier(0.22, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.has-reveal .reveal.in { opacity: 1; transform: none; }
/* stages settle from the side for a touch of parallax */
.has-reveal .feat-stage.reveal { transform: translateY(26px) scale(0.97); }
.has-reveal .feat-stage.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===================================================================
   V2 — moodboard fusion: keyline-framed hero + drafting spine
   =================================================================== */

/* ---- hero keyline frame + drawing annotation (Apex / Nepal refs) ---- */
.hero-frame {
  position: absolute; top: 70px; right: 24px; bottom: 22px; left: 24px;
  z-index: 2; pointer-events: none; border: 1px solid var(--cream-faint);
}
.hero-frame .ht { position: absolute; width: 15px; height: 15px; }
.hero-frame .ht-tl { top: -1px; left: -1px; border-top: 1.5px solid var(--gold-2); border-left: 1.5px solid var(--gold-2); }
.hero-frame .ht-tr { top: -1px; right: -1px; border-top: 1.5px solid var(--gold-2); border-right: 1.5px solid var(--gold-2); }
.hero-frame .ht-bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid var(--gold-2); border-left: 1.5px solid var(--gold-2); }
.hero-frame .ht-br { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--gold-2); border-right: 1.5px solid var(--gold-2); }
.hero-anno {
  position: absolute; z-index: 2; right: 44px; bottom: 108px; pointer-events: none;
  display: flex; flex-direction: column; gap: 5px; text-align: right;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream-soft);
}
.hero-anno span:first-child { color: var(--gold-2); }
.hero-anno .rd { font-weight: 500; color: var(--gold-2); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero-anno { display: none; } }
@media (max-width: 620px) { .hero-frame { top: 62px; right: 14px; bottom: 14px; left: 14px; } }

/* ---- features head ---- */
.features-head { text-align: center; max-width: 760px; margin: 0 auto clamp(54px, 7vw, 96px); }
.features-head .rule { justify-content: center; }
.features-head h2.display em { display: inline; }

/* ---- the drafting spine ---- */
.spine { position: relative; }
.spine-track {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; background: rgba(24, 32, 57, 0.13); overflow: hidden; z-index: 0;
}
.spine-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 11px rgba(189, 143, 60, 0.55);
  transition: height 0.12s linear;
}

.station {
  display: grid; grid-template-columns: 1fr 116px 1fr; align-items: center;
  column-gap: clamp(18px, 3vw, 46px); position: relative;
}
.station + .station { margin-top: clamp(64px, 9vw, 132px); }

/* copy block — hangs off the spine, mirrored per side */
.station .station-copy { text-align: right; }
.station.flip .station-copy { text-align: left; }
.station-copy .num {
  font-family: var(--f-type); font-size: 14px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
}
.station-copy h3 { font-size: clamp(28px, 3.7vw, 47px); line-height: 1.0; margin: 14px 0 0; text-transform: uppercase; letter-spacing: 0.018em; }
.station-copy h3 em { font-style: normal; color: var(--gold-deep); }
.station-copy h3 em .brush-glyph { height: 0.92em; width: auto; vertical-align: -0.06em; display: inline-block; }
.station-copy h3 em .brush-pi {
  height: 1.55em; width: 0.85em; aspect-ratio: auto; vertical-align: -0.46em;
  background: var(--gold-deep);
  -webkit-mask: url(glyphs/pi.svg) no-repeat center / contain;
  mask: url(glyphs/pi.svg) no-repeat center / contain;
}
.station-copy p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); font-weight: 300; margin: 16px 0 0; max-width: 42ch; }
.station .station-copy p { margin-left: auto; }
.station-copy .micro { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.station .station-copy .micro { justify-content: flex-end; }
.station.flip .station-copy .micro { justify-content: flex-start; }

/* survey-point node carrying the big drawing number */
.station-node { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.sn-num {
  font-family: var(--f-disp); font-size: clamp(36px, 3.6vw, 56px); line-height: 1;
  color: var(--ink-faint); position: relative; z-index: 2; padding: 16px 12px;
  background: radial-gradient(closest-side, var(--paper) 66%, rgba(231, 220, 190, 0) 100%);
  transition: color 0.55s ease, text-shadow 0.55s ease;
}
.station.lit .sn-num { color: var(--gold-deep); text-shadow: 0 2px 18px rgba(189, 143, 60, 0.35); }
/* dashed leader line node → phone */
.station-node::after {
  content: ""; position: absolute; top: 50%; height: 1px; width: clamp(28px, 6vw, 92px);
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 11px);
  opacity: 0; transition: opacity 0.6s ease 0.1s;
}
.station .station-node::after { left: 100%; }
.station.flip .station-node::after { right: 100%; }
.station.lit .station-node::after { opacity: 0.7; }

.station-stage { display: flex; justify-content: center; }

/* reveal motion for stations */
.has-reveal .station-stage.reveal { transform: translateY(26px) scale(0.97); }
.has-reveal .station-stage.reveal.in { transform: none; }

@media (max-width: 920px) {
  .spine-track { display: none; }
  .station, .station.flip { grid-template-columns: 1fr; row-gap: 22px; }
  .station .station-copy, .station.flip .station-copy { text-align: center; order: 2; }
  .station .station-copy p, .station.flip .station-copy p { margin-left: auto; margin-right: auto; }
  .station .station-copy .micro, .station.flip .station-copy .micro { justify-content: center; }
  .station-node { order: 1; min-height: 0; }
  .sn-num { font-size: 42px; padding: 0; background: none; color: var(--gold-deep); }
  .station-node::after { display: none; }
  .station-stage { order: 3; }
  .station + .station { margin-top: 68px; }
}

/* ---------- craft: specimen-sheet rhythm (layout pass) ---------- */
.craft-card:nth-child(1) { grid-column: span 7; }
.craft-card:nth-child(2) { grid-column: span 5; }
.craft-card:nth-child(3) { grid-column: span 5; }
.craft-card:nth-child(4) { grid-column: span 7; }
.craft-card:nth-child(1) .cspec { font-size: clamp(56px, 6.4vw, 92px); }

/* ===================================================================
   QR "scan to download" modal (Flighty-style, drafting edition)
   =================================================================== */
.qr-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(7, 11, 28, 0.74);
  backdrop-filter: blur(7px) saturate(115%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.qr-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.32s ease; }

.qr-modal {
  position: relative; width: min(384px, 100%);
  background: var(--paper);
  background-image:
    radial-gradient(80% 60% at 50% -6%, rgba(244, 236, 214, 0.7), transparent 62%),
    linear-gradient(180deg, #ece1c3, #ddceaa);
  border-radius: 12px; padding: 30px 34px 26px; text-align: center;
  box-shadow: 0 40px 90px rgba(7, 11, 28, 0.55), inset 0 0 0 1px rgba(24, 32, 57, 0.10);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qr-overlay.show .qr-modal { transform: none; }
/* fiber grain to match the parchment surfaces */
.qr-modal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px; opacity: 0.4; mix-blend-mode: multiply;
}
.qr-modal > * { position: relative; z-index: 1; }

/* drafting crop marks at the corners */
.qr-ct { position: absolute; width: 13px; height: 13px; z-index: 2; opacity: 0.7; }
.qr-ct-tl { top: 11px; left: 11px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.qr-ct-tr { top: 11px; right: 11px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.qr-ct-bl { bottom: 11px; left: 11px; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.qr-ct-br { bottom: 11px; right: 11px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }

.qr-close {
  position: absolute; top: 9px; right: 12px; z-index: 3;
  width: 32px; height: 32px; padding: 0; border: none; cursor: pointer;
  background: transparent; color: var(--ink-soft); font-size: 26px; line-height: 1;
  font-family: var(--f-body); border-radius: 50%; transition: color 0.16s, background 0.16s;
}
.qr-close:hover { color: var(--ink); background: rgba(24, 32, 57, 0.08); }

.qr-fig {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0;
}
.qr-head {
  font-family: var(--f-disp); font-weight: 400; font-size: 38px; line-height: 0.92;
  color: var(--ink); margin: 10px 0 0; letter-spacing: 0.01em;
}

/* the QR plate — debossed parchment tile */
.qr-plate {
  position: relative; width: 232px; height: 232px; margin: 22px auto 0;
  background: linear-gradient(160deg, #f1e8cd, #e2d3ac);
  border-radius: 12px; padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(24, 32, 57, 0.10),
    inset 0 2px 6px rgba(122, 90, 31, 0.18),
    0 14px 28px rgba(11, 20, 48, 0.18);
}
.qr-svg { width: 100%; height: 100%; display: block; }
.qr-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 13px;
  box-shadow: 0 4px 12px rgba(11, 20, 48, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 5px var(--paper);
}
.qr-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); text-align: center; padding: 12px;
}

.qr-direct {
  display: inline-block; margin: 22px 0 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); border-bottom: 1px solid var(--gold);
  padding-bottom: 3px; transition: color 0.16s, border-color 0.16s;
}
.qr-direct:hover { color: var(--ink); border-color: var(--ink); }
.qr-stamp {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 18px 0 0; opacity: 0.8;
}

/* ---------- keyboard focus (a11y) ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===================================================================
   Delight pass — refined, tactile micro-interactions (subtle by design)
   Earned moments only: branded selection, the two CTAs that lacked
   feedback, a drawn dimension line on the specimen cards, a compass
   that opens on the wordmark. Motion collapses under the global
   reduced-motion block below.
   =================================================================== */

/* branded text selection — gold ink, tuned per surface */
::selection { background: rgba(189, 143, 60, 0.26); color: var(--ink); }
.s-navy ::selection, .hero ::selection, .foot ::selection,
#editions ::selection { background: rgba(217, 172, 87, 0.30); color: var(--cream); }

/* nav "Download" CTA — gains the stamp button's tactile lift (it had none) */
.nav .links .nav-cta {
  box-shadow: 0 0 0 rgba(189, 143, 60, 0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.nav .links .nav-cta:hover {
  transform: translateY(-2px);
  background: var(--gold);
  box-shadow: 0 10px 22px rgba(189, 143, 60, 0.36);
}
.nav .links .nav-cta:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(189, 143, 60, 0.28); }

/* App Store "GET" pill — same tactile press (it had none) */
.asl-get { transition: transform 0.16s ease, box-shadow 0.16s ease; box-shadow: 0 0 0 rgba(11, 20, 48, 0); }
.asl-get:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11, 20, 48, 0.32); }
.asl-get:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(11, 20, 48, 0.28); }

/* edition toggle — affordance on the inactive option */
.ed-toggle button:not(.on):hover { color: var(--cream); }

/* craft specimen cards — a drafting dimension line draws across the base on hover */
.craft-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transform: scaleX(0); transform-origin: left center; opacity: 0.85;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.craft-card:hover::after { transform: scaleX(1); }

/* wordmark — the divider/compass tip eases open on hover (nod to the hero instrument) */
.nav .wm .wm-icon { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transform-origin: 50% 80%; }
.nav .wm:hover .wm-icon { transform: rotate(-7deg); }

/* ---------- respect reduced-motion (a11y) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-hint .bar { animation: none !important; opacity: 0.55; }
}
