/* =========================================================================
   Neuro Hope Education — styles
   Design tokens first; every colour, radius, shadow and easing lives here.
   ========================================================================= */

/* Figtree (SIL Open Font License), self-hosted: one variable file covers weights 400–800 */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Brand (taken from the original site + logo) */
  --brand: #5BC3C2;               /* original teal: glows, tints, decoration */
  --brand-strong: #007A78;        /* buttons, links, small teal text (AA with white) */
  --brand-strong-top: #0B8C89;    /* top of the button sheen */
  --brand-text: #0A8B87;          /* large teal headline text */
  --brand-tint: rgba(91, 195, 194, 0.16);
  --blue: #53A7D5;
  --blue-ink: #1C78AB;
  --blue-tint: rgba(83, 167, 213, 0.16);
  --yellow: #F2C244;
  --yellow-ink: #9A6F00;
  --yellow-tint: rgba(242, 194, 68, 0.24);
  --logo-rim: #D9DFE2;
  --star: #F5B301;
  --star-empty: rgba(13, 28, 39, 0.14);
  --danger: #C93B3B;

  /* Neutrals */
  --bg: #FFFFFF;
  --surface: #F5F9FA;
  --card: #FFFFFF;
  --field: #FBFDFD;
  --ink: #0D1C27;
  --ink-2: #4E5A63;
  --ink-3: #66717A;
  --hairline: rgba(13, 28, 39, 0.08);
  --hairline-strong: rgba(13, 28, 39, 0.13);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.85);
  --on-brand: #FFFFFF;
  --btn-2-bg: rgba(255, 255, 255, 0.86);
  --focus: #007A78;

  /* Depth: ultra-diffuse, layered */
  --shadow-1: 0 1px 2px rgba(13, 28, 39, 0.04), 0 4px 12px -4px rgba(13, 28, 39, 0.05);
  --shadow-2: 0 1px 2px rgba(13, 28, 39, 0.04), 0 16px 40px -12px rgba(13, 28, 39, 0.12);
  --shadow-3: 0 2px 6px rgba(13, 28, 39, 0.04), 0 32px 64px -20px rgba(13, 28, 39, 0.2);
  --shadow-brand: 0 1px 2px rgba(0, 60, 58, 0.18), 0 10px 26px -10px rgba(0, 122, 120, 0.6);
  --shadow-brand-hover: 0 2px 4px rgba(0, 60, 58, 0.18), 0 18px 36px -12px rgba(0, 122, 120, 0.62);

  /* Type */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.75rem, 1.5rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;

  /* Space (4pt grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-24: 96px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 64px;

  /* Radius — soft, Apple-like, roughly 10% of each element's size */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-screen: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-spring-soft: cubic-bezier(0.34, 1.25, 0.64, 1);
}

/* Dark mode: same tokens, redefined */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand-strong: #5BC3C2;
    --brand-strong-top: #79D3D2;
    --brand-text: #6DD9D5;
    --brand-tint: rgba(91, 195, 194, 0.14);
    --blue-ink: #7CC3EA;
    --blue-tint: rgba(83, 167, 213, 0.16);
    --yellow-ink: #F2C244;
    --yellow-tint: rgba(242, 194, 68, 0.16);
    --logo-rim: rgba(255, 255, 255, 0.22);
    --star-empty: rgba(255, 255, 255, 0.16);
    --danger: #F07A7A;

    --bg: #0A1419;
    --surface: #0E1A20;
    --card: #12212A;
    --field: #0E1A20;
    --ink: #EDF3F5;
    --ink-2: #A3B1B9;
    --ink-3: #8D9CA5;
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-strong: rgba(255, 255, 255, 0.13);
    --glass: rgba(16, 30, 38, 0.66);
    --glass-strong: rgba(18, 33, 42, 0.78);
    --glass-border: rgba(255, 255, 255, 0.1);
    --on-brand: #04252B;
    --btn-2-bg: rgba(255, 255, 255, 0.05);
    --focus: #6DD9D5;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.3), 0 32px 64px -20px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -10px rgba(91, 195, 194, 0.45);
    --shadow-brand-hover: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 36px -12px rgba(91, 195, 194, 0.5);
  }
}

