/* ==========================================================================
   Little Bird Child Care — "Swallow's Flight"
   Logo blue sky, #bed600 spring meadow, white clouds, navy night + outline.
   Flat layers only: depth comes from overlap, never from gradients.
   ========================================================================== */

/* ---- Self-hosted type ---------------------------------------------------- */

@font-face {
  font-family: "Grandstander";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/grandstander-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-italic.woff2") format("woff2");
}

/* ---- Tokens ---------------------------------------------------------------- */

:root {
  /* sky: the logo's own blue, sampled from the swallow */
  --sky: #0070ac;
  --sky-deep: #00507d;
  --sky-mist: #cfe6f3;
  --sky-pale: #e8f3fa;

  /* meadow: owner-pinned spring green */
  --lime: #bed600;
  --lime-deep: #6b7a00;
  --lime-mid: #9fb800;
  --lime-pale: #f3f8d4;

  /* night + the one outline */
  --navy: #0b2a44;
  --navy-soft: #3b5568;
  --white: #ffffff;

  --font-display: "Grandstander", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;
  --fs-h1: clamp(2.6rem, 1.7rem + 3.8vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.7vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);

  --line: 3px;
  --r-cloud: 28px;
  --r-window: 38px;
  --r-sm: 14px;
  --r-pill: 999px;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 5.5rem;

  --lift: none;
  --lift-lg: none;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 72rem;
  --measure: 66ch;
}

/* ---- Reset & base ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--sky) var(--sky-pale);
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sky);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 8px;
}

.on-sky :focus-visible,
.site-header :focus-visible,
.night :focus-visible {
  outline-color: var(--lime);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--sky-pale);
}
::-webkit-scrollbar-thumb {
  background: var(--sky);
  border-radius: 8px;
  border: 3px solid var(--sky-pale);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time,
.counter {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---- Layout ------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}

@media (min-width: 52rem) {
  .wrap {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }
}

.section {
  position: relative;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

.section--pale {
  background: var(--sky-pale);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-7);
}

.section-head p {
  font-size: 1.15rem;
  color: var(--navy-soft);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus,
.skip-link:hover {
  left: 0;
  color: var(--white);
}

/* ---- Header (part of the sky) -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sky);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  flex-shrink: 0;
}

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

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  padding: var(--sp-2) 0;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 3px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration-line: underline;
  text-decoration-color: var(--lime);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 12rem;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 22px;
  box-shadow: var(--lift);
  display: none;
  z-index: 10;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  color: var(--navy);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  color: var(--navy);
  background: var(--lime-pale);
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--lime);
  color: var(--navy);
  padding: 0.55em 1.2em;
  border-radius: var(--r-pill);
  font-weight: 800;
  border: 2px solid var(--navy);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: var(--lime);
  color: var(--navy);
  border: none;
  border-radius: var(--r-pill);
  padding: 0.5em 1.1em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 68rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    box-shadow: var(--lift-lg);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-5) var(--sp-6);
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav a {
    display: block;
    padding: var(--sp-3) 0;
  }

  .dropdown {
    display: block;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 var(--sp-2) var(--sp-4);
  }

  .dropdown a {
    color: var(--sky-mist);
  }

  .dropdown a:hover,
  .dropdown a[aria-current="page"] {
    background: transparent;
    color: var(--lime);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: var(--sp-4);
  }

  .site-nav .nav-cta {
    display: inline-block;
  }
}

/* ---- Buttons (all pills) ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.85em 1.55em;
  border-radius: var(--r-pill);
  border: var(--line) solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lime {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-lime:hover {
  color: var(--navy);
  background: var(--white);
}

.btn-sky {
  background: var(--sky);
  color: var(--white);
  border-color: var(--navy);
}

.btn-sky:hover {
  color: var(--white);
  background: var(--navy);
}

.btn-cloud {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-cloud:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-line {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-line:hover {
  background: var(--lime-pale);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* ---- Sky hero ------------------------------------------------------------------ */

.sky-hero {
  position: relative;
  background: var(--sky);
  color: var(--white);
  padding-top: var(--sp-8);
  padding-bottom: calc(var(--sp-9) + 2rem);
}

.sky-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-hero > .wrap {
  position: relative;
  z-index: 2;
}

