:root {
  --ink: #10243e;
  --ink-soft: #526176;
  --blue: #1746c4;
  --blue-dark: #0d2d7a;
  --orange: #f28b27;
  --magenta: #d93678;
  --sky: #ddebff;
  --canvas: #f5f8fc;
  --white: #ffffff;
  --line: #dce3ed;
  --success: #13845d;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Manrope", sans-serif;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 10px 30px rgba(16, 36, 62, 0.08);
  --shadow-md: 0 24px 70px rgba(16, 36, 62, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  padding: 10px 16px;
  transition: transform 0.2s ease;
}

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

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

.section--soft {
  background: var(--canvas);
}

/* Every section owns one seam. Shapes and tactile objects change along the page
   so adjacent sections never stack duplicate decorations on the same boundary. */
.section-transition {
  --transition-fill: var(--white);
  --transition-object: none;
  --object-left: 10%;
  --object-bottom: -18px;
  --object-width: clamp(130px, 13vw, 210px);
  --object-rotate: 0deg;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 5;
  height: 74px;
  overflow: visible;
  pointer-events: none;
}

.section-transition::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--transition-fill);
  content: "";
}

.section-transition::before {
  position: absolute;
  bottom: var(--object-bottom);
  left: var(--object-left);
  z-index: 2;
  width: var(--object-width);
  height: var(--object-width);
  transform: translateX(-50%) rotate(var(--object-rotate));
  background-image: var(--transition-object);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: drop-shadow(0 12px 13px rgba(10, 25, 45, 0.2));
}

.transition--tear { --transition-fill: var(--white); }
.transition--tear::after { clip-path: polygon(0 58%, 7% 43%, 15% 62%, 25% 38%, 36% 56%, 47% 40%, 59% 63%, 72% 37%, 85% 56%, 93% 43%, 100% 57%, 100% 100%, 0 100%); }
.transition--pencils { --transition-object: url("../assets/images/colouring-pencils-cutout.png"); --object-left: 14%; --object-bottom: -28px; --object-width: clamp(155px, 15vw, 225px); --object-rotate: -6deg; }

.transition--steps { --transition-fill: var(--canvas); }
.transition--steps::after { clip-path: polygon(0 68%, 16% 68%, 16% 35%, 37% 35%, 37% 74%, 62% 74%, 62% 26%, 83% 26%, 83% 58%, 100% 58%, 100% 100%, 0 100%); }
.transition--puzzle { --transition-object: url("../assets/images/wooden-puzzle-cutout.png"); --object-left: 86%; --object-bottom: -25px; --object-width: clamp(120px, 11vw, 170px); --object-rotate: 13deg; }

.transition--diagonal { --transition-fill: var(--ink); height: 86px; }
.transition--diagonal::after { clip-path: polygon(0 92%, 100% 4%, 100% 100%, 0 100%); }
.transition--palette { --transition-object: url("../assets/images/edge-paint-palette.webp"); --object-left: 24%; --object-bottom: -12px; --object-width: clamp(155px, 16vw, 245px); --object-rotate: -9deg; }

.transition--curve { --transition-fill: var(--canvas); height: 90px; }
.transition--curve::after { clip-path: ellipse(76% 70% at 50% 100%); }
.transition--dice { --transition-object: url("../assets/images/edge-dice-dominoes.webp"); --object-left: 78%; --object-bottom: -18px; --object-width: clamp(150px, 15vw, 235px); --object-rotate: 7deg; }

.transition--clip { --transition-fill: var(--white); }
.transition--clip::after { clip-path: polygon(0 42%, 70% 42%, 77% 7%, 100% 7%, 100% 100%, 0 100%); }
.transition--passport { --transition-object: url("../assets/images/edge-passport-notebook.webp"); --object-left: 10%; --object-bottom: -28px; --object-width: clamp(155px, 17vw, 250px); --object-rotate: -5deg; }

.transition--arch { --transition-fill: var(--white); height: 92px; }
.transition--arch::after { left: 18%; width: 64%; border-radius: 55% 55% 0 0 / 100% 100% 0 0; box-shadow: 0 -1px 0 var(--line); }
.transition--badge span {
  position: absolute;
  right: 11%;
  bottom: 4px;
  z-index: 3;
  width: clamp(82px, 8vw, 118px);
  aspect-ratio: 1;
  transform: rotate(8deg);
  border: 8px solid var(--orange);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px var(--white), 0 12px 22px rgba(10, 25, 45, 0.2);
}
.transition--badge span::before { position: absolute; inset: 29%; transform: rotate(45deg); background: var(--white); content: ""; clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 59%, 79% 100%, 50% 76%, 21% 100%, 31% 59%, 0 38%, 39% 36%); }

.transition--rule { --transition-fill: var(--ink); height: 80px; }
.transition--rule::after { clip-path: polygon(0 70%, 100% 14%, 100% 100%, 0 100%); }
.transition--ruler { --transition-object: url("../assets/images/edge-ruler-protractor.webp"); --object-left: 65%; --object-bottom: -66px; --object-width: clamp(160px, 15vw, 220px); --object-rotate: 5deg; }

.transition--scoop { --transition-fill: var(--white); height: 88px; }
.transition--scoop::after { clip-path: ellipse(72% 76% at 50% 100%); }
.transition--cookie { --transition-object: url("../assets/images/biscuit-bite-cutout.png"); --object-left: 18%; --object-bottom: -28px; --object-width: clamp(120px, 11vw, 175px); --object-rotate: 8deg; }

.transition--wave { --transition-fill: var(--canvas); height: 92px; }
.transition--wave::after { border-radius: 62% 38% 0 0 / 72% 55% 0 0; transform: scaleX(1.08); transform-origin: bottom; }
.transition--lunchbox { --transition-object: url("../assets/images/edge-apple-lunchbox.webp"); --object-left: 83%; --object-bottom: -20px; --object-width: clamp(160px, 17vw, 255px); --object-rotate: -5deg; }