/* =========================================================================
   Base
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 32px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: rgba(91, 195, 194, 0.3); }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(88px, 11vw, 144px); }
.section--bg { background: var(--bg); }
.section--surface { background: var(--surface); }

/* =========================================================================
   Type
   ========================================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-4);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--hex-mask) center / 100% 100% no-repeat;
  mask: var(--hex-mask) center / 100% 100% no-repeat;
}

:root {
  /* Rounded flat-top hexagon, reused as a mask everywhere */
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-82 -71.01 164 142.02'%3E%3Cpath d='M75.50 11.26 L47.50 59.76 Q41.00 71.01 28.00 71.01 L-28.00 71.01 Q-41.00 71.01 -47.50 59.76 L-75.50 11.26 Q-82.00 0.00 -75.50 -11.26 L-47.50 -59.76 Q-41.00 -71.01 -28.00 -71.01 L28.00 -71.01 Q41.00 -71.01 47.50 -59.76 L75.50 -11.26 Q82.00 0.00 75.50 11.26Z'/%3E%3C/svg%3E");
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 720;
  text-wrap: balance;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 680;
}

.body-lg {
  margin-top: var(--s-5);
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.body-lg + .body-lg { margin-top: var(--s-4); }

.section-head { max-width: 720px; }
.section-head .body-lg { margin-top: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }

/* =========================================================================
   Buttons & small controls
   ========================================================================= */

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.4s var(--ease-out),
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }

.btn--primary {
  color: var(--on-brand);
  background: linear-gradient(180deg, var(--brand-strong-top), var(--brand-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-brand);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-brand-hover); }

.btn--secondary {
  color: var(--ink);
  background: var(--btn-2-bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-1);
}
.btn--secondary:hover { color: var(--brand-strong); border-color: color-mix(in oklab, var(--brand-strong) 40%, transparent); }

.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: var(--hairline); transform: none; }

.btn--sm { --h: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--block { width: 100%; height: auto; min-height: var(--h); padding-block: 12px; white-space: normal; text-align: center; line-height: 1.3; }

.icon--wa { color: #25D366; }
.btn--primary .icon--wa { color: currentColor; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--ink-2);
  border: 1px solid var(--hairline-strong);
  background: var(--btn-2-bg);
  transition: transform 0.45s var(--ease-spring), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--brand-strong); border-color: color-mix(in oklab, var(--brand-strong) 40%, transparent); transform: translateY(-2px); }
.icon-btn:active { transform: scale(0.94); transition-duration: 0.08s; }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--glass-strong);
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  box-shadow: var(--shadow-1);
}
.chip .icon { width: 15px; height: 15px; }

/* Hexagon icon tiles — the logo's shape, reused as the icon container */
.hex-tile {
  --tile: 58px;
  display: inline-grid;
  place-items: center;
  width: var(--tile);
  height: calc(var(--tile) * 0.866);
  flex: none;
  color: var(--tile-fg);
  background: var(--tile-bg);
  -webkit-mask: var(--hex-mask) center / 100% 100% no-repeat;
  mask: var(--hex-mask) center / 100% 100% no-repeat;
  transition: transform 0.7s var(--ease-spring);
}
.hex-tile .icon { width: 24px; height: 24px; }
.hex-tile--lg { --tile: 72px; }
.hex-tile--lg .icon { width: 28px; height: 28px; }
.hex-tile--teal { --tile-bg: var(--brand-tint); --tile-fg: var(--brand-strong); }
.hex-tile--blue { --tile-bg: var(--blue-tint); --tile-fg: var(--blue-ink); }
.hex-tile--yellow { --tile-bg: var(--yellow-tint); --tile-fg: var(--yellow-ink); }

.tick {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  color: var(--brand-strong);
  background: var(--brand-tint);
}
.tick .icon { width: 14px; height: 14px; stroke-width: 3; }

/* Stars: grey track + gold fill clipped to the rating */
.stars {
  --size: 18px;
  position: relative;
  display: inline-block;
  width: calc(var(--size) * 5);
  height: var(--size);
  background: var(--star-empty);
  -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
  mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
}
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--rating, 5) / 5 * 100%);
  background: var(--star);
}
.stars--sm { --size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

/* Cursor-following glow on cards (transform-only) */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 195, 194, 0.2), transparent);
  transform: translate(var(--mx, -999px), var(--my, -999px));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: clamp(12px, 3vw, 40px);
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  max-width: 1260px;
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 10px 0 14px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 1px 1px rgba(13, 28, 39, 0.03);
  transition: box-shadow 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