.sky-hero h1 {
  color: var(--white);
}

.sky-hero h1 .lime {
  color: var(--lime);
}

.hero-grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-lede {
  font-size: 1.3rem;
  color: var(--sky-pale);
  max-width: 34ch;
  margin-bottom: var(--sp-6);
}

.hero-meta {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  color: var(--sky-pale);
  font-size: 1.0625rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero-meta strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.hero-meta .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--lime);
}

/* clouds + swallows drawn on the sky */
.cloud {
  position: absolute;
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
}

@media (max-width: 85rem) {
  .sky-hero:not(.sky-hero--page) .cloud--a,
  .sky-hero:not(.sky-hero--page) .cloud--b {
    display: none;
  }
}

.cloud--a {
  width: 190px;
  top: 9%;
  left: -40px;
}

.cloud--b {
  width: 120px;
  top: 64%;
  left: 1%;
  opacity: 0.95;
}

.cloud--c {
  width: 150px;
  top: 3%;
  right: 24%;
}

.swallow {
  position: absolute;
  fill: var(--white);
}

.swallow--lead {
  width: 86px;
  top: 5%;
  left: 49%;
  transform: rotate(-8deg);
}

.swallow--follow {
  width: 54px;
  top: 14%;
  left: 44%;
  transform: rotate(-14deg);
}

/* the meadow hill that closes every sky */
.meadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 1;
}

.meadow .hill-back {
  fill: var(--lime-mid);
}

.meadow .hill-front {
  fill: var(--lime);
  stroke: var(--navy);
  stroke-width: 3;
}

.tufts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
  pointer-events: none;
}

.tufts path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 40rem) {
  .tufts {
    height: 60px;
  }
}

.meadow .grass {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

@media (max-width: 40rem) {
  .cloud,
  .swallow--follow {
    display: none;
  }

  .swallow--lead {
    width: 60px;
    left: auto;
    right: 6%;
    top: 2.5rem;
  }

  .meadow {
    height: 60px;
  }
}

/* ---- Photo window in a nest (hero + page heroes) -------------------------------- */

.nest-window {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 54px;
}

.photo-window {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-window);
  padding: 10px;
  box-shadow: var(--lift-lg);
}

.nest-window .nest {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  width: 112%;
  height: auto;
  z-index: 2;
}

.nest .bowl {
  fill: var(--lime);
  stroke: var(--navy);
  stroke-width: 3.5;
  stroke-linejoin: round;
}

.nest .weave,
.nest .twig {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.window-caption,
#gallery-caption {
  transition: opacity 0.25s ease;
}

.window-caption.is-swapping,
#gallery-caption.is-swapping {
  opacity: 0;
}

.nest-window .window-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  padding: 0.3em 1em;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.sprig {
  position: absolute;
  z-index: 3;
  width: 96px;
  height: auto;
  pointer-events: none;
}

.sprig .leaf {
  fill: var(--lime);
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
}

.sprig .vein,
.sprig .stem {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.sprig--tr {
  top: -30px;
  right: -26px;
  transform: rotate(18deg);
}

.sprig--r {
  top: 34%;
  right: -36px;
  transform: rotate(64deg);
}

.sprig--br {
  bottom: -26px;
  right: -30px;
  transform: rotate(100deg);
}

.edge-cloud {
  position: absolute;
  z-index: 3;
  width: 120px;
  height: auto;
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
  pointer-events: none;
}

.edge-cloud path {
  vector-effect: non-scaling-stroke;
}

.edge-cloud--tl {
  top: -34px;
  left: -40px;
}

.edge-cloud--tr {
  top: -38px;
  right: -34px;
  width: 104px;
}

@media (max-width: 40rem) {
  .sprig {
    width: 70px;
  }

  .sprig--r {
    right: -10px;
  }

  .sprig--br {
    right: -6px;
    bottom: -22px;
  }

  .sprig--tr {
    right: -6px;
    top: -26px;
  }

  .edge-cloud {
    width: 86px;
  }

  .edge-cloud--tl {
    left: -8px;
    top: -28px;
  }

  .edge-cloud--tr {
    right: -8px;
    top: -30px;
  }
}

.egg-badge {
  position: absolute;
  top: -22px;
  left: -14px;
  z-index: 4;
  width: 92px;
  height: 112px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--lime);
  color: var(--navy);
  border: var(--line) solid var(--navy);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.05;
  transform: rotate(-10deg);
  box-shadow: var(--lift);
}

