/* ═══════════════════════════════════════════════════════════
   INGREADIENT — style.css
   Fonts: Fredoka One (display) + Nunito (body)
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS ────────────────────────────────────────────── */
:root {
  /* palette */
  --clr-sky-top: #aae0fd;
  --clr-sky-bottom: #BEE8FF;
  --clr-ocean-back: #8ACEFF;
  --clr-ocean-mid: #59BAFF;
  --clr-ocean-front: #48ABF2;
  --clr-sand: #f5e6a3;
  --clr-yellow: #f5c518;
  --clr-section-bg: #FFCA06;
  --clr-card-bg: #fce98a;
  --clr-footer-bg-light: #fdf3c4;
  --clr-footer-bg-work: #1c1917;
  --clr-footer-text: #ffffff;

  /* brand colours */
  --clr-purple: #6c3fd6;
  --clr-orange: #f47c20;
  --clr-green: #3dba6f;
  --clr-red: #e84040;
  --clr-ink: #1a1a1a;
  --clr-ink-soft: #3d3d3d;

  /* type */
  --ff-display: "Fredoka One", cursive;
  --ff-body: "Nunito", sans-serif;

  /* scale */
  --hero-h: clamp(700px, 85vh, 1050px);
  --nav-h: 64px;

  /* radius */
  --r-card: 24px;
  --r-btn: 999px;
  --r-input: 999px;
  --r-tab-desktop: 22px;
  --r-tab-mobile: 14px;

  /* shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* ─── 2. RESET / BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
@media (pointer: fine) {
  html,
  body,
  a,
  button,
  input,
  textarea,
  select,
  .about__card,
  .btn,
  .footer__toggle,
  .music-toggle {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
  }
  .custom-cursor__img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: 50% 50%;
    transition: transform 0.15s ease;
  }
  .custom-cursor--hover .custom-cursor__img {
    transform: scale(1.25) rotate(-8deg);
  }
  .custom-cursor--click .custom-cursor__img {
    transform: scale(0.85);
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* ─── MUSIC TOGGLE ──────────────────────────────────────────── */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--clr-ink);
  z-index: 200;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.music-toggle:hover {
  transform: scale(1.08);
}
.music-toggle[aria-pressed="true"] {
  background: var(--clr-yellow);
}

@media (max-width: 640px) {
  .music-toggle {
    bottom: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ─── 3. NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 100;
  background: transparent;
}

.nav__link {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--clr-ink);
  transition: opacity 0.2s;
}
.nav__link:hover {
  opacity: 0.65;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 36px;
  width: auto;
}

/* ─── 4. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--clr-sky-top) 0%,
    var(--clr-sky-bottom) 65%,
    #c5e8f5 100%
  );
}

/* ── Island ── */
.hero__island-wrap {
  position: absolute;
  bottom: 13%;
  right: -12%;
  width: clamp(400px, 55%, 800px);
  z-index: 3;
  animation: islandFloat 5s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero__island {
  width: 100%;
  height: auto;
}

.hero__island--mobile {
  display: none;
}
.hero__island--desktop {
  display: block;
}

@keyframes islandFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0.3deg);
  }
  50% {
    transform: translateY(-14px) rotate(-0.3deg);
  }
}

/* ── Waves ── */
.hero__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  z-index: 4;
  pointer-events: none;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}

.hero__wave--back {
  bottom: 0;
  height: 100%;
}
.wave-path--back {
  fill: var(--clr-ocean-back);
  animation: waveShiftBack 9s ease-in-out infinite alternate;
}

.hero__wave--mid {
  bottom: 0;
  height: 88%;
}
.wave-path--mid {
  fill: var(--clr-ocean-mid);
  animation: waveShiftMid 7s ease-in-out infinite alternate-reverse;
}

.hero__wave--front {
  bottom: 0;
  height: 65%;
}
.wave-path--front {
  fill: var(--clr-ocean-front);
  animation: waveShiftFront 5.5s ease-in-out infinite alternate;
}

@keyframes waveShiftBack {
  0% {
    d: path(
      "M0,120 C200,60 400,180 600,120 C800,60 1000,160 1200,110 C1320,80 1400,130 1440,120 L1440,220 L0,220 Z"
    );
  }
  50% {
    d: path(
      "M0,100 C180,160 380,60 580,110 C780,160 980,60 1180,105 C1320,140 1400,90 1440,100 L1440,220 L0,220 Z"
    );
  }
  100% {
    d: path(
      "M0,140 C160,80 340,180 520,130 C700,80 880,170 1060,115 C1240,60 1380,140 1440,130 L1440,220 L0,220 Z"
    );
  }
}