.site-header.is-scrolled .site-header__bar {
  background: var(--glass-strong);
  box-shadow: var(--shadow-2);
}

.js .site-header { opacity: 0; transform: translateY(-12px); }
.is-ready .site-header { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 42px; height: 42px; transition: transform 0.7s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark--lg { width: 54px; height: 54px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.02em; }
.brand__sub { font-size: 0.8125rem; color: var(--ink-3); }
.brand__sub--tag { font-size: 0.875rem; font-style: italic; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out);
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--hairline);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::before { opacity: 1; transform: none; }
.nav a.is-active { color: var(--brand-strong); }
.nav a.is-active::before { opacity: 1; transform: none; background: var(--brand-tint); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-spring);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: clamp(12px, 3vw, 40px);
  right: clamp(12px, 3vw, 40px);
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: color-mix(in oklab, var(--card) 94%, transparent);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  backdrop-filter: blur(32px) saturate(1.8);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-screen);
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.2s;
}
.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 35ms + 60ms);
}
.mobile-menu__links a:active { background: var(--hairline); }
.mobile-menu__actions {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding: var(--s-4) var(--s-2) var(--s-2);
  border-top: 1px solid var(--hairline);
}
.mobile-menu__social { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-1); }

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  overflow: clip;
  padding: calc(12px + var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px);
  background: var(--surface);
}
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; }

.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 46% at 92% 8%, rgba(91, 195, 194, 0.38), transparent 70%),
    radial-gradient(34% 44% at 4% 96%, rgba(242, 194, 68, 0.3), transparent 70%),
    radial-gradient(30% 36% at 66% 78%, rgba(83, 167, 213, 0.14), transparent 70%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero__title {
  margin-top: var(--s-6);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 760;
}
.hero__title .w {
  display: inline-block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: top;
}
.hero__title .w > span { display: inline-block; }
.hero__title .accent { color: var(--brand-text); }

.hero__lead {
  margin-top: var(--s-6);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-10); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-10);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink-2);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--brand-strong); }

/* Entrance choreography (one orchestrated moment) */
.js .hero__title .w > span { transform: translateY(108%); }
.js .enter { opacity: 0; transform: translateY(18px); }
.is-ready .hero__title .w > span {
  transform: none;
  transition: transform 1.05s var(--ease-out) calc(var(--d) * 55ms + 80ms);
}
.is-ready .enter {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out) calc(var(--d) * 55ms + 80ms),
    transform 1s var(--ease-out) calc(var(--d) * 55ms + 80ms);
}

/* Hero art: glass hexagon cluster */
.hero-art {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.hero-art__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%),
    conic-gradient(from 210deg, rgba(91, 195, 194, 0.3), rgba(83, 167, 213, 0.22), rgba(242, 194, 68, 0.26), rgba(91, 195, 194, 0.3));
  filter: blur(36px);
  pointer-events: none;
}

.hx {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 39.5%;
  aspect-ratio: 208 / 184;
  transform:
    translate(-50%, -50%)
    translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px), 0);
}
.hx--core { width: 13%; }
.hx__float, .hx__in { width: 100%; height: 100%; }
.hx svg { width: 100%; height: 100%; overflow: visible; }
.hx--yellow svg { filter: drop-shadow(0 22px 26px rgba(232, 160, 0, 0.3)); }
.hx--teal svg { filter: drop-shadow(0 22px 26px rgba(31, 174, 159, 0.3)); }
.hx--blue svg { filter: drop-shadow(0 22px 26px rgba(20, 137, 194, 0.3)); }
.hx--core svg { filter: drop-shadow(0 10px 14px rgba(13, 28, 39, 0.14)); }

