:root {
  --ink: #17243a;
  --cream: #fff8ec;
  --white: #ffffff;
  --coral: #c94e3b;
  --tangerine: #e47722;
  --sun: #f2c84b;
  --green: #187653;
  --blue: #315fc9;
  --plum: #77408e;
  --sky: #d8f0ef;
  --pink: #f33f7a;
  --line: rgba(23, 36, 58, 0.18);
  --shadow: 0 22px 60px rgba(23, 36, 58, 0.12);
  --rounded: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Avenir Next", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--rounded);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(3.25rem, 7vw, 6.8rem); max-width: 10ch; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); max-width: 13ch; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.24rem; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 0.6rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 248, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand-link img { width: 174px; }
nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); font-weight: 700; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
.nav-contact { padding: 0.55rem 1rem; color: var(--white); background: var(--ink); border-radius: 999px; }

.hero {
  min-height: calc(100svh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.45fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 15%, rgba(216, 240, 239, 0.92) 0 13%, transparent 13.5%),
    linear-gradient(150deg, var(--cream) 0 62%, #fff2d0 62% 100%);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin-bottom: 1rem;
  color: var(--coral);
  font-family: var(--rounded);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-lede { max-width: 61ch; margin-top: 1.8rem; font-size: clamp(1.1rem, 1.5vw, 1.34rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(23, 36, 58, 0.15); }
.button-primary { color: var(--white); background: var(--ink); }
.button-secondary { background: transparent; }
.button-light { color: var(--ink); background: var(--white); }
.hero-note { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 700; }
.hero-art { position: relative; width: min(980px, 58vw); margin-right: -1.5vw; }
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 9% 4% 14%;
  border-radius: 48% 52% 46% 54%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.fact-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.fact-ribbon p { min-height: 140px; display: grid; place-content: center; gap: 0.2rem; margin: 0; text-align: center; border-right: 1px solid var(--line); }
.fact-ribbon p:last-child { border-right: 0; }
.fact-ribbon strong { font-family: var(--rounded); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.fact-ribbon span { font-size: 0.92rem; font-weight: 700; }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem); }
.mission { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr); gap: clamp(3rem, 8vw, 9rem); }
.section-intro { align-self: start; }
.mission-body > p { max-width: 64ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.two-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.two-pillars article { padding-top: 1.5rem; border-top: 4px solid var(--sun); }
.two-pillars article:nth-child(2) { border-color: var(--blue); }
.pillar-number { display: block; margin-bottom: 1.5rem; color: var(--coral); font-family: var(--rounded); font-size: 1rem; }
.two-pillars h3 { margin-bottom: 0.8rem; }

.cuddly {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  color: var(--white);
  background: var(--ink);
}
.cuddly-portrait { position: relative; display: grid; place-items: center; min-height: 560px; }
.cuddly-portrait::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--sky); }
.cuddly-portrait img { position: relative; max-height: 590px; object-fit: contain; filter: drop-shadow(0 28px 36px rgba(0,0,0,0.28)); }
.cuddly-copy h2 { max-width: 10ch; }
.cuddly-copy p { max-width: 58ch; }
.cuddly-copy .eyebrow { color: var(--sun); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--sun); font-weight: 800; }

