/* ===== Palette (Squeak/Smalltalk 6.0 Morphic) ===== */
:root {
  --green:       #c3e6a1;  /* Workspace */
  --orange:      #e6cfa1;  /* Transcript */
  --pink:        #e8c5d0;  /* Browser */
  --blue:        #c5d5e8;  /* Inspector */
  --salmon:      #e6b7b7;  /* Debugger */
  --cream:       #FFFDF8;
  --midnight:    #1A2B6B;
  --midnight-light: #3D4E72;
  --midnight-muted: #4A5578;
  --midnight-faded: #7A86A4;
  --midnight-ghost: #A8B0C8;
  --blue-hover:  #6680b2;  /* Squeak focus ring */
  --blue-active: #5570a0;  /* CTA hover */
  --green-dark:  #9cca82;
  --divider:     #e0e4ef;
  --white:       #FFFFFF;

  --font-main: 'Lora', serif;
  --font-accent: 'Caveat', cursive;

  --max-width: 1080px;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--midnight);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(195, 230, 161, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(197, 213, 232, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(230, 183, 183, 0.06) 0%, transparent 50%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: var(--midnight);
}

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

a {
  color: var(--midnight);
  text-decoration: none;
  transition: color 0.2s;
}

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

:focus-visible {
  outline: 2px solid var(--blue-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--cream);
  color: var(--midnight);
  border-radius: 8px 14px 10px 12px;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--midnight);
}

/* ===== Navigation ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(41, 56, 102, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}

.site-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
}

.site-nav .logo:hover {
  color: #f2d998;
}

.site-nav .logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  transform: translateY(-3px);
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav .nav-links a {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9dff0;
  position: relative;
  padding: 4px 0;
}

.site-nav .nav-links a:hover {
  color: var(--cream);
}

.site-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -4px;
  right: -4px;
  height: 6px;
  background: var(--blue);
  opacity: 0;
  border-radius: 40% 60% 50% 40% / 60% 40% 60% 50%;
  transition: opacity 0.3s;
  z-index: -1;
}

.site-nav .nav-links a:hover::after {
  opacity: 0.45;
}

.site-nav .nav-links a[aria-current="page"] {
  color: var(--cream);
}

.site-nav .nav-links a[aria-current="page"]::after {
  opacity: 0.55;
  background: var(--orange);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 88px 24px 104px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #2f4176 0%, #5a6ea8 62%, #9a8db2 88%, #e5ccae 100%);
  --cloud-overshoot: 490px;
  --cloud-overshoot-giant: 720px;
}

/* Hand-drawn cream horizon along the bottom of the sky */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 26'%3E%3Cpath d='M0 26 V14 C30 8 60 19 95 13 C130 7 160 18 195 12 C225 7 245 15 260 14 V26 Z' fill='%23FFFDF8'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 260px 26px;
  pointer-events: none;
}

/* First stars of the evening, behind the clouds */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}

.hero-stars svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stars .star {
  fill: #f4dfa2;
  opacity: 0.85;
  animation: star-twinkle 4.2s ease-in-out infinite;
}

.hero-stars .star--bright {
  fill: #fbe9b7;
}