.hx__rim { fill: rgba(255, 255, 255, 0.78); stroke: #FFFFFF; stroke-width: 2.5; }
.hx__gloss { fill: url(#hx-gloss); }
.hx__core { fill: #FFFFFF; stroke: var(--logo-rim); stroke-width: 8; }
.hx__icon {
  color: #FFFFFF;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .hx__float { animation: hx-float var(--f) cubic-bezier(0.45, 0, 0.55, 1) var(--fd) infinite alternate; }
}
@keyframes hx-float {
  from { transform: translate3d(0, -7px, 0) rotate(-1.4deg); }
  to   { transform: translate3d(0, 7px, 0) rotate(1.4deg); }
}

.js .hx__in { opacity: 0; transform: scale(0.55) rotate(-16deg); }
.is-ready .hx__in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease-out) calc(var(--n) * 110ms + 380ms),
    transform 1.2s var(--ease-spring-soft) calc(var(--n) * 110ms + 380ms);
}

.glass-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: var(--shadow-3);
  transform: translate3d(calc(var(--px) * var(--depth) * -1px), calc(var(--py) * var(--depth) * -1px), 0);
}
.glass-chip--years { left: -2%; top: 8%; }
.glass-chip--rating { right: -2%; bottom: 7%; transition: scale 0.5s var(--ease-spring); }
.glass-chip--rating:hover { scale: 1.04; }
.glass-chip__big { font-size: 2rem; font-weight: 760; letter-spacing: -0.04em; line-height: 1; color: var(--brand-text); }
.glass-chip__label { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.glass-chip__g { width: 28px; height: 28px; }
.glass-chip__col { display: flex; flex-direction: column; gap: 4px; }
.glass-chip__row { display: flex; align-items: center; gap: 8px; }
.glass-chip__score { font-size: 1.375rem; font-weight: 760; letter-spacing: -0.02em; line-height: 1; }

.js .glass-chip { opacity: 0; scale: 0.86; }
.is-ready .glass-chip {
  opacity: 1;
  scale: 1;
  transition: opacity 0.5s var(--ease-out) calc(var(--n) * 110ms + 520ms), scale 0.9s var(--ease-spring) calc(var(--n) * 110ms + 520ms);
}
.is-ready .glass-chip--rating:hover { scale: 1.04; transition-delay: 0s; }

/* =========================================================================
   Scroll reveals
   ========================================================================= */

.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); }
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 1s var(--ease-out) calc(var(--i, 0) * 90ms),
    box-shadow 0.5s var(--ease-out);
}

/* =========================================================================
   About
   ========================================================================= */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.why {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(91, 195, 194, 0.12), transparent 60%),
    var(--surface);
  border-color: var(--hairline);
  box-shadow: none;
}
.why__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.why__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 560;
}
.why__list li + li { padding-top: var(--s-4); border-top: 1px solid var(--hairline); }

/* =========================================================================
   Services (bento)
   ========================================================================= */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: var(--s-4);
  margin-top: var(--s-14);
}

.svc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-10);
  padding: var(--s-8) var(--s-8) var(--s-8) var(--s-8);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.svc:hover .hex-tile { transform: rotate(-10deg) scale(1.08); }
.svc__body p { margin-top: var(--s-2); font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.svc--wide { grid-column: span 2; }

.svc--feature {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(91, 195, 194, 0.22), transparent 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(83, 167, 213, 0.12), transparent 70%),
    var(--card);
}
.svc--feature .h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); letter-spacing: -0.025em; }
.svc--feature .svc__body p { font-size: 1.0625rem; }
.svc .svc__ratio {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  top: 46%;
  translate: 0 -50%;
  font-size: clamp(6.5rem, 3rem + 9vw, 13.5rem);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: var(--brand-text);
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.9s var(--ease-out);
}
.svc--feature:hover .svc__ratio { transform: translateX(-6px) scale(1.03); }

/* =========================================================================
   Approach
   ========================================================================= */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-14);
}
.principle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-10) var(--s-6) var(--s-8);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.4s var(--ease-out);
}
.principle .h3 { margin-top: var(--s-6); }
.principle p { margin-top: var(--s-2); font-size: 0.9375rem; color: var(--ink-2); }
.principle:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); background: var(--card); }
.principle:hover .hex-tile { transform: rotate(-10deg) scale(1.08); }

.mission {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: var(--s-24) auto 0;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-2xl);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(91, 195, 194, 0.16), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(242, 194, 68, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
}
.mission__mark {
  display: block;
  height: 0.5em;
  font-size: clamp(5rem, 4rem + 4vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--yellow);
}
.mission__quote {
  margin-top: var(--s-8);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 680;
  text-wrap: balance;
}
.mission__quote .lw { transition: opacity 0.25s var(--ease-out); }
.mission__by {
  margin-top: var(--s-8);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

/* =========================================================================
   Educators
   ========================================================================= */

.educators {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-14);
}

