:root {
  --ink: #072d55;
  --muted: #49657d;
  --white: #ffffff;
  --cream: #fffaf0;
  --sky: #dff5ff;
  --blue: #087ef7;
  --deep-blue: #073f89;
  --green: #39b875;
  --lime: #b8e96e;
  --coral: #ff775f;
  --gold: #ffc857;
  --aqua: #65dfdc;
  --shadow: 0 24px 70px rgba(10, 71, 111, 0.16);
  --soft-shadow: 0 12px 36px rgba(10, 71, 111, 0.12);
  --radius-xl: 44px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: var(--page);
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 59, 116, 0.14));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.nav-pill {
  padding: 10px 16px;
  border: 1px solid rgba(7, 45, 85, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 26px rgba(17, 85, 125, 0.08);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7vw, 7.8rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 24px rgba(7, 45, 85, 0.18);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 17px 34px rgba(7, 45, 85, 0.23);
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid rgba(7, 45, 85, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: none;
}

.page-wrap {
  width: var(--page);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 55px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  width: var(--page);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 44px 0;
  color: #47647d;
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

/* Comparison gallery */
.gallery-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(101, 223, 220, 0.26), transparent 25%),
    radial-gradient(circle at 88% 5%, rgba(255, 200, 87, 0.25), transparent 26%),
    #f8fbff;
}

.gallery-nav {
  position: relative;
}

.gallery-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 105px 0 58px;
  text-align: center;
}

.gallery-hero h1 {
  max-width: 950px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(3.3rem, 7.5vw, 7rem);
}

.gallery-hero p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.12rem;
}

.concept-grid {
  display: grid;
  width: var(--page);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto 80px;
}

.concept-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 45, 85, 0.08);
  border-radius: 32px;
  background: white;
  box-shadow: var(--soft-shadow);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.concept-card:hover,
.concept-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.concept-card img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
}

.concept-card:nth-child(1) img {
  object-position: 57% center;
}

.concept-card:nth-child(2) img {
  object-position: 51% center;
}

.concept-card:nth-child(3) img {
  object-position: 58% center;
}

.concept-copy {
  padding: 26px;
}

.concept-number {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.concept-copy p {
  min-height: 70px;
  margin-bottom: 22px;
  color: var(--muted);
}

.concept-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.concept-open::after {
  content: "→";
  transition: transform 180ms ease;
}

.concept-card:hover .concept-open::after {
  transform: translateX(5px);
}

/* Concept 1: Sunlit World */
.sunlit {
  --ink: #07335f;
  --muted: #45677e;
  --cream: #f7fcf5;
  background: #f7fcf5;
}

.sunlit-nav {
  top: 16px;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(7, 51, 95, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(7, 51, 95, 0.14);
  backdrop-filter: blur(16px);
}

.sunlit-nav .nav-links {
  gap: 7px;
}

.sunlit-nav .nav-links > a:not(.nav-pill) {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(233, 247, 255, 0.78);
}

.sunlit-nav .nav-links > a:not(.nav-pill):hover,
.sunlit-nav .nav-links > a:not(.nav-pill):focus-visible {
  background: #dff5ff;
  color: #075ba8;
}

.sunlit-hero {
  position: relative;
  height: clamp(720px, 100svh, 860px);
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(90deg, #eefaff 0%, #e3f6ff 42%, #d8f2ff 100%);
}

.sunlit-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(238, 250, 255, 0.94) 0%, rgba(238, 250, 255, 0.36) 8%, transparent 18%, transparent 89%, rgba(216, 242, 255, 0.38) 96%, #d8f2ff 100%),
    linear-gradient(180deg, rgba(227, 246, 255, 0.32) 0%, transparent 12%);
  content: "";
  pointer-events: none;
}

.sunlit-hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent 0%, rgba(247, 252, 245, 0.18) 34%, rgba(247, 252, 245, 0.82) 82%, #f7fcf5 100%);
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 49%, transparent 71%, #000 82%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 49%, transparent 71%, #000 82%, #000 100%);
}

.sunlit-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sunlit-hero-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(238, 250, 255, 0.99) 0%, rgba(238, 250, 255, 0.94) 30%, rgba(238, 250, 255, 0.38) 48%, rgba(238, 250, 255, 0.02) 73%);
}

