/* ============================================================
   OnLit — V4 Modern+ (Balanced)
   V3's clean bones, with personality dialed up:
   warm off-white canvas, italic serif accent words,
   small dino moments, secondary accent color, hand-drawn marks.
   ============================================================ */

:root {
  /* Color */
  --canvas: #FAF8F2;          /* warm subtle off-white */
  --surface: #FFFFFF;
  --surface-alt: #F2EEE3;     /* warmer subtle alt */
  --ink: #14181F;
  --ink-soft: #3F4659;
  --ink-muted: #5A6073;
  --rule: #E2DDD0;
  --rule-strong: #14181F;
  --primary: #18254F;          /* deep navy */
  --primary-hover: #28365E;
  --accent: #FF5A36;           /* coral — decorative / large text only */
  --accent-ink: #B83319;       /* WCAG-AA coral for body text & small UI */
  --accent-soft: #FFE3D8;
  --accent-2: #F2C14E;         /* warm yellow — second accent */
  --accent-2-soft: #FBEDC0;
  --accent-3: #2F8674;         /* sage — third, sparingly */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", "Fraunces", Georgia, serif;

  /* Scale */
  --step-1: 0.75rem;
  --step-2: 0.875rem;
  --step-3: 1rem;
  --step-4: 1.125rem;
  --step-5: 1.5rem;
  --step-6: 2.25rem;
  --step-7: 3.5rem;
  --step-8: 5rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Other */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(20, 24, 31, 0.06);
  --shadow-md: 0 12px 28px rgba(20, 24, 31, 0.10);
  --max-w: 1240px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: var(--s-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}
@media (min-width: 768px) {
  .container { padding-left: var(--s-7); padding-right: var(--s-7); }
}

/* Header */
.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: var(--s-4) 0;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: var(--s-2) 0;
}
.brand__mark {
  font-weight: 700;
  font-size: var(--step-5);
  letter-spacing: -0.025em;
  color: var(--primary);
  position: relative;
}
.brand__mark::after {
  /* tiny dot accent — small personality moment */
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: top;
  margin-top: 6px;
}
.brand__sub {
  display: none;
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink-muted);
}
@media (min-width: 900px) { .brand__sub { display: inline; padding-left: var(--s-3); border-left: 1px solid var(--rule); } }

.nav { display: none; }
@media (min-width: 768px) { .nav { display: flex; align-items: center; gap: var(--s-2); } }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 150ms;
}
.nav__link:hover { color: var(--ink); }
/* No special styling for the current page — keeps the nav looking clean. */

.nav-mobile {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--primary);
}
@media (min-width: 768px) { .nav-mobile { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--step-3);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms, transform 150ms;
}
.btn--primary { background: var(--primary); color: var(--canvas); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #E54A2D; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { font-size: var(--step-4); padding: var(--s-4) var(--s-6); min-height: 52px; }
.btn--header { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: var(--step-2); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow__star {
  color: var(--accent-ink);
  font-size: 1.1em;
}

/* Hero */
.hero {
  position: relative;
  padding-top: var(--s-9);
  padding-bottom: var(--s-5);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-top: var(--s-10); padding-bottom: var(--s-6); } }

/* Hero soft background shape */
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: var(--accent-2-soft);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s-9); }
}

.hero__title {
  margin-top: var(--s-5);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero__title-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  position: relative;
  display: inline-block;
}
/* Hand-drawn underline under the serif word */
.hero__title-serif::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1, 100 6 T 198 5' stroke='%23FF5A36' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero__lede {
  margin-top: var(--s-7);
  font-size: var(--step-4);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}
.hero__cta-row {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.hero__cta-note {
  font-size: var(--step-2);
  color: var(--ink-muted);
}

/* Hero side: framed game preview with dino */
.hero__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.hero__frame-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.hero__frame-title {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__frame-body {
  margin-top: var(--s-3);
  font-size: var(--step-3);
  color: var(--ink-soft);
}
.hero__frame-dino {
  position: absolute;
  top: -36px;
  right: -16px;
  width: 92px;
  height: 92px;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 8px rgba(20, 24, 31, 0.18));
  pointer-events: none;
}
.hero__frame-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.meta-cell__label {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-cell__value {
  margin-top: var(--s-1);
  font-size: var(--step-4);
  font-weight: 700;
  color: var(--ink);
}

/* Stat strip */
.stat-strip {
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 700px) { .stat-strip__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-7); } }
.stat-cell { display: flex; flex-direction: column; }
.stat-cell__value {
  font-size: var(--step-7);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}