.founder {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.05fr;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-2);
}
.founder__visual {
  position: relative;
  container-type: inline-size;
  min-height: 460px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(91, 195, 194, 0.55), transparent 75%),
    linear-gradient(180deg, #EAF7F6 0%, #CFEDEC 100%);
}
.founder__hexes {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-110 -96 220 192'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M92.00 13.86 L58.00 72.75 Q50.00 86.60 34.00 86.60 L-34.00 86.60 Q-50.00 86.60 -58.00 72.75 L-92.00 13.86 Q-100.00 0.00 -92.00 -13.86 L-58.00 -72.75 Q-50.00 -86.60 -34.00 -86.60 L34.00 -86.60 Q50.00 -86.60 58.00 -72.75 L92.00 -13.86 Q100.00 0.00 92.00 13.86Z'/%3E%3C/svg%3E") 50% 26% / 92% auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-110 -96 220 192'%3E%3Cpath fill='white' fill-opacity='.35' d='M92.00 13.86 L58.00 72.75 Q50.00 86.60 34.00 86.60 L-34.00 86.60 Q-50.00 86.60 -58.00 72.75 L-92.00 13.86 Q-100.00 0.00 -92.00 -13.86 L-58.00 -72.75 Q-50.00 -86.60 -34.00 -86.60 L34.00 -86.60 Q50.00 -86.60 58.00 -72.75 L92.00 -13.86 Q100.00 0.00 92.00 13.86Z'/%3E%3C/svg%3E") 50% 26% / 70% auto no-repeat;
}
.founder__photo {
  /* Always a touch wider than the panel so her shoulders run off both sides; the top of her
     head stays 14.61% down the panel. 0.806 = photo width/height, 0.0719 = head-top position in the photo. */
  --photo-h: max(92%, 104cqw / 0.806);
  position: absolute;
  left: 50%;
  top: calc(14.61% - var(--photo-h) * 0.0719);
  width: auto;
  height: var(--photo-h);
  max-width: none;
  translate: -50% 0;
  filter: drop-shadow(0 18px 30px rgba(13, 28, 39, 0.16));
  transition: transform 1.2s var(--ease-out);
  transform-origin: 50% 100%;
}
.founder:hover .founder__photo { transform: scale(1.03); }
.founder__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--shadow-2);
}
.founder__badge .icon { width: 18px; height: 18px; color: var(--brand-strong); }
.founder__body { padding: clamp(28px, 3.5vw, 44px); }
.founder__name {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 740;
}
.creds { display: grid; gap: 14px; margin-top: var(--s-6); }
.creds li { display: flex; align-items: center; gap: 12px; font-size: 0.96875rem; font-weight: 560; }