.sunlit-hero-copy {
  position: relative;
  z-index: 3;
  width: var(--page);
  margin: 0 auto;
  padding-top: 175px;
}

.sunlit-hero-copy h1 {
  max-width: 600px;
}

.sunlit-hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.sunlit-hero-copy .lead {
  max-width: 520px;
}

.world-pin {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 22px rgba(7, 45, 85, 0.22);
  animation: bob 3.2s ease-in-out infinite;
}

.world-pin.one {
  top: 24%;
  right: 21%;
}

.world-pin.two {
  right: 42%;
  bottom: 24%;
  background: var(--gold);
  animation-delay: -1.4s;
}

.world-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.world-path {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 12px solid white;
  border-radius: 52px;
  background:
    radial-gradient(circle at 20% 30%, white 0 6%, transparent 6.3%),
    radial-gradient(circle at 78% 22%, #ffdb70 0 4%, transparent 4.3%),
    linear-gradient(145deg, #bcefa8, #58c885);
  box-shadow: var(--shadow);
}

.world-path::before {
  position: absolute;
  width: 540px;
  height: 140px;
  border: 45px solid #61bdfc;
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  transform: translate(-100px, 130px) rotate(-18deg);
}

.map-tile {
  position: absolute;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 5px solid white;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(7, 45, 85, 0.17);
  color: var(--deep-blue);
  font-size: 1.8rem;
  font-weight: 950;
  transform: rotate(var(--r, -5deg));
}

.map-tile:nth-child(1) { top: 18%; left: 14%; --r: -8deg; }
.map-tile:nth-child(2) { top: 28%; right: 17%; --r: 7deg; }
.map-tile:nth-child(3) { right: 29%; bottom: 16%; --r: -4deg; }
.map-tile:nth-child(4) { bottom: 13%; left: 18%; --r: 5deg; }

.feature-stack {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  align-items: start;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: #dff5ff;
  color: var(--deep-blue);
  font-weight: 950;
}

.feature-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.sunlit-game {
  overflow: hidden;
  background: #eaf8ff;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(460px, 1.2fr);
  gap: 34px;
  padding: 34px;
  border: 10px solid white;
  border-radius: 52px;
  background: white;
  box-shadow: var(--shadow);
}

.game-copy {
  padding: 28px 20px 28px 18px;
}

.game-copy .score {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e7f8ed;
  color: #197146;
  font-weight: 900;
}

.word-grid {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(145deg, #daf3ff, #eefee5);
}

.word-grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 12px rgba(7, 45, 85, 0.08);
  color: var(--deep-blue);
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-weight: 950;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.word-grid button:hover,
.word-grid button:focus-visible {
  transform: translateY(-2px);
}

.word-grid button.found {
  background: var(--gold);
  color: #683c00;
  transform: rotate(-3deg) scale(1.04);
}

.sunlit-about {
  background: #fffdf6;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.about-badge {
  padding: 24px;
  border: 1px solid rgba(7, 45, 85, 0.08);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.about-badge strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

.about-badge span {
  color: var(--muted);
}

/* Concept 2: Conservatory */
.conservatory {
  --ink: #173f43;
  --muted: #557174;
  --deep-blue: #185e6d;
  background: #fffdf7;
}

.conservatory .site-nav {
  position: relative;
}

.conservatory-hero {
  position: relative;
  width: min(1420px, calc(100% - 30px));
  min-height: 740px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(18, 105, 111, 0.12);
  border-radius: 58px;
  background: #f0fbf8;
  box-shadow: var(--shadow);
}

.conservatory-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.conservatory-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.84) 33%, rgba(255, 253, 247, 0.06) 60%);
  content: "";
}

.conservatory-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 120px;
}