.stat-cell__value-accent { color: var(--accent-ink); }
.stat-cell__label {
  margin-top: var(--s-3);
  font-size: var(--step-2);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 18rem;
}

/* Section */
.section {
  padding-top: var(--s-10);
  padding-bottom: var(--s-10);
}
.hero + .section { padding-top: var(--s-7); }
.section--alt { background: var(--surface-alt); }
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-9);
  align-items: end;
}
@media (min-width: 900px) { .section__head { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.section__title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section__title-spaced { margin-top: var(--s-4); }
.section__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}
.section__lede {
  font-size: var(--step-4);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Two-up */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.duo__item {
  padding: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  position: relative;
}
.duo__item--accent { background: var(--accent-2-soft); border-color: var(--accent-2-soft); }
.duo__tag {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--canvas);
  color: var(--primary);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--s-5);
}
.duo__item h3 {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.duo__item p {
  margin-top: var(--s-4);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Reasons (3-up) */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason {
  padding-top: var(--s-5);
  border-top: 2px solid var(--rule-strong);
}
.reason__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-5);
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
  line-height: 1;
}
.reason__title {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.reason__body {
  margin-top: var(--s-4);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--rule);
}
.feature:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: var(--s-9); }
  .feature--reverse .feature__media { order: -1; }
}
.feature__index {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
}
.feature__index-num {
  display: inline-block;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step-1);
  text-align: center;
  line-height: 28px;
}
.feature__title {
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.feature__body {
  margin-top: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--step-4);
  line-height: 1.6;
}
.feature__media {
  background: var(--accent-2-soft);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.feature--reverse .feature__media { background: var(--accent-soft); }
.feature__media:nth-of-type(1) { background: var(--accent-2-soft); }
.feature__media img {
  max-width: 60%;
  filter: drop-shadow(0 8px 16px rgba(20, 24, 31, 0.16));
  transition: transform 250ms;
}
.feature__media img.feature__media-img--sm { max-width: 40%; }
.feature:hover .feature__media img { transform: rotate(-3deg) scale(1.03); }

/* Video */
.video-frame {
  margin-top: var(--s-7);
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--surface);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA banner */
.cta-banner {
  padding: var(--s-9) 0;
  background: var(--primary);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -60px;
  width: 320px; height: 320px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.25;
}
.cta-banner__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 768px) { .cta-banner__grid { grid-template-columns: 1fr auto; } }
.cta-banner__title {
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cta-banner__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-2);
}
.cta-banner__lede {
  margin-top: var(--s-3);
  color: rgba(250, 248, 242, 0.7);
  font-size: var(--step-4);
  max-width: 38rem;
}

/* ============================================================
   Parent Portal — dashboard surfaces
   ============================================================ */

.portal-hero {
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.portal-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: var(--accent-2-soft);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}
.portal-hero > .container { position: relative; z-index: 1; }
.portal-hero__greeting {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.portal-hero__title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.portal-hero__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.portal-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.portal-hero__chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Grid layout */
.portal-section { padding: var(--s-8) 0; }
.portal-section--alt { background: var(--surface-alt); }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 1000px) {
  .portal-grid { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
}

.portal-main { display: flex; flex-direction: column; gap: var(--s-6); }
.portal-side { display: flex; flex-direction: column; gap: var(--s-5); }

/* Conversation prompt — reads like a magazine pull-quote */
.prompt-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.prompt-card::after {
  content: "“";
  position: absolute;
  top: -28px;
  right: var(--s-5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 160px;
  line-height: 1;
  color: var(--accent-2);
  opacity: 0.5;
  pointer-events: none;
}
.prompt-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prompt-card__eyebrow .eyebrow__star { color: var(--accent-ink); font-size: 1.1em; }
.prompt-card__title {
  position: relative;
  margin-top: var(--s-4);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 38rem;
}
.prompt-card__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
  display: inline-block;
  position: relative;
}
.prompt-card__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1, 100 6 T 198 5' stroke='%23FF5A36' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.prompt-card__body {
  position: relative;
  margin-top: var(--s-6);
  font-size: var(--step-4);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38rem;
}
.prompt-card__body strong { color: var(--ink); font-weight: 600; }
.prompt-card__meta {
  position: relative;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--step-2);
  color: var(--ink-muted);
}
.prompt-card__more {
  color: var(--accent-ink);
  font-weight: 600;
}
.prompt-card__more:hover { color: var(--primary); }

/* Block heading inside dashboard */
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.block-head__title {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.block-head__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.block-head__action {
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink-muted);
}
.block-head__action:hover { color: var(--accent-ink); }