@keyframes waveShiftMid {
  0% {
    d: path(
      "M0,100 C180,40 360,160 540,100 C720,40 900,150 1080,95 C1260,40 1380,120 1440,100 L1440,200 L0,200 Z"
    );
  }
  50% {
    d: path(
      "M0,80 C200,140 400,40 600,90 C800,140 1000,40 1200,85 C1320,120 1400,70 1440,80 L1440,200 L0,200 Z"
    );
  }
  100% {
    d: path(
      "M0,120 C160,60 320,160 480,110 C640,60 800,150 960,100 C1120,50 1300,130 1440,110 L1440,200 L0,200 Z"
    );
  }
}

@keyframes waveShiftFront {
  0% {
    d: path(
      "M0,90 C160,30 320,150 480,90 C640,30 800,140 960,85 C1120,30 1300,110 1440,90 L1440,180 L0,180 Z"
    );
  }
  50% {
    d: path(
      "M0,70 C180,130 360,30 540,80 C720,130 900,30 1080,75 C1260,20 1380,100 1440,80 L1440,180 L0,180 Z"
    );
  }
  100% {
    d: path(
      "M0,110 C140,50 300,150 460,100 C620,50 780,140 940,90 C1100,40 1300,120 1440,100 L1440,180 L0,180 Z"
    );
  }
}

/* ── Hero Content ── */
.hero__content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 80px);
  transform: translateY(-54%);
  z-index: 10;
  max-width: 520px;
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.18;
  color: var(--clr-ink);
  margin-bottom: 0.6rem;
}

