:root {
  --ink: #090a0c;
  --paper: #ece7db;
  --muted: #a6a49d;
  --acid: #67f0c1;
  --violet: #a96cff;
  --sun: #f2c96d;
  --line: rgba(236, 231, 219, .15);
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--acid); color: var(--ink); }

.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; width: 420px; height: 420px; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%; opacity: .12;
  background: radial-gradient(circle, rgba(103,240,193,.55), transparent 65%);
  filter: blur(18px);
}

.enter-screen {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background:
    linear-gradient(90deg, rgba(6,7,8,.96), rgba(6,7,8,.64)),
    url('assets/trenchcat-war.png') center/cover;
  transition: opacity .8s ease, visibility .8s ease;
}
.enter-screen.is-hidden { opacity: 0; visibility: hidden; }
.enter-card { width: min(680px, 100%); }
.eyebrow, .section-index {
  font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
}
.enter-card h1 { margin: 22px 0 18px; font-size: clamp(48px, 8vw, 104px); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.enter-card h1 em { color: var(--sun); font-family: Georgia, serif; font-weight: 400; text-transform: none; }
.enter-card p { color: #cbc6ba; font-size: 16px; }
.enter-card small { display: block; margin-top: 18px; color: #77766f; }
.enter-button {
  display: flex; align-items: center; justify-content: space-between; width: min(360px, 100%); margin-top: 32px;
  border: 1px solid rgba(255,255,255,.25); background: var(--paper); color: var(--ink); padding: 18px 20px;
  font-weight: 900; letter-spacing: .08em; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.enter-button:hover { transform: translateY(-3px); background: var(--acid); }
.enter-arrow { font-size: 22px; }
.music-embed { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 4vw;
  border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(9,10,12,.55); backdrop-filter: blur(16px);
  transition: transform .35s ease, background .35s ease;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 13px; letter-spacing: .15em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; font-size: 10px; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { color: #d6d2c8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.site-header nav a:hover { color: var(--acid); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.sound-button, .mini-cta { height: 38px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.mini-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-bars i { display: block; width: 2px; height: 4px; background: currentColor; animation: wave .8s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { height: 10px; animation-delay: -.2s; }
.sound-bars i:nth-child(3) { height: 7px; animation-delay: -.4s; }
.sound-bars i:nth-child(4) { height: 11px; animation-delay: -.1s; }
.sound-button.is-muted .sound-bars i { animation: none; height: 2px; }
@keyframes wave { to { height: 12px; } }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 70px) 5vw 8vh; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -4; background-size: cover; background-position: center; transform: scale(1.04); }
.hero-war { background-image: url('assets/trenchcat-war.png'); opacity: 1; filter: contrast(1.08) saturate(.72); }
.hero-peace { background-image: url('assets/trenchcat-peace.png'); opacity: 0; clip-path: circle(0% at 80% 70%); filter: saturate(.95); }
.hero-vignette { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,8,9,.96) 0%, rgba(7,8,9,.72) 34%, rgba(7,8,9,.12) 69%, rgba(7,8,9,.5) 100%), linear-gradient(0deg, rgba(7,8,9,.92), transparent 45%); }
.hero-copy { width: min(870px, 74vw); }
.hero-copy .eyebrow { color: var(--acid); margin-bottom: 22px; }
.hero h1 { margin: 0; font-size: clamp(64px, 10vw, 154px); line-height: .77; letter-spacing: -.075em; text-transform: uppercase; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1px rgba(236,231,219,.75); }
.sun-text { color: var(--sun); }
.hero-lede { width: min(580px, 100%); margin: 36px 0 0; color: #c2beb4; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.65; }
.hero-lede strong { color: var(--acid); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.primary-cta { display: flex; justify-content: space-between; align-items: center; min-width: 260px; padding: 18px 20px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .1em; transition: background .2s, transform .2s; }
.primary-cta:hover { background: var(--acid); transform: translateY(-3px); }
.text-link { font-size: 11px; font-weight: 800; letter-spacing: .15em; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 6px; }
.text-link span { margin-left: 10px; }
.hero-price { position: absolute; right: 5vw; bottom: 9vh; width: 260px; padding: 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,9,10,.52); backdrop-filter: blur(12px); }
.hero-price > span:first-child { display: block; font-size: 10px; letter-spacing: .2em; color: #9e9a91; }
.hero-price strong { display: flex; justify-content: space-between; margin-top: 9px; font-size: 25px; }
.hero-price strong b { color: var(--acid); }
.price-line { display: block; height: 33px; margin-top: 12px; background: linear-gradient(165deg, transparent 0 25%, var(--acid) 26% 28%, transparent 29% 42%, var(--acid) 43% 45%, transparent 46% 60%, var(--acid) 61% 63%, transparent 64%); opacity: .8; }
.scroll-cue { position: absolute; right: 5vw; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; font-size: 9px; letter-spacing: .2em; color: #8f8b83; }
.scroll-cue span { display: inline-block; width: 70px; height: 1px; margin-right: 12px; background: currentColor; vertical-align: middle; }

.ticker-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #111316; }
.ticker-track { display: flex; align-items: center; width: max-content; padding: 14px 0; animation: ticker 25s linear infinite; }
.ticker-track span { margin: 0 30px; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.ticker-track i { color: var(--violet); }
@keyframes ticker { to { transform: translateX(-50%); } }

.story-section, .roadmap-section, .chart-section { position: relative; padding: 130px 5vw; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr .8fr; gap: 5vw; align-items: end; margin-bottom: 68px; }
.section-index { color: var(--acid); align-self: start; }
.section-heading h2, .chart-copy h2 { margin: 0; font-size: clamp(48px, 7vw, 105px); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.section-heading h2 em, .final-copy h2 em { color: var(--sun); font-family: Georgia, serif; font-weight: 400; text-transform: none; }
.section-heading > p { color: #9f9d96; line-height: 1.65; }
.compare-shell { max-width: 1300px; margin: 0 auto; }
.compare-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #181a1c; border: 1px solid var(--line); }
.compare-frame > img, .compare-before img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; user-select: none; pointer-events: none; }
.compare-before { position: absolute; inset: 0 auto 0 0; width: 52%; overflow: hidden; border-right: 1px solid rgba(255,255,255,.65); }
.compare-before img { width: calc(100vw - 10vw); max-width: 1300px; }
.compare-line { position: absolute; top: 50%; left: 52%; display: flex; align-items: center; justify-content: space-evenly; width: 56px; height: 56px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; font-weight: 900; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare-label { position: absolute; bottom: 22px; padding: 10px 12px; background: rgba(0,0,0,.64); backdrop-filter: blur(8px); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.before-label { left: 22px; }
.after-label { right: 22px; color: var(--acid); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1300px; margin: 28px auto 0; }
.story-card { min-height: 300px; padding: 38px; border: 1px solid var(--line); }
.story-card + .story-card { border-left: 0; }
.card-number { font-family: Georgia, serif; font-style: italic; color: var(--violet); }
.story-card h3 { max-width: 460px; margin: 60px 0 20px; font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -.04em; }
.story-card p { max-width: 560px; color: #9d9a93; line-height: 1.7; }
.light-card { background: var(--paper); color: var(--ink); }
.light-card p { color: #4e4d49; }
.light-card .card-number { color: #6646d8; }

.manifesto-section { min-height: 800px; display: grid; grid-template-columns: 1fr 1fr; background: #e9e2d4; color: var(--ink); }
.manifesto-photo { overflow: hidden; min-height: 680px; }
.manifesto-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.1); }
.manifesto-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
.manifesto-copy .section-index { color: #6a4ee9; }
.manifesto-copy blockquote { margin: 38px 0; font-size: clamp(42px, 5.4vw, 82px); font-weight: 900; line-height: .95; letter-spacing: -.06em; text-transform: uppercase; }
.manifesto-copy p { max-width: 700px; font-size: 18px; line-height: 1.7; color: #46433d; }
.manifesto-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.manifesto-tags span { border: 1px solid rgba(0,0,0,.2); padding: 9px 12px; font-size: 9px; font-weight: 900; letter-spacing: .15em; }

.roadmap-section { background: #0d0f11; }
.section-heading.compact { grid-template-columns: .7fr 2.1fr; }
.roadmap-line { position: absolute; left: 5vw; right: 5vw; top: 410px; height: 1px; background: rgba(255,255,255,.12); }
.roadmap-line span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--acid)); }
.roadmap-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); }
.roadmap-item { position: relative; min-height: 390px; padding: 35px 28px; background: #0d0f11; }
.roadmap-item.active { background: #15171a; }
.phase { font-size: 9px; letter-spacing: .2em; color: #777a7e; }
.roadmap-dot { width: 11px; height: 11px; margin: 65px 0 45px; border: 2px solid #8d9094; border-radius: 50%; background: #0d0f11; }
.roadmap-item.active .roadmap-dot { border-color: var(--acid); background: var(--acid); box-shadow: 0 0 25px rgba(103,240,193,.8); }
.roadmap-item h3 { font-size: 28px; letter-spacing: -.04em; }
.roadmap-item p { color: #8d8f92; line-height: 1.65; font-size: 14px; }
.status { position: absolute; left: 28px; bottom: 28px; color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .2em; }

.chart-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; align-items: center; background: radial-gradient(circle at 20% 40%, rgba(169,108,255,.09), transparent 30%), #08090b; }
.chart-copy .section-index { display: block; margin-bottom: 30px; }
.chart-copy p { max-width: 500px; color: #92949a; line-height: 1.7; }
.chart-copy code { color: var(--acid); }
.contract-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.contract-box span { display: block; margin-bottom: 8px; color: #777a7e; font-size: 8px; letter-spacing: .18em; }
.contract-box code { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.contract-box button { border: 1px solid var(--line); background: transparent; padding: 10px 12px; font-size: 9px; font-weight: 900; letter-spacing: .1em; cursor: pointer; }
.chart-frame { position: relative; min-height: 650px; border: 1px solid var(--line); background: #0d1013; overflow: hidden; }
.chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; background: radial-gradient(circle, rgba(103,240,193,.06), transparent 45%); }
.chart-placeholder strong { font-size: 12px; letter-spacing: .2em; }
.chart-placeholder span { color: #777b80; font-size: 11px; }
.radar { width: 120px; height: 120px; border: 1px solid rgba(103,240,193,.35); border-radius: 50%; background: conic-gradient(from 0deg, rgba(103,240,193,.45), transparent 20%); animation: spin 2.8s linear infinite; }
.radar::before, .radar::after { content: ""; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-corner { position: absolute; z-index: 3; width: 20px; height: 20px; border-color: var(--acid); opacity: .8; pointer-events: none; }
.top-left { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.top-right { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.bottom-left { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.bottom-right { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.final-section { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 100px 5vw; text-align: center; }
.final-image { position: absolute; inset: 0; background: url('assets/trenchcat-peace.png') center/cover; transform: scale(1.04); }
.final-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,9,.92), rgba(7,8,9,.2) 55%, rgba(7,8,9,.62)); }
.final-copy { position: relative; width: min(1100px, 100%); }
.final-copy h2 { margin: 30px 0 20px; font-size: clamp(52px, 8vw, 120px); line-height: .88; letter-spacing: -.07em; text-transform: uppercase; }
.final-copy p { color: #d8d3c9; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 55px; background: rgba(255,255,255,.2); text-align: left; }
.social-card { position: relative; display: flex; flex-direction: column; min-height: 150px; padding: 24px; background: rgba(8,9,10,.72); backdrop-filter: blur(12px); transition: background .2s, color .2s; }
.social-card:hover { background: var(--paper); color: var(--ink); }
.social-card span { font-size: 9px; letter-spacing: .18em; color: #8b8e93; }
.social-card b { margin-top: auto; font-size: 15px; }
.social-card i { position: absolute; right: 22px; top: 20px; font-style: normal; font-size: 20px; }

footer { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 30px; min-height: 170px; padding: 40px 5vw; border-top: 1px solid var(--line); color: #898b8f; }
footer p { max-width: 660px; margin: auto; text-align: center; font-size: 12px; line-height: 1.6; }
footer > span { text-align: right; font-size: 10px; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
body.is-entered .hero .reveal { opacity: 1; transform: translateY(0); }
body.is-entered .hero .reveal:nth-child(2) { transition-delay: .1s; }
body.is-entered .hero .reveal:nth-child(3) { transition-delay: .2s; }
body.is-entered .hero .reveal:nth-child(4) { transition-delay: .3s; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .sound-button #soundLabel { display: none; }
  .hero { padding-bottom: 100px; }
  .hero-copy { width: 100%; }
  .hero-price { position: relative; right: auto; bottom: auto; margin: 32px 0 0; }
  .scroll-cue { display: none; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p { max-width: 600px; }
  .manifesto-section { grid-template-columns: 1fr; }
  .manifesto-photo { min-height: 540px; }
  .roadmap-line { display: none; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .chart-section { grid-template-columns: 1fr; }
  .chart-frame { min-height: 560px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > span { text-align: center; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .site-header { padding: 0 18px; }
  .brand > span:last-child { display: none; }
  .mini-cta { padding-inline: 12px; }
  .hero { padding: 130px 20px 70px; align-items: flex-end; }
  .hero h1 { font-size: clamp(56px, 17vw, 90px); }
  .hero-vignette { background: linear-gradient(0deg, rgba(7,8,9,.96), rgba(7,8,9,.38) 75%, rgba(7,8,9,.48)); }
  .hero-price { width: 100%; }
  .story-section, .roadmap-section, .chart-section { padding: 90px 20px; }
  .compare-frame { aspect-ratio: 4/5; }
  .compare-before img { width: calc(100vw - 40px); }
  .story-grid, .roadmap-grid, .social-grid { grid-template-columns: 1fr; }
  .story-card + .story-card { border-left: 1px solid var(--line); border-top: 0; }
  .manifesto-photo { min-height: 480px; }
  .manifesto-copy { padding: 80px 24px; }
  .roadmap-item { min-height: 310px; }
  .roadmap-dot { margin: 38px 0 30px; }
  .chart-frame { min-height: 520px; }
  .final-section { padding: 90px 20px; }
  .final-copy h2 { font-size: clamp(48px, 15vw, 86px); }
  footer { padding: 55px 20px; }
}

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