:root {
  --ink: #213044;
  --muted: #67778b;
  --paper: #fbfdff;
  --sky: #dcefff;
  --blue: #7bb7ea;
  --blue-deep: #407bb9;
  --yellow: #ffe49a;
  --lavender: #e9e4ff;
  --mint: #dff5ed;
  --line: rgba(80, 116, 150, 0.16);
  --shadow: 0 24px 70px rgba(66, 113, 160, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 228, 154, 0.42), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(220, 239, 255, 0.9), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #ffffff 100%);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(87, 122, 154, 0.14);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
  transition: box-shadow 0.24s ease, background 0.24s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 60px rgba(57, 88, 118, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9fefe, var(--sky));
  color: var(--blue-deep);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(89, 143, 191, 0.2);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.9rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #4d6178;
  font-size: 0.88rem;
  font-weight: 600;
}

.desktop-nav a:hover {
  background: rgba(220, 239, 255, 0.72);
  color: var(--blue-deep);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 19;
  display: none;
  width: min(420px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--sky);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 106px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 100vh;
  align-items: center;
  gap: 54px;
  padding-top: 138px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.hero-lead {
  max-width: 560px;
  color: #51667d;
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 38px rgba(33, 48, 68, 0.18);
}

.button.secondary {
  background: white;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-stats strong {
  color: var(--ink);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(64, 123, 185, 0.045) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(64, 123, 185, 0.045) 43px 44px);
}

.orbit-ring {
  position: absolute;
  inset: 14% 8% auto auto;
  width: 270px;
  height: 270px;
  border: 2px dashed rgba(123, 183, 234, 0.48);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.floating-moon {
  position: absolute;
  top: 16%;
  right: 18%;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(82, 150, 217, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.95), rgba(180, 222, 255, 0.86) 52%, rgba(123, 183, 234, 0.28)),
    var(--sky);
  box-shadow: 0 0 34px rgba(123, 183, 234, 0.5);
  animation: float 4.8s ease-in-out infinite;
}

.hero-leta {
  position: absolute;
  right: 18%;
  bottom: 6%;
  width: min(310px, 48%);
  border: 10px solid white;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-milo {
  position: absolute;
  left: 7%;
  bottom: 18%;
  width: min(210px, 34%);
  border: 10px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float 5.4s ease-in-out infinite 0.4s;
}

.comic-bubble {
  position: absolute;
  top: 23%;
  left: 8%;
  max-width: 190px;
  padding: 18px 20px;
  border: 2px solid rgba(64, 123, 185, 0.28);
  border-radius: 28px 28px 28px 8px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(81, 123, 159, 0.12);
}

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

.section-heading {
  max-width: 760px;
}

.intro-card,
.mission-card,
.template-card,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(75, 116, 154, 0.1);
  backdrop-filter: blur(18px);
}

.intro-card {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius);
}

.intro-card:nth-child(3) {
  background: rgba(255, 251, 232, 0.78);
}

.intro-card:nth-child(4) {
  background: rgba(233, 228, 255, 0.72);
}

.lab-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  border-radius: 46px;
  padding: 78px;
  background:
    linear-gradient(135deg, rgba(220, 239, 255, 0.76), rgba(255, 255, 255, 0.8) 52%, rgba(255, 228, 154, 0.36)),
    #fff;
  box-shadow: var(--shadow);
}

.lab-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.node {
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px solid rgba(64, 123, 185, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-weight: 800;
}

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

.split-section,
.parents-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 70px;
  align-items: center;
}

.visual-stack img {
  width: min(390px, 100%);
  margin: 0 auto;
  border: 10px solid white;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.soft-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #4b6178;
  font-weight: 700;
}

.english-panel {
  width: min(1180px, calc(100% - 36px));
  border-radius: 46px;
  padding: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 245, 237, 0.68));
}

.mission-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.mission-card {
  padding: 28px;
  border-radius: var(--radius);
}

.mission-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #7b6420;
  font-weight: 900;
}

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

.works-section .section-heading {
  margin: 0 auto;
}

.work-showcase {
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.work-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--sky);
  color: var(--blue-deep);
}

.work-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  text-align: left;
}

.work-illustration {
  position: relative;
  min-height: 310px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(220, 239, 255, 0.78), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(64, 123, 185, 0.06) 39px 40px);
}

.mini-moon,
.mini-dome,
.mini-spark {
  position: absolute;
  display: block;
}

.mini-moon {
  top: 34px;
  left: 50%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff7cd;
  box-shadow: 0 0 28px rgba(255, 228, 154, 0.62);
}

.mini-dome {
  right: 18%;
  bottom: 54px;
  width: 180px;
  height: 92px;
  border: 4px solid #7bb7ea;
  border-radius: 110px 110px 20px 20px;
  background: rgba(255, 255, 255, 0.7);
}

.mini-spark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lavender);
}

.mini-spark.one {
  left: 18%;
  top: 32%;
}

.mini-spark.two {
  right: 16%;
  top: 20%;
  background: var(--mint);
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.template-card {
  margin: 0;
  padding: 10px;
  border-radius: 30px;
}

.template-card img {
  width: 100%;
  aspect-ratio: 185 / 260;
  object-fit: cover;
  border-radius: 22px;
}

.template-card figcaption {
  padding: 14px 4px 6px;
  color: var(--blue-deep);
  font-weight: 900;
  text-align: center;
}

.parent-points {
  display: grid;
  gap: 14px;
}

.parent-points div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(75, 116, 154, 0.08);
}

.parent-points strong {
  font-size: 1.3rem;
}

.parent-points span {
  color: var(--muted);
  font-weight: 700;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-card {
  padding: 68px;
  border-radius: 42px;
  text-align: center;
}

.contact-card h2 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.contact-card p {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.contact-grid a,
.contact-grid span {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .intro-grid,
  .lab-band,
  .split-section,
  .parents-section,
  .work-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .intro-grid .section-heading {
    grid-column: auto;
  }

  .lab-band,
  .english-panel {
    padding: 44px 24px;
  }

  .lab-map,
  .mission-row,
  .template-gallery,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    width: min(100% - 24px, 1120px);
    padding: 76px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-top: 112px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  p {
    font-size: 0.98rem;
  }

  .hero-stage {
    min-height: 480px;
    border-radius: 30px;
  }

  .hero-leta {
    right: 9%;
    width: 58%;
  }

  .hero-milo {
    left: 5%;
    bottom: 16%;
    width: 38%;
  }

  .floating-moon {
    right: 11%;
    width: 104px;
    height: 104px;
  }

  .comic-bubble {
    left: 5%;
    max-width: 160px;
  }

  .lab-band,
  .english-panel,
  .contact-card {
    width: calc(100% - 24px);
    border-radius: 30px;
  }

  .lab-map,
  .mission-row,
  .template-gallery,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .work-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .work-board {
    padding: 24px;
  }

  .parent-points div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