.stack-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.stack-toggle:hover {
  background: var(--lime);
}

.stack-toggle .icon {
  width: 20px;
  height: 20px;
}

.stack-toggle .icon-play {
  display: none;
}

.stack-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.stack-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.egg-badge strong {
  display: block;
  font-size: 1.5rem;
}

/* photo stacks that turn over (hero + gallery) */
.photo-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-cloud);
  overflow: hidden;
  background: var(--sky-mist);
}

.photo-stack.is-wide {
  aspect-ratio: 2 / 1;
}

.frame-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(var(--glide-from, 7%)) scale(1.05);
  transition: opacity 0.55s ease, transform 0.95s var(--ease);
}

.frame-photo.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.frame-photo.is-leaving {
  opacity: 0;
  transform: translateX(var(--glide-to, -4%)) scale(0.98);
  z-index: 1;
}

.frame-photo img,
.photo-stack > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .frame-photo,
  .frame-photo.is-leaving {
    transition: none;
    transform: none;
  }
}

/* ---- Interior page sky ------------------------------------------------------------- */

.sky-hero--page {
  padding-top: var(--sp-8);
  padding-bottom: calc(var(--sp-8) + 3rem);
}

.sky-hero--page h1 {
  font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.8rem);
  margin-bottom: var(--sp-3);
}

.sky-hero--page p {
  font-size: 1.15rem;
  color: var(--sky-pale);
  max-width: 44ch;
}

.page-hero-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 58rem) {
  .page-hero-grid.has-photo {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.page-hero-grid .nest-window {
  max-width: 28rem;
}

.mini-flight {
  position: absolute;
  right: 6%;
  top: 18%;
  width: min(360px, 40vw);
  height: auto;
  overflow: visible;
}

.mini-flight .dash {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 11;
  opacity: 0.85;
}

.mini-flight use {
  fill: var(--white);
}

.has-photo-hero .mini-flight {
  display: none;
}

@media (max-width: 40rem) {
  .mini-flight {
    width: 150px;
    right: 4%;
    top: 4%;
  }
}

/* ---- Flight path (homepage signature) ---------------------------------------------- */

.flight-host {
  position: relative;
}

/* keep a measured lane on both sides of the content for the swallow */
.flight-host .wrap {
  padding-left: max(var(--sp-6), calc(72px - max(0px, (100vw - var(--wrap)) / 2)));
  padding-right: max(var(--sp-6), calc(72px - max(0px, (100vw - var(--wrap)) / 2)));
}

@media (max-width: 56.25rem) {
  .flight-host .wrap {
    padding-left: var(--sp-5);
    padding-right: 46px;
  }
}

.flight-on .swallow--lead {
  visibility: hidden;
}

.flight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.flight-ahead {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
  opacity: 0.45;
}

.flight-trail {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.flight-bird use {
  fill: var(--navy);
  stroke: var(--white);
  stroke-width: 3px;
  paint-order: stroke;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.flight-bird.is-sky use {
  fill: var(--white);
  stroke: var(--sky);
}

/* ---- Differentiators as perches ---------------------------------------------------- */

.perch-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

@media (min-width: 60rem) {
  .perch-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-8);
  }
}

.ratio-perch {
  background: var(--sky-pale);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-6) var(--sp-6) var(--sp-7);
}

.ratio-perch svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto var(--sp-5);
}

.ratio-perch h3 {
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem);
}

.ratio-perch p {
  font-size: 1.15rem;
  color: var(--navy-soft);
  margin-bottom: 0;
}

.ratio-art .egg {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 3;
}

.ratio-art .egg.is-lime {
  fill: var(--lime);
}

.ratio-art .parent use {
  fill: var(--sky);
}

.perch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
}

.perch-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--navy);
  border: var(--line) solid var(--navy);
}

.badge .icon {
  width: 34px;
  height: 34px;
}

.badge--sky {
  background: var(--sky);
  color: var(--white);
}

.badge--cloud {
  background: var(--white);
}

.perch-item h3 {
  margin-bottom: var(--sp-2);
}

