:root {
  --ink: #211a2a;
  --muted: #6d6575;
  --paper: #fcfaff;
  --white: #ffffff;
  --purple: #7750e8;
  --purple-deep: #5d39c4;
  --purple-soft: #e1d9ff;
  --mint: #bcefd9;
  --coral: #f3a096;
  --yellow: #f7e0a6;
  --line: rgba(33, 26, 42, .12);
  --shell: min(1160px, calc(100vw - 48px));
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 58px rgba(69, 45, 103, .1);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--purple-soft); color: var(--ink); }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
}
img { max-width: 100%; }
[id] { scroll-margin-top: 88px; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 250, 255, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(42, 26, 57, .05);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.09em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--purple-soft);
}
.brand-r { color: var(--mint); }
.brand-b { color: #fff; }
.brand-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--purple-deep); }
.site-nav .nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
}
.nav-games {
  position: relative;
}
.nav-games-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-games-toggle:hover,
.nav-games-toggle:focus-visible { color: var(--purple-deep); }
.nav-games-toggle span {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform .18s ease;
}
.nav-games.open .nav-games-toggle span {
  transform: rotate(180deg);
}
.games-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 252px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(42,26,57,.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-games.open .games-menu,
html:not(.js) .nav-games:hover .games-menu,
html:not(.js) .nav-games:focus-within .games-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.games-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
}
.games-menu a:hover,
.games-menu a:focus-visible {
  background: #f1edff;
  color: var(--ink);
}
.games-menu strong,
.games-menu span {
  display: block;
}
.games-menu strong {
  font-size: .9rem;
}
.games-menu span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 550;
}
.menu-button {
  display: none;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-button:hover,
.menu-button:focus-visible { background: var(--purple-soft); }

.kicker {
  margin: 0 0 14px;
  color: var(--purple-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero {
  min-height: 770px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(36px, 4vw, 52px);
  align-items: center;
  padding: clamp(64px, 7vw, 100px) 0 clamp(72px, 8vw, 108px);
}
.hero h1,
.section-heading h2,
.impact-copy h2,
.about-strip h2,
.connect h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -.048em;
  line-height: 1.01;
  text-wrap: balance;
}
.hero h1 { max-width: 720px; font-size: clamp(3.5rem, 5.25vw, 4.7rem); }
.hero-line { display: block; white-space: nowrap; }
.hero-line-accent { color: var(--purple); }
.hero-lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--purple-soft); }
.button-primary:hover { box-shadow: 5px 5px 0 var(--purple-soft); }
.button-quiet { border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.location { margin: 22px 0 0; color: var(--muted); font-size: .88rem; }
.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #37b87b;
  box-shadow: 0 0 0 5px rgba(55,184,123,.13);
}