/* Every star twinkles on its own period and phase — no unison */
.hero-stars .star:nth-child(1)  { animation-duration: 4.7s; animation-delay: -1.3s; }
.hero-stars .star:nth-child(2)  { animation-duration: 6.1s; animation-delay: -3.9s; }
.hero-stars .star:nth-child(3)  { animation-duration: 5.3s; animation-delay: -0.6s; }
.hero-stars .star:nth-child(4)  { animation-duration: 7.2s; animation-delay: -2.8s; }
.hero-stars .star:nth-child(5)  { animation-duration: 3.9s; animation-delay: -1.9s; }
.hero-stars .star:nth-child(6)  { animation-duration: 6.6s; animation-delay: -4.7s; }
.hero-stars .star:nth-child(7)  { animation-duration: 4.4s; animation-delay: -3.1s; }
.hero-stars .star:nth-child(8)  { animation-duration: 5.8s; animation-delay: -0.9s; }
.hero-stars .star:nth-child(9)  { animation-duration: 7.6s; animation-delay: -5.2s; }
.hero-stars .star:nth-child(10) { animation-duration: 4.1s; animation-delay: -2.3s; }
.hero-stars .star:nth-child(11) { animation-duration: 6.3s; animation-delay: -1.6s; }
.hero-stars .star:nth-child(12) { animation-duration: 5.1s; animation-delay: -4.2s; }
.hero-stars .star:nth-child(13) { animation-duration: 6.9s; animation-delay: -0.4s; }
.hero-stars .star:nth-child(14) { animation-duration: 4.9s; animation-delay: -2.9s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.95; }
}

