/* EPOCH preview website — plain CSS, no build step. */
:root {
  --ink: #0d171e;
  --midnight: #14232d;
  --slate: #1b2f3c;
  --slate-2: #24394a;
  --ivory: #f4ebd8;
  --parchment: #efe4cf;
  --parchment-2: #e6d8bd;
  --brown: #3a2a1c;
  --brass: #c69c61;
  --brass-hi: #e0bd85;
  --amber: #e89a2c;
  --river: #2c5672;
  --muted: rgba(244, 235, 216, .68);
  --line: rgba(198, 156, 97, .28);
  --serif: "Garamond", "EB Garamond", "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ivory);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

.eyebrow {
  font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.preview-flag {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(13, 23, 30, .82); color: var(--brass-hi); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 99px; backdrop-filter: blur(8px); white-space: nowrap;
  pointer-events: none;
}

/* Buttons */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 99px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--gold { background: linear-gradient(180deg, #e4c38d, #c69c61); color: #1f160c; box-shadow: 0 8px 30px -10px rgba(232, 154, 44, .6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(232, 154, 44, .75); }
.btn--ghost { background: rgba(244, 235, 216, .08); color: var(--ivory); border-color: rgba(244, 235, 216, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(244, 235, 216, .16); transform: translateY(-2px); }
.btn--text { background: none; color: var(--ivory); padding: 0 8px; }
.btn--text:hover { color: var(--brass-hi); }
.btn--small { --h: 38px; padding: 0 18px; font-size: .85rem; }
.play {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244, 235, 216, .55);
  position: relative; transition: border-color .25s, transform .25s var(--ease);
}
.play::after { content: ""; position: absolute; left: 15px; top: 12px; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.btn--text:hover .play { border-color: var(--brass-hi); transform: scale(1.08); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav__inner { max-width: 1320px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 28px; transition: padding .35s var(--ease); }
.nav.is-solid { background: rgba(13, 23, 30, .86); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__inner { padding-top: 10px; padding-bottom: 10px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.35rem/1 var(--serif); letter-spacing: .14em; }
.nav__brand img { width: 34px; height: 34px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .92rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(13, 23, 30, .25), rgba(13, 23, 30, .78) 100%),
    linear-gradient(180deg, rgba(13, 23, 30, .55) 0%, rgba(13, 23, 30, 0) 30%, rgba(13, 23, 30, .2) 65%, var(--ink) 100%);
}
.hero__content { text-align: center; padding: 120px var(--gutter) 140px; max-width: 980px; }
.hero__logo img { width: min(640px, 86vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .55)); animation: rise 1.4s var(--ease) both; }
.hero__claim { font: 500 clamp(1.7rem, 3.6vw, 2.7rem)/1.15 var(--serif); margin: 22px 0 14px; }
.hero__claim em { color: var(--brass-hi); font-style: italic; }
.hero__lead { color: rgba(244, 235, 216, .85); max-width: 640px; margin: 0 auto 34px; font-size: clamp(1rem, 1.6vw, 1.12rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.hero__note { position: absolute; left: var(--gutter); bottom: 22px; margin: 0; font-size: .74rem; letter-spacing: .08em; color: rgba(244, 235, 216, .55); }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(244, 235, 216, .45); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ivory); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* Pitch */
.pitch { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.pitch__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.pitch__text h2 { margin-bottom: 26px; }
.pitch__text p:last-child { color: var(--muted); font-size: 1.08rem; }
.stats { margin: 0; display: grid; gap: 0; }
.stats div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.stats div:last-child { border-bottom: 1px solid var(--line); }
.stats dt { font: 500 3.4rem/1 var(--serif); color: var(--brass-hi); }
.stats dd { margin: 0; color: var(--muted); }

/* Section heads */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head h2 { margin-bottom: 18px; }
.section-head__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--left .eyebrow::after { display: none; }

/* Epochs */
.epochs { padding: clamp(70px, 9vw, 130px) 0; background: linear-gradient(180deg, var(--ink), var(--midnight) 30%, var(--midnight) 70%, var(--ink)); }
.strip { margin: 0 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.strip img { width: 100%; height: clamp(110px, 17vw, 260px); object-fit: cover; object-position: center 62%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip figcaption { text-align: center; font-size: .74rem; color: rgba(244, 235, 216, .45); margin-top: 10px; letter-spacing: .06em; }

.epoch-view { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.epoch-view__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9.2; background: var(--slate); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.epoch-view__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform 1.2s var(--ease); }
.epoch-view__media img.is-swapping { opacity: 0; transform: scale(1.03); }
.badge { position: absolute; left: 14px; top: 14px; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; background: rgba(13, 23, 30, .75); color: var(--brass-hi); backdrop-filter: blur(6px); }
.epoch-view__num { font: 500 clamp(3.4rem, 6vw, 5rem)/1 var(--serif); color: var(--brass); margin: 0 0 6px; opacity: .9; }
.epoch-view__text h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.epoch-view__era { color: var(--brass-hi); font: italic 1.15rem/1.3 var(--serif); margin: 8px 0 18px; }
.epoch-view__text > p:not([class]) { color: var(--muted); min-height: 5.2em; }
.epoch-view__status { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ivory); margin: 0; }
.epoch-view__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status, #79c27a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status, #79c27a) 25%, transparent); }
.epoch-view__nav { display: flex; gap: 10px; margin-top: 26px; }
.epoch-view__text { transition: opacity .3s; }
.epoch-view__text.is-swapping { opacity: .2; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ivory); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.round:hover { background: rgba(198, 156, 97, .14); border-color: var(--brass); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(11, minmax(74px, 1fr)); gap: 0; margin: clamp(34px, 5vw, 60px) 0 0; padding: 14px 0 6px; overflow-x: auto; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 4%; top: 30px; height: 1px; background: linear-gradient(90deg, var(--brass), var(--amber)); width: 0; transition: width .6s var(--ease); }
.tl { position: relative; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 .8rem/1.25 var(--sans); text-align: center; transition: color .2s; }
.tl__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--midnight); border: 1px solid var(--line); font: 600 .78rem/1 var(--serif); color: var(--brass); transition: all .35s var(--ease); position: relative; z-index: 1; }
.tl:hover { color: var(--ivory); }
.tl:hover .tl__dot { border-color: var(--brass); }
.tl[aria-selected="true"] { color: var(--ivory); }
.tl[aria-selected="true"] .tl__dot { background: var(--brass); color: #1f160c; border-color: var(--brass-hi); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(198, 156, 97, .18); }
.tl.is-future .tl__dot { border-style: dashed; }

.compare-block { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(80px, 11vw, 150px); }
.compare-block__text p:last-child { color: var(--muted); }
.compare-block__text h3 { margin-bottom: 18px; }
.compare { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; user-select: none; touch-action: pan-y; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); background: var(--slate); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ivory); box-shadow: 0 0 20px rgba(0, 0, 0, .5); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--ivory); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.compare__handle span::before { left: 9px; border-right: 8px solid var(--ink); border-left: 0; }
.compare__handle span::after { right: 9px; border-left: 8px solid var(--ink); border-right: 0; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; bottom: 14px; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 11px; border-radius: 99px; background: rgba(13, 23, 30, .72); backdrop-filter: blur(6px); pointer-events: none; }
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; }
.compare.is-hinting .compare__before { transition: clip-path 1.1s var(--ease); }
.compare.is-hinting .compare__handle { transition: left 1.1s var(--ease); }

/* How it works (light section) */
.how { background: var(--parchment); color: var(--brown); padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.how::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(232, 154, 44, .14), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(44, 86, 114, .10), transparent 55%); pointer-events: none; }
.section-head--dark .section-head__lead { color: rgba(58, 42, 28, .78); }
.section-head--dark .eyebrow { color: #9a6a33; }
.feature { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(60px, 9vw, 120px); }
.feature:last-child { margin-bottom: 0; }
.feature--flip { grid-template-columns: 1fr 1.35fr; }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media video { width: 100%; aspect-ratio: 1920 / 1048; object-fit: cover; border-radius: var(--radius); background: #cbbd9f; box-shadow: 0 34px 60px -30px rgba(58, 42, 28, .55); }
.feature__inset { position: absolute; width: 44%; right: -4%; bottom: -12%; margin: 0; background: var(--parchment); padding: 6px 6px 8px; border-radius: 10px; box-shadow: 0 20px 40px -18px rgba(58, 42, 28, .6); transform: rotate(2deg); }
.feature__inset img { border-radius: 6px; }
.feature__inset figcaption { font-size: .7rem; color: rgba(58, 42, 28, .7); margin: 6px 4px 0; }
.feature--flip .feature__inset { right: auto; left: -4%; transform: rotate(-2deg); }
.feature__no { font: 500 1rem/1 var(--serif); color: #9a6a33; letter-spacing: .2em; display: block; margin-bottom: 14px; }
.feature__no::after { content: ""; display: inline-block; width: 48px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; opacity: .6; }
.feature__text h3 { margin-bottom: 16px; color: #24180e; }
.feature__text p { color: rgba(58, 42, 28, .85); font-size: 1.04rem; }
.feature__text strong { color: #24180e; font-weight: 600; }

/* Gallery */
.gallery { padding: clamp(80px, 11vw, 150px) 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 12px; grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; border-radius: 10px; padding: 0; border: 0; cursor: zoom-in; background: var(--slate); grid-column: span 4; grid-row: span 2; }
.tile--wide { grid-column: span 8; grid-row: span 3; }
.tile--tall { grid-column: span 4; grid-row: span 3; }
.tile--full { grid-column: 1 / -1; grid-row: span 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.tile::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font: 500 .82rem/1.3 var(--sans); color: var(--ivory); text-align: left; background: linear-gradient(transparent, rgba(13, 23, 30, .85)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.tile__tag { position: absolute; top: 10px; right: 10px; z-index: 1; font: 600 .6rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-radius: 99px; background: rgba(13, 23, 30, .72); color: var(--brass-hi); }

/* Devlog */
.devlog { background: var(--parchment-2); color: var(--brown); padding: clamp(80px, 11vw, 140px) 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--parchment); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -32px rgba(58, 42, 28, .55); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.post:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(58, 42, 28, .6); }
.post img { aspect-ratio: 16 / 9.5; object-fit: cover; width: 100%; }
.post__body { padding: 22px 24px 26px; }
.post time { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9a6a33; }
.post h3 { font-size: 1.6rem; margin: 10px 0 12px; color: #24180e; }
.post p { color: rgba(58, 42, 28, .85); font-size: .98rem; }
.post details summary { cursor: pointer; font-weight: 600; color: #7a4f22; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.post details summary::-webkit-details-marker { display: none; }
.post details summary::after { content: "→"; transition: transform .3s var(--ease); }
.post details[open] summary::after { transform: rotate(90deg); }
.post details p { margin-top: 12px; animation: fadein .4s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 12vw, 150px); text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(13, 23, 30, .55) 35%, rgba(13, 23, 30, .62) 70%, var(--ink) 100%); }
.cta__inner { max-width: 720px; }
.cta__emblem { width: 88px; height: 88px; margin: 0 auto 22px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.cta h2 { margin-bottom: 16px; }
.cta p { color: rgba(244, 235, 216, .85); }
.signup { display: flex; gap: 10px; max-width: 520px; margin: 30px auto 18px; padding: 6px; border-radius: 99px; background: rgba(13, 23, 30, .6); border: 1px solid rgba(244, 235, 216, .25); backdrop-filter: blur(10px); }
.signup input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ivory); font: inherit; padding: 0 18px; outline: none; }
.signup input::placeholder { color: rgba(244, 235, 216, .45); }
.signup:focus-within { border-color: var(--brass); }
.cta__links { font-size: .92rem; }
.cta__links a { color: var(--brass-hi); text-underline-offset: 4px; }
.ai-note { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; font-size: .72rem; color: rgba(244, 235, 216, .6); background: rgba(13, 23, 30, .6); padding: 6px 10px; border-radius: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 70px; background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; font: 600 1.2rem/1 var(--serif); letter-spacing: .14em; }
.footer__brand span { font-size: .82rem; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.footer__nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.footer__nav a:hover { color: var(--ivory); }
.footer__legal { grid-column: 1 / -1; font-size: .78rem; color: rgba(244, 235, 216, .45); margin: 0; }

/* Legal pages */
.legal-page .nav { position: sticky; }
.legal-back { margin-left: auto; font-size: .9rem; color: var(--muted); text-decoration: none; }
.legal-back:hover { color: var(--ivory); }
.legal { max-width: 780px; padding-top: clamp(50px, 8vw, 90px); padding-bottom: clamp(70px, 10vw, 120px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 18px; }
.legal h2 { font-family: var(--serif); font-size: 1.55rem; margin: 38px 0 10px; color: var(--brass-hi); }
.legal p { color: rgba(244, 235, 216, .82); }
.legal a { color: var(--brass-hi); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__lead { font-size: 1.1rem; }
.legal__date { margin-top: 40px; font-size: .85rem; color: var(--muted); }

/* Dialogs */
dialog { border: 0; padding: 0; background: transparent; color: var(--ivory); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6, 11, 15, .92); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox { width: 100vw; height: 100svh; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox figure { margin: 0; max-width: min(92vw, 1700px); }
.lightbox img { max-height: 82svh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: opacity .25s; }
.lightbox img.is-loading { opacity: .3; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; color: var(--muted); padding: 14px 4px 0; }
.lightbox__close { position: fixed; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244, 235, 216, .3); background: rgba(13, 23, 30, .6); color: var(--ivory); font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__arrow { position: fixed; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(244, 235, 216, .3); background: rgba(13, 23, 30, .6); color: var(--ivory); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; transition: background .2s; }
.lightbox__arrow:hover, .lightbox__close:hover { background: rgba(198, 156, 97, .3); }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }
.teaser { width: min(92vw, 1280px); }
.teaser video { width: 100%; border-radius: 10px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.teaser__note { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.toast { position: fixed; left: 50%; bottom: 56px; transform: translate(-50%, 20px); z-index: 80; background: var(--ivory); color: var(--ink); padding: 12px 20px; border-radius: 10px; font-size: .92rem; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .pitch__grid, .epoch-view, .compare-block { grid-template-columns: 1fr; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__inset { width: 40%; right: 10px; bottom: -24px; }
  .feature--flip .feature__inset { left: auto; right: 10px; }
  .feature__text { padding-top: 12px; }
  .posts { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .epoch-view__text > p:not([class]) { min-height: 0; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 24px; background: rgba(13, 23, 30, .97); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; margin: 0; }
  .nav__links a { font: 500 2rem/1 var(--serif); color: var(--ivory); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__burger { margin-left: auto; }
  .nav__burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
  .nav__burger span { display: block; width: 22px; height: 2px; background: var(--ivory); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; gap: 8px; }
  .tile, .tile--tall { grid-column: span 1; grid-row: span 1; }
  .tile--wide, .tile--full { grid-column: span 2; grid-row: span 2; }
  .tile::after { opacity: 1; transform: none; font-size: .72rem; padding: 22px 10px 8px; }
  .lightbox__arrow { top: auto; bottom: 18px; margin-top: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__content { padding-top: 96px; padding-bottom: 120px; }
  .hero__actions .btn--gold { width: 100%; max-width: 330px; }
  .hero__note { left: 0; right: 0; text-align: center; bottom: 74px; }
  .stats div { grid-template-columns: 70px 1fr; }
  .stats dt { font-size: 2.6rem; }
  .timeline { grid-template-columns: repeat(11, 74px); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .timeline::before, .timeline__fill { left: calc(var(--gutter) + 37px); right: auto; width: calc(10 * 74px); }
  .signup { flex-direction: column; border-radius: 16px; background: rgba(13, 23, 30, .7); }
  .signup input { height: 48px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
  .ai-note { left: 16px; right: 16px; text-align: center; }
  .feature__inset { display: none; }
  .compare__label { font-size: .58rem; padding: 6px 8px; bottom: 10px; }
  .compare__label--l { left: 10px; }
  .compare__label--r { right: 10px; }
  .preview-flag { font-size: .56rem; letter-spacing: .06em; right: 8px; bottom: 8px; padding: 6px 10px; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