.conservatory-hero-copy h1 {
  max-width: 610px;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7vw, 7.1rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.conservatory-hero-copy h1 em {
  display: block;
  color: #169da0;
  font-style: italic;
  font-weight: 500;
}

.floating-letter {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(23, 63, 67, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 17px 30px rgba(23, 63, 67, 0.12);
  color: #177c81;
  font-family: Iowan Old Style, serif;
  font-size: 1.9rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
  animation: drift 5s ease-in-out infinite;
}

.floating-letter.a { top: 12%; right: 13%; transform: rotate(8deg); }
.floating-letter.b { right: 8%; bottom: 15%; animation-delay: -2s; transform: rotate(-7deg); }
.floating-letter.c { right: 40%; bottom: 5%; animation-delay: -3.3s; transform: rotate(4deg); }

.conservatory-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.conservatory-intro h2 {
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-weight: 650;
}

.manifesto {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(23, 63, 67, 0.15);
}

.manifesto-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(23, 63, 67, 0.15);
}

.manifesto-row b {
  color: #15959a;
}

.manifesto-row p {
  margin: 0;
  color: var(--muted);
}

.glasshouse-game {
  overflow: hidden;
  background:
    linear-gradient(rgba(63, 168, 163, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 168, 163, 0.08) 1px, transparent 1px),
    #eaf9f5;
  background-size: 44px 44px;
}

.garden-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 14px solid white;
  border-radius: 50% 50% 34px 34px / 20% 20% 34px 34px;
  background: linear-gradient(180deg, #effcff 0%, #ffffff 50%, #dcf2d8 100%);
  box-shadow: var(--shadow);
}

.garden-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, transparent 49.6%, rgba(28, 119, 121, 0.12) 50%, transparent 50.4%),
    linear-gradient(102deg, transparent 49.6%, rgba(28, 119, 121, 0.12) 50%, transparent 50.4%);
  content: "";
}

.garden-title {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 70px 24px 30px;
  text-align: center;
}

.garden-title h2 {
  font-family: Iowan Old Style, serif;
  font-weight: 650;
}

.tile-vine {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  max-width: 840px;
  margin: 45px auto 0;
  padding: 0 30px;
}

.garden-tile {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 4px solid white;
  border-radius: 25px 12px 25px 12px;
  background: var(--tile, #6cdbcb);
  box-shadow: 0 14px 28px rgba(23, 63, 67, 0.15);
  color: #173f43;
  cursor: pointer;
  font-family: Iowan Old Style, serif;
  font-size: 2rem;
  font-weight: 850;
  transition: transform 180ms ease, filter 180ms ease;
}

.garden-tile:nth-child(2n) { --tile: #ffd46a; }
.garden-tile:nth-child(3n) { --tile: #ff917d; }
.garden-tile:nth-child(4n) { --tile: #a6e58f; }

.garden-tile:hover,
.garden-tile:focus-visible,
.garden-tile.bloom {
  filter: saturate(1.1);
  transform: translateY(-12px) rotate(4deg);
}

.plant-bed {
  position: absolute;
  right: -5%;
  bottom: -16%;
  left: -5%;
  height: 220px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 15% 25%, #ff846f 0 9px, transparent 10px),
    radial-gradient(circle at 36% 8%, #ffca59 0 10px, transparent 11px),
    radial-gradient(circle at 72% 18%, #6edec5 0 10px, transparent 11px),
    radial-gradient(circle at 86% 4%, #ff846f 0 8px, transparent 9px),
    #77ca72;
}

.conservatory-about {
  background: #fffdf7;
}

.editorial-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 42px;
  background: #154f54;
  color: white;
  box-shadow: var(--shadow);
}

.editorial-card-copy {
  padding: 65px;
}

.editorial-card-copy p {
  color: #cce3df;
  font-size: 1.08rem;
}

.editorial-art {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 218, 111, 0.9) 0 8%, transparent 8.5%),
    radial-gradient(circle at 67% 34%, rgba(255, 130, 107, 0.9) 0 10%, transparent 10.5%),
    linear-gradient(145deg, #69d9c8, #d7f1a3);
}

.editorial-art img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(420px, 78%);
  filter: drop-shadow(0 30px 25px rgba(3, 42, 49, 0.24));
  transform: translate(-50%, -50%);
}

/* Concept 3: Kinetic Board */
.kinetic {
  --ink: #102d5e;
  --muted: #526884;
  background: #fff9ee;
}

.kinetic .site-nav {
  color: var(--ink);
}

.kinetic-hero {
  position: relative;
  min-height: 810px;
  overflow: hidden;
  background: #e8f6ff;
}

.kinetic-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}

.kinetic-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 249, 238, 0.98) 0%, rgba(255, 249, 238, 0.9) 31%, rgba(255, 249, 238, 0.1) 58%, transparent 75%);
  content: "";
}

