:root {
  --navy-950: #010b15;
  --navy-900: #020f1d;
  --navy-850: #041726;
  --navy-800: #062139;
  --white: #f9fcff;
  --muted: #abc2d1;
  --line: rgba(85, 178, 220, 0.23);
  --cyan: #52d2ff;
  --green: #12df91;
  --gold: #e5bd4e;
  --sun: #ffd867;
  --coral: #ff8c78;
  --purple: #a98bff;
  --header-height: 100px;
  --page-width: 1500px;
  --page-pad: clamp(20px, 5vw, 76px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--navy-900);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a, button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: #00101c;
  background: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* HEADER */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: var(--header-height);
  align-items: center;
  gap: clamp(25px, 4vw, 68px);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 12, 23, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark { position: relative; width: 80px; height: 62px; }
.brand-circle {
  position: absolute;
  right: 0;
  width: 60px;
  height: 60px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}
.brand-circle i,
.brand-circle i::before {
  position: absolute;
  display: block;
  width: 24px;
  height: 5px;
  border-radius: 9px;
  background: var(--green);
}
.brand-circle i { top: 21px; left: 22px; transform: rotate(45deg); }
.brand-circle i::before { content: ""; top: 10px; left: 10px; transform: rotate(90deg); }

.speed-line {
  position: absolute;
  z-index: 2;
  left: 0;
  height: 2px;
  animation: logoSignal 3.5s ease-in-out infinite;
}
.speed-line--cyan { top: 20px; width: 39px; background: var(--cyan); }
.speed-line--green { top: 30px; width: 47px; background: var(--green); animation-delay: .15s; }
.speed-line--gold { top: 40px; width: 34px; background: var(--gold); animation-delay: .3s; }

.brand-name { display: grid; line-height: 1; }
.brand-name b { font-size: 1rem; letter-spacing: .15em; }
.brand-name em { color: var(--green); font-style: normal; }
.brand-name small {
  margin-top: 8px;
  color: var(--gold);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .5em;
  text-align: center;
}

.main-nav { display: flex; justify-content: flex-end; gap: clamp(20px, 2.5vw, 40px); }
.main-nav a {
  position: relative;
  color: #bfd0db;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta,
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px;
  border: 1px solid var(--cyan);
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.header-cta span,
.button span,
.text-link span { color: var(--green); }
.header-cta:hover,
.button:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.menu-toggle { display: none; border: 0; color: #fff; background: none; font-weight: 700; }

/* COMMON */
.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
}

h1, h2, h3 { color: #fff; }
h1, h2 { letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(2.55rem, 4.8vw, 5.25rem); line-height: 1; }

.project-snapshot,
.case-section,
.learning-model,
.characters,
.prototype,
.values,
.trust,
.development-note,
.case-cta {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

/* HERO */
.amelia-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(480px, 1.06fr);
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  gap: clamp(55px, 8vw, 125px);
  padding: clamp(75px, 9vw, 130px) var(--page-pad);
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 38%, rgba(255, 216, 103, .13), transparent 28%),
    radial-gradient(circle at 68% 74%, rgba(18, 223, 145, .1), transparent 28%),
    linear-gradient(120deg, #020f1d, #082a43);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(75, 160, 203, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 160, 203, .13) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-cloud {
  position: absolute;
  width: 310px;
  height: 100px;
  border-radius: 999px;
  background: rgba(151, 215, 240, .035);
  filter: blur(1px);
}
.hero-cloud::before,
.hero-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}
.hero-cloud::before { left: 42px; width: 130px; height: 130px; }
.hero-cloud::after { right: 35px; width: 165px; height: 165px; }
.hero-cloud--one { top: 15%; right: -60px; animation: cloudDrift 18s ease-in-out infinite; }
.hero-cloud--two { bottom: 7%; left: 34%; transform: scale(.7); animation: cloudDrift 22s ease-in-out infinite reverse; }

.hero-copy,
.treehouse-world { position: relative; z-index: 2; }
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 40px;
  padding: 8px 13px;
  border: 1px solid rgba(18, 223, 145, .3);
  border-radius: 999px;
  color: #85edc5;
  background: rgba(18, 223, 145, .06);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: statusPulse 2s infinite;
}
.hero-copy h1 {
  margin: 0;
  font-family: "Fredoka", "DM Sans", sans-serif;
  font-size: clamp(3.7rem, 6.8vw, 7.4rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.06em;
}
.hero-copy h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--sun), var(--green), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-intro {
  max-width: 700px;
  margin: 34px 0 0;
  color: #c2d4df;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 38px; }
.button--primary { border-color: #65dcff; background: linear-gradient(110deg, #278ec3, #29bf94); }
.button--primary span { color: #fff; }
.button--ghost { background: rgba(2, 16, 29, .4); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 42px 0 0; padding: 0; list-style: none; }
.hero-tags li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #9bb8c8; font-size: .72rem; }

/* TREEHOUSE ART */
.treehouse-world {
  aspect-ratio: 1;
  width: min(100%, 690px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(82, 210, 255, .27);
  border-radius: 44% 12% 44% 12%;
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 216, 103, .3), transparent 16%),
    linear-gradient(180deg, #12466a 0%, #176c79 63%, #0c4d42 64%, #07372f 100%);
  box-shadow: 0 38px 90px rgba(0, 0, 0, .3);
}
.sun {
  position: absolute;
  top: 9%;
  right: 10%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 45px rgba(255, 216, 103, .48);
  animation: sunGlow 4s ease-in-out infinite;
}
.star { position: absolute; z-index: 4; color: var(--sun); animation: starTwinkle 2.8s ease-in-out infinite; }
.star--one { top: 17%; left: 19%; }
.star--two { top: 30%; right: 19%; animation-delay: .8s; }
.star--three { top: 10%; left: 46%; animation-delay: 1.4s; }

.treehouse { position: absolute; inset: 0; }
.trunk {
  position: absolute;
  bottom: -4%;
  left: 48%;
  width: 17%;
  height: 50%;
  border-radius: 45% 45% 0 0;
  background: linear-gradient(90deg, #704327, #a86d35 52%, #684026);
  transform: translateX(-50%);
}
.branch { position: absolute; height: 25px; border-radius: 999px; background: #83512d; }
.branch--one { bottom: 31%; left: 31%; width: 31%; transform: rotate(-25deg); }
.branch--two { right: 25%; bottom: 37%; width: 29%; transform: rotate(28deg); }
.leaves { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #55ca83, #16825f 70%); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.leaves--one { top: 25%; left: 13%; width: 38%; height: 34%; }
.leaves--two { top: 17%; right: 14%; width: 42%; height: 39%; }
.leaves--three { top: 9%; left: 34%; width: 35%; height: 34%; }
.house {
  position: absolute;
  z-index: 3;
  top: 34%;
  left: 49%;
  display: grid;
  width: 34%;
  height: 25%;
  place-items: center;
  border: 5px solid #6b4226;
  border-radius: 12px;
  background: #f0b756;
  box-shadow: 0 17px 35px rgba(0, 0, 0, .25);
  transform: translateX(-50%);
}
.house span {
  display: grid;
  width: 44%;
  height: 66%;
  place-items: center;
  border-radius: 50% 50% 8px 8px;
  color: #fff6d8;
  background: #1d6b75;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
}
.roof {
  position: absolute;
  z-index: 4;
  top: 24%;
  left: 49%;
  width: 0;
  height: 0;
  border-right: 145px solid transparent;
  border-bottom: 110px solid #e57858;
  border-left: 145px solid transparent;
  transform: translateX(-50%);
}
.character-token {
  position: absolute;
  z-index: 6;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  align-content: center;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 26, 42, .9);
  box-shadow: 0 11px 28px rgba(0, 0, 0, .26);
  animation: tokenFloat 4s ease-in-out infinite;
}
.character-token span { font-family: "Fredoka", sans-serif; font-size: 1.4rem; line-height: 1; }
.character-token small { margin-top: 4px; font-size: .43rem; font-weight: 700; letter-spacing: .1em; }
.token--amelia { bottom: 10%; left: 17%; border-color: var(--purple); }
.token--sunny { right: 12%; bottom: 17%; border-color: var(--sun); animation-delay: .7s; }
.token--pip { top: 20%; left: 9%; border-color: var(--green); animation-delay: 1.4s; }
.world-caption { position: absolute; z-index: 5; right: 0; bottom: 4%; left: 0; margin: 0; color: rgba(236, 249, 255, .72); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-align: center; }

/* SNAPSHOT */
.project-snapshot { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.project-snapshot div { padding: 32px clamp(20px, 3vw, 42px); border-right: 1px solid var(--line); }
.project-snapshot div:last-child { border: 0; }
.project-snapshot span,
.project-snapshot strong { display: block; }
.project-snapshot span { margin-bottom: 6px; color: #719ab0; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-snapshot strong { font-size: .9rem; line-height: 1.45; }

/* PURPOSE */
.case-section {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(60px, 10vw, 155px);
  padding: clamp(100px, 11vw, 175px) var(--page-pad);
  border-bottom: 1px solid var(--line);
}
.section-number { position: absolute; top: 45px; right: var(--page-pad); color: rgba(84, 169, 210, .13); font-size: clamp(5rem, 10vw, 10rem); font-weight: 700; line-height: 1; }
.section-heading,
.section-copy { position: relative; z-index: 2; }
.section-copy .lead { margin: 0 0 24px; color: #eef5f8; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.45; }
.section-copy > p:not(.lead) { margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-copy blockquote { margin: 42px 0 0; padding: 29px 31px; border-left: 3px solid var(--sun); color: #fff4cc; background: linear-gradient(90deg, rgba(255, 216, 103, .09), transparent); font-size: 1.2rem; }

/* LESSON FLOW */
.learning-model { padding: clamp(100px, 11vw, 170px) var(--page-pad); background: #031522; }
.learning-heading,
.prototype-heading {
  display: grid;
  grid-template-columns: 1.1fr .65fr;
  align-items: end;
  gap: clamp(45px, 8vw, 120px);
  margin-bottom: 70px;
}
.learning-heading > p,
.prototype-heading > p { margin: 0; color: var(--muted); }
.lesson-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 0; padding: 0; list-style: none; }
.lesson-flow li {
  position: relative;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, #092a43, #041522);
  transition: transform .25s, border-color .25s;
}
.lesson-flow li:hover { transform: translateY(-7px); border-color: rgba(82, 210, 255, .6); }
.lesson-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 3; top: 50%; right: -14px; color: var(--sun); font-size: 1.4rem; }
.step-number { position: absolute; top: 24px; right: 24px; color: #628aa0; font-size: .67rem; font-weight: 700; }
.step-icon { display: grid; width: 70px; height: 70px; place-items: center; margin-bottom: 62px; border: 1px solid var(--cyan); border-radius: 22px; color: var(--cyan); background: rgba(82, 210, 255, .05); font-family: "Fredoka", sans-serif; font-size: 2rem; transform: rotate(-3deg); }
.lesson-flow li:nth-child(2) .step-icon { border-color: var(--purple); color: var(--purple); transform: rotate(3deg); }
.lesson-flow li:nth-child(3) .step-icon { border-color: var(--green); color: var(--green); }
.lesson-flow .lesson-result { border-color: rgba(255, 216, 103, .3); background: linear-gradient(150deg, #153044, #091d2a); }
.lesson-result .step-icon { border-color: var(--sun); color: var(--sun); }
.lesson-flow h3 { margin: 0 0 10px; font-family: "Fredoka", sans-serif; font-size: 1.55rem; }
.lesson-flow p { margin: 0; color: #96b1c1; font-size: .89rem; }
.lesson-flow small { position: absolute; right: 28px; bottom: 24px; left: 28px; color: #678fa5; font-size: .57rem; font-weight: 700; letter-spacing: .15em; }

/* CHARACTERS */
.characters { padding: clamp(100px, 11vw, 170px) var(--page-pad); }
.characters-heading { max-width: 850px; margin-bottom: 65px; }
.characters-heading > p:last-child { max-width: 700px; color: var(--muted); }
.character-grid { display: grid; gap: 17px; }
.character { display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 38px; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(110deg, rgba(8, 37, 59, .95), rgba(3, 20, 34, .96)); transition: transform .25s, border-color .25s; }
.character:hover { transform: translateX(7px); border-color: rgba(18, 223, 145, .48); }
.character-portrait { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--purple); border-radius: 50%; background: radial-gradient(circle, rgba(169, 139, 255, .23), transparent 68%); }
.character-portrait span { font-family: "Fredoka", sans-serif; font-size: 4.5rem; }
.character--sunny .character-portrait { border-color: var(--sun); color: var(--sun); background: radial-gradient(circle, rgba(255, 216, 103, .22), transparent 68%); }
.character--pip .character-portrait { border-color: var(--green); color: var(--green); background: radial-gradient(circle, rgba(18, 223, 145, .2), transparent 68%); }
.character-role { margin: 0 0 6px; color: var(--cyan); font-size: .65rem; font-weight: 700; letter-spacing: .18em; }
.character h3 { margin: 0 0 7px; font-family: "Fredoka", sans-serif; font-size: 2.1rem; }
.character div:last-child > p:last-child { margin: 0; color: #9bb5c4; }

/* PROTOTYPE */
.prototype { padding: clamp(100px, 11vw, 175px) var(--page-pad); border-block: 1px solid var(--line); background: linear-gradient(180deg, #031522, #051b2d); }
.screen { margin: 0; }
.screen-frame { position: relative; min-height: 300px; padding: 11px; overflow: hidden; border: 1px solid rgba(82, 210, 255, .34); border-radius: 22px; background: #07243a; box-shadow: 0 28px 70px rgba(0, 0, 0, .3); }
.screen-frame::before { content: ""; display: block; height: 27px; margin-bottom: 10px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 10px 50%, #ff766e 0 3px, transparent 4px), radial-gradient(circle at 24px 50%, var(--sun) 0 3px, transparent 4px), radial-gradient(circle at 38px 50%, var(--green) 0 3px, transparent 4px); }
.screen-frame img { position: absolute; z-index: 2; right: 11px; bottom: 11px; left: 11px; width: calc(100% - 22px); height: calc(100% - 59px); object-fit: contain; border-radius: 10px; background: #041522; }
.screen-placeholder { position: absolute; right: 11px; bottom: 11px; left: 11px; display: grid; height: calc(100% - 59px); place-items: center; align-content: center; gap: 8px; border-radius: 10px; text-align: center; }
.screen-placeholder span { color: var(--sun); font-family: "Fredoka", sans-serif; font-size: clamp(2.6rem, 7vw, 6.5rem); }
.screen-placeholder strong { font-family: "Fredoka", sans-serif; font-size: 1.4rem; }
.screen-placeholder small { color: #7fa2b5; }
.placeholder--home { background: radial-gradient(circle at 50% 43%, rgba(255, 216, 103, .21), transparent 26%), linear-gradient(140deg, #165a75, #0c5749); }
.placeholder--home span { font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: .15em; }
.placeholder--lesson { background: radial-gradient(circle, rgba(169, 139, 255, .23), transparent 33%), linear-gradient(140deg, #153956, #092237); }
.placeholder--progress { background: radial-gradient(circle, rgba(255, 216, 103, .2), transparent 32%), linear-gradient(140deg, #153956, #0c413b); }
.placeholder--progress span { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: .14em; }
.screen figcaption { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 21px 7px 0; }
.screen figcaption > span { color: var(--cyan); font-size: .65rem; font-weight: 700; }
.screen figcaption div { display: grid; gap: 4px; }
.screen figcaption p { margin: 0; color: #8faaba; font-size: .86rem; }
.screen--featured { margin-bottom: 55px; }
.screen--featured .screen-frame { min-height: clamp(420px, 58vw, 800px); }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; }
.screen-grid .screen-frame { min-height: clamp(330px, 35vw, 530px); }

/* VALUES */
.values { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: clamp(60px, 10vw, 150px); padding: clamp(100px, 11vw, 165px) var(--page-pad); }
.values-copy > p:last-child { max-width: 650px; color: var(--muted); }
.value-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 35px; border: 1px solid var(--line); border-radius: 50% 18% 50% 18%; background: radial-gradient(circle, rgba(18, 223, 145, .1), transparent 62%); list-style: none; }
.value-cloud li { padding: 12px 17px; border: 1px solid rgba(82, 210, 255, .3); border-radius: 999px; color: #d8e8f0; background: rgba(6, 32, 52, .9); font-size: .84rem; animation: valueFloat 5s ease-in-out infinite; }
.value-cloud li:nth-child(3n) { border-color: rgba(255, 216, 103, .45); animation-delay: .8s; }
.value-cloud li:nth-child(3n + 1) { border-color: rgba(18, 223, 145, .42); animation-delay: 1.5s; }

/* TRUST */
.trust { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(60px, 9vw, 140px); padding: clamp(100px, 11vw, 165px) var(--page-pad); border-top: 1px solid var(--line); background: #031522; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.trust-grid article { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid article:nth-child(2n) { border-right: 0; }
.trust-grid article:nth-child(n + 3) { border-bottom: 0; }
.trust-grid span { color: var(--sun); font-size: .65rem; font-weight: 700; }
.trust-grid h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.trust-grid p { margin: 0; color: #8daabb; font-size: .86rem; }

/* DEVELOPMENT + CTA */
.development-note { padding: clamp(100px, 11vw, 165px) var(--page-pad); text-align: center; }
.development-note h2 { max-width: 980px; margin: auto; }
.development-note > p:last-child { max-width: 820px; margin: 27px auto 0; color: var(--muted); }

.case-cta { position: relative; padding: clamp(90px, 10vw, 145px) var(--page-pad); overflow: hidden; border: 1px solid rgba(82, 210, 255, .28); border-radius: 34px 34px 0 0; background: radial-gradient(circle at 89% 47%, rgba(255, 216, 103, .15), transparent 27%), linear-gradient(120deg, #082a43, #031522); }
.case-cta h2 { position: relative; max-width: 980px; }
.case-cta > p:not(.eyebrow) { position: relative; max-width: 730px; margin: 28px 0 0; color: #b8cdd9; font-size: 1.06rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }
.text-link { display: inline-flex; gap: 14px; padding-bottom: 7px; border-bottom: 1px solid rgba(82, 210, 255, .5); font-weight: 700; text-decoration: none; }
.case-cta > small { position: relative; display: block; margin-top: 32px; color: #779aae; }
.cta-sun { position: absolute; right: -110px; bottom: -190px; width: 520px; height: 520px; border: 1px solid rgba(255, 216, 103, .25); border-radius: 50%; }
.cta-sun::before,
.cta-sun::after { content: ""; position: absolute; border: 1px solid rgba(82, 210, 255, .16); border-radius: 50%; }
.cta-sun::before { inset: 62px; }
.cta-sun::after { inset: 135px; }

.site-footer { display: flex; justify-content: space-between; gap: 25px; padding: 34px var(--page-pad); border-top: 1px solid var(--line); color: #7697aa; background: var(--navy-950); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.site-footer a span { color: var(--green); }

/* MOTION */
@keyframes logoSignal { 50% { transform: scaleX(.72); opacity: .55; } }
@keyframes statusPulse { 50% { transform: scale(1.2); opacity: .55; } }
@keyframes cloudDrift { 50% { transform: translateX(-70px) scale(1.05); } }
@keyframes sunGlow { 50% { transform: scale(1.08); box-shadow: 0 0 65px rgba(255, 216, 103, .62); } }
@keyframes starTwinkle { 50% { transform: scale(1.35) rotate(18deg); opacity: .55; } }
@keyframes tokenFloat { 50% { transform: translateY(-9px); } }
@keyframes valueFloat { 50% { transform: translateY(-4px); } }

/* RESPONSIVE */
@media (max-width: 1160px) {
  .brand-name { display: none; }
  .main-nav { gap: 20px; }
  .header-cta { padding-inline: 17px; font-size: .84rem; }
  .amelia-hero { grid-template-columns: .9fr 1.1fr; }
  .lesson-flow { grid-template-columns: 1fr 1fr; }
  .lesson-flow li:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  :root { --header-height: 82px; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; justify-self: end; padding: 12px; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px var(--page-pad) 24px; border-bottom: 1px solid var(--line); background: rgba(1, 12, 23, .98); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .amelia-hero { grid-template-columns: 1fr; min-height: auto; }
  .treehouse-world { justify-self: center; }
  .project-snapshot { grid-template-columns: 1fr 1fr; }
  .project-snapshot div:nth-child(2) { border-right: 0; }
  .project-snapshot div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .case-section,
  .values,
  .trust { grid-template-columns: 1fr; gap: 45px; }
  .learning-heading,
  .prototype-heading { grid-template-columns: 1fr; align-items: start; gap: 25px; }
}

@media (max-width: 620px) {
  :root { --page-pad: 19px; }
  .site-header { padding-inline: 14px; }
  .brand-mark { transform: scale(.88); transform-origin: left; }
  .amelia-hero { gap: 60px; padding-top: 62px; }
  .hero-copy h1 { font-size: clamp(3rem, 16vw, 4.55rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .treehouse-world { width: 112%; margin-left: -6%; border-radius: 34% 9% 34% 9%; }
  .roof { border-right-width: 80px; border-bottom-width: 65px; border-left-width: 80px; }
  .character-token { width: 59px; height: 59px; }
  .character-token span { font-size: 1rem; }
  .project-snapshot { grid-template-columns: 1fr; }
  .project-snapshot div,
  .project-snapshot div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-snapshot div:last-child { border-bottom: 0; }
  .case-section,
  .learning-model,
  .characters,
  .prototype,
  .values,
  .trust,
  .development-note,
  .case-cta { padding-top: 82px; padding-bottom: 82px; }
  .section-number { top: 24px; }
  h2 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .lesson-flow,
  .screen-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .lesson-flow li { min-height: 330px; }
  .character { grid-template-columns: 1fr; gap: 25px; }
  .character-portrait { width: 130px; }
  .character:hover { transform: translateY(-5px); }
  .screen--featured .screen-frame,
  .screen-grid .screen-frame { min-height: 330px; }
  .screen-grid { gap: 45px; }
  .value-cloud { padding: 25px 18px; border-radius: 28px; }
  .trust-grid article,
  .trust-grid article:nth-child(2n),
  .trust-grid article:nth-child(n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid article:last-child { border-bottom: 0; }
  .case-cta { border-right: 0; border-left: 0; border-radius: 0; }
  .cta-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