.apps { background: var(--white); }
.apps-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 3rem; margin-bottom: 4rem; }
.apps-heading > p { max-width: 50ch; justify-self: end; }
.app-group-title { margin: 4.5rem 0 1.6rem; font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line); }
.app-card {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.2rem;
  padding: 1.6rem 1.4rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.app-card:nth-child(3n) { border-right: 0; padding-left: 1.4rem; }
.app-card:nth-child(3n + 2) { padding-left: 1.4rem; }
.app-card img { width: 92px; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 8px 20px rgba(23, 36, 58, 0.12); }
.app-card h4 { margin: 0.15rem 0 0.65rem; }
.app-card p { font-size: 0.94rem; line-height: 1.45; }
.app-card a { font-size: 0.88rem; font-weight: 800; }
.app-type { margin: 0; color: var(--coral); font-size: 0.72rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.app-featured { grid-column: span 6; grid-template-columns: 118px 1fr; }
.app-featured img { width: 118px; }
.app-grid-short .app-card { border-right: 1px solid var(--line); }
.app-grid-short .app-card:last-child { border-right: 0; padding-left: 1.4rem; }
.library-link { display: inline-block; margin-top: 2.5rem; font-weight: 900; }

.anniversary { background: var(--sky); }
.anniversary-head { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 2.5rem; margin-bottom: 5rem; }
.anniversary-head img { width: 220px; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(23, 36, 58, 0.28); }
.timeline time { color: var(--coral); font-family: var(--rounded); font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.timeline h3 { margin-bottom: 0.6rem; }
.timeline p { max-width: 68ch; margin: 0; }

.principles { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: minmax(190px, 0.65fr) 1.35fr; gap: 2rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.principle-list p { margin: 0; }

.future { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 3rem; color: var(--white); background: var(--coral); }
.future .eyebrow { color: var(--sun); }
.future h2 { max-width: 14ch; }
.future p { max-width: 66ch; }
.future .button-row { justify-content: flex-end; }

.faq { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: clamp(3rem, 8vw, 9rem); background: var(--white); }
.faq-list { border-top: 1px solid var(--line); }
details { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--rounded); font-size: 1.22rem; font-weight: 700; }
details p { max-width: 70ch; margin: 1rem 0 0; }

footer { padding: 4.5rem clamp(1.25rem, 6vw, 7rem) 2rem; color: var(--white); background: var(--ink); }
.footer-brand { display: grid; grid-template-columns: 240px minmax(240px, 620px); gap: 3rem; align-items: center; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-brand img { width: 220px; padding: 0.55rem; background: var(--cream); border-radius: 1rem; }
.footer-brand p { margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0; }
.footer-links h2 { margin-bottom: 1rem; color: var(--sun); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links a { display: block; width: fit-content; margin: 0.45rem 0; color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.78rem; }
.footer-bottom p { max-width: 70ch; margin: 0; }

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

@media (max-width: 1100px) {
  .site-header { align-items: flex-start; }
  nav { max-width: 66vw; overflow-x: auto; padding: 0.25rem 0 0.65rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: 100%; margin: 1rem auto -1rem; }
  .mission, .principles, .faq { grid-template-columns: 1fr; }
  .app-card { grid-column: span 6; }
  .app-card:nth-child(n) { border-right: 1px solid var(--line); padding-left: 0; }
  .app-card:nth-child(2n) { border-right: 0; padding-left: 1.4rem; }
  .app-featured { grid-column: span 6; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { position: static; display: block; padding: 0.7rem 1rem 0; }
  .brand-link img { width: 145px; }
  nav { max-width: 100%; gap: 1.1rem; margin-top: 0.35rem; font-size: 0.88rem; }
  .nav-contact { padding: 0; color: var(--ink); background: transparent; }
  .hero { padding-top: 4.5rem; }
  .hero-art { width: 100%; margin-left: 0; margin-right: 0; }
  .fact-ribbon { grid-template-columns: repeat(2, 1fr); }
  .fact-ribbon p:nth-child(2) { border-right: 0; }
  .fact-ribbon p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-pillars { grid-template-columns: 1fr; }
  .cuddly { grid-template-columns: 1fr; }
  .cuddly-portrait { min-height: 400px; }
  .cuddly-portrait img { max-height: 430px; }
  .apps-heading { grid-template-columns: 1fr; }
  .apps-heading > p { justify-self: start; }
  .app-card, .app-featured { grid-column: 1 / -1; grid-template-columns: 86px 1fr; }
  .app-card:nth-child(n) { border-right: 0; padding-left: 0; }
  .app-card img, .app-featured img { width: 86px; }
  .anniversary-head { grid-template-columns: 118px 1fr; gap: 1.2rem; }
  .anniversary-head img { width: 118px; }
  .timeline li { grid-template-columns: 1fr; gap: 0.75rem; }
  .principle-list article { grid-template-columns: 1fr; gap: 0.6rem; }
  .future { grid-template-columns: 1fr; }
  .future .button-row { justify-content: flex-start; }
  .footer-brand { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
