:root {
  --ink: #0b0b09;
  --ivory: #e9e1d1;
  --stone: #8e897f;
  --brass: #a18455;
  --paper: #cbbe9f;
  --line: rgba(233, 225, 209, 0.16);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.mobile-nav { display: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ivory); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.4rem, 4vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; justify-self: start; font: 400 1.18rem/1 var(--serif); letter-spacing: .34em; }
.brand-mark { width: 29px; height: 29px; fill: none; stroke: var(--brass); stroke-width: 3; }
.brand-mark .hub, .hero-wheel .hub { fill: var(--ink); }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
.desktop-nav a, .header-cta, .eyebrow, .token-strip span, .scroll-cue, .hero-rail { font-size: .72rem; line-height: 1; text-transform: uppercase; letter-spacing: .22em; }
.desktop-nav a { color: var(--stone); transition: color .25s ease; }
.desktop-nav a:hover { color: var(--ivory); }
.header-cta { justify-self: end; border: 1px solid rgba(161,132,85,.7); padding: 1rem 1.25rem; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem clamp(1.4rem, 5.5vw, 7rem) 5rem;
}
.eyebrow { margin: 0 0 2.5rem; color: var(--brass); }
h1 { margin: 0; font: 400 clamp(4.6rem, 8.4vw, 9.8rem)/.82 var(--serif); letter-spacing: -.045em; }
h1 em { color: var(--paper); font-weight: 400; }
.lede { max-width: 600px; margin: 2.5rem 0 0; color: var(--stone); font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.3rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 180px; padding: 1.15rem 1.2rem; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; border: 1px solid var(--paper); }
.button-primary { background: var(--paper); color: var(--ink); }
.text-link { color: var(--ivory); font-size: .88rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.token-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(3rem, 8vh, 7rem); padding-top: 1.3rem; border-top: 1px solid var(--line); }
.token-strip > div { display: flex; flex-direction: column; gap: .7rem; }
.token-strip span { color: var(--stone); font-size: .63rem; }
.token-strip strong { font: 400 .9rem/1.3 var(--sans); }

.hero-visual { position: relative; min-height: 100%; border-left: 1px solid var(--line); background: #11110e; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; box-shadow: inset 64px 0 80px rgba(11,11,9,.9); pointer-events: none; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: brightness(.74) saturate(.72); transform: scale(1.045); will-change: transform; }
.hero-rail { position: absolute; z-index: 2; right: clamp(1.4rem, 3vw, 3.5rem); top: 24%; color: var(--paper); writing-mode: vertical-rl; }
.hero-rail::before { content: ""; display: block; height: 72px; border-left: 1px solid var(--brass); margin: 0 auto 1.2rem; }
.scroll-cue { position: absolute; z-index: 3; left: clamp(1.4rem, 5.5vw, 7rem); bottom: 2rem; display: flex; align-items: center; gap: 1rem; color: var(--stone); }
.scroll-cue i { width: 45px; height: 1px; background: var(--brass); }
.section { padding: clamp(7rem, 13vw, 13rem) clamp(1.4rem, 5.5vw, 7rem); border-bottom: 1px solid var(--line); }
.section-kicker { display: grid; grid-template-columns: 5rem auto; align-items: center; margin-bottom: clamp(4rem, 8vw, 8rem); color: var(--stone); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; }
.section-kicker span { color: var(--brass); }
.section-kicker p { margin: 0; }
.display { margin: 0; font: 400 clamp(3.8rem, 7vw, 8rem)/.94 var(--serif); letter-spacing: -.03em; }
h2 em { color: var(--paper); font-weight: 400; }
.thesis { min-height: 95vh; display: flex; flex-direction: column; justify-content: space-between; }
.thesis-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 7vw; align-items: end; }
.thesis-copy { color: var(--stone); font-size: 1.05rem; line-height: 1.7; }
.thesis-copy p { margin: 0 0 1.1rem; }
.era-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 1.3rem; margin-top: clamp(5rem, 10vw, 10rem); color: var(--ivory); text-transform: uppercase; letter-spacing: .17em; font-size: .68rem; }
.era-line i { height: 1px; background: var(--line); position: relative; }
.era-line i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 4px solid var(--brass); border-top: 2px solid transparent; border-bottom: 2px solid transparent; }

.mechanism { background: #0d0d0b; }
.mechanism-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; margin-bottom: 7rem; }
.mechanism-head h2, .machine-head h2, .economics-copy h2 { margin: 0; font: 400 clamp(3.8rem, 6.6vw, 7.2rem)/.92 var(--serif); letter-spacing: -.03em; }
.mechanism-head p, .economics-copy > p { max-width: 500px; margin: 0; color: var(--stone); font-size: 1.05rem; line-height: 1.7; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process li { min-height: 280px; padding: 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); position: relative; }
.process li:last-child { border-right: 0; }
.process li > span { color: var(--brass); font-size: .72rem; letter-spacing: .2em; }
.process li > strong { margin-top: auto; max-width: 200px; font: 400 1.8rem/1.12 var(--serif); }
.process li > small { margin-top: .9rem; color: var(--stone); text-transform: uppercase; letter-spacing: .14em; }
.process li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; color: var(--brass); background: #0d0d0b; font-size: .8rem; }
.mechanism-note { margin: 2rem 0 0; color: var(--stone); font: 400 1.25rem/1.4 var(--serif); }

