@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4ece0;
  --cream-2: #ebdfcc;
  --paper: #fbf7f0;
  --ink: #231a18;
  --ink-2: #5d4f4a;
  --ink-3: #8a7b74;
  --crimson: #b02536;
  --crimson-2: #8a1626;
  --crimson-3: #5e0d18;
  --line: rgba(35, 26, 24, 0.12);
  --glass: rgba(251, 247, 240, 0.62);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 78% 12%, rgba(176, 37, 54, 0.10), transparent 60%),
    radial-gradient(900px 700px at 8% 88%, rgba(176, 37, 54, 0.07), transparent 60%),
    var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, kbd {
  font: 500 0.86em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: rgba(35, 26, 24, 0.06);
  white-space: nowrap;
}
kbd { border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* Stage */
#stage {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .14  0 0 0 0 .10  0 0 0 0 .09  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .nav, .footer { position: relative; z-index: 2; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(244, 236, 224, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--serif); letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.nav nav a:hover { color: var(--crimson); }

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 15.5px/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s;
}
.btn-primary {
  color: #fff7ee;
  background: linear-gradient(180deg, #c22b3e, var(--crimson-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 30px -10px rgba(138, 22, 38, 0.65), 0 2px 6px rgba(94, 13, 24, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 40px -12px rgba(138, 22, 38, 0.7), 0 2px 6px rgba(94, 13, 24, 0.25); }
.btn-ghost { color: var(--ink); background: rgba(251, 247, 240, 0.55); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--crimson); color: var(--crimson); }
.btn-small { --h: 40px; padding: 0 18px; white-space: nowrap; font-size: 14px; color: var(--paper); background: var(--ink); }
.btn-small:hover { background: var(--crimson); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn .soon {
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: rgba(255, 247, 238, 0.2);
}
.btn-small .soon { background: rgba(251, 247, 240, 0.18); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 144; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--crimson); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
h2 { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-variation-settings: "SOFT" 50, "opsz" 48; }
.kicker, .eyebrow {
  margin: 0 0 20px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson);
}
section { position: relative; padding: clamp(96px, 14vh, 160px) var(--pad); }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 7vh, 80px); }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); letter-spacing: 0.12em; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 0 rgba(176, 37, 54, 0.6); animation: pip 2.4s infinite; }
@keyframes pip { 0% { box-shadow: 0 0 0 0 rgba(176, 37, 54, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(176, 37, 54, 0); } }
h1 { font-size: clamp(56px, 8.6vw, 128px); line-height: 0.94; margin: 6px 0 28px; font-weight: 450; }
h1 em { display: inline-block; padding-right: 0.06em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-center { justify-content: center; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 34px 0 0; font-size: 14px; color: var(--ink-3); }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--crimson); background: radial-gradient(circle, var(--crimson) 0 3px, transparent 3.5px); }

