/* Eureka Holdings
   Layout: a cinematic night-water cover you can ripple, then the portfolio laid out
   like a magazine issue: an index of ventures, alternating feature spreads, a masthead,
   correspondence, and an oversized sign-off wordmark. One committed dark theme. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --night: #090E10;
  --night-2: #0E161A;
  --night-3: #152127;
  --ivory: #ECE6DA;
  --ivory-2: #BAB6AD;
  --mute: #8D9594;
  --line: rgba(236, 230, 218, 0.14);
  --line-2: rgba(236, 230, 218, 0.3);
  --water: #12333C;
  --lamp: #E3BE84;
  --live: #93D7AA;
  --on-ivory: #090E10;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ivory); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ivory); color: var(--on-ivory); }
em { font-style: italic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -200px; z-index: 100;
  background: var(--ivory); color: var(--on-ivory); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.flow > * + * { margin-top: 1em; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}
.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -60%;
  z-index: 60; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- header ---------- */
.hdr {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding-block: 22px;
}
.hdr--over { position: absolute; inset: 0 0 auto 0; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ivory); }
.logo-word { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; letter-spacing: -0.01em; }
.logo-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory-2); }
.nav { display: flex; justify-content: center; gap: 6px 34px; flex-wrap: wrap; }
.nav a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2); padding-block: 6px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0.3em; bottom: 0; height: 1px; background: var(--ivory);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.now {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ivory-2);
}
.now:hover { color: var(--ivory); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--lamp);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer;
}
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--night);
  display: grid; align-content: center; gap: 8px; padding: 90px var(--gutter) 40px;
}
.menu a { font-family: var(--serif); font-size: clamp(2.8rem, 13vw, 4.5rem); line-height: 1.05; text-decoration: none; }
.menu a em { color: var(--ivory-2); }
.menu-close { position: absolute; top: 22px; right: var(--gutter); }
@media (max-width: 860px) {
  .js .hdr { grid-template-columns: auto 1fr; }
  .js .hdr .nav, .js .hdr .now { display: none; }
  .js .menu-btn { display: inline-block; justify-self: end; }
  .hdr .now { display: none; }
}