/* Drifting clouds behind the hero content */
.hero-clouds {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* Each cloud spawns just past its own width off-screen, so slow clouds
   don't waste visible-schedule time creeping through a shared dead zone */
.hero-cloud {
  position: absolute;
  animation: 540s linear infinite;
  will-change: transform;
}

/* Depth fade is painted in, not composited: solid pre-blended shades mean
   overlaps resolve purely by z-order, with no see-through stacking */
.hero-cloud svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--cloud-fill, #D2C0BC);
  stroke: var(--cloud-stroke, #3D4E72);
}

/* Nearer (larger) clouds must always paint over farther (smaller) ones,
   so z-index follows the size ladder — DOM order can't be trusted for depth. */

/* A cloudy day: nine clouds share one 540s master period with entries
   staggered 60s apart — phase-locked, so the sky never empties and is
   usually 3-4 deep. Crossing time is inversely proportional to size
   (crossing seconds = 40500 / width): the 450px cloud drifts across in
   110 seconds, the 82px one creeps for over eight minutes. Sizes step
   geometrically (~1.4x) so each depth plane reads distinctly; repeated
   sizes are mirrored so they don't read as clones. */
.hero-cloud--1 {
  width: 450px;
  z-index: 9;
  left: -470px;
  top: 14%;
  --cloud-fill: url(#cloud-grad-1);
  --cloud-stroke: #3D4E73;
  animation-name: cloud-cross-450;
  animation-delay: -28s;
}

.hero-cloud--2 {
  width: 320px;
  z-index: 8;
  left: -340px;
  top: 38%;
  --cloud-fill: url(#cloud-grad-2);
  --cloud-stroke: #405178;
  animation-name: cloud-cross-320;
  animation-delay: -426s;
}

.hero-cloud--3 {
  width: 320px;
  z-index: 8;
  left: -340px;
  top: 68%;
  --cloud-fill: url(#cloud-grad-3);
  --cloud-stroke: #47567B;
  animation-name: cloud-cross-320;
  animation-delay: -186s;
}

.hero-cloud--4 {
  width: 230px;
  z-index: 7;
  left: -250px;
  top: 22%;
  --cloud-fill: url(#cloud-grad-4);
  --cloud-stroke: #3F5179;
  animation-name: cloud-cross-230;
  animation-delay: -6s;
}

.hero-cloud--5 {
  width: 230px;
  z-index: 7;
  left: -250px;
  top: 55%;
  --cloud-fill: url(#cloud-grad-5);
  --cloud-stroke: #465780;
  animation-name: cloud-cross-230;
  animation-delay: -306s;
}

.hero-cloud--6 {
  width: 165px;
  z-index: 6;
  left: -185px;
  top: 76%;
  --cloud-fill: url(#cloud-grad-6);
  --cloud-stroke: #60668B;
  animation-name: cloud-cross-165;
  animation-delay: -486s;
}

.hero-cloud--7 {
  width: 165px;
  z-index: 6;
  left: -185px;
  top: 12%;
  --cloud-fill: url(#cloud-grad-7);
  --cloud-stroke: #3E4F7B;
  animation-name: cloud-cross-165;
  animation-delay: -126s;
}

.hero-cloud--8 {
  width: 115px;
  z-index: 5;
  left: -135px;
  top: 47%;
  --cloud-fill: url(#cloud-grad-8);
  --cloud-stroke: #4A5C8B;
  animation-name: cloud-cross-115;
  animation-delay: -366s;
}

.hero-cloud--9 {
  width: 82px;
  z-index: 4;
  left: -102px;
  top: 30%;
  --cloud-fill: url(#cloud-grad-9);
  --cloud-stroke: #455888;
  animation-name: cloud-cross-82;
  animation-delay: -246s;
}

/* Mirror the size-twins */
.hero-cloud--3 svg,
.hero-cloud--5 svg,
.hero-cloud--7 svg {
  transform: scaleX(-1);
}

/* Stop %% = (27000 / width) / 360s */
@keyframes cloud-cross-450 {
  0%     { transform: translateX(0); }
  20.4%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

@keyframes cloud-cross-320 {
  0%     { transform: translateX(0); }
  23.3%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

@keyframes cloud-cross-230 {
  0%     { transform: translateX(0); }
  32.5%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

@keyframes cloud-cross-165 {
  0%     { transform: translateX(0); }
  45.6%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

@keyframes cloud-cross-115 {
  0%     { transform: translateX(0); }
  65.3%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

@keyframes cloud-cross-82 {
  0%     { transform: translateX(0); }
  91.4%  { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
  100%   { transform: translateX(calc(100vw + var(--cloud-overshoot, 490px))); }
}

/* The rare giant: a step above everything. It drifts across during the
   first 14% of a 5-minute loop, then waits off-screen — one element, so
   two giants can never be on screen at once. */
.hero-cloud--giant {
  width: 640px;
  z-index: 10;
  top: -2%;
  left: -660px;
  --cloud-fill: url(#cloud-grad-giant);
  --cloud-stroke: #3D4E72;
  animation-name: cloud-drift-rare;
  animation-duration: 450s;
  animation-delay: -360s;
}

@keyframes cloud-drift-rare {
  0%   { transform: translateX(0); }
  14%  { transform: translateX(calc(100vw + var(--cloud-overshoot-giant, 720px))); }
  100% { transform: translateX(calc(100vw + var(--cloud-overshoot-giant, 720px))); }
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 680px)); }
}

.hero .kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f2d998;
  margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(26, 32, 68, 0.5);
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--cream);
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(26, 32, 68, 0.55);
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 40px;
  color: #eef2fb;
  text-shadow: 0 1px 10px rgba(26, 32, 68, 0.5);
}

.hero .balloon-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 40px;
  transform: rotate(-2deg);
  animation: balloon-drift 10s ease-in-out infinite;
}

@keyframes balloon-drift {
  0%, 100% { transform: rotate(-2deg) translate(0, 0); }
  25%      { transform: rotate(-0.6deg) translate(6px, -13px); }
  50%      { transform: rotate(0.8deg) translate(-3px, -24px); }
  75%      { transform: rotate(-1.2deg) translate(-8px, -10px); }
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ===== Buttons ===== */
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--blue-hover);
  color: var(--white);
  border-radius: 50% 40% 45% 50% / 60% 50% 55% 45%;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  transform: rotate(-1deg);
}

.cta-btn:hover {
  background: var(--blue-active);
  color: var(--white);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 6px 18px rgba(85, 112, 160, 0.25);
}

.cta-btn--ghost {
  background: rgba(255, 253, 248, 0.55);
  color: var(--midnight);
  border: 2px solid var(--midnight-faded);
  transform: rotate(0.8deg);
}

.cta-btn--ghost:hover {
  background: var(--cream);
  color: var(--midnight);
  border-color: var(--blue-hover);
  box-shadow: none;
}

/* ===== Section Shared ===== */
section {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 60% 40% 50% 30% / 50% 60% 40% 50%;
}

.section-lede {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  color: var(--midnight-muted);
  font-size: 1.02rem;
}

/* Color-coded underlines per section */
.services .section-title::after { background: var(--green); }
.why      .section-title::after { background: var(--salmon); }
.team-section .section-title::after { background: var(--orange); }
.contact  .section-title::after { background: var(--blue); }

/* ===== Audience Tabs (What We Do) =====
   CSS-only tabs: three visually-hidden radios sit before the labels, ledes,
   and card grid, so :checked can reach everything with the ~ combinator. */
.audience-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.audience-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 30px;
  margin-bottom: 26px;
}

.audience-tab {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--midnight-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 10px;
  position: relative;
  transition: color 0.2s;
}

.audience-tab:nth-child(1) { transform: rotate(-1deg); }
.audience-tab:nth-child(2) { transform: rotate(0.7deg); }
.audience-tab:nth-child(3) { transform: rotate(-0.6deg); }

.audience-tab:hover {
  color: var(--midnight);
}

/* Same wobbly pastel highlight the nav links use, one color per audience */
.audience-tab::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  height: 9px;
  opacity: 0;
  border-radius: 40% 60% 50% 40% / 60% 40% 60% 50%;
  transition: opacity 0.3s;
  z-index: -1;
}

.audience-tab:nth-child(1)::after { background: var(--green); }
.audience-tab:nth-child(2)::after { background: var(--blue); }
.audience-tab:nth-child(3)::after { background: var(--orange); }

.audience-tab:hover::after {
  opacity: 0.4;
}

#pick-nonprofits:checked ~ .audience-tabs label[for="pick-nonprofits"],
#pick-academic:checked ~ .audience-tabs label[for="pick-academic"],
#pick-smallbiz:checked ~ .audience-tabs label[for="pick-smallbiz"] {
  color: var(--midnight);
}

#pick-nonprofits:checked ~ .audience-tabs label[for="pick-nonprofits"]::after,
#pick-academic:checked ~ .audience-tabs label[for="pick-academic"]::after,
#pick-smallbiz:checked ~ .audience-tabs label[for="pick-smallbiz"]::after {
  opacity: 0.8;
}

/* The radios keep keyboard focus, so mirror the ring onto the visible label */
#pick-nonprofits:focus-visible ~ .audience-tabs label[for="pick-nonprofits"],
#pick-academic:focus-visible ~ .audience-tabs label[for="pick-academic"],
#pick-smallbiz:focus-visible ~ .audience-tabs label[for="pick-smallbiz"] {
  outline: 2px solid var(--blue-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

.audience-lede {
  display: none;
}

#pick-nonprofits:checked ~ .audience-lede--nonprofits,
#pick-academic:checked ~ .audience-lede--academic,
#pick-smallbiz:checked ~ .audience-lede--smallbiz {
  display: block;
}

/* Each card lists its audiences in data-audience; hide the rest */
#pick-nonprofits:checked ~ .card-grid .card:not([data-audience~="nonprofits"]),
#pick-academic:checked ~ .card-grid .card:not([data-audience~="academic"]),
#pick-smallbiz:checked ~ .card-grid .card:not([data-audience~="smallbiz"]) {
  display: none;
}

/* Hand-drawn sparkle dividers between sections */
.sparkle-divider {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  color: var(--midnight-ghost);
  user-select: none;
}

.sparkle-divider svg {
  width: 220px;
  height: 26px;
}

.sparkle-divider .divider-star {
  fill: var(--orange);
  stroke: none;
}

/* ===== Service Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  padding: 40px 28px 36px;
  text-align: center;
  position: relative;
  border: 1px solid var(--divider);
  box-shadow: 0 2px 12px rgba(26, 43, 107, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* A strip of pastel "tape" holding each card to the page */
.card::before {
  content: '';
  position: absolute;
  top: -11px;
  width: 92px;
  height: 24px;
  opacity: 0.82;
  box-shadow: 0 1px 3px rgba(26, 43, 107, 0.1);
  clip-path: polygon(2% 6%, 98% 0%, 100% 94%, 0% 100%);
}

.card:nth-child(1) {
  border-radius: 12px 24px 16px 20px;
  transform: rotate(-1deg);
}
.card:nth-child(2) {
  border-radius: 20px 12px 24px 16px;
  transform: rotate(0.8deg);
}
.card:nth-child(3) {
  border-radius: 16px 20px 12px 24px;
  transform: rotate(-0.5deg);
}
.card:nth-child(4) {
  border-radius: 24px 16px 20px 12px;
  transform: rotate(1deg);
}
.card:nth-child(5) {
  border-radius: 18px 22px 14px 20px;
  transform: rotate(0.6deg);
}
.card:nth-child(6) {
  border-radius: 22px 14px 20px 18px;
  transform: rotate(-0.8deg);
}
.card:nth-child(7) {
  border-radius: 14px 22px 18px 24px;
  transform: rotate(0.9deg);
}
.card:nth-child(8) {
  border-radius: 20px 16px 24px 12px;
  transform: rotate(-0.7deg);
}
.card:nth-child(9) {
  border-radius: 24px 18px 14px 22px;
  transform: rotate(0.5deg);
}

.card:nth-child(1)::before {
  background: var(--blue);
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}
.card:nth-child(2)::before {
  background: var(--green);
  left: 38%;
  transform: translateX(-50%) rotate(2.5deg);
}
.card:nth-child(3)::before {
  background: var(--salmon);
  left: 58%;
  transform: translateX(-50%) rotate(-2deg);
}
.card:nth-child(4)::before {
  background: var(--orange);
  left: 44%;
  transform: translateX(-50%) rotate(3deg);
}
.card:nth-child(5)::before {
  background: var(--pink);
  left: 56%;
  transform: translateX(-50%) rotate(-3.5deg);
}
.card:nth-child(6)::before {
  background: var(--blue);
  left: 42%;
  transform: translateX(-50%) rotate(2deg);
}
.card:nth-child(7)::before {
  background: var(--green);
  left: 54%;
  transform: translateX(-50%) rotate(-2.5deg);
}
.card:nth-child(8)::before {
  background: var(--salmon);
  left: 46%;
  transform: translateX(-50%) rotate(3deg);
}
.card:nth-child(9)::before {
  background: var(--blue);
  left: 52%;
  transform: translateX(-50%) rotate(-1.5deg);
}

.card:hover {
  box-shadow: 0 8px 28px rgba(26, 43, 107, 0.09);
  transform: rotate(0deg) translateY(-3px);
}

.card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--midnight);
  border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%;
}

.card:nth-child(1) .icon { background: var(--blue); }
.card:nth-child(2) .icon { background: var(--green); }
.card:nth-child(3) .icon { background: var(--salmon); }
.card:nth-child(4) .icon { background: var(--orange); }
.card:nth-child(5) .icon { background: var(--pink); }
.card:nth-child(6) .icon { background: var(--blue); }
.card:nth-child(7) .icon { background: var(--green); }
.card:nth-child(8) .icon { background: var(--salmon); }
.card:nth-child(9) .icon { background: var(--blue); }

.card .icon svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  font-family: var(--font-accent);
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--midnight-muted);
  line-height: 1.65;
}

/* ===== Why / Mission ===== */
.why {
  background: var(--white);
}

.why-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--midnight-light);
}