/* Activity timeline */
.activity-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}
.activity {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.activity__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.activity__item:last-child { border-bottom: none; }
.activity__dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.activity__dot--alt { background: var(--accent-2); }
.activity__dot--soft { background: var(--rule); }
.activity__main { min-width: 0; }
.activity__title {
  font-weight: 600;
  font-size: var(--step-3);
  color: var(--ink);
}
.activity__meta {
  margin-top: var(--s-1);
  font-size: var(--step-2);
  color: var(--ink-muted);
}
.activity__skill {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}
@media (max-width: 600px) {
  .activity__item { grid-template-columns: auto 1fr; }
  .activity__skill { grid-column: 2; text-align: left; margin-top: var(--s-1); }
}

/* Side cards */
.side-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.side-card--accent {
  background: var(--accent-2-soft);
  border-color: var(--accent-2-soft);
}
.side-card--coral {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.side-card__title {
  font-weight: 600;
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.side-card__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.side-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-4);
}
.side-card__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Big number stats */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.mini-stat__value {
  font-size: var(--step-6);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}
.mini-stat__value--accent { color: var(--accent-ink); }
.mini-stat__value--gold { color: #8A6010; }
.mini-stat__label {
  margin-top: var(--s-2);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Skills */
.skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.skill {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.skill__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--step-2);
}
.skill__name { color: var(--ink); font-weight: 500; }
.skill__count { color: var(--ink-muted); }
.skill__bar {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  background: var(--accent-ink);
  border-radius: 4px;
  transition: width 250ms;
}
.skill--alt .skill__fill { background: #8A6010; }
.skill--primary .skill__fill { background: var(--primary); }

/* Profile card */
.profile {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.profile__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-5);
  color: var(--accent-ink);
  flex-shrink: 0;
}
.profile__info { min-width: 0; }
.profile__name {
  font-weight: 600;
  font-size: var(--step-4);
  color: var(--ink);
}
.profile__meta {
  margin-top: var(--s-1);
  font-size: var(--step-2);
  color: var(--ink-muted);
}

/* Explainer grid */
.explainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px) { .explainer-grid { grid-template-columns: repeat(3, 1fr); } }
.explainer-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform 200ms, box-shadow 200ms;
}
.explainer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.explainer-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: var(--s-1) var(--s-3);
  background: var(--accent-2-soft);
  color: #6B5310;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.explainer-card__title {
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.explainer-card__body {
  font-size: var(--step-3);
  color: var(--ink-soft);
  line-height: 1.55;
}
.explainer-card__meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Demo banner — soft warm cream, on-brand */
.demo-banner {
  background: var(--accent-2-soft);
  color: var(--ink-soft);
  padding: var(--s-3) var(--s-5);
  text-align: center;
  font-size: var(--step-2);
  border-bottom: 1px solid var(--rule);
}
.demo-banner__star {
  display: inline-block;
  color: var(--accent-ink);
  margin-right: var(--s-2);
  font-weight: 700;
}
.demo-banner strong { font-weight: 700; color: var(--ink); }