/* ---------- buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 14px 22px; background: transparent; color: var(--ivory);
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.btn--solid { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--ivory); }
.btn--small { padding: 10px 16px; font-size: 0.66rem; }
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory); padding-block: 4px; border-bottom: 1px solid var(--line-2);
}
.tlink:hover { border-bottom-color: var(--ivory); }
.go::after, .out::after {
  content: ""; width: 1em; height: 1em; flex: none; display: inline-block; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.go { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }
.out { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* ---------- cover (home hero) ---------- */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 560px; height: min(88svh, 920px);
  background:
    radial-gradient(60% 50% at 72% 108%, rgba(227, 190, 132, 0.22), transparent 70%),
    linear-gradient(180deg, #070C0E 0%, #0B1A1F 55%, #0F2F37 100%);
}
.water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.cover-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding-bottom: clamp(26px, 4vw, 44px);
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 16.5vw, 11rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin-bottom: clamp(26px, 3.4vw, 44px);
}
.cover-title .ln { display: block; white-space: nowrap; }
.cover.is-drawn .cover-title { color: transparent; }
.cover.is-drawn .cover-title ::selection { color: var(--on-ivory); }
.cover-foot {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding-top: 20px; border-top: 1px solid var(--line-2);
}
/* eureka moments: a rotating footnote of famous discoveries */
.moments { max-width: 36ch; min-width: 0; }
.moments-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.moments-head .label { color: var(--ivory); }
.moments-count { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; color: var(--mute); font-variant-numeric: tabular-nums; }
.moments-next {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer;
  font-size: 0.8rem; color: var(--ivory);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.moments-next:hover { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.moments-next .go { display: inline-flex; }
.moments-stack { display: grid; }
.moment { grid-area: 1 / 1; visibility: hidden; color: var(--ivory-2); font-size: 0.92rem; line-height: 1.5; }
.moment b { color: var(--ivory); font-weight: 600; }
.moment.is-current { visibility: visible; }
.moment.is-in { animation: moment-in 0.9s var(--ease) both; }
@keyframes moment-in { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.cover-lede { max-width: 40ch; font-size: 1.05rem; line-height: 1.55; }
.cover-est { align-self: end; }
@media (min-width: 900px) {
  .cover-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 40px; align-items: end; }
}
.cover-hint {
  position: absolute; z-index: 2; right: var(--gutter); top: 96px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cover-hint::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.dive {
  position: absolute; z-index: 2; right: calc(var(--gutter) * 0.45); bottom: clamp(120px, 18vw, 220px);
  writing-mode: vertical-rl; text-decoration: none; color: var(--ivory-2);
  display: none;
}
.dive:hover { color: var(--ivory); }
@media (min-width: 900px) { .dive { display: block; } }
@media (max-width: 560px) { .cover-hint { top: 84px; } }

/* ---------- section heads ---------- */
.sec { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.sec + .sec { padding-top: clamp(24px, 3vw, 48px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.sec-head .label { color: var(--ivory-2); }
.sec-sub { max-width: 52ch; color: var(--ivory-2); font-size: 1.1rem; }

/* ---------- the index ---------- */
.toc { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.toc li { border-bottom: 1px solid var(--line); }
.toc-row {
  display: grid; align-items: baseline; gap: 6px 24px;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  padding-block: 22px; text-decoration: none; color: var(--ivory);
  transition: padding 0.6s var(--ease), color 0.4s;
}
.toc-n { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--mute); font-variant-numeric: tabular-nums; }
.toc-name { font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; transition: transform 0.7s var(--ease); }
.toc-name em { color: var(--ivory-2); }
.toc-what { grid-column: 2; color: var(--ivory-2); font-size: 0.98rem; }
.toc-status { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
@media (min-width: 900px) {
  .toc-row { grid-template-columns: 3rem minmax(0, 1.25fr) minmax(0, 1fr) 11rem; }
  .toc-what { grid-column: 3; }
  .toc-status { grid-column: 4; grid-row: 1; justify-self: end; }
}
a.toc-row:hover .toc-name { transform: translateX(18px); }
.toc-row--locked { color: var(--ivory-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 0.66rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--live { color: var(--live); }
.tag--soon { color: var(--lamp); }
.tag--muted { color: var(--mute); }
.toc-float {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 3;
  margin: calc(clamp(240px, 22vw, 340px) * -0.375) 0 0 28px;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.toc-float.is-on { opacity: 1; }
.toc-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; filter: url(#rgb-float); }

/* ---------- feature spreads ---------- */
.spreads { display: grid; gap: clamp(64px, 8vw, 120px); }
.spread {
  display: grid; gap: clamp(28px, 4.5vw, 72px); align-items: center;
  grid-template-columns: minmax(0, 1fr); scroll-margin-top: 30px;
}
@media (min-width: 900px) {
  .spread { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .spread--flip .spread-media { order: 2; }
}
.spread-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.feature-title { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.2rem); line-height: 0.9; letter-spacing: -0.02em; }
.feature-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--ivory-2); margin-top: -6px; }
.feature-desc { max-width: 52ch; color: var(--ivory-2); text-wrap: pretty; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.specs dt { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 560px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.media { position: relative; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.035); }
.media.is-rgb img { filter: url(#rgb-media); }
.media-cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.media--wide { aspect-ratio: 16 / 10; }
.media--linger { aspect-ratio: 1400 / 746; }
.media--square { aspect-ratio: 1 / 1; }

/* live WorldPulse globe */
.globe {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 4px; aspect-ratio: 1 / 1;
  background:
    radial-gradient(48% 48% at 50% 50%, rgba(70, 135, 150, 0.16), transparent 75%),
    radial-gradient(90% 60% at 50% 115%, rgba(227, 190, 132, 0.09), transparent 70%),
    var(--night-2);
  user-select: none; -webkit-user-select: none;
}
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.globe canvas:active { cursor: grabbing; }
.has-cursor .globe canvas { cursor: none; }
.globe-top, .globe-bottom {
  position: absolute; left: 16px; right: 16px; z-index: 2; pointer-events: none;
  display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
}
.globe-top { top: 14px; align-items: center; }
.globe-top .label { color: var(--ivory-2); }
.globe-bottom { bottom: 14px; align-items: flex-end; }
.globe-stats { display: grid; gap: 2px; min-width: 0; }
.globe-stats span { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.1; }
.globe-stats small { font-size: 0.74rem; color: var(--ivory-2); }
.globe-key { list-style: none; padding: 0; display: flex; gap: 12px; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.12em; color: var(--ivory-2); }
.globe-key li { display: inline-flex; align-items: center; gap: 6px; }
.globe-key i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.globe-key .k1 { color: #9DB2C4; } .globe-key .k2 { color: #F3CD5B; } .globe-key .k3 { color: #FFA35C; } .globe-key .k4 { color: #FF6A4D; }
.globe-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; background: rgba(9, 14, 16, 0.88); border: 1px solid var(--line-2);
  font-size: 0.78rem; font-weight: 600; color: var(--ivory);
}
@media (max-width: 640px) { .globe { aspect-ratio: 4 / 5; } }
@media (max-width: 480px) { .globe-key { display: none; } }

/* phone stage for Waypoint */
.stage {
  position: relative; display: grid; place-items: center; padding: clamp(30px, 5vw, 60px) 0;
  border-radius: 4px; perspective: 1200px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(80, 140, 150, 0.22), transparent 70%), var(--night-2);
}
.phone {
  width: min(300px, 74%);
  border-radius: 42px; padding: 10px; background: #1A2226;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d; transition: transform 0.8s var(--ease);
}
.phone img { border-radius: 32px; width: 100%; height: auto; }
.stage-badge {
  position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 12px;
}
.stage-badge img { width: 44px; height: 44px; border-radius: 11px; }

/* putting green for The Fair Green */
.putt {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 11;
  background: radial-gradient(80% 90% at 50% 45%, #2F6B3F 0%, #234F31 60%, #183A24 100%);
  user-select: none; -webkit-user-select: none;
}
.putt canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.putt-ui {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; pointer-events: none;
  background: linear-gradient(transparent, rgba(8, 20, 12, 0.55));
}
.putt-ui > * { pointer-events: auto; }
.putt-msg { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; max-width: 30ch; }
.putt-btns { display: flex; gap: 8px; }
.putt-top { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; color: rgba(236, 230, 218, 0.8); }

/* classified */
.classified { border-top: 1px solid var(--line-2); padding-top: 26px; display: grid; gap: 14px; }
.redact { display: inline-block; height: 0.78em; background: var(--ivory); vertical-align: -0.05em; border-radius: 2px; opacity: 0.92; }
.redact--a { width: 3.2em; } .redact--b { width: 2.1em; } .redact--c { width: 4.4em; }

/* ---------- quiz ---------- */
.quiz {
  display: grid; gap: 14px; align-content: start; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 4px; padding: 20px;
  background: rgba(236, 230, 218, 0.03);
}
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quiz-q { display: grid; gap: 14px; }
.quiz-prompt { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.chip-code {
  font-family: var(--sans); font-size: 0.62em; font-weight: 650; letter-spacing: 0.12em;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; vertical-align: 0.2em; white-space: nowrap;
}
.quiz-opts { display: grid; gap: 8px; }
.opt {
  text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font: 500 1rem/1.3 var(--sans); color: var(--ivory);
  padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.opt:hover:not(:disabled) { background: rgba(236, 230, 218, 0.07); border-color: var(--ivory); }
.opt:disabled { cursor: default; }
.opt.is-right { border-color: var(--live); background: rgba(147, 215, 170, 0.1); }
.opt.is-wrong { border-color: #E59A8C; background: rgba(229, 154, 140, 0.08); }
.opt.is-right::after, .opt.is-wrong::after { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.opt.is-right::after { content: "Right"; color: var(--live); }
.opt.is-wrong::after { content: "Your pick"; color: #E59A8C; }
.quiz-why { color: var(--ivory-2); font-size: 0.98rem; }
.quiz-why b { color: var(--ivory); font-weight: 650; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-foot:not(:has(> :not([hidden]))) { display: none; }
.quiz-done { color: var(--ivory-2); }

/* ---------- about / masthead ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 90px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.about-big { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.005em; }
.about-copy { display: grid; gap: 22px; max-width: 46ch; }
.about-copy p:not(.about-big) { color: var(--ivory-2); font-size: 1.1rem; }
.about-copy .about-big { max-width: none; }
.masthead { border-top: 1px solid var(--line-2); }
.masthead > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.masthead dt { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.masthead dd { margin: 0; overflow-wrap: anywhere; }
.masthead-title { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-bottom: 14px; }

/* ---------- contact ---------- */
.mail { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.mail li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.mail .label { grid-column: 1 / -1; }
.mail-link {
  font-family: var(--serif); font-size: clamp(1.9rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere; min-width: 0; position: relative; width: fit-content;
  background: linear-gradient(var(--ivory), var(--ivory)) left bottom / 0% 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}
.mail-link:hover { background-size: 100% 1px; }
.copy-btn[data-state="done"] { background: var(--live); border-color: var(--live); color: var(--on-ivory); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.foot-cols { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-block: 44px 6px; }
.foot-cols h2 { font-size: 0.66rem; font-weight: 650; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.foot-cols a { text-decoration: none; color: var(--ivory-2); }
.foot-cols a:hover { color: var(--ivory); }
.foot-blurb { color: var(--ivory-2); max-width: 30ch; font-size: 0.95rem; }
.foot-wordwrap { container-type: inline-size; }
/* the wordmark fills the column edge to edge and sinks below the legal line, like the cover's water */
.foot-word {
  font-family: var(--serif); font-style: italic;
  font-size: 37vw; font-size: 40.5cqi; line-height: 0.8; letter-spacing: -0.03em;
  white-space: nowrap; margin-top: 10px; margin-bottom: -0.13em; padding-left: 0.02em;
  background: linear-gradient(180deg, var(--ivory) 0%, rgba(236, 230, 218, 0.06) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.foot-legal { position: relative; z-index: 1; background: var(--night); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 26px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.82rem; }

/* ---------- custom cursor (fine pointers only) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .toc-row { cursor: none; }
.has-cursor .putt canvas { cursor: none; }
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ivory); }
.cursor-ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1px solid rgba(236, 230, 218, 0.55);
  display: grid; place-items: center; transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ivory); }
.cursor-ring.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ivory); border-color: var(--ivory); }
.cursor-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-ivory); opacity: 0; transition: opacity 0.3s; }
.cursor-ring.has-label .cursor-label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- subpage hero ---------- */
.page-top { padding-block: clamp(24px, 4vw, 48px) clamp(28px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.crumbs a { text-decoration: none; color: var(--ivory-2); }
.crumbs a:hover { color: var(--ivory); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- Waypoint page ---------- */
.wp-grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: 28px; }
@media (min-width: 960px) { .wp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.wp-copy { display: grid; gap: 24px; min-width: 0; }
.wp-id { display: flex; align-items: center; gap: 18px; }
.wp-id img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.wp-title { font-family: var(--serif); font-size: clamp(4rem, 13vw, 10rem); line-height: 0.86; letter-spacing: -0.02em; }
.wp-lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 40ch; color: var(--ivory-2); }
.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { display: inline-flex; align-items: center; gap: 9px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; }
.ticks--stack { flex-direction: column; align-items: flex-start; }
.wp-side { display: grid; gap: 22px; }

.feats { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feat h3 { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.feat p { color: var(--ivory-2); }

.topics { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.topic { border: 1px solid var(--line-2); border-radius: 4px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.topic-code { font-family: var(--serif); font-size: 3.4rem; line-height: 0.9; letter-spacing: 0.02em; }
.topic p { color: var(--ivory-2); }
.topic p b { color: var(--ivory); font-weight: 650; }

.boxes { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { border: 1px solid var(--line-2); border-radius: 4px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.box h2 { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.box p { color: var(--ivory-2); }
.box-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }

.tiles { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; gap: 10px; align-content: start; padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.tile b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
.tile b::after { width: 0.6em; height: 0.6em; }
.tile span { color: var(--ivory-2); font-size: 0.95rem; }
.tile:hover b { font-style: italic; }
.credits { margin-top: 36px; font-size: 0.86rem; color: var(--mute); max-width: 84ch; }

/* ---------- documents (support, policies) ---------- */
/* policies sit in a centered column so wide screens don't end in an empty right half */
.doc-shell { max-width: calc(1080px + 2 * var(--gutter)); }
.doc-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.toc-side { display: none; }
@media (min-width: 1000px) {
  .toc-side { display: block; position: sticky; top: 28px; align-self: start; border-top: 1px solid var(--line-2); padding-top: 14px; }
}
.toc-side h2 { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.toc-side ol { list-style: none; padding: 0; display: grid; gap: 7px; font-size: 0.92rem; }
.toc-side a { text-decoration: none; color: var(--ivory-2); }
.toc-side a:hover { color: var(--ivory); }
.doc-body { max-width: 70ch; min-width: 0; }
.doc-title { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.8rem); line-height: 0.92; letter-spacing: -0.015em; }
.doc-meta { margin-top: 16px; color: var(--mute); font-size: 0.95rem; }
.doc-body > .flow { margin-top: 30px; }
.doc-body p, .doc-body li { color: #D9D3C8; }
.doc-body h2 {
  font-family: var(--serif); font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.005em;
  margin-top: 2.6rem; padding-top: 18px; border-top: 1px solid var(--line-2); scroll-margin-top: 24px;
}
.doc-body h3 { font-size: 1.08rem; font-weight: 650; margin-top: 1.7rem; color: var(--ivory); }
.doc-body b { color: var(--ivory); font-weight: 650; }
.doc-body ul, .doc-body ol { padding-left: 1.2em; }
.doc-body li + li { margin-top: 0.5em; }
.doc-body li::marker { color: var(--mute); }
.summary-box { border: 1px solid var(--line-2); border-radius: 4px; padding: 20px 22px; background: rgba(236, 230, 218, 0.03); }
.summary-box h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.7rem; }
.summary-box ul { margin-top: 10px; }
.contact-card { border: 1px solid var(--line-2); border-radius: 4px; padding: 22px 24px; display: grid; gap: 12px; background: rgba(236, 230, 218, 0.03); }
.contact-card .mail-link { font-size: clamp(1.7rem, 4.6vw, 2.8rem); }
.contact-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.method { border: 1px solid var(--line-2); border-radius: 4px; padding: 20px 22px 22px; }
.method h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.method > * + * { margin-top: 12px; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.2rem; min-height: 2.3rem; padding-top: 0.3rem; }
.steps > li + li { margin-top: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1;
  border: 1px solid var(--line-2); border-radius: 50%; color: var(--ivory);
}
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 1px solid var(--line); color: #D9D3C8; }
.data-table thead th { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); border-top: 0; border-bottom: 1px solid var(--line-2); }
.data-table td:first-child { color: var(--ivory); }
.qa h3 { margin-top: 2rem; }
.qa h3:first-child { margin-top: 0; }
.qa p { margin-top: 0.5em; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; gap: 24px; justify-items: start; padding-block: 60px; }
.lost-code { font-family: var(--serif); font-style: italic; font-size: clamp(7rem, 26vw, 20rem); line-height: 0.8; color: var(--ivory-2); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.wp-id { flex-wrap: wrap; }
.wp-id .tag { white-space: normal; }