.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-fallback { display: none; position: absolute; right: 8vw; top: 50%; width: min(36vw, 440px); transform: translateY(-50%) rotate(-6deg); filter: drop-shadow(0 40px 50px rgba(94, 13, 24, 0.35)); }
.no-webgl .hero-fallback { display: block; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--crimson); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* Ticker */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--crimson-2);
  color: #f6eddf;
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 30px 60px -30px rgba(94, 13, 24, 0.6);
  padding: 18px 0;
}
.ticker-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: ticker 38s linear infinite; }
.ticker span { font: italic 400 clamp(28px, 3.4vw, 48px)/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.ticker b { font-size: 20px; opacity: 0.6; font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* States */
.states { padding-bottom: 0; }
.step { min-height: 92vh; display: flex; align-items: center; }
.step-card {
  max-width: 470px; padding: 34px 36px 36px; border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 30px 60px -40px rgba(35, 26, 24, 0.45);
}
.step-card h3 { margin: 6px 0 14px; font-size: clamp(28px, 2.8vw, 40px); }
.step-card p { margin: 0; color: var(--ink-2); }
.step-card .step-tag { display: flex; align-items: center; gap: 12px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); margin-bottom: 14px; }
.glyph { width: 30px; height: 30px; border-radius: 9px; background: var(--crimson); position: relative; }
.glyph::before { content: ""; position: absolute; inset: 6px 8px 8px 6px; border-radius: 50%; background: #f6eddf; }
.glyph::after { content: ""; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; }
.glyph-dot::after { background: #f6eddf; box-shadow: 0 0 0 2px var(--crimson); }
.glyph-ring { background: #8d8177; }
.glyph-ring::after { box-shadow: 0 0 0 2px #8d8177, inset 0 0 0 2px #f6eddf; background: #8d8177; }
.glyph-none { background: #3a312e; }
.glyph-none::before { opacity: 0.6; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; padding: 30px; border-radius: 28px; min-height: 280px;
  background: linear-gradient(160deg, rgba(251, 247, 240, 0.92), rgba(240, 230, 214, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1px 0 rgba(35, 26, 24, 0.05), 0 30px 60px -38px rgba(35, 26, 24, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 40px 70px -36px rgba(94, 13, 24, 0.45); }
.card h3 { margin: 0 0 10px; transform: translateZ(30px); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; transform: translateZ(20px); }
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; }
.card-art { height: 120px; margin-bottom: 20px; display: flex; align-items: center; transform: translateZ(45px); }
.card-wide .card-art { height: 100%; min-height: 200px; margin: 0; justify-content: center; }

.art-screen .screen { position: relative; width: 210px; height: 136px; border-radius: 14px; background: linear-gradient(160deg, #2e2523, #191210); box-shadow: 0 0 0 7px #3a302d, 0 30px 50px -20px rgba(35, 26, 24, 0.6); overflow: hidden; }
.art-screen .screen::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 70px; height: 14px; margin-left: -35px; border-radius: 0 0 8px 8px; background: #3a302d; }
.screen-glow { position: absolute; inset: 14px; border-radius: 8px; background: radial-gradient(120% 90% at 30% 20%, #f6eddf, #e9c9a8 45%, #b02536 120%); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.82; filter: saturate(1.2); } }

.art-path { width: 100%; max-width: 240px; overflow: visible; }
.art-path path { fill: none; stroke: var(--crimson); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.7; }
.cursor-dot { fill: var(--crimson); offset-path: path("M14 86 C 46 20, 82 96, 112 52 S 168 18, 186 34"); animation: travel 5s var(--ease) infinite alternate; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.art-dial { width: 110px; height: 110px; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: rgba(35, 26, 24, 0.1); stroke-width: 10; }
.dial-arc { fill: none; stroke: var(--crimson); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 12 12; stroke-dashoffset: -8; }
.dial-hub { fill: var(--ink); }

.art-pause { width: 74px; height: 74px; border-radius: 22px; background: #8d8177; position: relative; box-shadow: 0 20px 30px -16px rgba(35, 26, 24, 0.6); }
.art-pause::before { content: ""; position: absolute; left: 13px; top: 17px; width: 42px; height: 42px; border-radius: 50%; background: #f6eddf; }
.art-pause span { position: absolute; right: 7px; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 3.5px solid #f6eddf; box-shadow: 0 0 0 4px #8d8177; background: #8d8177; animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); } }

.card-list { grid-template-columns: 1fr 2fr; min-height: 0; }
.card-list ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; transform: translateZ(20px); }
.card-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--crimson); }

/* Screens */
.look { padding-bottom: clamp(60px, 10vh, 120px); }
.shots { --p: 0; position: relative; height: clamp(340px, 52vw, 680px); perspective: 1800px; perspective-origin: 50% 30%; }
.shot { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper); transform-style: preserve-3d; will-change: transform; }
.shot img { width: 100%; height: auto; }
.shot-deck {
  left: 4%; top: 2%; width: 72%;
  box-shadow: 0 0 0 1px rgba(35, 26, 24, 0.08), 0 60px 100px -40px rgba(35, 26, 24, 0.55);
  transform: rotateY(calc(18deg - var(--p) * 10deg)) rotateX(calc(8deg + var(--p) * 3deg)) rotateZ(-2deg) translateZ(-40px);
}
.shot-popup {
  right: 6%; top: 10%; width: 24%; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(35, 26, 24, 0.08), 0 70px 100px -30px rgba(94, 13, 24, 0.55);
  transform: rotateY(calc(-16deg + var(--p) * 12deg)) rotateX(calc(6deg - var(--p) * 4deg)) translate3d(0, calc(var(--p) * -40px), 120px);
}
.caption { max-width: 560px; color: var(--ink-3); font-size: 15px; margin: 40px 0 0; }

/* Privacy */
.privacy { min-height: 100vh; display: flex; align-items: center; justify-content: flex-end; }
.privacy-copy { max-width: 560px; padding: 40px; border-radius: 32px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.privacy-copy h2 { margin-bottom: 22px; }
.privacy-copy > p { color: var(--ink-2); margin: 0 0 28px; }
.perms { margin: 0 0 30px; display: grid; gap: 2px; }
.perms div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.perms dt { font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--crimson); }
.perms dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--crimson); }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* FAQ */
.faq-list { max-width: 900px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font: 500 clamp(20px, 2vw, 27px)/1.25 var(--serif); letter-spacing: -0.01em; font-variation-settings: "SOFT" 50, "opsz" 48;
  transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--crimson); }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease);
}
details[open] summary::after { transform: rotate(135deg); }
details p { margin: 0 0 28px; max-width: 680px; color: var(--ink-2); }

/* Finale */
.finale { min-height: 112vh; display: flex; align-items: flex-end; justify-content: center; text-align: center; padding-bottom: 14vh; }
.finale-copy { max-width: 760px; }
.finale h2 { margin-bottom: 20px; }
.finale p { color: var(--ink-2); margin: 0 auto 32px; max-width: 520px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; padding: 36px var(--pad) 44px; border-top: 1px solid var(--line); background: rgba(235, 223, 204, 0.6); }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--serif); }
.footer nav { display: flex; gap: 24px; font-size: 15px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--crimson); }
.fine { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-3); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .bento .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .nav .btn-small .soon { display: none; }
  .hero { align-items: flex-end; padding-top: 52vh; padding-bottom: 80px; min-height: 100svh; }
  .scroll-cue { display: none; }
  h1 { font-size: clamp(50px, 14vw, 76px); }
  .step { align-items: flex-end; min-height: 100svh; padding-bottom: 8vh; }
  .step-card { padding: 26px; }
  .bento { grid-template-columns: 1fr; }
  .card-wide, .card-list { grid-column: auto; grid-template-columns: 1fr; }
  .card-wide .card-art { min-height: 170px; }
  .card-list ul { grid-template-columns: 1fr; }
  .shots { height: auto; display: grid; gap: 22px; perspective: none; }
  .shot { position: relative; inset: auto; width: 100%; transform: none !important; }
  .shot-popup { width: 70%; justify-self: center; }
  .privacy { align-items: flex-end; padding-top: 50vh; }
  .privacy-copy { padding: 26px; }
  .perms div { grid-template-columns: 1fr; gap: 4px; }
  .finale { min-height: 100svh; padding-bottom: 10vh; }
  .finale-copy { padding: 30px 22px; border-radius: 28px; background: rgba(251, 247, 240, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(35, 26, 24, 0.35); }
  .hero-fallback { right: 50%; top: 22vh; width: 54vw; transform: translate(50%, -50%) rotate(-6deg); }
}

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