:root {
  --navy: #142a4c; --navy-2: #0e1f3a; --dusty: #57779b; --dusty-hi: #7a94b4; --mist: #b8c0cb;
  --ink: #1d2430; --muted: #5d6673; --line: #dde3ea; --paper: #f6f4ef; --paper-2: #efece4; --white: #fff;
  --accent: #8a6421; /* brass: CTAs only (5.4:1 with white text) */
  --dusty-text: #4d6a8c; /* dusty blue for small text (5.1:1 on paper) */
  --display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --body: 'Switzer', 'Segoe UI', system-ui, sans-serif;
  --r: 6px;
  --gap: clamp(64px, 9vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; max-width: 18ch; }
h3 { font-size: 24px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--dusty-text); }
.dark h2 em { color: var(--dusty-hi); }
.kicker { font: 600 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dusty-text); margin: 0 0 18px; }
.kicker.light { color: var(--mist); }
.sub { color: var(--muted); max-width: 60ch; margin: 18px 0 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--r); background: var(--accent); color: #fff;
  font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid #6f5018; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { background: #7d5a1c; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(138,100,33,.7); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark .btn:focus-visible, .dark a:focus-visible, .dark input:focus-visible, .dark button:focus-visible, .foot a:focus-visible { outline-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--mist); }
.btn-ghost:hover { background: #fff; box-shadow: none; }
.btn-small { padding: 10px 16px; font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,.86); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--ink); padding-block: 6px; background: linear-gradient(var(--dusty), var(--dusty)) left bottom / 0 1px no-repeat; transition: background-size .25s; padding-bottom: 2px; }
.nav nav a:hover { background-size: 100% 1px; }

/* hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 var(--gap); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { font-size: 19px; color: #3b4452; max-width: 46ch; margin: 26px 0 34px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.hero-facts strong { display: block; font: 500 30px/1.1 var(--display); color: var(--navy); }
.hero-stage { position: relative; }
.word { background: #fff; border-radius: 10px; box-shadow: 0 40px 80px -40px rgba(20,42,76,.45), 0 0 0 1px rgba(20,42,76,.08); overflow: hidden; transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transform-origin: left center; }
.word-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #2b579a; color: #fff; font-size: 12px; }
.word-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.word-bar b { font-weight: 500; margin: 0 auto; opacity: .9; }
.word-ribbon { background: #f3f3f3; border-bottom: 1px solid #ddd; padding: 6px 14px 8px; font-size: 11.5px; color: #444; }
.word-ribbon i { font-style: normal; margin-right: 16px; }
.word-ribbon i.on { color: #2b579a; font-weight: 600; border-bottom: 2px solid #2b579a; padding-bottom: 2px; }
.ribbon-groups { display: flex; gap: 6px; margin-top: 8px; }
.ribbon-groups span { padding: 4px 8px; border-radius: 3px; background: #fff; border: 1px solid #e2e2e2; font-size: 11px; }
.ribbon-groups span.on { border-color: var(--dusty); color: var(--navy); background: #eef2f7; }
.word-body { display: grid; grid-template-columns: 1fr 236px; background: #e8e8e8; height: 520px; }
.page { padding: 22px 20px 0; overflow: hidden; }
.page img { box-shadow: 0 2px 10px rgba(0,0,0,.15); background: #fff; }
.pane { background: #fff; border-left: 1px solid #d6d6d6; overflow: hidden; }
.pane img { width: 100%; animation: panescroll 14s ease-in-out 1.2s infinite alternate; }
@keyframes panescroll { 0%, 18% { transform: translateY(0); } 82%, 100% { transform: translateY(-46%); } }
.float-tag { position: absolute; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(20,42,76,.4); display: flex; align-items: center; gap: 8px; animation: floaty 6s ease-in-out infinite; }
.float-tag.t1 { left: -18px; bottom: 70px; }
.float-tag.t2 { right: 30px; top: -16px; animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #c00000; } .dot.amber { background: #a86400; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 48s linear infinite; font: italic 400 19px/1 var(--display); color: var(--dusty-text); }
.marquee-track span { white-space: nowrap; }
.marquee-track span::after { content: "§"; margin-left: 48px; color: var(--mist); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }
.motion-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--mist); border-radius: var(--r); padding: 8px 12px; font: 500 13px/1 var(--body); color: var(--ink); cursor: pointer; min-height: 36px; }
.motion-toggle:hover { background: #fff; }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--mist); border-radius: var(--r); padding: 8px 12px; font: 500 14px/1 var(--body); color: var(--ink); cursor: pointer; min-height: 40px; }

/* modules */
.modules { padding: var(--gap) 0; }
.mod-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(40px, 6vw, 96px); margin-top: 56px; align-items: start; }
.mod-list { list-style: none; margin: 0; padding: 0; }
.mod { padding: 34px 0 34px 20px; border-top: 1px solid var(--line); border-left: 3px solid transparent; transition: border-color .35s; }
.mod:last-child { border-bottom: 1px solid var(--line); }
.mod.active { border-left-color: var(--accent); }
.mod:not(.active) h3 { color: var(--muted); }
.mod .num { font: 500 14px/1 var(--body); color: var(--dusty-text); letter-spacing: .08em; }
.mod h3 { font-size: 34px; margin: 10px 0 12px; }
.mod p { margin: 0; color: #3b4452; max-width: 56ch; }
.mod-stage { position: sticky; top: 104px; }
.pane-frame { background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(20,42,76,.4), 0 0 0 1px rgba(20,42,76,.08); overflow: hidden; height: 620px; }
.pane-frame img { width: 100%; transition: opacity .35s ease; }
.pane-frame img.swap { opacity: 0; }
.pane-frame.tall { height: 680px; }

/* papers */
.papers { padding: 0 0 var(--gap); }
.paper-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 48px; }
.paper-rail figure { margin: 0; }
.paper-rail img { width: 100%; aspect-ratio: 595 / 770; object-fit: cover; object-position: top; background: #fff; border-radius: 4px; box-shadow: 0 16px 36px -22px rgba(20,42,76,.5), 0 0 0 1px rgba(20,42,76,.07); transition: transform .3s; }
.paper-rail figure:hover img { transform: translateY(-6px); }
.paper-rail figcaption { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 14px; line-height: 1.35; }
.paper-rail figcaption span { font-weight: 400; color: var(--muted); font-size: 13px; }

/* dark sections */
.dark { background: var(--navy); color: #dfe5ee; }
.dark h2, .dark h3 { color: #fff; }
.judge { padding: var(--gap) 0; position: relative; overflow: hidden; }
.judge::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(122,148,180,.25), transparent 65%); }
.judge-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.judge-copy > p { color: #c3ccd8; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0; }
.ticks li { padding: 14px 0 14px 30px; border-top: 1px solid rgba(255,255,255,.1); position: relative; color: #c3ccd8; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 6px; border-left: 2px solid var(--dusty-hi); border-bottom: 2px solid var(--dusty-hi); transform: rotate(-45deg); }
.ticks b { color: #fff; font-weight: 600; }
.fine { font-size: 13.5px; color: var(--mist) !important; }

/* courts */
.courts { padding: var(--gap) 0; }
.court-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.court-grid article { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background .25s; }
.court-grid article:hover { background: #fff; }
.court-grid h3 { font-size: 22px; margin-bottom: 10px; }
.court-grid p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* how */
.how { padding: 0 0 var(--gap); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.step { background: #fff; border-radius: 10px; padding: 32px 28px; box-shadow: 0 0 0 1px rgba(20,42,76,.07); }
.step .num { font: italic 400 44px/1 var(--display); color: var(--dusty-text); }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.trust b { color: var(--navy); }

/* roadmap */
.roadmap { padding: var(--gap) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.road-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.road { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.road li { padding: 20px 0 20px 48px; border-top: 1px solid var(--line); position: relative; color: #3b4452; }
.road li::before { counter-increment: r; content: counter(r, upper-roman); position: absolute; left: 0; top: 20px; font: italic 400 20px/1.3 var(--display); color: var(--dusty-text); }
.road b { color: var(--navy); }

/* access */
.access { padding: var(--gap) 0; text-align: center; }
.access-in { display: flex; flex-direction: column; align-items: center; }
.access-mark { margin-bottom: 28px; }
.access h2 { max-width: 20ch; margin-inline: auto; }
.access p { color: #c3ccd8; }
.access-form { display: flex; gap: 10px; margin-top: 22px; width: min(520px, 100%); flex-wrap: wrap; align-items: flex-end; }
.access-form .field { flex: 1; display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 220px; }
.access-form label { font-size: 14px; font-weight: 600; color: #fff; }
.access-form input[aria-invalid="true"] { border-color: #ffb4a8; box-shadow: 0 0 0 1px #ffb4a8; }
.access-form input { flex: 1; padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font: 400 16px var(--body); }
.access-form input::placeholder { color: #9aa7b8; }
.form-msg { min-height: 1.6em; font-size: 15px; }

/* footer */
.foot { background: var(--navy-2); color: #9aa7b8; padding: 48px 0 40px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.foot p { margin: 0; max-width: 60ch; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

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

@media (max-width: 1000px) {
  .hero-grid, .mod-grid, .judge-grid, .road-grid { grid-template-columns: 1fr; }
  .mod-stage { display: none; }
  .mod { opacity: 1; }
  .paper-rail { grid-template-columns: repeat(3, 1fr); }
  .court-grid { grid-template-columns: repeat(2, 1fr); }
  .judge-stage { max-width: 420px; }
  .word { transform: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 0; font-size: 16px; }
  .nav-in .motion-toggle.in-bar { display: none; }
  .nav nav .motion-toggle.in-nav { display: inline-flex; margin-top: 8px; align-self: flex-start; }
  .nav-in .btn-small { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .word-body { grid-template-columns: 1fr 150px; height: 380px; }
  .float-tag.t1 { left: 8px; bottom: -14px; }
  .float-tag.t2 { right: 8px; }
  .paper-rail { grid-template-columns: repeat(2, 1fr); }
  .court-grid, .steps, .trust { grid-template-columns: 1fr; }
  .access-form { flex-direction: column; }
  .foot-in { grid-template-columns: 1fr; gap: 18px; }
  .nav-in .brand img { width: 140px; height: auto; }
  .hero-facts { gap: 20px; }
}
.hero-grid > *, .mod-grid > *, .judge-grid > *, .road-grid > * { min-width: 0; }
.btn { white-space: nowrap; }
@media (max-width: 640px) { .nav-in .btn-small { padding: 9px 12px; font-size: 13px; } .lede { font-size: 17px; } }

/* honeypot field for the early-access form (hidden from everyone, including screen readers) */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

.foot a { color: #dfe5ee; text-decoration: underline; text-underline-offset: 2px; }
.a11y-note { font-size: 13px; }
@media (forced-colors: active) { .btn, .motion-toggle, .menu-btn { border: 1px solid ButtonText; } .dot { forced-color-adjust: none; } }
@media (min-width: 1001px) { .nav nav .motion-toggle.in-nav { display: none; } }
.nav-in .brand { flex-shrink: 0; }
@media (max-width: 640px) { .nav-in { gap: 12px; } .nav-in .brand img { width: 120px; height: auto; } }
.show-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .show-sm { display: inline; } }
