/* Hold State marketing site — paper-and-sandbox design language (2026-07 redesign).
   Paper sections carry the dot grid via body::before; dark sections (statement,
   features) paint their own background. Cards everywhere use the product's
   state-card chrome: dark surface, 14px radius, brand-gradient hairline top. */

:root {
  --paper: #f2ede3;
  --ink: #17150f;
  --muted: #5f5a4f;
  --orange: #ee7223;        /* pins, buttons, UI accents */
  --orange-text: #d96410;   /* script accents on paper (3:1 at display sizes) */
  --card-bg: #121110;
  --card-shadow: rgba(74, 54, 24, 0.30);
  --grad: linear-gradient(90deg, #f5c92e 0%, #c9bd3f 30%, #fa9148 68%, #f9bcd3 100%);
  --rh1: 29vh;
  --rh2: 24vh;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* sandbox dot grid on paper */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(23, 21, 15, 0.10) 1.1px, transparent 1.1px);
  background-size: 34px 34px;
  background-position: 17px 17px;
}

a { color: inherit; }
img, video { max-width: 100%; }


/* ---------- NAV ---------- */
.nav { position: relative; z-index: 30; max-width: 1440px; margin: 0 auto; padding: 22px 36px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { display: block; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
/* the pill is an <a> inside .nav nav, which would otherwise win on specificity
   and paint the label muted grey (ink on hover) against the dark pill */
.nav nav a.btn-pill { color: #fff; }
.nav nav a.btn-pill:hover { color: #fff; }
.btn-pill { display: inline-block; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; padding: 11px 24px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn-pill:hover { transform: translateY(-1px); background: #000; }
.btn-pill:active { transform: translateY(0) scale(0.98); }

/* ---------- HERO ---------- */
.hero { position: relative; z-index: 1; min-height: calc(100dvh - 84px); display: flex; flex-direction: column; overflow: hidden; }
.copy { position: relative; z-index: 5; width: 100%; max-width: 1440px; margin: 0 auto; padding: 5vh 36px 6vh; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.copy h1 { font-size: clamp(44px, 6.5vw, 98px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.accent { position: relative; font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.accent svg { position: absolute; left: 2%; right: 4%; bottom: -0.12em; height: 0.14em; pointer-events: none; }
.accent svg path { stroke: var(--orange); stroke-width: 7; fill: none; stroke-linecap: round; }
.right { padding-top: 1.3em; max-width: 44ch; justify-self: end; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- BOARD (drifting rows) ---------- */
.board { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.row { overflow: hidden; }
.row1 { height: var(--rh1); animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.row2 { height: var(--rh2); margin-bottom: calc(var(--rh2) * -0.55); animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
.track { display: flex; gap: 20px; width: max-content; height: 100%; }
.row1 .track { animation: driftL 130s linear infinite; }
.row2 .track { animation: driftR 170s linear infinite; }
@keyframes driftL { to { transform: translateX(-50%); } }
@keyframes driftR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes rise { from { transform: translateY(115%); } to { transform: translateY(0); } }

/* ---------- HERO ENTRANCE (scatter -> organize) ----------
   With JS the page opens on a strewn pile of cards over the headline, then
   each one flies home into the two board rows and the marquee takes over.
   `rise` above is the no-JS / reduced-motion fallback. */
.js-anim .row1, .js-anim .row2 { animation: none; }
.js-anim .board { opacity: 0; }              /* hidden until the scatter is set */
.hero.scattered .board { opacity: 1; }
.hero.settling { overflow: visible; }
.hero.settling .row { overflow: visible; }
.hero.settling .board { z-index: 6; }        /* cards ride over the headline */
.hero.settling .track { animation-play-state: paused; }

/* ---------- STATE CARD CHROME ---------- */
.card { position: relative; flex: none; height: 100%; background: var(--card-bg); border-radius: 14px; overflow: hidden; box-shadow: 0 22px 44px -16px var(--card-shadow), 0 4px 10px rgba(74, 54, 24, 0.10); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); z-index: 3; }
.card::after { content: ""; position: absolute; inset: 55% 0 0 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 9, 7, 0) 0%, rgba(10, 9, 7, 0.62) 100%); }
.card img { display: block; height: 100%; width: auto; max-width: none; }
.card figcaption { position: absolute; left: 14px; bottom: 11px; z-index: 2; line-height: 1.3; }
.card figcaption strong { display: block; color: #fdfcf9; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card figcaption span { color: rgba(253, 252, 249, 0.62); font-size: 12.5px; font-weight: 500; }
.card .count { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 9, 7, 0.55); color: #fdfcf9; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.card .menu { position: absolute; right: 10px; top: 13px; z-index: 2; width: 30px; height: 30px; border-radius: 9px; background: rgba(10, 9, 7, 0.45); color: rgba(253, 252, 249, 0.85); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.play { position: absolute; left: 14px; top: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(10, 9, 7, 0.6); display: flex; align-items: center; justify-content: center; }
.play::after { content: ""; margin-left: 3px; border-left: 11px solid #f6f3ec; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }

/* ---------- STATEMENT (dark, gradient script) ---------- */
.statement { position: relative; z-index: 10; background: #0e0d0c; padding: 24vh 28px; text-align: center; }
.statement .s1 { max-width: 26ch; margin: 0 auto; font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(34px, 4.3vw, 62px); letter-spacing: -0.01em; line-height: 1.18; padding-bottom: 0.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement .s2 { max-width: 46ch; margin: 30px auto 0; color: rgba(242, 237, 227, 0.92); font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; line-height: 1.6; }
.statement .s2 em { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; color: #ffffff; }

/* ---------- MOMENTS (pinned scrub) ---------- */
.moments { position: relative; z-index: 10; background: var(--paper); border-top: 1px solid #ddd6c6; }
.m-track { height: 340vh; position: relative; }
.m-pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; align-items: center; }
.m-rail { position: absolute; left: 36px; top: 14dvh; bottom: 14dvh; width: 3px; background: #e0dacb; border-radius: 2px; }
#m-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--grad); border-radius: 2px; }
.m-grid { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 36px 0 96px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.m-copy { position: relative; min-height: 420px; }
.m-step { position: absolute; inset: auto 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.m-num { color: var(--orange); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; margin-bottom: 14px; }
.m-step h2 { font-size: clamp(28px, 2.9vw, 42px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.m-step h2 em { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; color: var(--orange-text); }
.m-step p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin-top: 18px; max-width: 52ch; }
.m-media { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 58dvh; }
.m-card { position: absolute; inset: 0; will-change: transform; }
.m-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FEATURES (dark sandbox scan) ---------- */
.features { position: relative; z-index: 10; background: #0d0c0b; }
.features::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(242, 237, 227, 0.13) 1.1px, transparent 1.1px); background-size: 34px 34px; background-position: 17px 17px; }
.f-track { height: 600vh; position: relative; }
.f-pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.f-head { position: absolute; left: 36px; top: 36px; z-index: 6; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: #f2ede3; }
.fh-accent { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; }
.f-plane2 { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.f-item { position: absolute; width: 460px; }
.f-card2 { position: relative; will-change: transform; transform-origin: center center; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; }
.f-card2 video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.fbadge { position: absolute; right: 12px; top: 14px; z-index: 2; font-size: 11px; font-weight: 600; color: #fdfcf9; border: 1px solid rgba(253, 252, 249, 0.4); border-radius: 999px; padding: 2px 10px; background: rgba(10, 9, 7, 0.5); }
.f-info { margin-top: 16px; padding: 0 4px; }
.f-info strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: #f6f2e8; }
.f-info span { display: block; margin-top: 5px; color: rgba(242, 237, 227, 0.6); font-size: 14.5px; line-height: 1.55; }
.f-progress { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 14px; }
.f-count { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0.08em; color: rgba(242, 237, 227, 0.55); }
.f-railwrap { position: relative; width: 180px; height: 3px; background: #2b2823; border-radius: 2px; overflow: hidden; display: block; }
#f-fill2 { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--grad); display: block; }

/* ---------- PRICING / INVITE / FOOTER (paper) ---------- */
.pricing, .invite { position: relative; z-index: 10; padding: 16vh 28px; text-align: center; }
.pricing h2, .invite h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); }
.accent2 { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; color: var(--orange-text); }
.p-sub { color: var(--muted); margin: 18px auto 0; font-size: 16.5px; max-width: 56ch; line-height: 1.6; }
.tiers { max-width: 820px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.tier { background: var(--card-bg); border-radius: 14px; padding: 34px; position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.tier-featured::before { background: var(--grad); }
.tier h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(242, 237, 227, 0.65); }
.tier-featured h3 { color: #f6f2e8; }
.price { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; color: #fdfcf9; margin: 16px 0 22px; }
.price span { font-size: 15px; color: rgba(242, 237, 227, 0.5); font-weight: 500; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.tier li { color: rgba(242, 237, 227, 0.72); font-size: 14.5px; line-height: 1.5; padding-left: 20px; position: relative; }
.tier li::before { content: "→"; color: var(--orange); position: absolute; left: 0; font-size: 12px; top: 2px; }
.invite { padding-top: 6vh; }
#waitlist-form { max-width: 560px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
#waitlist-form input, #waitlist-form textarea { width: 100%; background: #faf7f0; border: 1px solid #ddd6c6; border-radius: 12px; padding: 15px 18px; color: var(--ink); font-size: 15px; font-family: inherit; resize: vertical; }
#waitlist-form input::placeholder, #waitlist-form textarea::placeholder { color: #9a9384; }
#waitlist-form input:focus, #waitlist-form textarea:focus { outline: none; border-color: var(--orange); }
#waitlist-form .btn-pill { width: 100%; font-size: 16px; padding: 15px 32px; margin-top: 4px; }
#waitlist-status { min-height: 22px; font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
#waitlist-status.ok { color: #6a7a2c; }
#waitlist-status.err { color: #c04545; }
.invite-alt { margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.invite-alt a { color: var(--orange); font-weight: 600; }
.footer { position: relative; z-index: 10; border-top: 1px solid #ddd6c6; padding: 56px 28px 64px; text-align: center; }
.foot-brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.footer p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.footer .foot-fine { color: #9a9384; font-size: 13px; }
.footer a { color: var(--muted); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .track, .row1, .row2 { animation: none; }
  .m-track { height: auto; }
  .m-pin { position: static; height: auto; display: block; padding: 64px 0; overflow: visible; }
  .m-rail { display: none; }
  .m-grid { display: flex; flex-direction: column; gap: 0; }
  .m-copy, .m-media { display: contents; }
  .m-step { position: relative; top: auto; transform: none !important; opacity: 1 !important; margin: 0 0 20px; }
  .m-card { position: relative; inset: auto; transform: none !important; width: 100%; aspect-ratio: 16/9; margin: 0 0 52px; }
  .f-track { height: auto; }
  .f-pin { position: static; height: auto; overflow: visible; padding: 64px 0 40px; }
  .f-head { position: relative; left: auto; top: auto; padding: 0 24px; margin-bottom: 28px; }
  .f-plane2 { position: relative; height: auto; width: auto !important; display: flex; flex-direction: column; gap: 44px; padding: 0 24px; }
  .f-item { position: relative !important; left: auto !important; top: auto !important; width: 100%; }
  .f-card2 { transform: none !important; }
  .f-progress { display: none; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .nav { padding: 18px 20px; }
  .nav nav { gap: 18px; }
  .nav nav a:not(.btn-pill) { display: none; }
  .copy { grid-template-columns: 1fr; gap: 26px; padding: 4vh 24px 5vh; }
  .copy h1 { font-size: clamp(38px, 10.5vw, 58px); }
  .right { justify-self: start; padding-top: 0; }
  :root { --rh1: 22vh; --rh2: 18vh; }
  .statement { padding: 16vh 24px; }
  .m-track { height: auto; }
  .m-pin { position: static; height: auto; overflow: visible; display: block; padding: 64px 0 24px; }
  .m-rail { display: none; }
  .m-grid { display: flex; flex-direction: column; gap: 0; padding: 0 24px; }
  .m-copy, .m-media { display: contents; }
  .m-step { position: relative; top: auto; transform: none !important; opacity: 1 !important; margin: 0 0 20px; }
  .m-card { position: relative; inset: auto; transform: none !important; width: 100%; aspect-ratio: 16/9; margin: 0 0 52px; }
  .m-step[data-i="0"] { order: 0; } .m-card[data-i="0"] { order: 1; }
  .m-step[data-i="1"] { order: 2; } .m-card[data-i="1"] { order: 3; }
  .m-step[data-i="2"] { order: 4; } .m-card[data-i="2"] { order: 5; }
  .f-track { height: auto; }
  .f-pin { position: static; height: auto; overflow: visible; padding: 64px 0 40px; }
  .f-head { position: relative; left: auto; top: auto; padding: 0 24px; margin-bottom: 28px; font-size: 26px; }
  .f-plane2 { position: relative; height: auto; width: auto !important; display: flex; flex-direction: column; gap: 44px; padding: 0 24px; }
  .f-item { position: relative !important; left: auto !important; top: auto !important; width: 100%; }
  .f-card2 { transform: none !important; }
  .f-progress { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing, .invite { padding-left: 20px; padding-right: 20px; }
}