.transition--flight { --transition-fill: var(--white); height: 78px; }
.transition--flight::after { clip-path: polygon(0 52%, 43% 52%, 52% 10%, 60% 65%, 100% 38%, 100% 100%, 0 100%); }
.transition--plane { --transition-object: url("../assets/images/edge-paper-plane.webp"); --object-left: 37%; --object-bottom: -78px; --object-width: clamp(165px, 16vw, 225px); --object-rotate: -4deg; }

.transition--blocks { --transition-fill: var(--blue-dark); height: 82px; }
.transition--blocks::after { clip-path: polygon(0 78%, 12% 78%, 12% 40%, 29% 40%, 29% 64%, 48% 64%, 48% 20%, 69% 20%, 69% 55%, 86% 55%, 86% 34%, 100% 34%, 100% 100%, 0 100%); }
.transition--star { --transition-object: url("../assets/images/edge-star-award.webp"); --object-left: 91%; --object-bottom: -25px; --object-width: clamp(120px, 12vw, 185px); --object-rotate: 11deg; }

.transition--offset-curve { --transition-fill: var(--white); height: 88px; }
.transition--offset-curve::after { left: -5%; width: 110%; border-radius: 0 70% 0 0 / 0 100% 0 0; }
.transition--magnifier { --transition-object: url("../assets/images/edge-magnifier-card.webp"); --object-left: 14%; --object-bottom: -12px; --object-width: clamp(150px, 16vw, 240px); --object-rotate: -9deg; }

.transition--crayon { --transition-fill: #0a192d; height: 74px; }
.transition--crayon::after { clip-path: polygon(0 68%, 100% 34%, 100% 100%, 0 100%); }
.transition--crayon span { position: absolute; top: 12px; right: 9%; z-index: 3; width: min(330px, 34vw); height: 38px; transform: rotate(-3deg); border-top: 6px solid var(--orange); border-radius: 50%; box-shadow: 0 -10px 0 -6px var(--magenta), 0 10px 0 -6px var(--blue); opacity: 0.95; }

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  max-width: 800px;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 650;
}

h3 {
  font-size: 1.45rem;
  font-weight: 650;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  padding: 0.9rem 1.45rem;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(242, 139, 39, 0.25);
  color: var(--ink);
}

.button--primary:hover {
  background: #ff9c3d;
  box-shadow: 0 16px 36px rgba(242, 139, 39, 0.3);
}

.button--secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button--small {
  min-height: 42px;
  padding: 0.75rem 1.15rem;
  font-size: 0.86rem;
}

.button--block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: rgba(16, 36, 62, 0.08);
  box-shadow: 0 8px 30px rgba(16, 36, 62, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 72px;
}

.brand img {
  width: 74px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.65vw, 26px);
}

.nav__links > a:not(.button) {
  position: relative;
  color: #34445a;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav__links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--orange);
  content: "";
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav__links > a:not(.button):hover,
.nav__links > a:not(.button).is-active {
  color: var(--blue);
}

.nav__links > a:not(.button):hover::after,
.nav__links > a:not(.button).is-active::after {
  transform: scaleX(1);
}

.nav__burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.nav__burger span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.open .nav__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.site-header.open .nav__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
}

.hero__glow {
  position: absolute;
  top: -280px;
  right: -170px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 235, 255, 0.95), rgba(221, 235, 255, 0) 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 82px - 118px);
  padding-top: 60px;
  padding-bottom: 72px;
  gap: clamp(50px, 7vw, 104px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  max-width: 660px;
  font-size: clamp(3.35rem, 6vw, 6.25rem);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.hero__word-slot {
  display: inline-block;
  width: 3.25em;
  vertical-align: bottom;
  white-space: nowrap;
}

.hero__title em {
  position: relative;
  display: block;
  width: 0;
  overflow: hidden;
  border-right: 0.045em solid transparent;
  color: var(--blue);
  font-style: normal;
  white-space: nowrap;
}

.hero__title.visible em {
  animation:
    typeBigger 5.6s steps(7, end) 0.24s infinite,
    typeCaret 0.56s step-end 0.24s infinite;
}

.hero__title em::after {
  position: absolute;
  right: 0.05em;
  bottom: 0.02em;
  left: 0.05em;
  z-index: -1;
  height: 0.14em;
  border-radius: 999px;
  background: var(--orange);
  content: "";
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
}

.hero__title.visible em::after {
  animation: drawBiggerLine 5.6s var(--ease) 0.24s infinite;
}

@keyframes typeBigger {
  0%, 6% { width: 0; }
  26%, 72% { width: 100%; }
  90%, 100% { width: 0; }
}

@keyframes typeCaret {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: var(--orange); }
}

@keyframes drawBiggerLine {
  0%, 22% { transform: scaleX(0); }
  31%, 72% { transform: scaleX(1); }
  82%, 100% { transform: scaleX(0); }
}