/* ============================================================
   Team / founders
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.team-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.team-grid > .team-card:nth-child(2) { border-top-color: var(--accent-2); }
.team-grid > .team-card:nth-child(3) { border-top-color: var(--primary); }

.team-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.team-card__photo {
  width: 88px;
  height: 88px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--surface-alt);
  flex-shrink: 0;
}

/* Official school colors used inline in bios + role line. */
.school--dartmouth { color: #00693E; font-weight: 600; }  /* Dartmouth Green */
.school--stanford  { color: #8C1515; font-weight: 600; }  /* Cardinal */
.school--cornell   { color: #B31B1B; font-weight: 600; }  /* Carnelian */
.school--riverdale { color: #76232F; font-weight: 600; }  /* Riverdale Maroon */
.team-card__name {
  font-weight: 600;
  font-size: var(--step-4);   /* slightly smaller so the name fits on one line
                                 next to the photo without breaking */
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.team-card__role {
  margin-top: var(--s-1);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.team-card__bio {
  font-size: var(--step-3);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   Form (feedback)
   ============================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.form-card__legend {
  font-weight: 600;
  font-size: var(--step-4);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
  padding: 0;
}
.form-card__hint {
  margin-top: var(--s-1);
  margin-bottom: var(--s-4);
  font-size: var(--step-2);
  color: var(--ink-muted);
}
.form-card__num {
  display: inline-block;
  margin-right: var(--s-2);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 400;
}

/* Number scale 1–10 */
.scale {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.scale input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.scale__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--step-3);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms, transform 150ms;
}
.scale__opt:hover {
  border-color: var(--accent-ink);
  color: var(--ink);
  background: var(--surface);
}
.scale input[type="radio"]:checked + .scale__opt {
  background: var(--accent);
  border-color: var(--accent-ink);
  color: var(--surface);
}
.scale input[type="radio"]:focus-visible + .scale__opt {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Choice pills (Yes / Maybe / No) */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.choices input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choices__opt {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--step-3);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.choices__opt:hover {
  border-color: var(--accent-ink);
  color: var(--ink);
  background: var(--surface);
}
.choices input[type="radio"]:checked + .choices__opt {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}
.choices input[type="radio"]:focus-visible + .choices__opt {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Textarea */
.field-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--canvas);
  font-family: var(--font);
  font-size: var(--step-3);
  color: var(--ink);
  line-height: 1.55;
  resize: vertical;
  transition: border-color 150ms, background 150ms;
}
.field-textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  background: var(--surface);
}
.field-textarea::placeholder { color: var(--ink-muted); }

/* Form submit row */
.form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
}

/* Thank you */
.thank-you {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  text-align: center;
}
.thank-you__title {
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.thank-you__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
}
.thank-you__body {
  margin-top: var(--s-4);
  font-size: var(--step-4);
  color: var(--ink-soft);
  line-height: 1.6;
}
.is-hidden { display: none !important; }

/* ============================================================
   Long-form prose (privacy)
   ============================================================ */

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  max-width: 44rem;
}
.prose section {
  padding: 0;
}
.prose h2 {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.prose h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
}
.prose p {
  margin-top: var(--s-4);
  font-size: var(--step-3);
  color: var(--ink-soft);
  line-height: 1.65;
}
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul {
  margin-top: var(--s-3);
  padding-left: var(--s-5);
  list-style: disc;
  color: var(--ink-soft);
}
.prose ul li { margin-top: var(--s-1); }
.prose a {
  color: var(--accent-ink);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.prose a:hover { color: var(--primary); }

/* Page header (used for non-home pages) */
.page-head {
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-head::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: var(--accent-2-soft);
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head__title {
  margin-top: var(--s-4);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 32ch;
}
.page-head__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
  position: relative;
}
.page-head__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1, 100 6 T 198 5' stroke='%23FF5A36' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.page-head__lede {
  margin-top: var(--s-6);
  font-size: var(--step-4);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}
.page-head__meta {
  margin-top: var(--s-3);
  font-size: var(--step-2);
  color: var(--ink-muted);
}

/* ============================================================
   Game pages (play + about-the-game)
   ============================================================ */

.game-shell {
  padding: var(--s-7) 0 var(--s-9);
}
.game-shell__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.game-shell__title {
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.game-shell__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.game-shell__hint {
  font-size: var(--step-2);
  color: var(--ink-muted);
  font-weight: 500;
}

.game-frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.game-frame__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.game-frame__ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.game-loading {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  background: var(--canvas);
  z-index: 5;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.game-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.game-loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--rule);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.game-loading__text {
  font-weight: 600;
  color: var(--ink);
}
.game-loading__bar-track {
  width: 200px;
  height: 6px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.game-loading__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  animation: loadProgress 6s ease-out forwards;
}
@keyframes loadProgress {
  0%   { width: 0%; }
  30%  { width: 35%; }
  60%  { width: 65%; }
  85%  { width: 88%; }
  100% { width: 95%; }
}
.game-loading__sub {
  font-size: var(--step-2);
  color: var(--ink-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* Level cards (about-the-game) */
.levels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px)  { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .levels { grid-template-columns: repeat(3, 1fr); } }

.level {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.levels > .level:nth-child(2) { border-top-color: var(--accent-2); }
.levels > .level:nth-child(3) { border-top-color: var(--primary); }
.levels > .level:nth-child(4) { border-top-color: var(--accent-ink); }
.levels > .level:nth-child(5) { border-top-color: var(--accent-2); }
.levels > .level:nth-child(6) { border-top-color: var(--primary); }

.level__num {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.level__title {
  font-weight: 600;
  font-size: var(--step-5);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.level__body {
  color: var(--ink-soft);
  font-size: var(--step-3);
  line-height: 1.55;
}
.level__skill {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--accent-2-soft);
  color: #6B5310;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  padding: var(--s-9) 0 var(--s-7);
  background: var(--canvas);
  border-top: 1px solid var(--rule);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col__title {
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.footer-col__list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.footer-col__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: var(--step-2);
  color: var(--ink-soft);
}
.footer-col__list a:hover { color: var(--ink); }
.footer-tagline {
  margin-top: var(--s-3);
  color: var(--ink-muted);
  font-size: var(--step-2);
  max-width: 28rem;
}
.colophon {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: var(--step-1);
  color: var(--ink-muted);
}