.hero__headline--color {
  background: linear-gradient(
    90deg,
    var(--clr-purple),
    var(--clr-orange),
    var(--clr-green),
    var(--clr-red)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtext {
  font-family: var(--ff-display); /* Fredoka One */
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: normal;
  color: var(--clr-ink);
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero__headline--logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.hero__inline-logo {
  display: inline-block;
  height: clamp(4rem, 10vw, 8rem);
  width: auto;
  vertical-align: middle;
  margin-left: 0.15em;
  /* nudge baseline to optically align with Fredoka One cap height */
  transform: translateY(-0.05em);
}

/* ─── 5. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border-radius: var(--r-btn);
  padding: 0.75em 2.2em;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--outline {
  border: 2px solid var(--clr-ink);
  color: var(--clr-ink);
  background: transparent;
}

.btn--solid {
  background: var(--clr-ink);
  color: #fff;
  border: 2px solid var(--clr-ink);
  width: 100%;
  text-align: center;
}

.btn--solid-light {
  background: #f0f0f0;
  color: var(--clr-ink);
  border: 2px solid #f0f0f0;
  width: 100%;
  text-align: center;
  padding: 0.9em;
}

/* ─── HERO KNOW MORE — PAN TOSS BUTTON ──────────────────────── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;

  font-size: 1rem;
  font-family: var(--ff-display); /* Fredoka One */
  text-decoration: underline;          /* Remove underline */
  color: var(--clr-ink-soft);         /* Optional: set text color */
  border: 4px dashed var(--clr-ink-soft);                   /* Remove border */
  outline: none;                  /* Remove outline */

  transition: transform 0.15s ease;
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.hero__cta-icon-wrap {
  display: inline-flex;
  width: 3em;                    /* was 1.6em */
  height: 3em;
}
.hero__cta-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 90%;
}
.hero__cta-icon--toss {
  animation: panToss 0.55s ease;
}

@keyframes panToss {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  35% {
    transform: rotate(-35deg) translateY(-10px);
  }
  60% {
    transform: rotate(15deg) translateY(2px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.hero__cta.btn--pressed {
  transform: scale(0.94);
  box-shadow: none;
}

@media (max-width: 640px) {
  .hero__cta {
    padding: 0.9em 2em;
    font-size: 0.88rem;
  }
  .hero__cta-icon-wrap {
    width: 1.8em;                  /* was 1.3em */
    height: 1.8em;
  }
}

/* ─── 6. ABOUT / FEATURE CARDS ──────────────────────────────── */
.about {
  background: var(--clr-section-bg);
  padding: clamp(90px, 12vw, 150px) clamp(24px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/pattern_tile.svg");
  background-repeat: repeat;
  background-size: 30% auto;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.2rem); /* was up to 2.6rem */
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--clr-ink);
  margin-bottom: 0.6rem;
}

.about__title--color {
  color: var(--clr-purple);
}

.about__subtitle {
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #2f2f2f; /* darker for better readability */
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto 4rem;
  line-height: 1.75;
}

/* Cards container — relative so SVG overlay can sit above */
.about__cards-wrap {
  position: relative;
}

/* ── About connector ── */
.about__connector--desktop {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height matches the cards area — SVG viewBox handles internal scaling */
  height: 100%;
  pointer-events: none;
  z-index: 1; /* behind cards */
  overflow: visible;
}

/* The dashed line starts invisible, fades in when JS triggers animation */
.about__flight-line {
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about--animated .about__flight-line {
  opacity: 0.75;
}

.about__connector--mobile {
  display: none;
  width: 60px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 2;
}

.about__plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 4; /* always readable above the cards near the landing corner */
  will-change: transform, left, top;
}

.about__card-icon {
  width: clamp(80px, 10vw, 120px);
  height: clamp(80px, 10vw, 120px);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about__card-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.01em;
  color: var(--clr-orange);
  margin-bottom: 0.7rem;
}
.about__card--center .about__card-title {
  color: var(--clr-purple);
}

.about__card-body {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: #2f2f2f; /* darker for better contrast */
  font-weight: 500;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 3;
  align-items: stretch; /* let grid equalize row height — do NOT use center here */
}

.about__card {
  background: var(--clr-footer-bg-light);
  border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 320px; /* fixed baseline height, desktop */
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.about__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}
.about__card:hover .about__card-icon img {
  animation: cardIconWiggle 0.6s ease;
}
@keyframes cardIconWiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: rotate(-8deg) scale(1.08);
  }
  60% {
    transform: rotate(6deg) scale(1.05);
  }
}

.about__card-body {
  margin-top: auto; /* keeps body text bottom-aligned so titles line up across cards */
  padding-top: 0.4rem;
}

/* ─── 7. FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: 0;
  min-height: 340px;
}

/* Toggle tabs — top-right, extending upward out of the panel */
.footer__toggle-wrap {
  position: absolute;
  top: -52px;
  right: 40px;
  display: flex;
  align-items: flex-end;
  z-index: 10;
}

.footer__toggle {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  padding: 0.5em 2em;
  border: none;
  border-radius: var(--r-tab-desktop) var(--r-tab-desktop) 0 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

#tab-parents {
  background: var(--clr-footer-bg-light);
  color: var(--clr-ink);
}

#tab-work {
  background: var(--clr-footer-bg-work);
  color: #fff;
}

.footer__toggle--active {
  transform: translateY(0);
}

.footer__toggle:hover {
  opacity: 1;
}

/* Panels */
.footer__panel {
  position: relative;
  overflow: visible;

  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  padding: clamp(56px, 6vw, 80px) clamp(24px, 5vw, 64px) clamp(32px, 4vw, 52px);
  align-items: start;
  transition: opacity 0.25s;
}

.footer__panel--hidden {
  display: none;
}

/* Parents panel — light yellow bg, dark text */
.footer__panel--parents {
  background: var(--clr-footer-bg-light);
  color: var(--clr-ink);
  border-radius: var(--r-tab) 0 0 0;
}

/* Work panel — charcoal black bg, white text */
.footer__panel--work {
  background: var(--clr-footer-bg-work);
  color: var(--clr-footer-text);
}

/* ── Text color overrides per panel ── */
.footer__panel--parents .footer__tagline {
  color: rgba(26, 26, 26, 0.75);
}
.footer__panel--parents .footer__cta-text {
  color: rgba(26, 26, 26, 0.9);
}
.footer__panel--parents .footer__form-title {
  color: var(--clr-ink);
}

/* ── Form field overrides for the light panel ── */
.footer__panel--parents .form__input {
  border-color: rgba(26, 26, 26, 0.25);
  color: var(--clr-ink);
}
.footer__panel--parents .form__input::placeholder {
  color: rgba(26, 26, 26, 0.45);
}
.footer__panel--parents .form__input:focus {
  border-color: rgba(26, 26, 26, 0.6);
  background: rgba(26, 26, 26, 0.04);
}
.footer__panel--parents .form__select-arrow {
  color: rgba(26, 26, 26, 0.5);
}
.footer__panel--parents .form__select option {
  background: #fff;
  color: var(--clr-ink);
}
.footer__panel--parents .btn--solid {
  background: var(--clr-ink);
  color: #fff;
  border-color: var(--clr-ink);
}

/* ── Tagline accent font mix (Fredoka + body) ── */
.footer__tagline {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}
.footer__tagline--accent {
  font-family: var(--ff-display);
  font-size: 1.08em;
}

/* ── Illustration desktop/mobile swap ── */
.footer__illustration {
  position: absolute;
  right: 10px;
  bottom: 40px;
  width: 720px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.footer__illus-desktop {
  display: block;
  width: 100%;
  height: auto;
}

.footer__illus-mobile {
  display: none;
  width: 100%;
  height: auto;
}

.footer__panel--parents .footer__illustration,
.footer__panel--work .footer__illustration {
  justify-content: flex-end;
}

/* ── Socials row ── */
.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4rem;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: inherit;
  transition:
    transform 0.18s,
    opacity 0.18s;
}
.footer__social-link:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}
.footer__social-link i {
  font-size: 14px;
  line-height: 1;
}