.hero__intro {
  max-width: 610px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 610px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__facts div {
  padding: 18px 16px 18px 0;
}

.hero__facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.hero__facts dt {
  color: #8491a3;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__facts dd {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.availability span {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

.availability span::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(19, 132, 93, 0.35);
  border-radius: inherit;
  content: "";
  animation: availabilityPulse 2.2s ease-out infinite;
}

@keyframes availabilityPulse {
  0% { transform: scale(0.75); opacity: 1; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.hero__photo-frame {
  position: absolute;
  inset: 20px 0 34px 70px;
}

.gallery-controls {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(16, 36, 62, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 36, 62, 0.14);
  backdrop-filter: blur(12px);
  padding: 5px;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.gallery-controls button:hover {
  transform: scale(1.08);
  background: var(--blue);
}

.gallery-controls button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.gallery-controls span {
  min-width: 54px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
}

.gallery-controls b {
  color: var(--blue);
}

/* Hero: the only tactile fan. Cards pivot with a spring-like handoff. */
.gallery-fan { isolation: isolate; }

.gallery-fan__stage {
  position: absolute;
  inset: 18px 34px 52px 8px;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}

.gallery-fan__stage:active { cursor: grabbing; }

.gallery-fan__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
  transform-origin: 88% 92%;
  border: 7px solid var(--white);
  border-radius: 46% 28px 28px 28px;
  background: #dce8f5;
  box-shadow: 0 24px 48px rgba(16, 36, 62, 0.2);
  transition: transform 0.68s cubic-bezier(0.2, 1.35, 0.35, 1), opacity 0.32s ease, filter 0.35s ease;
  will-change: transform;
}

.gallery-fan__card img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.gallery-fan__card[data-gallery-position="0"] { z-index: 3; transform: translate3d(0, 0, 0) rotate(-0.8deg) scale(1); }
.gallery-fan__card[data-gallery-position="1"] { z-index: 2; filter: saturate(0.92); transform: translate3d(18px, -12px, 0) rotate(3.2deg) scale(0.978); }
.gallery-fan__card[data-gallery-position="2"] { z-index: 1; filter: saturate(0.84); transform: translate3d(34px, -22px, 0) rotate(6.5deg) scale(0.955); }
.gallery-fan__stage:focus-visible { outline: none; }
.gallery-fan__stage:focus-visible .gallery-fan__card[data-gallery-position="0"] { box-shadow: 0 0 0 4px var(--orange), 0 24px 48px rgba(16, 36, 62, 0.2); }
.gallery-fan__controls { bottom: 0; left: 10px; }

/* Brand pillars: all three images remain present while the selected one grows. */
.gallery-collage { position: absolute; inset: 0 36px 76px 0; z-index: auto; }
.gallery-collage__canvas { position: absolute; inset: 0 0 72px; }
.gallery-collage__canvas:focus-visible { outline: none; }
.gallery-collage__canvas:focus-visible::after { position: absolute; inset: 6px 64px 72px 0; z-index: 8; border: 4px solid var(--orange); border-radius: 28px 28px 40% 28px; content: ""; pointer-events: none; }
.gallery-collage__photo { position: absolute; overflow: hidden; margin: 0; border: 6px solid var(--white); background: #dce8f5; box-shadow: var(--shadow-md); transition: inset 0.58s var(--ease), width 0.58s var(--ease), height 0.58s var(--ease), transform 0.58s var(--ease), opacity 0.3s ease; }
.gallery-collage__photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-collage__photo[data-gallery-state="active"] { inset: 8px 74px 80px 0; z-index: 2; border-radius: 28px 28px 40% 28px; transform: rotate(-0.8deg); }
.gallery-collage__photo[data-gallery-state="side-a"] { top: 0; right: 0; z-index: 4; width: 45%; height: 34%; border-radius: 18px; transform: rotate(3.5deg); }
.gallery-collage__photo[data-gallery-state="side-b"] { right: 12px; bottom: 8px; z-index: 4; width: 48%; height: 34%; border-radius: 18px 18px 34% 18px; transform: rotate(-3deg); }
.gallery-collage__tabs { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gallery-collage__tabs button { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 9px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.88); color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; padding: 6px; text-align: left; transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease; }
.gallery-collage__tabs button:hover { transform: translateY(-2px); }
.gallery-collage__tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--white); color: var(--blue); }
.gallery-collage__tabs button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.gallery-collage__tabs img { width: 42px; height: 36px; border-radius: 8px; object-fit: cover; }

/* Games: a clean horizontal reel with an arcade progress rail. */
.gallery-rail { position: absolute; inset: 0 44px 22px 0; }
.gallery-rail__viewport { position: absolute; inset: 0 0 64px; overflow: hidden; border: 7px solid rgba(255,255,255,0.96); border-radius: 24px; background: #0a192d; box-shadow: 0 28px 52px rgba(0,0,0,0.34); touch-action: pan-y; }
.gallery-rail__viewport::before, .gallery-rail__viewport::after { position: absolute; top: 10px; bottom: 10px; z-index: 3; width: 8px; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.8) 0 8px, transparent 8px 20px); content: ""; pointer-events: none; }
.gallery-rail__viewport::before { left: 9px; }
.gallery-rail__viewport::after { right: 9px; }
.gallery-rail__viewport:focus-visible { outline: 4px solid var(--orange); outline-offset: 4px; }
.gallery-rail__track { display: flex; width: 100%; height: 100%; transform: translate3d(calc(var(--gallery-index, 0) * -100%), 0, 0); transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-rail__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.gallery-rail__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-rail__footer { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 18px; }
.gallery-rail__controls { position: relative; flex: 0 0 auto; border-color: rgba(255,255,255,0.16); background: rgba(10,25,45,0.82); box-shadow: none; }
.gallery-rail__controls span { color: rgba(255,255,255,0.6); }
.gallery-rail__controls b { color: var(--orange); }
.gallery-rail__controls button { background: var(--orange); color: var(--ink); }
.gallery-rail__progress { position: relative; flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.16); }
.gallery-rail__progress span { position: absolute; inset: 0 auto 0 0; width: var(--progress, 33.333%); border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--magenta)); transition: width 0.55s var(--ease); }

.hero__sphere {
  position: absolute;
  top: -30px;
  left: -54px;
  z-index: 2;
  width: clamp(190px, 21vw, 310px);
  filter: drop-shadow(0 24px 32px rgba(13, 45, 122, 0.2));
  transform-origin: 50% 51%;
  will-change: transform;
  animation: sphereFloatSpin 18s linear infinite;
}

@keyframes sphereFloatSpin {
  0% { transform: translateY(0) rotate(-6deg); }
  25% { transform: translateY(-14px) rotate(84deg); }
  50% { transform: translateY(-3px) rotate(174deg); }
  75% { transform: translateY(-17px) rotate(264deg); }
  100% { transform: translateY(0) rotate(354deg); }
}

.hero__caption {
  position: absolute;
  right: -22px;
  bottom: 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, 66%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(15px);
  padding: 16px 18px;
}

.hero__caption-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 8px solid var(--sky);
  border-radius: 50%;
  background: var(--blue);
}

.hero__caption strong,
.hero__caption small {
  display: block;
}

.hero__caption strong {
  font-family: var(--display);
  font-size: 0.96rem;
}

.hero__caption small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.hero__trust {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.hero__trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 118px;
}

.hero__trust-grid p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 34px;
}

.hero__trust-grid p + p {
  border-left: 1px solid var(--line);
}