.why-content p + p {
  margin-top: 16px;
}

.why-motto {
  font-family: var(--font-accent);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--midnight);
  margin-top: 36px;
  transform: rotate(-1deg);
}

.why-motto .underline-salmon {
  background: linear-gradient(transparent 62%, var(--salmon) 62%, var(--salmon) 88%, transparent 88%);
  padding: 0 4px;
}

/* ===== Contact / CTA ===== */
.contact-card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--divider);
  border-radius: 26px 16px 22px 18px;
  padding: 52px 40px;
  text-align: center;
  transform: rotate(-0.4deg);
  box-shadow: 0 4px 20px rgba(26, 43, 107, 0.05);
}

.contact-card h2 {
  font-family: var(--font-accent);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--midnight-muted);
  max-width: 460px;
  margin: 0 auto 28px;
}

.contact-card .email-note {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--midnight-faded);
}

.contact-card .email-note a {
  color: var(--midnight-light);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 1px;
}

.contact-card .email-note a:hover {
  color: var(--blue-hover);
}

/* ===== Team Page ===== */
.page-hero {
  padding-bottom: 72px;
}

.team-section {
  padding-top: 32px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.team-card:nth-child(1) {
  border-radius: 16px 28px 20px 24px;
  transform: rotate(-1deg);
}

.team-card:nth-child(2) {
  border-radius: 24px 16px 28px 20px;
  transform: rotate(0.8deg);
}

.team-card .avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
}