.perch-item p {
  margin: 0;
  color: var(--navy-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--lime-pale);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  padding: 0.5em 1em;
  font-weight: 700;
  font-size: 0.92rem;
}

.chip .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--sky-deep);
}

/* ---- Owner band ------------------------------------------------------------------- */

.owner-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 58rem) {
  .owner-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.big-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem);
  line-height: 1.42;
  color: var(--navy);
  max-width: 30ch;
}

.big-quote mark {
  background: none;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.32em;
  text-underline-offset: -0.12em;
  text-decoration-skip-ink: none;
}

.big-quote cite {
  display: block;
  margin-top: var(--sp-5);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--sky-deep);
}

.owner-card {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-6);
  box-shadow: var(--lift);
}

.owner-card h2 {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.35rem);
}

.owner-card p {
  color: var(--navy-soft);
}

/* ---- Speech clouds (testimonials) ---------------------------------------------------- */

.speech {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 40px;
  padding: var(--sp-6) var(--sp-7) var(--sp-6);
  margin: 0 0 30px;
  box-shadow: var(--lift);
}

.speech::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 64px;
  width: 34px;
  height: 34px;
  background: var(--white);
  border-right: var(--line) solid var(--navy);
  border-bottom: var(--line) solid var(--navy);
  transform: rotate(45deg) skew(8deg, 8deg);
}

.speech--right::after {
  left: auto;
  right: 64px;
}

.speech p {
  max-width: none;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.speech-list > * {
  min-width: 0;
}

@media (max-width: 40rem) {
  .speech {
    padding: var(--sp-5) var(--sp-5) var(--sp-5);
    border-radius: 28px;
  }

  .speech::after {
    left: 40px;
  }

  .speech--right::after {
    right: 40px;
  }

  .teaser-foot {
    padding-left: 0;
  }
}

.speech p:last-of-type {
  margin-bottom: var(--sp-4);
}

.voice-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.6em;
  font-style: normal;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--lime);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  padding: 0.3em 0.95em;
}

.voice-label .src {
  font-weight: 600;
  color: var(--navy-soft);
}

.speech--sky .voice-label {
  background: var(--sky-mist);
}

.speech.is-lead p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.5rem);
  line-height: 1.5;
}

.speech.is-mid p {
  font-size: 1.15rem;
}

.speech.is-small p {
  font-size: 1.0625rem;
  color: var(--navy-soft);
}

.teaser {
  max-width: 50rem;
  margin: 0 auto;
}

.teaser .speech p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.5;
}

.teaser-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-left: 40px;
}

.teaser-foot .swallow-perched {
  width: 64px;
  fill: var(--sky);
  transform: scaleX(-1) rotate(-6deg);
}

.speech-list {
  display: grid;
  gap: var(--sp-7);
  max-width: 54rem;
  margin: 0 auto;
}

.speech-list .speech--right {
  margin-left: auto;
}

@media (min-width: 52rem) {
  .speech-list .is-mid,
  .speech-list .is-small {
    max-width: 44rem;
  }
}

.more-reviews {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-8);
}

/* ---- Meadow CTA band + the home nest ------------------------------------------------- */

.cta-meadow {
  position: relative;
  background: var(--lime);
  color: var(--navy);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  text-align: center;
}

.cta-meadow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: var(--line);
  background: var(--navy);
}

.cta-meadow h2 {
  color: var(--navy);
}

.cta-meadow p {
  margin-left: auto;
  margin-right: auto;
  color: var(--navy);
  font-size: 1.15rem;
}

.cta-meadow .btn-row {
  justify-content: center;
  margin-top: var(--sp-6);
}

.home-nest {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto var(--sp-4);
}

.home-nest .egg {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 3;
}

.home-nest .egg.is-lime {
  fill: var(--sky);
}

/* ---- Night footer --------------------------------------------------------------------- */

.night {
  position: relative;
  background: var(--navy);
  color: var(--sky-pale);
  overflow: hidden;
}

.night .stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.night .stars path {
  fill: var(--lime);
}

.footer-top {
  position: relative;
  display: grid;
  gap: var(--sp-7);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}

@media (min-width: 50rem) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.footer-brand .brand img {
  height: 48px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lime);
  margin: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.footer-top a {
  color: var(--white);
  text-decoration: none;
}