.hero__trust-grid strong {
  font-family: var(--display);
  font-size: 1.06rem;
}

.hero__trust-grid span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section-heading {
  margin-bottom: 58px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 72px;
}

.section-heading__copy {
  max-width: 470px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.section-heading--center {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 58px;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center p:last-child {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.benefit-card {
  position: relative;
  grid-column: span 4;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 30px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: #cbd6e5;
  box-shadow: var(--shadow-sm);
}

.benefit-card--large {
  grid-column: span 8;
}

.benefit-card--blue {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.benefit-card--orange {
  border-color: #ffd9b7;
  background: #fff4e9;
}

.benefit-card__label {
  margin-bottom: 54px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.benefit-card--blue .benefit-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.benefit-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.benefit-card p:not(.benefit-card__label) {
  max-width: 510px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.benefit-card--blue p:not(.benefit-card__label) {
  color: rgba(255, 255, 255, 0.75);
}

.benefit-card__line {
  position: absolute;
  top: 37px;
  right: 34px;
  width: 100px;
  height: 100px;
  border: 22px solid var(--sky);
  border-radius: 50%;
}

.benefit-card__line::after {
  position: absolute;
  top: 9px;
  right: -32px;
  width: 112px;
  height: 3px;
  transform: rotate(-25deg);
  background: var(--orange);
  content: "";
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.value-card {
  position: relative;
  grid-column: span 2;
  min-height: 268px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 30px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:nth-child(4),
.value-card:nth-child(5) {
  grid-column: span 3;
}

.value-card::before {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 4px;
  background: var(--value-accent, var(--blue));
  content: "";
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: #cbd6e5;
  box-shadow: var(--shadow-sm);
}

.value-card__label {
  margin-bottom: 32px;
  color: var(--value-accent, var(--blue));
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.value-card > p:not(.value-card__label) {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.value-card > p + p {
  margin-top: 12px;
}

.value-card--creativity { --value-accent: var(--orange); }
.value-card--curiosity { --value-accent: var(--blue); }
.value-card--growth { --value-accent: var(--magenta); }
.value-card--kindness { --value-accent: var(--success); }
.value-card--inclusion { --value-accent: var(--blue-dark); }

.activity-layout {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  align-items: center;
  gap: clamp(60px, 8vw, 110px);
}

.activity-media {
  position: relative;
  min-height: 670px;
}

.activity-media__object {
  position: absolute;
  right: -48px;
  bottom: -10px;
  z-index: 2;
  width: min(410px, 67%);
  filter: drop-shadow(0 20px 30px rgba(16, 36, 62, 0.16));
  transform-origin: 55% 62%;
  will-change: transform;
  animation: learningObjectsFloat 7.5s ease-in-out infinite;
}

@keyframes learningObjectsFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  35% { transform: translate3d(-9px, -15px, 0) rotate(2.5deg); }
  68% { transform: translate3d(7px, -7px, 0) rotate(-0.5deg); }
}

.activity-media__note {
  position: absolute;
  top: -112px;
  right: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  width: 236px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 17px 19px;
}

.activity-media__note strong {
  font-family: var(--display);
  font-size: 0.94rem;
}

.activity-media__note span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.activity-copy h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
}

.activity-copy .lead {
  margin-top: 24px;
}

.activity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.activity-list li {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list li:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.activity-list span,
.activity-list small {
  display: block;
}

.activity-list span {
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 700;
}

.activity-list small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.pillars-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.pillar-card {
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--pillar-accent, var(--blue));
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 24px 24px 22px 26px;
  box-shadow: 0 8px 22px rgba(16, 36, 62, 0.04);
}

.pillar-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.18;
}

.pillar-card h3 strong {
  color: var(--pillar-accent, var(--blue));
}

.pillar-card h3 span {
  color: var(--ink);
  font-weight: 600;
}

.pillar-card > p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.pillar-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pillar-card li {
  position: relative;
  color: #34445a;
  font-size: 0.76rem;
  line-height: 1.45;
  padding-left: 15px;
}

.pillar-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pillar-accent, var(--blue));
  content: "";
}

.pillar-card--create { --pillar-accent: var(--orange); }
.pillar-card--discover { --pillar-accent: var(--blue); }
.pillar-card--thrive { --pillar-accent: var(--magenta); }

.spheres-section {
  background: var(--canvas);
}

.spheres-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.spheres-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spheres-table th,
.spheres-table td {
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.spheres-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.spheres-table thead th:first-child { width: 23%; }
.spheres-table thead th:nth-child(2) { width: 27%; }

.spheres-table tbody tr:last-child th,
.spheres-table tbody tr:last-child td {
  border-bottom: 0;
}

.spheres-table tbody th {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1.25;
}

.spheres-table tbody th span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
}

.spheres-table tbody td {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.welcome-section {
  background: var(--white);
}

.welcome-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.welcome-layout .lead {
  max-width: 500px;
  margin-top: 24px;
}

.welcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.welcome-list li {
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  padding: 17px 10px 17px 26px;
}

.welcome-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.welcome-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.welcome-list li::before {
  position: absolute;
  top: 1.55em;
  left: 4px;
  width: 8px;
  height: 4px;
  transform: rotate(-45deg);
  border-bottom: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  content: "";
}

.games-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.games-section::before {
  position: absolute;
  top: -360px;
  left: -220px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 70, 196, 0.55), transparent 70%);
  content: "";
}

.games-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
  margin-bottom: 58px;
}

.games-intro__copy h2 {
  font-size: clamp(2.6rem, 4.6vw, 4.65rem);
}

.games-intro__copy > p:last-child {
  max-width: 600px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
}

.games-intro__media {
  position: relative;
  min-height: 420px;
}

.games-intro__controller {
  position: absolute;
  right: -42px;
  bottom: -58px;
  z-index: 2;
  width: min(410px, 65%);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 58%;
  will-change: transform;
  animation: controllerHover 6.2s ease-in-out infinite;
}

@keyframes controllerHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(-8px, -17px, 0) rotate(4deg); }
}

.game-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #172c48;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
}