.team {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-8);
  padding: clamp(28px, 3.5vw, 44px);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(83, 167, 213, 0.12), transparent 65%),
    radial-gradient(80% 60% at 0% 100%, rgba(91, 195, 194, 0.12), transparent 70%),
    var(--card);
}
.team__hexes { display: flex; gap: 6px; margin-bottom: var(--s-8); }
.mini-hex {
  display: grid;
  place-items: center;
  width: 52px;
  height: 45px;
  color: #FFFFFF;
  -webkit-mask: var(--hex-mask) center / 100% 100% no-repeat;
  mask: var(--hex-mask) center / 100% 100% no-repeat;
  transition: transform 0.7s var(--ease-spring);
}
.mini-hex .icon { width: 20px; height: 20px; }
.mini-hex--yellow { background: linear-gradient(135deg, #FFDD66, #F5B400); }
.mini-hex--teal { background: linear-gradient(135deg, #7FE3D7, #2FB8A9); }
.mini-hex--blue { background: linear-gradient(135deg, #7AD2F4, #1A96D2); }
.mini-hex--ghost { color: var(--brand-strong); background: var(--brand-tint); }
.team:hover .mini-hex { transform: translateY(-4px); }
.team:hover .mini-hex:nth-child(2) { transition-delay: 40ms; }
.team:hover .mini-hex:nth-child(3) { transition-delay: 80ms; }
.team:hover .mini-hex:nth-child(4) { transition-delay: 120ms; }
.team__title {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 720;
  text-wrap: balance;
}
.team__text { margin-top: var(--s-4); font-size: 1rem; color: var(--ink-2); line-height: 1.65; }

/* =========================================================================
   Reviews
   ========================================================================= */

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-8);
}

.rating-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
}
.rating-card__g { width: 36px; height: 36px; }
.rating-card__main { display: flex; flex-direction: column; gap: 4px; padding-right: var(--s-2); }
.rating-card__score { display: flex; align-items: center; gap: 10px; font-size: 1.75rem; font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
.rating-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; color: var(--ink-2); transition: color 0.2s var(--ease-out); }
.rating-card__link .icon { width: 14px; height: 14px; }
.rating-card__link:hover { color: var(--brand-strong); }

.reviews__viewport { margin: var(--s-12) calc(var(--s-3) * -1) 0; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3);
  gap: var(--s-5);
  padding: var(--s-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-3);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }

.review {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 260px;
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
  scroll-snap-align: start;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.4s var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: var(--card); }
.review__mark { height: 28px; font-size: 4rem; font-weight: 800; line-height: 0.9; color: var(--yellow); }
.review__text { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.review__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__more {
  align-self: flex-start;
  margin-top: calc(var(--s-2) * -1);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--brand-strong);
}
.review__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.review__author { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-tint);
}
.review__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.review__name { font-size: 0.9375rem; font-weight: 650; }
a.review__name:hover { color: var(--brand-strong); }
.review__meta { font-size: 0.8125rem; color: var(--ink-3); }
.review__head { display: flex; align-items: center; gap: var(--s-3); }
.review__head .review__g { width: 20px; height: 20px; margin-left: auto; }

.reviews__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.reviews__foot[hidden] { display: none; }
.reviews__attribution { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.reviews__attribution .icon { width: 16px; height: 16px; }
.reviews__attribution a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s var(--ease-out); }
.reviews__attribution a:hover { color: var(--brand-strong); }
.reviews__arrows { display: flex; gap: var(--s-2); }
.reviews__arrows[hidden] { display: none; }

/* =========================================================================
   FAQ
   ========================================================================= */

.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.faq__help {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  margin-top: var(--s-8);
  max-width: 380px;
}
.faq__help p { font-size: 1rem; color: var(--ink-2); }

.faq__list { display: grid; gap: var(--s-3); }
.qa {
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  transition: box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.qa.is-open { box-shadow: var(--shadow-2); border-color: transparent; }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 72px;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: left;
  border-radius: var(--r-lg);
}
.qa__icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  transition: transform 0.6s var(--ease-spring), background-color 0.3s var(--ease-out);
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--brand-strong);
  transition: transform 0.6s var(--ease-spring), opacity 0.3s var(--ease-out);
}
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { transform: rotate(180deg); }
.qa.is-open .qa__icon::after { transform: rotate(90deg) scaleX(0); opacity: 0; }
.qa__q:hover .qa__icon { transform: scale(1.08); }
.qa.is-open .qa__q:hover .qa__icon { transform: rotate(180deg) scale(1.08); }

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-screen);
}
.qa__a > div { overflow: hidden; }
.qa__a p {
  padding: 0 var(--s-16) var(--s-6) var(--s-6);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: 0.08s; }
html:not(.js) .qa__a { grid-template-rows: 1fr; }
html:not(.js) .qa__a p { opacity: 1; transform: none; }