.footer-top a:hover {
  color: var(--lime);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.footer-top p {
  margin-bottom: var(--sp-3);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--sky-mist);
  border-radius: 50%;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-social a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.footer-social .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--sky-mist);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-3);
}

.footer-sep {
  color: var(--lime);
}

/* ---- Prose pages ------------------------------------------------------------------------ */

.prose {
  max-width: var(--measure);
}

.prose p {
  font-size: 1.15rem;
  color: var(--navy-soft);
}

.prose h2 {
  margin-top: var(--sp-7);
}

.pull {
  margin: var(--sp-7) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  max-width: 30ch;
}

.pull mark {
  background: none;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.32em;
  text-underline-offset: -0.12em;
  text-decoration-skip-ink: none;
}

.signature {
  margin-top: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sky-deep);
}

/* ---- About: reasons in eggs + licensing nest ------------------------------------------- */

.reasons {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 56rem) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--sp-8);
  }
}

.reason {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: var(--sp-4);
  align-items: start;
}

.egg-num {
  width: 58px;
  height: 72px;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--navy);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  background: var(--lime);
}

.reason:nth-child(3n + 2) .egg-num {
  background: var(--sky);
  color: var(--white);
}

.reason:nth-child(3n + 3) .egg-num {
  background: var(--white);
}

.reason p {
  margin: 0;
  color: var(--navy-soft);
}

.license-nest {
  margin: var(--sp-7) 0 0;
  background: var(--lime-pale);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 52rem) {
  .license-nest {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.license-nest h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: var(--sp-3);
}

.license-nest .chips {
  margin-top: 0;
}

.license-nest .chip {
  background: var(--white);
}

.capacity {
  text-align: center;
}

.capacity svg {
  width: 230px;
  height: auto;
  display: block;
  margin: 0 auto var(--sp-2);
}

.capacity .egg {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 3;
}

.capacity .egg:nth-child(odd) {
  fill: var(--lime);
}

.capacity p {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---- Routine: one day's flight, dawn -> day -> dusk -------------------------------------- */

.dawn,
.dusk {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
  text-align: center;
}

.dawn {
  background: var(--sky-pale);
}

.dusk {
  background: var(--navy);
  color: var(--white);
}

.dawn svg,
.dusk svg {
  width: 84px;
  height: 84px;
  display: block;
  margin: 0 auto var(--sp-4);
}

.sun circle {
  fill: var(--lime);
  stroke: var(--navy);
  stroke-width: 3;
}

.sun path {
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.moon path {
  fill: var(--white);
  stroke: var(--lime);
  stroke-width: 3;
}

.moon .twinkle {
  fill: var(--lime);
  stroke: none;
}

.day-line {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  max-width: 28ch;
}

.dusk .day-line {
  color: var(--white);
}

.day {
  background: var(--sky);
  color: var(--white);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

.day h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: var(--sp-8);
}

.flight-rail {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 58rem;
  display: grid;
  gap: var(--sp-5);
}

.flight-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  border-left: 3px dashed var(--white);
  opacity: 0.8;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: var(--sp-4);
  align-items: center;
}

.stop .badge {
  width: 58px;
  height: 58px;
  z-index: 1;
}

.stop .badge .icon {
  width: 26px;
  height: 26px;
}

.stop:nth-child(2n) .badge {
  background: var(--white);
}

.stop-card {
  background: var(--white);
  color: var(--navy);
  border: var(--line) solid var(--navy);
  border-radius: 22px;
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
}

.stop-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.time-chip {
  display: inline-block;
  background: var(--lime);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  padding: 0.12em 0.75em;
  font-weight: 800;
  font-size: 0.85rem;
}

@media (min-width: 58rem) {
  .flight-rail::before {
    left: 50%;
    margin-left: -1.5px;
  }

  .stop {
    grid-template-columns: 1fr 58px 1fr;
    gap: var(--sp-5);
  }

  .stop .badge {
    grid-column: 2;
    grid-row: 1;
  }

  .stop .stop-card {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
  }

  .stop:nth-child(2n) .stop-card {
    grid-column: 1;
    justify-self: end;
    flex-direction: row-reverse;
  }
}

/* ---- Curriculum: skill badges, growing birds, standards ----------------------------------- */

.skill-row {
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  text-align: center;
}

@media (min-width: 44rem) {
  .skill-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.skill-row .badge {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-3);
}

.skill-row .badge .icon {
  width: 42px;
  height: 42px;
}

.skill-row li:nth-child(2) .badge {
  background: var(--sky);
  color: var(--white);
}

.skill-row li:nth-child(3) .badge {
  background: var(--white);
}

.skill-row li:nth-child(4) .badge {
  background: var(--sky-mist);
}

.skill-row h3 {
  font-size: 1.3rem;
  margin: 0;
}

.standards {
  background: var(--lime-pale);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.standards p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  flex: 1 1 22rem;
}

.standards .chips {
  margin: 0;
}

.standards .chip {
  background: var(--white);
}

.programs {
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

@media (min-width: 56rem) {
  .programs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.program {
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-5) var(--sp-4) var(--sp-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--lift);
}

.program .bird-slot {
  height: 86px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.program .bird-slot svg {
  fill: var(--sky);
  height: auto;
}

.program:nth-child(1) .bird-slot svg {
  width: 52px;
}
.program:nth-child(2) .bird-slot svg {
  width: 74px;
}
.program:nth-child(3) .bird-slot svg {
  width: 100px;
}
.program:nth-child(4) .bird-slot svg {
  width: 96px;
}

.program h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-2);
}

.program .chip {
  font-size: 0.85rem;
  padding: 0.3em 0.8em;
}

/* ---- Gallery: viewer + birds on a wire ---------------------------------------------------- */

.viewer {
  max-width: 50rem;
  margin: 0 auto;
}

.viewer .photo-window {
  padding: 12px;
}

.viewer-frame {
  position: relative;
}

.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding: 0 var(--sp-3);
}

.viewer-foot p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.counter {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky-deep);
  white-space: nowrap;
}

