:root {
  --ink: #1c1724;
  --muted: #675f70;
  --paper: #fbf9ff;
  --white: #ffffff;
  --purple: #7c4dff;
  --purple-deep: #5d32da;
  --purple-soft: #d9d0ff;
  --mint: #bff3db;
  --coral: #ff9b8f;
  --yellow: #ffe4a3;
  --line: rgba(28, 23, 36, .13);
  --shell: min(1160px, calc(100vw - 48px));
  --radius-lg: 34px;
  --radius-md: 24px;
  --shadow: 0 28px 70px rgba(69, 45, 103, .12);
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, 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.65;
  -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);
  outline-offset: 3px;
}
img { max-width: 100%; }
[id] { scroll-margin-top: 96px; }
.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: 999px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 255, .84);
  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: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.09em;
  text-decoration: none;
  box-shadow: 6px 6px 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: 24px; }
.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: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-games {
  position: relative;
}
.nav-games-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.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% + 12px);
  right: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(42,26,57,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-games.open .games-menu,
.nav-games:hover .games-menu,
.nav-games:focus-within .games-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.games-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 13px;
}
.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;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
}

.kicker {
  margin: 0 0 18px;
  color: var(--purple-deep);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 10vw, 130px);
}
.hero h1,
.section-heading h2,
.impact-copy h2,
.about-strip h2,
.connect h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 { font-size: clamp(4rem, 7.7vw, 7.2rem); }
.hero h1 span { color: var(--purple); }
.hero-lede {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--purple-soft); }
.button-primary:hover { box-shadow: 8px 8px 0 var(--purple-soft); }
.button-quiet { border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.location { margin: 25px 0 0; color: var(--muted); font-size: .9rem; }
.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: 540px;
  display: grid;
  place-items: center;
}
.portrait-backdrop {
  position: absolute;
  inset: 12% 3% 8% 10%;
  border-radius: 46% 54% 61% 39% / 38% 42% 58% 62%;
  background: linear-gradient(135deg, var(--purple-soft), #f1cfff 55%, #ffc8bd);
  transform: rotate(-5deg);
}
.portrait-card {
  position: relative;
  z-index: 2;
  width: min(390px, 79vw);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 38% 62% 45% 55% / 57% 42% 58% 43%;
  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: 52px; height: 52px; top: 13%; right: 2%; background: var(--mint); box-shadow: 0 0 0 10px rgba(191,243,219,.28); }
.orbit-two { width: 28px; height: 28px; bottom: 18%; left: 2%; background: var(--coral); }
.mini-tag {
  position: absolute;
  z-index: 4;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(42, 26, 57, .10);
  font-size: .78rem;
  font-weight: 800;
}
.tag-one { top: 22%; left: -2%; transform: rotate(-5deg); }
.tag-two { right: -1%; bottom: 19%; transform: rotate(4deg); }

.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: 145px; padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: .9rem; }

.section { padding: clamp(90px, 10vw, 140px) 0; }
.section-heading { max-width: 840px; margin-bottom: 58px; }
.section-heading.compact { max-width: 900px; }
.section-heading h2, .impact-copy h2, .about-strip h2, .connect h2 { font-size: clamp(3rem, 5.6vw, 5.3rem); }
.section-heading > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.bento-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28,23,36,.08);
  overflow: hidden;
  position: relative;
}
.bento-card:nth-child(3) { grid-column: 1; }
.bento-card:nth-child(4) { grid-column: 2; }
.bento-card h3 { margin: 70px 0 14px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; line-height: 1.1; }
.bento-card p { max-width: 560px; margin: 0; color: rgba(28,23,36,.72); }
.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(92px, 11vw, 150px) 0; background: var(--ink); color: #fff; }
.impact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(55px, 8vw, 110px); align-items: start; }
.impact-copy { position: sticky; top: 120px; }
.impact-copy .kicker { color: var(--mint); }
.impact-copy p:last-child { max-width: 520px; margin: 28px 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: 55px 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.impact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--purple); color: #fff; font-size: 1.2rem; font-weight: 900; }
.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 8px; font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.025em; }
.impact-item p { margin: 0; color: rgba(255,255,255,.65); }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 42px; padding: 38px 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 13px; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.12; }
.timeline-content > p:last-child { max-width: 780px; margin: 0; color: var(--muted); }

.about-strip { padding: clamp(90px, 10vw, 135px) 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(55px, 8vw, 100px); }
.about-copy > p { margin: 8px 0 0; color: var(--muted); font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.chips span { padding: 9px 12px; border: 1px solid rgba(28,23,36,.16); border-radius: 999px; background: rgba(255,255,255,.6); font-size: .82rem; font-weight: 750; }

.connect { padding: clamp(90px, 10vw, 140px) 0; }
.connect-card { padding: clamp(40px, 6vw, 75px); border-radius: 42px; background: linear-gradient(135deg, var(--purple) 0%, #6b45e4 55%, #4f2cb8 100%); 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: 38px; }
.button-light { background: #fff; color: var(--ink); }
.button-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; }

.site-footer { padding: 28px 0 36px; }
.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 .65s ease, transform .65s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 1160px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 75px; }
  .hero-copy { max-width: 780px; }
  .portrait-wrap { min-height: 470px; margin-top: 0; }
  .portrait-card { width: min(360px, 78vw); }
  .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: 14px; }
  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: 18px;
    background: rgba(251,249,255,.98);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  html.js .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; }
  .nav-games {
    width: 100%;
  }
  .nav-games-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 4px;
  }
  .games-menu {
    position: static;
    width: 100%;
    display: none;
    margin: 2px 0 8px;
    padding: 6px;
    border-radius: 16px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f4f0ff;
  }
  .nav-games.open .games-menu,
  .nav-games:focus-within .games-menu {
    display: block;
  }
  .nav-games:not(.open) .games-menu {
    display: none;
  }
  .games-menu a {
    padding: 10px 11px;
  }
  .site-nav .nav-cta { text-align: center; margin-top: 4px; }
  .hero { padding-top: 54px; gap: 22px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.55rem); }
  .hero-lede { font-size: 1.04rem; }
  .portrait-wrap { min-height: 370px; }
  .portrait-card { width: min(315px, 82vw); }
  .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.7rem, 13vw, 4.1rem); }
  .bento-card { min-height: 260px; border-radius: 28px; }
  .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: 30px; }
  .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, 14.2vw, 3.75rem); }
  .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: 34px 24px; }
}