.game-card__preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 170px;
  overflow: hidden;
  background: #ddebff;
}

.game-card__body {
  padding: 24px;
}

.game-card__meta {
  color: #97aac3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card h3 {
  margin-top: 8px;
  font-size: 1.55rem;
}

.game-card__body > p:not(.game-card__meta) {
  min-height: 48px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.83rem;
}

.button--game {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.8rem;
}

.button--game:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.game-card__preview--grid {
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 34px);
  align-content: center;
  gap: 5px;
}

.game-card__preview--grid i {
  width: 34px;
  height: 34px;
  border: 1px solid #a9bedd;
  background: rgba(255, 255, 255, 0.55);
}

.game-card__preview--grid i:nth-child(1)::after,
.game-card__preview--grid i:nth-child(5)::after,
.game-card__preview--grid i:nth-child(9)::after {
  display: block;
  color: var(--blue);
  content: "×";
  font-family: var(--display);
  font-size: 28px;
  font-style: normal;
  line-height: 30px;
  text-align: center;
}

.game-card__preview--snake::before {
  width: 120px;
  height: 70px;
  border: 16px solid var(--blue);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 38px 0;
  content: "";
}

.game-card__preview--snake span {
  position: absolute;
  top: 48px;
  right: calc(50% - 68px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
}

.game-card__preview--memory {
  grid-template-columns: repeat(2, 46px);
  gap: 8px;
}

.game-card__preview--memory i {
  width: 46px;
  height: 58px;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.game-card__preview--memory i:nth-child(2),
.game-card__preview--memory i:nth-child(3) {
  background: var(--orange);
}

.game-card__preview--tap::before,
.game-card__preview--tap::after,
.game-card__preview--tap span {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.game-card__preview--tap::before {
  width: 108px;
  height: 108px;
  border: 2px solid #a9bedd;
}

.game-card__preview--tap::after {
  width: 72px;
  height: 72px;
  border: 2px solid #7899c8;
}

.game-card__preview--tap span {
  z-index: 2;
  width: 36px;
  height: 36px;
  background: var(--orange);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 34px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.plan-card--featured {
  border: 2px solid var(--blue);
  background: #f4f7ff;
}

.plan-card__flag {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.plan-card__top p {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-card__top h3 {
  margin-top: 12px;
  font-size: 2rem;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 32px;
}

.plan-card__price strong {
  font-family: var(--display);
  font-size: 3.55rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.plan-card__price span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.plan-card__description {
  min-height: 92px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.plan-card ul {
  margin: 26px 0 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.plan-card li {
  position: relative;
  color: #34445a;
  font-size: 0.82rem;
  padding: 7px 0 7px 23px;
}

.plan-card li::before {
  position: absolute;
  top: 14px;
  left: 2px;
  width: 8px;
  height: 4px;
  transform: rotate(-45deg);
  border-bottom: 2px solid var(--success);
  border-left: 2px solid var(--success);
  content: "";
}

.plan-card .button {
  margin-top: auto;
}

.schedule-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.schedule-section::after {
  position: absolute;
  right: -220px;
  bottom: -280px;
  width: 650px;
  height: 650px;
  border: 100px solid rgba(23, 70, 196, 0.23);
  border-radius: 50%;
  content: "";
}

.schedule-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: start;
  gap: 90px;
}

.schedule-copy {
  position: sticky;
  top: 120px;
}

.schedule-copy h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
}

.schedule-copy > p:not(.eyebrow) {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.66);
}

.schedule-fact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
}

.schedule-fact + .schedule-fact {
  margin-top: 18px;
}

.schedule-fact > span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
}

.schedule-fact strong,
.schedule-fact small {
  display: block;
}

.schedule-fact strong {
  font-family: var(--display);
  font-size: 0.98rem;
}

.schedule-fact small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.schedule-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  padding: 6px;
}

.tab {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

.tab.is-active {
  background: var(--white);
  color: var(--ink);
}

.schedule-day {
  padding: 12px 22px 4px;
}

.schedule-day[hidden] {
  display: none;
}

.schedule-day.is-active {
  animation: panelIn 0.4s var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 25px 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item time {
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.timeline-item p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.food-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(64px, 9vw, 128px);
}

.food-photo {
  position: relative;
  min-height: 680px;
}

.gallery-wipe { position: absolute; inset: 0 20px 0 0; }
.gallery-wipe__stage { position: absolute; inset: 0 0 62px; overflow: hidden; border: 8px solid var(--white); border-radius: 28px 28px 42% 28px; background: #dce8f5; box-shadow: var(--shadow-md); }
.gallery-wipe__stage figure { position: absolute; inset: 0; margin: 0; }
.gallery-wipe__stage img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.gallery-wipe__reveal { clip-path: inset(calc(100% - var(--wipe, 58%)) 0 0 0); transition: clip-path 0.16s ease-out; }
.gallery-wipe__line { position: absolute; right: 0; bottom: var(--wipe, 58%); left: 0; z-index: 3; height: 4px; transform: translateY(50%); background: var(--white); box-shadow: 0 2px 12px rgba(10,25,45,0.24); pointer-events: none; transition: bottom 0.16s ease-out; }
.gallery-wipe__line i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; transform: translate(-50%, -50%); border: 4px solid var(--white); border-radius: 50%; background: var(--orange); box-shadow: 0 8px 20px rgba(10,25,45,0.2); }
.gallery-wipe__line i::before { color: var(--ink); font-size: 1rem; font-weight: 900; content: "↕"; }
.gallery-wipe__control { position: absolute; right: 8px; bottom: 4px; left: 8px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gallery-wipe__control input { width: 100%; accent-color: var(--orange); cursor: row-resize; }
.gallery-wipe__control input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.food-photo > p {
  position: absolute;
  right: -42px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 255px;
  border-radius: 18px;
  background: var(--orange);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}

.food-photo > p strong {
  font-family: var(--display);
  font-size: 0.98rem;
}

.food-photo > p span {
  margin-top: 2px;
  font-size: 0.71rem;
}

.food-copy h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.35rem);
}

.food-copy .lead {
  margin-top: 24px;
}

.food-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.food-columns h3 {
  font-size: 1.04rem;
}

.food-columns ul {
  margin-top: 13px;
}

.food-columns li {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 7px 0 7px 18px;
}

.food-columns li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.parents-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(60px, 8vw, 110px);
}

.parents-copy h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.35rem);
}

.parents-copy .lead {
  margin-top: 24px;
}

.priority-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.priority-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #405067;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  padding-bottom: 4px;
}