.machine-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.status { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--line); color: var(--stone); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(161,132,85,.1); animation: status 2.4s ease-in-out infinite; }
@keyframes status { 50% { opacity: .35; } }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { min-height: 190px; padding: 1.5rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { font: 400 clamp(3rem, 5vw, 5.6rem)/1 var(--serif); letter-spacing: -.035em; }
.metric span { color: var(--stone); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.chart { margin: 4rem 0 0; }
.chart figcaption { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: var(--stone); text-transform: uppercase; letter-spacing: .15em; font-size: .67rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { fill: none; stroke: rgba(233,225,209,.085); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--paper); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1700; stroke-dashoffset: 1700; transition: stroke-dashoffset 2.2s cubic-bezier(.2,.7,.2,1); }
.chart-point { fill: var(--brass); opacity: 0; transition: opacity .4s 1.8s; }
.chart.visible .chart-line { stroke-dashoffset: 0; }
.chart.visible .chart-point { opacity: 1; }

.economics { min-height: 100vh; background: #0d0d0b; }
.economics-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; align-items: center; }
.economics-copy > p { margin-top: 2.4rem; }
.flywheel-diagram { position: relative; min-height: 680px; border: 1px solid var(--line); }
.flywheel, .orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.flywheel { width: 38%; fill: none; stroke: var(--brass); stroke-width: 2; animation: wheel 52s linear infinite; }
.flywheel .hub { fill: #0d0d0b; }
.orbit { width: 70%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }
.stage { position: absolute; width: 180px; color: var(--stone); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; line-height: 1.55; }
.stage span { display: block; margin-bottom: .55rem; color: var(--brass); font-size: .65rem; }
.stage p { margin: 0; }
.stage-one { left: 5%; top: 10%; }
.stage-two { right: 5%; top: 10%; text-align: right; }
.stage-three { right: 5%; bottom: 10%; text-align: right; }
.stage-four { left: 5%; bottom: 10%; }
@keyframes wheel { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.final-cta { min-height: 92vh; padding: clamp(8rem, 14vw, 14rem) clamp(1.4rem, 5.5vw, 7rem) 2.5rem; display: flex; flex-direction: column; text-align: center; align-items: center; }
.final-cta h2 { margin: 0; font: 400 clamp(4.3rem, 9.4vw, 10.5rem)/.84 var(--serif); letter-spacing: -.04em; }
.final-actions { display: flex; align-items: center; gap: 2.2rem; margin-top: 3rem; }
.footer-base { width: 100%; margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-base .brand { justify-self: start; }
.footer-base p { margin: 0; color: var(--stone); text-transform: uppercase; letter-spacing: .18em; font-size: .65rem; }
.footer-base p:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Manifesto */
.subpage-header { position: fixed; background: rgba(11,11,9,.88); backdrop-filter: blur(14px); }
.manifesto-hero { min-height: 92vh; padding: 13rem clamp(1.4rem, 5.5vw, 7rem) 6rem; display: grid; grid-template-columns: 1fr 2.1fr; align-items: end; border-bottom: 1px solid var(--line); }
.manifesto-hero .eyebrow { align-self: start; padding-top: 1rem; }
.manifesto-hero h1 { font-size: clamp(5rem, 11vw, 12rem); }
.manifesto-body { max-width: 1280px; margin: 0 auto; padding: clamp(7rem, 12vw, 13rem) clamp(1.4rem, 5.5vw, 7rem); }
.manifesto-intro { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; margin-bottom: 10rem; }
.manifesto-intro h2 { margin: 0; font: 400 clamp(3.4rem, 6vw, 6.8rem)/.98 var(--serif); }
.manifesto-intro p { margin: 0; color: var(--stone); font-size: 1.18rem; line-height: 1.75; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 6rem .7fr 1fr; gap: 3vw; padding: 3.5rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.principle > span { color: var(--brass); font-size: .7rem; letter-spacing: .16em; }
.principle h3 { margin: 0; font: 400 clamp(2.3rem, 4vw, 4.2rem)/1 var(--serif); }
.principle p { margin: 0; max-width: 520px; color: var(--stone); line-height: 1.7; }
.manifesto-end { min-height: 70vh; display: grid; place-items: center; padding: 5rem 1.5rem; text-align: center; border-top: 1px solid var(--line); }
.manifesto-end h2 { margin: 0; font: 400 clamp(4.5rem, 9vw, 9.5rem)/.88 var(--serif); }

/* App countdown */
.countdown-page { min-height: 100svh; overflow: hidden; }
.app-backdrop { position: fixed; inset: -3%; background: url('./assets/infer-factory.png') 64% center / cover no-repeat; filter: blur(14px) brightness(.3) saturate(.65); transform: scale(1.08); }
.app-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(11,11,9,.54); }
.app-shell { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; padding: 2rem clamp(1.4rem, 4vw, 5rem); }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top > a:last-child { color: var(--stone); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; }
.countdown-wrap { margin: auto; text-align: center; width: min(100%, 1080px); }
.countdown-wrap .eyebrow { margin-bottom: 2rem; }
.countdown-wrap h1 { font-size: clamp(4.6rem, 10vw, 10.5rem); }
.timer { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 7vh, 6rem); border-top: 1px solid rgba(233,225,209,.25); border-bottom: 1px solid rgba(233,225,209,.25); }
.timer-unit { padding: 1.5rem; border-right: 1px solid rgba(233,225,209,.25); }
.timer-unit:last-child { border-right: 0; }
.timer-unit strong { display: block; font: 400 clamp(4rem, 9vw, 8.5rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.timer-unit span { display: block; margin-top: 1rem; color: var(--stone); text-transform: uppercase; letter-spacing: .2em; font-size: .65rem; }
.countdown-note { max-width: 540px; margin: 2rem auto 0; color: var(--stone); line-height: 1.65; }
.app-bottom { display: flex; justify-content: space-between; color: var(--stone); text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; }

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

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 82px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 6px; background: none; border: 0; padding: .7rem 0 .7rem .7rem; }
  .menu-toggle span { display: block; width: 25px; height: 1px; background: var(--ivory); }
  .mobile-nav { display: flex; visibility: hidden; opacity: 0; position: fixed; inset: 82px 0 0; flex-direction: column; padding: 3rem 1.5rem; background: var(--ink); transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
  .mobile-nav a { padding: 1.15rem 0; border-bottom: 1px solid var(--line); font: 400 2rem/1 var(--serif); }
  .menu-open .mobile-nav { visibility: visible; opacity: 1; transform: none; }
  .hero { display: block; min-height: auto; }
  .hero-copy { min-height: 90svh; padding-top: 9rem; padding-bottom: 5rem; }
  h1 { font-size: clamp(4rem, 18vw, 7rem); }
  .token-strip { grid-template-columns: 1fr 1fr; row-gap: 1.8rem; }
  .token-strip > div:last-child { grid-column: 1 / -1; }
  .hero-visual { min-height: 58svh; border: 0; border-top: 1px solid var(--line); }
  .hero-image { object-position: 66% center; }
  .scroll-cue { display: none; }
  .section { padding-top: 7rem; padding-bottom: 7rem; }
  .thesis { min-height: auto; }
  .thesis-content, .mechanism-head, .economics-grid, .manifesto-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .display { font-size: clamp(3.5rem, 12vw, 6rem); }
  .era-line { grid-template-columns: auto 1fr; gap: 1.2rem; }
  .era-line i { display: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { min-height: 220px; }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process li::after { display: none !important; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .machine-head { align-items: flex-start; flex-direction: column; }
  .flywheel-diagram { min-height: 600px; }
  .footer-base { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .footer-base > p:nth-child(2) { display: none; }
  .manifesto-hero { grid-template-columns: 1fr; align-content: end; gap: 2rem; }
  .manifesto-intro { margin-bottom: 6rem; }
  .principle { grid-template-columns: 3.5rem 1fr; }
  .principle p { grid-column: 2; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
  .button { width: 100%; }
  .section-kicker { margin-bottom: 3.5rem; }
  .process { grid-template-columns: 1fr; }
  .process li { border-right: 0; border-bottom: 1px solid var(--line); }
  .process li:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 155px; padding: 1.1rem; }
  .metric strong { font-size: 2.65rem; }
  .metric span { font-size: .58rem; line-height: 1.4; }
  .chart figcaption span:last-child { display: none; }
  .flywheel-diagram { min-height: 520px; }
  .flywheel { width: 44%; }
  .orbit { width: 76%; }
  .stage { width: 130px; font-size: .59rem; }
  .stage-one, .stage-four { left: 4%; }
  .stage-two, .stage-three { right: 4%; }
  .final-actions { width: 100%; flex-direction: column; }
  .footer-base { grid-template-columns: 1fr; text-align: center; }
  .footer-base .brand, .footer-base p:last-child { justify-self: center; }
  .timer-unit { padding: 1.2rem .35rem; }
  .timer-unit strong { font-size: clamp(3.3rem, 19vw, 5.5rem); }
  .app-bottom span:last-child { display: none; }
}