.wires {
  list-style: none;
  margin: var(--sp-8) auto 0;
  padding: 0;
  max-width: 54rem;
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--sp-5);
}

.wires li {
  position: relative;
  flex: 0 0 25%;
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
}

@media (min-width: 44rem) {
  .wires li {
    flex-basis: calc(100% / 6);
  }
}

.wires li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: var(--navy);
}

.perch-thumb {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 50%;
  border: var(--line) solid var(--navy);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.perch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perch-thumb:hover {
  transform: translateY(-7px);
}

.perch-thumb.is-active {
  transform: translateY(-9px);
  box-shadow: 0 0 0 5px var(--lime), 0 0 0 8px var(--navy);
}

@media (max-width: 30rem) {
  .perch-thumb {
    width: 66px;
    height: 66px;
  }
}

/* ---- Contact ------------------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

@media (min-width: 58rem) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.form-card {
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-6);
  box-shadow: var(--lift);
  display: grid;
  gap: var(--sp-5);
}

.form-card h2 {
  margin: 0;
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-weight: 800;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--navy);
  background: var(--sky-pale);
  border: 2px solid var(--sky-mist);
  border-radius: var(--r-sm);
  padding: 0.85em 1em;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--sky);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--lime);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #8c1d12;
  background: #fde8e6;
}

.hint {
  font-size: 0.92rem;
  color: var(--navy-soft);
  margin: 0;
}

#form-status {
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  border: 2px solid var(--navy);
}

#form-status[data-state="success"] {
  background: var(--lime-pale);
  color: var(--navy);
}

#form-status[data-state="error"] {
  background: #fde8e6;
  color: #8c1d12;
  border-color: #8c1d12;
}

.form-card button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.contact-side {
  display: grid;
  gap: var(--sp-5);
}

.info-card {
  background: var(--sky);
  color: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  padding: var(--sp-6);
  box-shadow: var(--lift);
}

.info-card h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: var(--sp-4);
}

.info-line {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}

.info-line .icon {
  color: var(--lime);
  margin-top: 0.1em;
}

.info-card a {
  color: var(--white);
  font-weight: 700;
}

.info-card a:hover {
  color: var(--lime);
}

.map-frame {
  border: var(--line) solid var(--navy);
  border-radius: var(--r-cloud);
  overflow: hidden;
  box-shadow: var(--lift);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