/* ── Copyright strip (full-bleed) ── */
.footer__copyright-strip {
  grid-column: 1 / -1;
  margin: 40px calc(-1 * clamp(24px, 5vw, 64px))
    calc(-1 * clamp(32px, 4vw, 52px));
  padding: 14px clamp(24px, 5vw, 64px);
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer__copyright-icon {
  height: 38px;
  width: 38px;
  object-fit: contain;
  margin-right: 6px;
  flex-shrink: 0;
}

.footer__panel--parents .footer__copyright-strip {
  background: var(--clr-ink);
  color: #fff;
}
.footer__panel--work .footer__copyright-strip {
  background: var(--clr-footer-bg-light);
  color: var(--clr-ink);
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.4rem;
}

.white-logo {
  filter: brightness(0) invert(1) !important;
}

.footer__tagline {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin-bottom: 1.2rem;
}

.footer__cta-text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
}

.footer__illustration {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__illus-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer__copyright-img {
  height: 100px;
  width: auto;
}
.footer__copyright-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__right {
  padding-top: 8px;
  max-width: 620px;
  margin-left: auto;
  margin-bottom: 30px;

  width: 100%;
}

.footer__form-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--clr-footer-text);
  margin-bottom: 0.9rem;
}

/* ─── 8. FORM ELEMENTS ──────────────────────────────────────── */
.footer__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__row {
  display: flex;
  gap: 12px;
}
.form__row--split {
  flex-direction: row;
}
.form__row--split > * {
  flex: 1;
}

.form__input {
  width: 100%;
  padding: 0.6em 1.2em;
  border-radius: var(--r-input);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.footer__corner-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 130px;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 6;
}

.form__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.form__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.form__textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 80px;
}

/* Select wrapper */
.form__select-wrap {
  position: relative;
  flex: 1;
}
.form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4em;
  cursor: pointer;
}
.form__select-arrow {
  position: absolute;
  right: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  font-size: 0.75rem;
}

/* Select options dark (browser-permitting) */
.form__select option {
  background: #2a2a2a;
  color: #fff;
}

.form__row--actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.form__row--actions .btn {
  flex: 1;
  text-align: center;
}

.form__success {
  font-size: 0.85rem;
  color: var(--clr-green);
  min-height: 1.2em;
  margin-top: 0.3rem;
}
.form__success--light {
  color: #aaf0c4;
}

/* ─── 9. RESPONSIVE — TABLET ────────────────────────────────── */
@media (max-width: 900px) {
  .about__cards {
    gap: 16px;
  }
  .about__card {
    padding: 28px 20px;
  }
  .about__card--center {
    margin-top: 0;
  }

  .about__connector--desktop {
    display: none;
  }
  .about__connector--mobile {
    display: block;
  }

  .about__cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .footer__panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__toggle-wrap {
    position: relative;
    top: auto;
    right: auto;
    justify-content: flex-end;
    width: 100%;
    padding: 0 16px;
  }

  .footer__panel--parents {
    border-radius: 0;
  }

  .footer__logo {
    height: 36px;
  }
  .footer__illus-img {
    height: 100px;
  }
}