.kinetic-copy {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding-top: 180px;
}

.kinetic-copy h1 {
  max-width: 640px;
  color: #102d5e;
  font-size: clamp(4.1rem, 8vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.kinetic-copy h1 span {
  display: block;
  color: var(--coral);
  transform: skew(-7deg);
}

.kinetic-copy .lead {
  max-width: 510px;
}

.score-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 19px;
  border: 4px solid white;
  border-radius: 18px;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(16, 45, 94, 0.18);
  color: #533800;
  font-weight: 950;
  transform: rotate(var(--r, -5deg));
  animation: bounce-soft 3.6s ease-in-out infinite;
}

.score-chip.one { top: 19%; right: 12%; }
.score-chip.two { right: 38%; bottom: 12%; --r: 6deg; background: #73e2cd; animation-delay: -1.8s; }

.kinetic-marquee {
  display: flex;
  overflow: hidden;
  padding: 15px 0;
  background: #102d5e;
  color: white;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kinetic-marquee span {
  flex: 0 0 auto;
  padding-right: 48px;
  animation: marquee 18s linear infinite;
}

.kinetic-section {
  background: #fff9ee;
}

.level-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.level-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 30px;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background: var(--card, #ffca55);
  box-shadow: 10px 10px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.level-card:nth-child(2) { --card: #7ae1cb; }
.level-card:nth-child(3) { --card: #ff8a75; }

.level-card:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(5px, 5px);
}

.level-card .num {
  display: block;
  margin-bottom: 55px;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.level-card h3 {
  max-width: 240px;
  font-size: 2rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.level-card p {
  max-width: 270px;
  margin-bottom: 0;
}

.mini-tile {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: white;
  font-size: 1.7rem;
  font-weight: 950;
  transform: rotate(-8deg);
}

.play-zone {
  background: #eaf7ff;
}

.play-panel {
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 24px;
  border: 6px solid var(--ink);
  border-radius: 32px;
  background: white;
  box-shadow: 12px 12px 0 #71dec9;
}

.arcade-grid button {
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff8e8;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(0.8rem, 1.8vw, 1.15rem);
  font-weight: 950;
  transition: transform 150ms ease, background 150ms ease;
}

.arcade-grid button:hover,
.arcade-grid button:focus-visible {
  transform: scale(1.08) rotate(3deg);
}

.arcade-grid button.found {
  background: var(--coral);
  color: white;
  transform: scale(1.08) rotate(-4deg);
}

.play-copy {
  padding-left: 22px;
}

.play-copy h2 {
  text-transform: uppercase;
}

.progress-meter {
  overflow: hidden;
  height: 18px;
  margin: 27px 0 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
}

.progress-meter span {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.kinetic-about {
  background: #fff9ee;
}

.kinetic-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 36px;
  background: var(--gold);
  box-shadow: 13px 13px 0 var(--ink);
}

.kinetic-banner-copy {
  padding: 64px;
}

.kinetic-banner-copy h2 {
  text-transform: uppercase;
}

.kinetic-banner-mark {
  position: relative;
  min-height: 430px;
  background:
    radial-gradient(circle, white 0 8px, transparent 9px) 0 0 / 40px 40px,
    #ff846e;
}

.kinetic-banner-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(380px, 78%);
  filter: drop-shadow(0 20px 0 rgba(16, 45, 94, 0.16));
  transform: translate(-50%, -50%) rotate(5deg);
}

/* Privacy and 404 */
.plain-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #ecfaff, #fff9ec);
}

.plain-card {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 70px;
}

.plain-card article {
  padding: 48px;
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.plain-card h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.plain-card h2 {
  margin-top: 36px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plain-card p,
.plain-card li {
  color: var(--muted);
}

.error-mark {
  width: 170px;
  margin: 0 auto 18px;
}

.text-center {
  text-align: center;
}

/* Production-only content */
.production-site :focus-visible {
  outline: 3px solid #075ba8;
  outline-offset: 4px;
}

.production-site section[id] {
  scroll-margin-top: 96px;
}

.policy-nav {
  position: relative;
}

.policy-card {
  padding-top: 52px;
}

.policy-card article {
  padding: clamp(30px, 6vw, 64px);
}

.policy-card h1 {
  max-width: 700px;
  margin-bottom: 20px;
}

.policy-card section {
  padding-top: 8px;
}

.policy-card a {
  color: #075ba8;
  font-weight: 800;
  text-underline-offset: 3px;
}

.policy-meta {
  margin-bottom: 28px;
  color: #254d6c !important;
}

.policy-intro {
  padding: 20px 22px;
  border-left: 5px solid var(--blue);
  border-radius: 0 18px 18px 0;
  background: #eefaff;
  color: #264f6d !important;
  font-size: 1.08rem;
}

.policy-card address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.error-page {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-top: 50px;
}

.error-page article {
  width: 100%;
}

.centered-actions {
  justify-content: center;
}

.production-site .site-footer a:hover,
.production-site .site-footer a:focus-visible {
  color: var(--blue);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

@keyframes bounce-soft {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-pill) {
    display: none;
  }

  .concept-grid,
  .section-head,
  .world-story,
  .game-shell,
  .conservatory-intro,
  .editorial-card,
  .play-panel,
  .kinetic-banner {
    grid-template-columns: 1fr;
  }

  .concept-grid {
    max-width: 680px;
  }

  .section-head {
    gap: 20px;
  }

  .about-badges,
  .level-select {
    grid-template-columns: 1fr;
  }

  .game-shell {
    padding: 22px;
  }

  .world-path {
    min-height: 420px;
  }

  .editorial-art,
  .kinetic-banner-mark {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .site-nav {
    padding-top: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 0.72rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-pill {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .section {
    padding: 76px 0;
  }

  .kinetic-hero {
    min-height: 740px;
  }

  .kinetic-hero-art {
    object-position: 67% center;
    opacity: 0.55;
  }

  .kinetic-hero::after {
    background: linear-gradient(180deg, rgba(244, 252, 255, 0.92), rgba(244, 252, 255, 0.62));
  }

  .kinetic-copy {
    padding-top: 150px;
  }

  .sunlit-nav {
    top: 10px;
    width: calc(100% - 20px);
    padding: 7px 8px 7px 11px;
  }

  .sunlit-hero {
    height: 940px;
    min-height: 940px;
  }

  .sunlit-hero-art {
    top: 58%;
    bottom: auto;
    height: 42%;
    object-fit: contain;
    object-position: center top;
    opacity: 1;
  }

  .sunlit-hero-shade {
    background: linear-gradient(180deg, #eefaff 0%, rgba(238, 250, 255, 0.98) 54%, rgba(238, 250, 255, 0.2) 78%, transparent 100%);
  }

  .sunlit-hero::before {
    background:
      linear-gradient(90deg, rgba(238, 250, 255, 0.78) 0%, transparent 14%, transparent 86%, rgba(216, 242, 255, 0.78) 100%),
      linear-gradient(180deg, rgba(227, 246, 255, 0.28) 0%, transparent 13%);
  }

  .sunlit-hero::after {
    height: 105px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sunlit-hero-copy {
    padding-top: 132px;
  }

  h1,
  .kinetic-copy h1 {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .world-pin,
  .score-chip {
    display: none;
  }

  .word-grid,
  .arcade-grid {
    gap: 5px;
    padding: 12px;
  }

  .word-grid button {
    border-radius: 9px;
  }

  .conservatory-hero {
    min-height: 690px;
    border-radius: 34px;
  }

  .conservatory-hero-art {
    object-position: 68% center;
    opacity: 0.55;
  }

  .conservatory-hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.55));
  }

  .conservatory-hero-copy {
    padding-top: 100px;
  }

  .floating-letter {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .garden-stage {
    min-height: 570px;
    border-width: 7px;
  }

  .garden-tile {
    width: 59px;
    height: 59px;
    border-radius: 18px 9px 18px 9px;
    font-size: 1.4rem;
  }

  .editorial-card-copy,
  .kinetic-banner-copy {
    padding: 36px 26px;
  }

  .arcade-grid {
    box-shadow: 7px 7px 0 #71dec9;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .plain-card article {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