.portrait-wrap {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.portrait-backdrop {
  position: absolute;
  inset: 11% 4% 9% 8%;
  border-radius: 46% 54% 61% 39% / 38% 42% 58% 62%;
  background: linear-gradient(135deg, var(--purple-soft), #f0ddf4 55%, #ffd1c5);
  transform: rotate(-4deg);
}
.portrait-card {
  position: relative;
  z-index: 2;
  width: min(360px, 74vw);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 36% 64% 44% 56% / 56% 43% 57% 44%;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: #d9e4ea;
}
.orbit { position: absolute; z-index: 3; display: block; border-radius: 50%; }
.orbit-one { width: 44px; height: 44px; top: 13%; right: 2%; background: var(--mint); box-shadow: 0 0 0 8px rgba(191,243,219,.28); }
.orbit-two { width: 24px; height: 24px; bottom: 18%; left: 2%; background: var(--coral); }
.mini-tag {
  position: absolute;
  z-index: 4;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(42, 26, 57, .10);
  font-size: .74rem;
  font-weight: 750;
}
.tag-one { top: 22%; left: -1%; transform: rotate(-4deg); }
.tag-two { right: 0; bottom: 19%; transform: rotate(3deg); }

.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { min-height: 128px; padding: 24px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 760; line-height: 1; letter-spacing: -.045em; }
.stat span { display: block; margin-top: 9px; color: var(--muted); font-size: .86rem; }

.section { padding: clamp(80px, 8.2vw, 116px) 0; }
.section-heading { max-width: 840px; margin-bottom: 44px; }
.section-heading.compact { max-width: 900px; }
.section-heading h2, .impact-copy h2, .about-strip h2, .connect h2 { font-size: clamp(2.7rem, 4.8vw, 4.55rem); }
.section-heading > p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.bento-card {
  min-height: 272px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(33,26,42,.1);
  box-shadow: 0 12px 28px rgba(69,45,103,.05);
  overflow: hidden;
  position: relative;
}
.bento-card:nth-child(3) { grid-column: 1; }
.bento-card:nth-child(4) { grid-column: 2; }
.bento-card h3 { margin: 68px 0 12px; font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.12; }
.bento-card p { max-width: 560px; margin: 0; color: rgba(33,26,42,.72); line-height: 1.55; }
.card-number { position: absolute; top: 28px; right: 30px; font-weight: 900; font-size: .85rem; opacity: .55; }
.card-purple { background: var(--purple-soft); }
.card-mint { background: var(--mint); }
.card-coral { background: var(--coral); }
.card-yellow { background: var(--yellow); }

.impact-section { padding: clamp(80px, 8.5vw, 116px) 0; background: var(--ink); color: #fff; }
.impact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(48px, 7vw, 92px); align-items: start; }
.impact-copy { position: sticky; top: 120px; }
.impact-copy .kicker { color: var(--mint); }
.impact-copy p:last-child { max-width: 520px; margin: 22px 0 0; color: rgba(255,255,255,.68); }
.impact-list { border-top: 1px solid rgba(255,255,255,.18); }
.impact-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.impact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--purple); color: #fff; font-size: 1.1rem; font-weight: 800; }
.impact-item:nth-child(2) .impact-icon { background: var(--mint); color: var(--ink); }
.impact-item:nth-child(3) .impact-icon { background: var(--coral); color: var(--ink); }
.impact-item h3 { margin: 0 0 7px; font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 720; line-height: 1.22; letter-spacing: -.02em; }
.impact-item p { margin: 0; color: rgba(255,255,255,.65); line-height: 1.58; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-meta { position: relative; color: var(--purple-deep); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.timeline-dot { position: absolute; right: -8px; top: 4px; width: 14px; height: 14px; border: 3px solid var(--paper); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.timeline-content { padding-left: 10px; }
.role-label { margin: 0 0 6px; color: var(--muted); font-size: .85rem; font-weight: 750; }
.timeline-content h3 { margin: 0 0 11px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.14; }
.timeline-content > p:last-child { max-width: 780px; margin: 0; color: var(--muted); }

.about-strip { padding: clamp(80px, 8vw, 112px) 0; background: #efeaff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-strip-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 88px); }
.about-copy > p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { padding: 8px 11px; border: 1px solid rgba(33,26,42,.14); border-radius: 10px; background: rgba(255,255,255,.6); font-size: .8rem; font-weight: 700; }

.connect { padding: clamp(80px, 8vw, 112px) 0; }
.connect-card { padding: clamp(34px, 5vw, 58px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #7549df, var(--purple-deep)); color: #fff; box-shadow: var(--shadow); }
.connect .kicker { color: var(--mint); }
.connect h2 { max-width: 930px; }
.connect-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button-light { background: #fff; color: var(--ink); }
.button-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; }

.site-footer { padding: 24px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .84rem; }
.footer-inner p { margin: 0; }

.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  :root { --shell: min(100% - 36px, 1160px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 75px; }
  .hero-line { white-space: normal; }
  .hero-copy { max-width: 780px; }
  .portrait-wrap { min-height: 440px; margin-top: 0; }
  .portrait-card { width: min(360px, 72vw); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bento-grid, .impact-grid, .about-strip-grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(3), .bento-card:nth-child(4) { grid-column: auto; }
  .impact-copy { position: static; }
}

@media (max-width: 680px) {
  .nav-wrap { min-height: 68px; }
  .brand { width: 43px; height: 43px; border-radius: 13px; }
  html.js .menu-button { display: block; }
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }
  html.js .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 16px 34px rgba(42,26,57,.08);
  }
  html.js .site-nav.open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 4px; }
  .nav-games {
    width: 100%;
  }
  .nav-games-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 4px;
  }
  .games-menu {
    position: static;
    width: 100%;
    display: none;
    margin: 0 0 8px;
    padding: 6px;
    border-radius: 14px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f2eeff;
    border-color: rgba(33,26,42,.08);
  }
  .nav-games.open .games-menu {
    display: block;
  }
  html.js .nav-games:not(.open) .games-menu {
    display: none;
  }
  html:not(.js) .games-menu {
    display: block;
  }
  .games-menu a {
    padding: 10px 11px;
  }
  .site-nav .nav-cta { text-align: center; margin-top: 4px; }
  .hero { padding-top: 50px; gap: 18px; }
  .hero h1 { font-size: clamp(3rem, 13.2vw, 4.1rem); }
  .hero-lede { margin-top: 22px; font-size: 1.03rem; }
  .portrait-wrap { min-height: 350px; }
  .portrait-card { width: min(300px, 80vw); }
  .mini-tag { padding: 7px 11px; font-size: .72rem; }
  .tag-one { left: 2px; top: 20%; }
  .tag-two { right: 2px; bottom: 16%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-width: 0; min-height: 124px; padding: 22px 18px; }
  .stat strong { font-size: clamp(1.7rem, 8vw, 2.35rem); }
  .section-heading h2, .impact-copy h2, .about-strip h2, .connect h2 { font-size: clamp(2.35rem, 10.7vw, 3.5rem); }
  .bento-card { min-height: 250px; border-radius: 22px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  .timeline-meta { display: flex; align-items: center; gap: 10px; }
  .timeline-dot { position: static; width: 10px; height: 10px; border-width: 0; box-shadow: none; }
  .timeline-content { padding-left: 0; }
  .connect-card { border-radius: 22px; }
  .connect-actions { align-items: stretch; flex-direction: column; }
  .connect-actions .button { justify-content: space-between; text-align: left; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}


@media (max-width: 420px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(2.8rem, 13.2vw, 3.55rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .portrait-wrap { min-height: 340px; }
  .portrait-card { width: min(292px, 82vw); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .stat strong { font-size: 1.65rem; }
  .stat span { font-size: .8rem; line-height: 1.35; }
  .bento-card { min-height: 235px; padding: 26px 24px; }
  .bento-card h3 { margin-top: 56px; }
  .impact-item { grid-template-columns: 44px 1fr; gap: 15px; }
  .impact-icon { width: 40px; height: 40px; }
  .connect-card { padding: 32px 22px; }
}