/* ─── 10. RESPONSIVE — MOBILE ───────────────────────────────── */
@media (max-width: 640px) {
  /* Nav */
  .nav {
    padding: 0 20px;
  }
  .nav__logo-img {
    height: 28px;
  }

  /* Hero — island centered, text centered */

  /* Island — mobile SVG, centered */
  .hero__island--desktop {
    display: none;
  }
  .hero__island--mobile {
    display: block;
  }
  .hero__island-wrap {
    bottom: 9%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(280px, 84vw, 400px);
    animation: islandFloatMobile 5s ease-in-out infinite;
  }

  @keyframes islandFloatMobile {
    0%,
    100% {
      transform: translateX(-50%) translateY(0px);
    }
    50% {
      transform: translateX(-50%) translateY(-10px);
    }
  }

  /* Waves — taller container, gentler curves, animation ON */
  .hero__waves {
    height: 32%;
  }

  .wave-path--back {
    animation: waveShiftBackMobile 9s ease-in-out infinite alternate;
  }
  .wave-path--mid {
    animation: waveShiftMidMobile 7s ease-in-out infinite alternate-reverse;
  }
  .wave-path--front {
    animation: waveShiftFrontMobile 5.5s ease-in-out infinite alternate;
  }

  @keyframes waveShiftBackMobile {
    0% {
      d: path(
        "M0,130 C360,90 720,170 1080,120 C1260,95 1380,135 1440,130 L1440,220 L0,220 Z"
      );
    }
    100% {
      d: path(
        "M0,110 C360,150 720,90  1080,130 C1260,150 1380,105 1440,110 L1440,220 L0,220 Z"
      );
    }
  }
  @keyframes waveShiftMidMobile {
    0% {
      d: path(
        "M0,110 C360,75 720,145 1080,100 C1260,78 1380,115 1440,110 L1440,200 L0,200 Z"
      );
    }
    100% {
      d: path(
        "M0,95  C360,130 720,70  1080,105 C1260,125 1380,88  1440,95  L1440,200 L0,200 Z"
      );
    }
  }
  @keyframes waveShiftFrontMobile {
    0% {
      d: path(
        "M0,95 C360,60 720,125 1080,85 C1260,62 1380,100 1440,95 L1440,180 L0,180 Z"
      );
    }
    100% {
      d: path(
        "M0,80 C360,115 720,55 1080,90 C1260,110 1380,72 1440,80 L1440,180 L0,180 Z"
      );
    }
  }

  .hero__content {
    position: absolute;
    top: clamp(100px, 10vh, 95px);
    left: 0;
    right: 0;
    transform: none;
    text-align: center;
    padding: 0 24px;
    max-width: 100%;
        padding-bottom: clamp(260px, 60vw, 320px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero__headline {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
  .hero__br--desktop {
    display: none;
  }
  .hero__inline-logo {
    transform: translateY(0.3em);
  }

  .hero__subtext {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    max-width: 280px;
    text-align: center;
    margin-bottom: 0;
  }

  /* push CTA below island */
 .hero__cta {
    position: static;
    margin-top: 0.5rem;
    white-space: nowrap;
    z-index: 10;
  }

  /* About */
  .about {
    padding: 48px 20px 56px;
  }

  .about::after {
    background-size: 80% auto;
  }

  .about__subtitle {
    margin-bottom: 2.4rem;
  }
  .about__connector--desktop {
    display: none;
  }
  .about__plane {
    display: none;
  }
  .about__connector--mobile {
    display: block;
  }

  .about__card {
    min-height: 0;       /* single-column layout doesn't need equal card heights */
    height: auto;
  }
  .about__card-body {
    margin-top: 0.75rem; /* overrides the desktop margin-top: auto that was
                             pushing text to the bottom and creating the gap */
  }

  /* Footer */
  .footer__panel {
    padding: 48px 20px 40px;
  }
  .footer__toggle {
    padding: 0.7em 1.4em;
    font-size: 0.78rem;
    border-radius: var(--r-tab-mobile) var(--r-tab-mobile) 0 0;
  }

  .form__row--split {
    flex-direction: column;
  }
  .form__row--split > * {
    width: 100%;
  }

  .form__row--actions {
    flex-direction: column;
  }
  .form__row--actions .btn {
    width: 100%;
  }

  .footer__panel--parents .footer__illustration,
  .footer__panel--work .footer__illustration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
    width: min(95vw, 500px);
    justify-content: center;
  }

  .footer__illus-desktop {
    display: none;
  }

  .footer__illus-mobile {
    display: block;
  }

  .footer__copyright-strip {
    margin: 32px -20px -40px;
    padding: 12px 20px;
  }
  .footer__toggle-wrap {
    position: absolute;
    top: -32px;
    right: 10px;
    left: auto;
    width: auto;
    padding: 0;
    justify-content: flex-end;
  }

  .footer__corner-img {
    right: 50%;
    transform: translateX(50%);
    height: 90px;
  }
}

/* ─── 11. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__island-wrap,
  .wave-path--back,
  .wave-path--mid,
  .wave-path--front {
    animation: none;
  }
}

/* ─── 12. FOCUS VISIBLE ─────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--clr-purple);
  outline-offset: 3px;
  border-radius: 4px;
}