.text-link span {
  transition: transform 0.2s var(--ease);
}

.text-link:hover span {
  transform: translateX(5px);
}

.parents-photo {
  position: relative;
  min-height: 560px;
}

.parents-mosaic { position: absolute; inset: 0 0 62px; }
.parents-mosaic figure { position: absolute; overflow: hidden; margin: 0; border: 6px solid var(--white); background: #dce8f5; box-shadow: var(--shadow-md); opacity: 0; transition: transform 0.72s var(--ease), opacity 0.5s ease; }
.parents-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.parents-mosaic__main { inset: 4px 92px 104px 0; z-index: 1; transform: translate3d(-22px, 18px, 0) rotate(-2deg); border-radius: 32px 32px 32px 40%; }
.parents-mosaic__welcome { top: 8px; right: 0; z-index: 3; width: 42%; height: 39%; transform: translate3d(24px, -16px, 0) rotate(4deg); border-radius: 18px 34% 18px 18px; transition-delay: 100ms !important; }
.parents-mosaic__welcome img { object-position: center; }
.parents-mosaic__project { right: 20px; bottom: 4px; z-index: 2; width: 53%; height: 40%; transform: translate3d(28px, 20px, 0) rotate(-3deg); border-radius: 18px 18px 38% 18px; transition-delay: 200ms !important; }
.parents-photo.visible .parents-mosaic figure { opacity: 1; }
.parents-photo.visible .parents-mosaic__main { transform: rotate(-0.8deg); }
.parents-photo.visible .parents-mosaic__welcome { transform: rotate(2deg); }
.parents-photo.visible .parents-mosaic__project { transform: rotate(-1.5deg); }

.parents-photo__quote {
  position: absolute;
  right: 26px;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 35px 1fr;
  width: min(380px, 80%);
  border-radius: 18px;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
}

.parents-photo__quote span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.9;
}

.parents-photo__quote p {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  min-height: 250px;
  padding: 32px 30px;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step > span {
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
}

.step div {
  margin-top: 70px;
}

.step h3 {
  font-size: 1.3rem;
}

.step p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.join-section {
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}

.join-section::before {
  position: absolute;
  top: -270px;
  left: -230px;
  width: 620px;
  height: 620px;
  border: 110px solid rgba(23, 70, 196, 0.5);
  border-radius: 50%;
  content: "";
}

.join-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(70px, 8vw, 120px);
}

.join-copy {
  position: sticky;
  top: 120px;
}

.join-copy h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.join-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.68);
}

.join-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.join-facts div {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.join-facts div:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 18px;
}

.join-facts dt {
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.join-facts dd {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}

.join-form {
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: clamp(28px, 4.5vw, 50px);
}

.join-form__heading {
  margin-bottom: 30px;
}

.join-form__heading p {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.join-form__heading h3 {
  margin-top: 7px;
  font-size: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: block;
  margin-bottom: 17px;
  border: 0;
}

.field > span,
.field legend {
  display: block;
  margin-bottom: 7px;
  font-size: 0.73rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafcff;
  outline: 0;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input,
.field select {
  min-height: 49px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(23, 70, 196, 0.1);
}

.day-pills {
  display: flex;
  gap: 8px;
}

.day-pills label {
  flex: 1;
  cursor: pointer;
}

.day-pills input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.day-pills span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
  font-size: 0.73rem;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.day-pills input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.day-pills input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.join-form__hint {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-align: center;
}

.join-form__hint a {
  color: var(--blue);
  font-weight: 800;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: 90px;
}

.faq-heading {
  position: sticky;
  top: 120px;
}

.faq-heading h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.faq-heading > p:last-child {
  margin-top: 22px;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 650;
  padding: 25px 2px;
  text-align: left;
}

.faq-q i {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), background 0.2s ease;
}

.faq-q i::before,
.faq-q i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
  background: var(--ink);
  content: "";
}

.faq-q i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-q i {
  transform: rotate(45deg);
  border-color: var(--orange);
  background: var(--orange);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  max-width: 670px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  padding: 0 58px 0 2px;
  transition: padding 0.32s var(--ease);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-a p {
  padding-bottom: 25px;
}

.footer {
  position: relative;
  background: #0a192d;
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.8fr;
  gap: 80px;
  padding-top: 70px;
  padding-bottom: 60px;
}

.footer__brand img {
  width: 130px;
  height: auto;
}

.footer__brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
}

.footer h3 {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.footer__nav a,
.footer__contact a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  padding-top: 20px;
  padding-bottom: 24px;
}

.footer__bottom div {
  display: flex;
  gap: 24px;
}

.footer__bottom a:hover {
  color: var(--white);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translateY(85px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  color: var(--white);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.to-top.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.75s var(--ease), opacity 0.75s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Game modal and game boards */
.game-modal {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  overflow: visible;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.game-modal::backdrop {
  background: rgba(7, 18, 34, 0.78);
  backdrop-filter: blur(8px);
}

.game-modal[open] {
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.game-modal__shell {
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 26px;
  background: var(--canvas);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.game-modal__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
  padding: 18px 24px 18px 30px;
}

.game-modal__header p {
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-modal__header h2 {
  margin-top: 4px;
  font-size: 1.8rem;
}

.game-modal__close {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.game-modal__close span::before,
.game-modal__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ink);
  content: "";
}

.game-modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.game-stage {
  min-height: 500px;
  padding: clamp(22px, 4vw, 40px);
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.game-instructions {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.game-stats {
  display: flex;
  gap: 8px;
}

.game-stat {
  min-width: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 9px 12px;
  text-align: center;
}

.game-stat span,
.game-stat strong {
  display: block;
}

.game-stat span {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-stat strong {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1rem;
}

.game-status {
  min-height: 26px;
  margin: 0 0 20px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}

.game-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
}

.game-action--light {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
}

.ttt-cell {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--blue);
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ttt-cell:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: #f4f7ff;
}

.ttt-cell[data-mark="O"] {
  color: var(--orange);
}

.ttt-cell.is-win {
  border-color: var(--orange);
  background: #fff2e5;
}

.game-center-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.snake-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 150px;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.snake-canvas {
  width: min(100%, 430px);
  height: auto;
  border: 10px solid var(--white);
  border-radius: 20px;
  background: #eaf1fb;
  box-shadow: var(--shadow-sm);
}

.snake-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  gap: 5px;
}

.snake-controls button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-weight: 800;
}

.snake-controls button[data-dir="up"] { grid-column: 2; }
.snake-controls button[data-dir="left"] { grid-column: 1; grid-row: 2; }
.snake-controls button[data-dir="down"] { grid-column: 2; grid-row: 2; }
.snake-controls button[data-dir="right"] { grid-column: 3; grid-row: 2; }

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 105px));
  justify-content: center;
  gap: 10px;
}

.memory-card {
  position: relative;
  min-height: 105px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: transparent;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}

.memory-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  content: "";
}