/* =========================================================================
   Contact
   ========================================================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}

.contact-rows {
  margin-top: var(--s-8);
  padding: var(--s-1) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.contact-rows li { display: flex; align-items: center; gap: var(--s-4); }
.contact-rows__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--brand-strong);
  background: var(--brand-tint);
}
.contact-rows__icon .icon { width: 19px; height: 19px; }
.contact-rows__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  min-height: 76px;
  padding-block: var(--s-3);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-rows li + li .contact-rows__text { border-top: 1px solid var(--hairline); }
.contact-rows__label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.contact-rows__text a { transition: color 0.2s var(--ease-out); }
.contact-rows__text a:hover { color: var(--brand-strong); }

.contact__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.map {
  position: relative;
  overflow: hidden;
  height: 300px;
  margin-top: var(--s-6);
  padding: 0;
  border-radius: var(--r-xl);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__directions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 650;
  color: #0D1C27;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: var(--shadow-2);
  transition: transform 0.5s var(--ease-spring);
}
.map__directions .icon { width: 16px; height: 16px; color: #007A78; }
.map__directions:hover { transform: translateY(-2px); }

.form {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-2);
}
.form .h3 { font-size: 1.5rem; letter-spacing: -0.022em; }
.form__sub { margin-top: var(--s-1); font-size: 0.9375rem; color: var(--ink-2); }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  display: block;
  width: 100%;
  height: 60px;
  padding: 26px 18px 8px;
  font-size: 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--field);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.field textarea { height: auto; min-height: 156px; padding-top: 30px; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: color-mix(in oklab, var(--ink) 22%, transparent); }
.field input:focus, .field textarea:focus {
  border-color: var(--brand-strong);
  background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent);
}
.field textarea::placeholder, .field input::placeholder { color: transparent; }
.field__label {
  position: absolute;
  left: 19px;
  right: 18px;
  top: 19px;
  font-size: 1rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), color 0.25s var(--ease-out);
}
.field input:focus ~ .field__label,
.field input:not(:placeholder-shown) ~ .field__label,
.field textarea:focus ~ .field__label,
.field textarea:not(:placeholder-shown) ~ .field__label {
  transform: translateY(-10px) scale(0.78);
}
.field input:focus ~ .field__label,
.field textarea:focus ~ .field__label { color: var(--brand-strong); }
.field__error {
  display: none;
  margin-top: 6px;
  padding-left: 4px;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--danger);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__label { color: var(--danger); }
.field.shake { animation: shake 0.42s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.form__actions { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.form__status { min-height: 1.5em; margin-top: var(--s-3); font-size: 0.875rem; text-align: center; color: var(--ink-2); }

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: var(--s-12);
}
.footer__desc { margin-top: var(--s-5); max-width: 38ch; font-size: 0.9375rem; color: var(--ink-2); }
.footer__title { font-size: 0.9375rem; font-weight: 700; }
.footer__links { display: grid; gap: var(--s-3); margin-top: var(--s-5); font-size: 0.9375rem; color: var(--ink-2); }
.footer__links a { transition: color 0.2s var(--ease-out); }
.footer__links a:hover { color: var(--brand-strong); }
.footer__addr { max-width: 30ch; line-height: 1.5; }
.footer__social { display: flex; gap: var(--s-2); margin-top: var(--s-6); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-8);
  margin-top: var(--s-14);
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.footer__legal p + p { margin-top: 2px; }
.footer__wordmark {
  height: 0.62em;
  overflow: hidden;
  margin-top: var(--s-4);
  font-size: clamp(4.5rem, 1rem + 15vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  color: color-mix(in oklab, var(--ink) 5%, transparent);
  user-select: none;
  pointer-events: none;
}
/* Decorative only: drawn by CSS so it isn't read or contrast-checked as page text */
.footer__wordmark::before { content: "Neuro Hope"; }

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */

.wa-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(180deg, #0B8C89, #007A78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px -8px rgba(0, 122, 120, 0.6);
  transition: transform 0.6s var(--ease-spring), opacity 0.3s var(--ease-out);
}
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(0.95); transition-duration: 0.08s; }
.wa-fab__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.25s var(--ease-out), transform 0.45s var(--ease-spring);
  pointer-events: none;
}
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: translate(0, -50%); }
.wa-fab.is-hidden { opacity: 0; transform: scale(0.7); pointer-events: none; }
.js .wa-fab { opacity: 0; transform: scale(0.6); }
.is-ready .wa-fab:not(.is-hidden) { opacity: 1; transform: none; transition-delay: 1.2s; }
.is-ready .wa-fab:not(.is-hidden):hover { transform: scale(1.06); transition-delay: 0s; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wa-fab { color: #04252B; background: linear-gradient(180deg, #79D3D2, #5BC3C2); }
}

/* =========================================================================
   Dark-mode specifics that are not plain token swaps
   ========================================================================= */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__ambient {
    background:
      radial-gradient(36% 46% at 92% 8%, rgba(91, 195, 194, 0.2), transparent 70%),
      radial-gradient(34% 44% at 4% 96%, rgba(242, 194, 68, 0.12), transparent 70%),
      radial-gradient(30% 36% at 66% 78%, rgba(83, 167, 213, 0.1), transparent 70%);
  }
  :root:not([data-theme="light"]) .hero-art__halo {
    background:
      radial-gradient(closest-side, rgba(91, 195, 194, 0.16), rgba(91, 195, 194, 0) 72%),
      conic-gradient(from 210deg, rgba(91, 195, 194, 0.18), rgba(83, 167, 213, 0.14), rgba(242, 194, 68, 0.12), rgba(91, 195, 194, 0.18));
  }
  :root:not([data-theme="light"]) .hx__rim { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.18); }
  :root:not([data-theme="light"]) .hx__core { fill: #EDF3F5; stroke: rgba(255, 255, 255, 0.2); }
  :root:not([data-theme="light"]) .founder__visual {
    background:
      radial-gradient(80% 60% at 50% 100%, rgba(91, 195, 194, 0.4), transparent 75%),
      linear-gradient(180deg, #13303A 0%, #10262E 100%);
  }
  :root:not([data-theme="light"]) .founder__hexes { opacity: 0.18; }
  :root:not([data-theme="light"]) .founder__badge { color: #0D1C27; }
  :root:not([data-theme="light"]) .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.95); }
}