.team-card:nth-child(2) .avatar {
  border-color: var(--green);
  border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%;
}

.team-card h3 {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-active);
  margin-bottom: 18px;
}

.team-card:nth-child(2) .role {
  color: #6f9c53;
}

.team-card .bio {
  font-size: 0.95rem;
  color: var(--midnight-muted);
  line-height: 1.7;
  text-align: left;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 48px 24px 40px;
  font-size: 0.85rem;
  color: var(--midnight-faded);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--divider);
  border-radius: 40% 60% 50% 40% / 60% 40% 60% 50%;
}

.site-footer .footer-wordmark {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 4px;
}

.site-footer .footer-tagline {
  margin-bottom: 18px;
}

.site-footer .footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.site-footer .footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--midnight-light);
}

.site-footer .footer-nav a:hover {
  color: var(--blue-hover);
}

.site-footer .footer-stars {
  margin-bottom: 14px;
  letter-spacing: 6px;
  font-size: 1rem;
  color: var(--orange);
  user-select: none;
}

.site-footer .copyright {
  font-size: 0.8rem;
}

/* ===== Reduced Motion ===== */
@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;
  }

  /* Park the clouds at fixed spots instead of hiding them off-screen
     (the giant keeps its off-screen left, i.e. stays hidden) */
  .hero-cloud {
    animation: none !important;
  }

  .hero-cloud--1 { left: 5%; }
  .hero-cloud--2 { left: 70%; }
  .hero-cloud--3 { left: 40%; }
  .hero-cloud--4 { left: 18%; }
  .hero-cloud--5 { left: 55%; }
  .hero-cloud--6 { left: 82%; }
  .hero-cloud--7 { left: 30%; }
  .hero-cloud--8 { left: 63%; }
  .hero-cloud--9 { left: 90%; }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  header {
    position: static;
  }

  .site-nav {
    flex-direction: column;
    height: auto;
    padding: 14px 16px;
    gap: 10px;
  }

  .site-nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    max-width: 100%;
  }

  .site-nav .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .hero .balloon-logo {
    width: 116px;
  }

  .hero {
    --cloud-overshoot: 310px;
    --cloud-overshoot-giant: 370px;
  }

  .hero-cloud--1 { width: 270px; left: -290px; }
  .hero-cloud--2 { width: 195px; left: -215px; }
  .hero-cloud--3 { width: 195px; left: -215px; }
  .hero-cloud--4 { width: 140px; left: -160px; }
  .hero-cloud--5 { width: 140px; left: -160px; }
  .hero-cloud--6 { width: 100px; left: -120px; }
  .hero-cloud--7 { width: 100px; left: -120px; }
  .hero-cloud--8 { width: 70px;  left: -90px; }
  .hero-cloud--9 { width: 50px;  left: -70px; }
  .hero-cloud--giant { width: 330px; left: -350px; }

  section {
    padding: 48px 0;
  }

  .contact-card {
    padding: 40px 24px;
  }

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