.memory-card:hover:not(:disabled) {
  transform: translateY(-3px);
}

.memory-card.is-flipped,
.memory-card.is-matched {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.memory-card.is-matched {
  border: 2px solid var(--success);
}

.memory-card__shape,
.memory-card__label {
  position: relative;
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.memory-card.is-flipped .memory-card__shape,
.memory-card.is-flipped .memory-card__label,
.memory-card.is-matched .memory-card__shape,
.memory-card.is-matched .memory-card__label {
  opacity: 1;
}

.memory-card__shape {
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border-radius: var(--shape-radius, 50%);
  background: var(--shape-color, var(--orange));
}

.memory-card__label {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
}

.quick-board {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: 22px;
  background: linear-gradient(135deg, #e9f1ff, #f8fbff);
  box-shadow: var(--shadow-sm);
}

.quick-target {
  position: absolute;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 9px solid var(--blue);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(23, 70, 196, 0.2);
  color: var(--ink);
  font-size: 0;
  transition: left 0.12s ease, top 0.12s ease, transform 0.12s ease;
}

.quick-target::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.quick-target:active {
  transform: scale(0.92);
}

.quick-target[hidden] {
  display: none;
}

@media (max-width: 1120px) {
  .nav__links {
    gap: 14px;
  }

  .activity-layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .activity-media {
    display: grid;
    grid-template-rows: auto 420px;
    gap: 14px;
    width: min(100%, 720px);
    min-height: auto;
    margin-inline: auto;
  }

  .gallery-collage {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    height: 420px;
  }

  .activity-media__note {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 1;
    width: min(236px, 100%);
    margin: 0 0 0 auto;
  }

  .activity-media__object {
    right: 0;
    width: min(410px, 58%);
  }

  .nav__links > a:not(.button) {
    font-size: 0.8rem;
  }

  .hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
  }

  .hero__visual {
    min-height: 560px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-card__body > p:not(.game-card__meta) {
    min-height: auto;
  }
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 36px, 760px);
  }

  .section {
    padding: 90px 0;
  }

  .nav__burger {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transform: translateY(-10px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    padding: 14px;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
  }

  .site-header.open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links > a:not(.button) {
    border-radius: 10px;
    padding: 13px 14px;
  }

  .nav__links > a:not(.button)::after {
    display: none;
  }

  .nav__cta {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .hero__grid,
  .activity-layout,
  .games-intro,
  .schedule-layout,
  .food-layout,
  .parents-layout,
  .join-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero__copy {
    max-width: 700px;
  }

  .hero__visual {
    width: min(100%, 720px);
    min-height: clamp(520px, 78vw, 640px);
    margin-inline: auto;
  }

  .hero__photo-frame {
    inset: 20px 0 38px;
  }

  .hero__sphere {
    left: -18px;
    width: clamp(190px, 28vw, 260px);
  }

  .hero__caption {
    right: 0;
    width: min(330px, 54%);
  }

  /* Decorative seam objects are allowed to bleed on desktop, but they can
     collide with copy once the page becomes a single-column flow. */
  .section-transition::before {
    display: none;
  }

  .section-transition {
    z-index: 0;
  }

  .section > .container,
  .hero__trust {
    position: relative;
    z-index: 1;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading__copy {
    margin-left: 0;
  }

  .value-card,
  .value-card:nth-child(4),
  .value-card:nth-child(5) {
    grid-column: span 3;
  }

  .benefit-card,
  .benefit-card--large {
    grid-column: span 6;
  }

  .activity-layout {
    gap: 70px;
  }

  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .activity-media {
    width: min(100%, 720px);
    min-height: auto;
    margin-inline: auto;
  }

  .activity-media__object {
    right: 0;
    width: min(410px, 58%);
  }

  .activity-media__note {
    right: 0;
  }

  .games-intro {
    gap: 50px;
  }

  .games-intro__media {
    min-height: 480px;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 660px;
    margin-inline: auto;
  }

  .plan-card {
    min-height: auto;
  }

  .plan-card__description {
    min-height: 0;
  }

  .schedule-copy,
  .join-copy,
  .faq-heading {
    position: static;
  }

  .schedule-layout,
  .join-layout,
  .faq-layout {
    gap: 56px;
  }

  .food-layout,
  .parents-layout {
    gap: 70px;
  }

  .food-photo {
    width: min(100%, 720px);
    min-height: clamp(560px, 78vw, 660px);
    margin-inline: auto;
  }

  .parents-photo {
    width: min(100%, 720px);
    min-height: clamp(500px, 70vw, 560px);
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer__top {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 50px;
  }

  .footer__contact {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
  }
}

@media (max-width: 760px) {
  .hero__trust-grid {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .hero__trust-grid p {
    padding: 13px 2px;
  }

  .hero__trust-grid p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .section {
    padding: 74px 0;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .nav__inner {
    min-height: 74px;
  }

  .brand {
    width: 70px;
    height: 64px;
  }

  .brand img {
    width: 65px;
  }

  .nav__links {
    grid-template-columns: 1fr;
    right: 14px;
    left: 14px;
  }

  .hero__grid {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 62px;
    gap: 48px;
  }

  .hero__title {
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  .hero__intro {
    margin-top: 24px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
  }

  .hero__facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 2px;
  }

  .hero__facts dd {
    margin-top: 0;
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__photo-frame {
    inset: 38px 0 30px 24px;
    border-radius: 34% 20px 20px 20px;
  }

  .hero__sphere {
    top: -12px;
    left: -42px;
    width: 185px;
  }

  .hero__caption {
    right: 10px;
    width: 78%;
  }

  .gallery-fan__controls {
    bottom: 76px;
    left: 12px;
  }

  .hero__trust-grid {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .hero__trust-grid p {
    padding: 13px 2px;
  }

  .hero__trust-grid p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .value-card:nth-child(4),
  .value-card:nth-child(5) {
    grid-column: auto;
    min-height: auto;
  }

  .value-card__label {
    margin-bottom: 24px;
  }

  .benefit-card,
  .benefit-card--large {
    grid-column: auto;
    min-height: 230px;
  }

  .benefit-card__line {
    right: -24px;
  }

  .activity-media {
    display: grid;
    grid-template-rows: auto 420px;
    gap: 14px;
    min-height: auto;
  }

  .gallery-collage {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    height: 420px;
  }

  .gallery-collage__photo[data-gallery-state="active"] {
    inset: 8px 48px 78px 0;
  }

  .gallery-collage__tabs button {
    grid-template-columns: 34px 1fr;
    gap: 6px;
    font-size: 0.6rem;
  }

  .gallery-collage__tabs img {
    width: 34px;
    height: 32px;
  }

  .activity-media__object {
    right: -10px;
    width: 78%;
  }

  .activity-media__note {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 1;
    width: 205px;
    margin: 0 0 0 auto;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .activity-list li:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .pillar-card ul {
    grid-template-columns: 1fr;
  }

  .welcome-list {
    grid-template-columns: 1fr;
  }

  .welcome-list li,
  .welcome-list li:nth-last-child(-n + 2),
  .welcome-list li:last-child:nth-child(odd) {
    grid-column: auto;
    border-bottom: 1px solid var(--line);
  }

  .welcome-list li:last-child {
    border-bottom: 0;
  }

  .spheres-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .spheres-table,
  .spheres-table tbody,
  .spheres-table tr,
  .spheres-table th,
  .spheres-table td {
    display: block;
  }

  .spheres-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .spheres-table tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(16, 36, 62, 0.04);
    padding: 20px;
  }

  .spheres-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .spheres-table th,
  .spheres-table td {
    width: auto !important;
    border: 0;
    padding: 0;
  }

  .spheres-table tbody td {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .spheres-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .spheres-table tbody td:nth-child(2)::before { content: "Focus"; }
  .spheres-table tbody td:nth-child(3)::before { content: "Examples"; }

  .games-intro__media {
    min-height: 340px;
  }

  .gallery-rail {
    inset: 0 18px 18px 0;
  }

  .games-intro__controller {
    right: 0;
    bottom: -24px;
    width: min(54%, 200px);
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .game-card__preview {
    height: 100%;
    min-height: 230px;
  }

  .plan-card {
    padding: 28px 24px;
  }

  .schedule-panel {
    padding: 12px;
  }

  .schedule-day {
    padding: 10px 8px 0;
  }

  .tab {
    font-size: 0.72rem;
  }

  .timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 15px;
  }

  .food-photo {
    min-height: 540px;
  }

  .food-photo > p {
    right: 12px;
    bottom: 54px;
    width: 240px;
  }

  .gallery-wipe {
    right: 8px;
  }

  .gallery-wipe__control {
    gap: 7px;
    font-size: 0.55rem;
  }

  .food-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .parents-photo {
    min-height: 470px;
  }

  .parents-mosaic__main { right: 58px; bottom: 90px; }
  .parents-mosaic__welcome { width: 43%; height: 37%; }
  .parents-mosaic__project { right: 6px; width: 55%; height: 38%; }

  .parents-photo__quote {
    right: 10px;
    width: 90%;
  }

  .section-transition {
    --object-width: 112px;
    height: 56px;
  }

  .transition--diagonal,
  .transition--curve,
  .transition--arch,
  .transition--rule,
  .transition--scoop,
  .transition--wave,
  .transition--flight,
  .transition--blocks,
  .transition--offset-curve {
    height: 62px;
  }

  .transition--badge span {
    right: 6%;
    width: 72px;
    border-width: 6px;
  }

  .transition--crayon span {
    right: 5%;
    width: 44vw;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: auto;
    padding: 25px 5px;
  }

  .step + .step,
  .step:nth-child(3),
  .step:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step div {
    margin-top: 0;
  }

  .join-facts {
    grid-template-columns: 1fr;
  }

  .join-facts div:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .day-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer__top,
  .footer__nav {
    grid-template-columns: 1fr;
  }

  .footer__top {
    gap: 38px;
  }

  .footer__nav {
    gap: 26px;
  }

  .footer__contact {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .footer__bottom div {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .game-modal {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .game-modal__shell {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .game-modal__header {
    min-height: 78px;
    padding: 14px 16px;
  }

  .game-stage {
    padding: 20px 14px 34px;
  }

  .game-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ttt-board {
    grid-template-columns: repeat(3, minmax(78px, 95px));
  }

  .ttt-cell {
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }

  .snake-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .snake-side {
    flex-direction: row;
    justify-content: center;
  }

  .memory-board {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .memory-card {
    min-height: 80px;
  }

  .memory-card__shape {
    width: 23px;
    height: 23px;
    margin-bottom: 5px;
  }

  .memory-card__label {
    font-size: 0.58rem;
  }

  .quick-board {
    height: 410px;
  }
}

@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;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }

  .hero__title em {
    width: 100%;
    border-right-color: transparent;
  }

  .hero__title em::after {
    transform: scaleX(1);
  }
}