/* =========================================================================
   Apple-style continuous corners where the browser supports them
   ========================================================================= */

@supports (corner-shape: squircle) {
  :root { --r-md: 24px; --r-lg: 34px; --r-xl: 44px; --r-2xl: 56px; }
  .card, .svc, .principle, .review, .qa, .qa__q, .rating-card, .glass-chip, .site-header__bar,
  .mobile-menu, .mission, .contact-rows, .map, .field input, .field textarea, .why {
    corner-shape: squircle;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1239px) {
  .site-header__actions .icon-btn { display: none; }
}

@media (max-width: 1099px) {
  .nav, .site-header__actions { display: none; }
  .menu-btn { display: block; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 720px; }
  .hero-art { max-width: 520px; margin-top: var(--s-4); }

  .about, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq__intro, .form { position: static; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--feature { grid-column: span 2; grid-row: auto; min-height: 340px; }
  .svc--wide { grid-column: span 1; }
  .svc:last-child { grid-column: span 2; }

  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .educators { grid-template-columns: minmax(0, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - var(--s-5)) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }
  .site-header { inset-block-start: 8px; }
  .site-header__bar { padding: 0 6px 0 12px; }
  .brand__mark { width: 38px; height: 38px; }

  .hero__ctas .btn { flex: 1 1 100%; }
  .trust { gap: var(--s-3) var(--s-5); }
  .glass-chip { padding: 10px 14px; gap: 10px; border-radius: var(--r-md); }
  .glass-chip__big { font-size: 1.5rem; }
  .glass-chip__label { font-size: 0.75rem; }
  .glass-chip--years { left: 0; top: 4%; }
  .glass-chip--rating { right: 0; bottom: 4%; }
  .glass-chip__g { width: 22px; height: 22px; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .svc, .svc--feature, .svc--wide, .svc:last-child { grid-column: auto; }
  .svc { padding: var(--s-6); gap: var(--s-8); }
  .svc--feature { min-height: 300px; }

  .principles { grid-template-columns: 1fr; gap: var(--s-3); }
  .principle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--s-4);
    row-gap: var(--s-1);
    min-height: 96px;
    padding: var(--s-5);
    text-align: left;
  }
  .principle .hex-tile--lg { --tile: 56px; grid-row: span 2; }
  .principle .hex-tile--lg .icon { width: 24px; height: 24px; }
  .principle .h3 { margin-top: 0; font-size: 1.0625rem; align-self: end; }
  .principle p { margin-top: 0; align-self: start; }

  .founder { grid-template-columns: 1fr; }
  .founder__visual { min-height: 400px; }

  .rating-card { width: 100%; flex-wrap: wrap; }
  .rating-card .btn { margin-left: auto; }
  .reviews__track { grid-auto-columns: 86%; }

  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .qa__a p { padding-right: var(--s-6); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .wa-fab { width: 54px; height: 54px; }
}

/* =========================================================================
   Reduced motion: cut to final states
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-on [data-reveal], .js .enter, .js .hero__title .w > span, .js .hx__in, .js .glass-chip, .js .site-header {
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
  }
}
