/* =========================================================================
   FERNWAY GLOBAL — DESIGN SYSTEM
   Fonts: Fraunces (display serif) + Inter (body sans)
   Palette derived from Fernway logo: deep teal, fernway blue, fern green
   ========================================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Brand colours, sampled directly from the Fernway logo */
  --teal-900: #052E33;
  --teal-800: #0A4045;
  --teal-700: #0F5A5A;   /* Primary brand teal — the FERNWAY wordmark colour */
  --teal-600: #1B7378;
  --teal-500: #2A9095;
  --teal-400: #4DAFB3;
  --teal-300: #8AC8CB;

  --blue-600: #0F96C3;
  --blue-500: #12B3E1;   /* Fernway blue — globe colour */
  --blue-400: #4FC4E9;

  --green-600: #4DA12F;
  --green-500: #5FC03F;  /* Fernway green — fern colour */
  --green-400: #7FD367;

  /* Neutrals (warm bias so the site feels human, not corporate) */
  --cream:    #FAF6EE;   /* default body background */
  --paper:    #F3EFE5;
  --stone:    #E4DECE;
  --mist:     #D0CABB;
  --ink:      #14181B;   /* near-black with a hint of teal */
  --ink-soft: #3A4347;

  /* Functional */
  --bg:        var(--cream);
  --bg-deep:   var(--paper);
  --fg:        var(--ink);
  --fg-soft:   var(--ink-soft);
  --rule:      rgba(20, 24, 27, 0.12);
  --rule-soft: rgba(20, 24, 27, 0.06);

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Type scale — fluid */
  --fs-display:   clamp(2.75rem, 5.5vw + 1rem, 6.5rem);
  --fs-h1:        clamp(2.25rem, 3.5vw + 1rem, 4.5rem);
  --fs-h2:        clamp(1.875rem, 2.5vw + 1rem, 3.25rem);
  --fs-h3:        clamp(1.375rem, 1.5vw + 0.75rem, 2rem);
  --fs-lead:      clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  --fs-body:      1.0625rem;
  --fs-small:     0.875rem;
  --fs-eyebrow:   0.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Layout */
  --container:       72rem;    /* 1152px */
  --container-wide:  84rem;    /* 1344px */
  --container-text:  44rem;    /* 704px — comfortable reading column */
  --gutter:          max(1.25rem, 4vw);

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.45, 0, 0.55, 1);
  --t-fast:      180ms;
  --t-med:       380ms;
  --t-slow:      720ms;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 2px; }

/* ---------- TYPE ---------- */
.display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  font-variation-settings: "opsz" 100, "SOFT" 40;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-5);
}
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variation-settings: "opsz" 80, "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin: 0 0 var(--space-5);
}
h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 0 0 var(--space-4);
}
p { margin: 0 0 var(--space-4); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--teal-600);
  margin: 0 0 var(--space-5);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.on-dark { color: var(--green-400); }
.eyebrow.on-dark::before { background: var(--green-400); }

em.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- LAYOUT PRIMITIVES ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--gutter); }

section { padding-block: var(--space-9); position: relative; }
@media (min-width: 768px) { section { padding-block: var(--space-10); } }

.section-tight { padding-block: var(--space-7); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal-700);
  color: var(--cream);
}
.btn-primary:hover { background: var(--teal-800); }

.btn-light {
  background: var(--cream);
  color: var(--teal-800);
}
.btn-light:hover { background: white; }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 238, 0.5);
}
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(250, 246, 238, 0.06); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Inline link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease);
  color: var(--teal-700);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow .arrow { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: var(--space-4) 0;
  transition: background-color var(--t-med) var(--ease), padding var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule-soft);
  padding: var(--space-3) 0;
}
.site-header.on-light:not(.is-scrolled) { color: var(--ink); }
.site-header.on-dark:not(.is-scrolled) { color: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo .wordmark { display: none; }
@media (min-width: 480px) {
  .nav-logo .wordmark { display: inline; }
}
.site-header.is-scrolled .nav-logo .wordmark { color: var(--teal-700); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}
@media (min-width: 980px) {
  .nav-links { display: flex; }
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  opacity: 0.92;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: stretch;
  justify-content: center;
  padding: 6px 4px;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--teal-800);
  color: var(--cream);
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--t-slow) var(--ease);
}
.nav-overlay.is-open { transform: translateY(0); }
.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  font-variation-settings: "opsz" 80;
  letter-spacing: -0.012em;
  line-height: 1.1;
  display: inline-block;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--t-fast) var(--ease);
}
.nav-overlay a:hover { border-bottom-color: var(--green-400); }
.nav-overlay .nav-overlay-foot {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250, 246, 238, 0.2);
  font-size: 0.875rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  animation: heroBreathe 24s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.10); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 46, 51, 0.25) 0%, rgba(5, 46, 51, 0) 30%, rgba(5, 46, 51, 0) 50%, rgba(5, 46, 51, 0.5) 80%, rgba(5, 46, 51, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 0 var(--space-9);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-eyebrow .leaf {
  width: 1rem; height: 1rem;
  display: inline-block;
  flex-shrink: 0;
}
.hero h1 {
  font-size: var(--fs-display);
  max-width: 18ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 30px rgba(5, 46, 51, 0.35);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  color: var(--green-400);
}
.hero-sub {
  max-width: 38ch;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: rgba(250, 246, 238, 0.92);
  margin-bottom: var(--space-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.5rem;
  z-index: 2;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(250, 246, 238, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-direction: column;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(250,246,238,0.7), rgba(250,246,238,0));
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0.3; transform: scaleY(0.6); }
  50%  { opacity: 1; }
  100% { opacity: 0.3; transform: scaleY(1.1); }
}

/* ============================================================
   PHILOSOPHY (quiet section)
   ============================================================ */
.philosophy {
  text-align: center;
  padding-block: var(--space-10);
}
.philosophy .pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  line-height: 1.18;
  font-weight: 400;
  font-variation-settings: "opsz" 80, "SOFT" 60;
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-6);
}
.philosophy .pull-quote em { color: var(--teal-700); font-style: italic; }
.philosophy .pull-quote-attribution {
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 500;
}

/* ============================================================
   PILLARS GRID
   ============================================================ */
.pillars-intro {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 760px) {
  .pillars-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: end;
  }
}
.pillars-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}

.pillar {
  position: relative;
  padding-top: 200px;
  padding-right: var(--space-6);
  padding-bottom: var(--space-7);
  padding-left: var(--space-6);
  background: var(--bg-deep);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  isolation: isolate;
}
@media (min-width: 760px) {
  .pillar {
    padding-top: 230px;
    padding-right: var(--space-7);
    padding-bottom: var(--space-8);
    padding-left: var(--space-7);
    min-height: 580px;
  }
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(5, 46, 51, 0.25); }

/* Photo BANNER at the top of the tile — anchored to top-left, fades into the cream
   tile background by the bottom of the banner. Text sits below in clean cream. */
.pillar-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
@media (min-width: 760px) { .pillar-photo { height: 250px; } }

/* Scrim — radial fade anchored at top-left of the banner, fading into the tile
   bg colour toward bottom-right. Honours the "top-left into the middle" feel. */
.pillar-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 130% 145% at 0% 0%,
    rgba(243, 239, 229, 0)    0%,
    rgba(243, 239, 229, 0)    40%,
    rgba(243, 239, 229, 0.55) 65%,
    rgba(243, 239, 229, 0.95) 90%,
    rgba(243, 239, 229, 1)    100%
  );
}

.pillar h3 {
  font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem);
  margin: 0 0 var(--space-2);
  color: var(--teal-900);
  letter-spacing: -0.015em;
}
.pillar .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal-700);
  font-size: 1.0625rem;
  margin-bottom: var(--space-5);
  font-variation-settings: "opsz" 36;
}
.pillar > p { color: var(--fg-soft); max-width: 38ch; }
.pillar .pillar-features {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
  font-size: 0.9375rem;
  color: var(--fg);
}
.pillar .pillar-features li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.5em;
}
.pillar .pillar-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.6em; height: 1px;
  background: var(--teal-500);
}
.pillar .pillar-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
}

/* Soft coloured glow per pillar (kept as ambient atmosphere in the photo area) */
.pillar::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.pillar.accent-teal::after  { background: var(--teal-500); }
.pillar.accent-blue::after  { background: var(--blue-500); }
.pillar.accent-green::after { background: var(--green-500); }
.pillar.accent-deep::after  { background: var(--teal-800); }

/* ============================================================
   THE FERNWAY JOURNEY  (signature section)
   ============================================================ */
.journey {
  background: var(--teal-900);
  color: var(--cream);
  padding-block: var(--space-10);
  position: relative;
  overflow: hidden;
}
/* Photographic backdrop — the actual Roys Peak landscape */
.journey::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/journey_bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.55;
  pointer-events: none;
}
/* Coloured atmospheric glow on top */
.journey::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(255, 180, 80, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 20% 100%, rgba(18, 179, 225, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5, 46, 51, 0.35) 0%, rgba(5, 46, 51, 0.75) 100%);
  pointer-events: none;
}
.journey > * { position: relative; z-index: 1; }

.journey-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto var(--space-8);
}
.journey-head h2 em { color: var(--green-400); font-style: italic; }
.journey-head .lead { color: rgba(250, 246, 238, 0.85); margin: 0 auto; }

/* Ridgeline SVG container */
.ridgeline-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 var(--space-3);
}
.ridgeline-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
/* Distant horizon mountains (decorative depth) */
.ridgeline-svg .horizon {
  fill: rgba(250, 246, 238, 0.04);
  stroke: rgba(250, 246, 238, 0.10);
  stroke-width: 0.6;
}
/* Mid-distance ridge silhouette */
.ridgeline-svg .ridge-fill {
  fill: rgba(15, 90, 90, 0.35);
  stroke: rgba(95, 192, 63, 0.18);
  stroke-width: 0.8;
}
/* The main ridge stroke — uses gradient */
.ridgeline-svg .ridge-stroke {
  fill: none;
  stroke: url(#ridgeGradient);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 180, 80, 0.25));
}
.ridgeline-svg .ridge-stroke.draw {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 3.5s var(--ease);
}
.ridgeline-svg.is-active .ridge-stroke.draw {
  stroke-dashoffset: 0;
}
.ridgeline-svg .contour {
  fill: none;
  stroke: rgba(250, 246, 238, 0.06);
  stroke-width: 0.8;
}

/* Waypoint groups — each is an interactive button */
.ridgeline-svg .waypoint-group {
  cursor: pointer;
  transition: transform var(--t-med) var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.ridgeline-svg .waypoint-group:hover { transform: scale(1.18); }
.ridgeline-svg .waypoint-group .wp-glow {
  fill: none;
  stroke-width: 1;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.ridgeline-svg .waypoint-group:hover .wp-glow,
.ridgeline-svg .waypoint-group.is-active .wp-glow {
  opacity: 0.6;
}
.ridgeline-svg .waypoint-group .wp-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: wp-pulse 2.6s ease-in-out infinite;
  opacity: 0.3;
}
@keyframes wp-pulse {
  0%, 100% { opacity: 0.30; transform: scale(1); }
  50%      { opacity: 0;    transform: scale(1.55); }
}
.ridgeline-svg .waypoint-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 11px;
  fill: var(--cream);
  text-anchor: middle;
  font-weight: 500;
  pointer-events: none;
}
.ridgeline-svg .wp-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: rgba(250, 246, 238, 0.75);
  text-anchor: middle;
  pointer-events: none;
}
/* Figure on the peak */
.ridgeline-svg .figure {
  fill: var(--cream);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}

.waypoints {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  grid-template-columns: 1fr;
  counter-reset: wpcount;
}
@media (min-width: 640px) { .waypoints { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .waypoints { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .waypoints { grid-template-columns: repeat(6, 1fr); } }

.waypoint {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid rgba(250, 246, 238, 0.12);
  border-radius: 14px;
  background: rgba(5, 46, 51, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  cursor: default;
}
.waypoint:hover,
.waypoint.is-active {
  background: rgba(95, 192, 63, 0.10);
  border-color: rgba(95, 192, 63, 0.5);
  transform: translateY(-3px);
}
/* Per-waypoint accent — colour shifts along the journey */
.waypoint:nth-child(1) { --wp-accent: var(--blue-500); }
.waypoint:nth-child(2) { --wp-accent: var(--teal-400); }
.waypoint:nth-child(3) { --wp-accent: var(--green-400); }
.waypoint:nth-child(4) { --wp-accent: var(--green-500); }
.waypoint:nth-child(5) { --wp-accent: #FFB85C; }
.waypoint:nth-child(6) { --wp-accent: #FF8E5E; }

.waypoint .step {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp-accent, var(--green-400));
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.waypoint .step::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wp-accent, var(--green-500));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.waypoint h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  line-height: 1.1;
  margin: 0;
  color: var(--cream);
}
.waypoint p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(250, 246, 238, 0.75);
  margin: 0;
}

/* ============================================================
   TRUST GRID
   ============================================================ */
.trust-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 760px) {
  .trust-head { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--space-9); }
}

.trust-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.trust-item .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal-500);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.trust-item h3 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
  color: var(--teal-800);
}
.trust-item p { color: var(--fg-soft); margin: 0; font-size: 0.9375rem; }

/* ============================================================
   FERNWAY CONNECT showcase (Apple-style reveal)
   ============================================================ */
.connect-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding-block: var(--space-10);
  overflow: hidden;
}
.connect-inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .connect-inner {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-10);
  }
}

.connect-text .eyebrow { color: var(--blue-600); }
.connect-text .eyebrow::before { background: var(--blue-600); }
.connect-text h2 em { color: var(--blue-500); font-style: italic; }
.connect-features {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-3);
}
.connect-features li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule-soft);
}
.connect-features li:last-child { border-bottom: 1px solid var(--rule-soft); }
.connect-features .lbl {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blue-600);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  width: 5.5rem;
}
.connect-features .desc { font-size: 0.95rem; color: var(--fg); }

/* Wireframe phone showcase — used on homepage Connect section, swapped in
   for the simulated card mockup. Image already includes device chrome. */
.wireframe-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
}
.wireframe-phone img {
  display: block;
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 36px;
  box-shadow:
    0 40px 80px -30px rgba(5, 46, 51, 0.4),
    0 20px 40px -20px rgba(5, 46, 51, 0.3);
}
/* Decorative glow behind the phone */
.wireframe-phone::before {
  content: "";
  position: absolute;
  inset: 8% 18%;
  background: radial-gradient(circle, rgba(18, 179, 225, 0.25) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.wireframe-phone img { position: relative; z-index: 1; }

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  background: #1d2125;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 30px 80px -20px rgba(5, 46, 51, 0.35),
    0 10px 30px -10px rgba(5, 46, 51, 0.25),
    inset 0 0 0 1.5px rgba(255,255,255,0.1);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #1d2125;
  border-radius: 999px;
  z-index: 2;
}
.app-header {
  padding: 38px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header .h-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-800);
  font-weight: 500;
}
.app-header .h-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: #FAF6EE;
  background-image: url('../img/fernway_icon.png');
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 3px rgba(5, 46, 51, 0.1);
  border: 1px solid rgba(5, 46, 51, 0.06);
}

.app-card {
  margin: 0 14px 12px;
  padding: 14px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(5, 46, 51, 0.06);
}
.app-card .c-meta {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-500);
  margin-bottom: 6px;
  font-weight: 600;
}
.app-card .c-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-800);
  margin-bottom: 4px;
  line-height: 1.2;
}
.app-card .c-body {
  font-size: 0.75rem;
  color: var(--fg-soft);
  line-height: 1.4;
}
.app-card.update { border-left: 3px solid var(--green-500); }
.app-card.message { border-left: 3px solid var(--blue-500); }
.app-card.itinerary {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  color: var(--cream);
}
.app-card.itinerary .c-meta { color: var(--green-400); }
.app-card.itinerary .c-title { color: var(--cream); }
.app-card.itinerary .c-body { color: rgba(250, 246, 238, 0.75); }

.app-tabs {
  margin-top: auto;
  padding: 14px 18px 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
  background: white;
}
.app-tabs .tab {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-tabs .tab.active {
  background: var(--teal-700);
}
.app-tabs .tab.active span { background: var(--cream); }
.app-tabs .tab span {
  display: block; width: 14px; height: 14px;
  background: var(--teal-600);
  border-radius: 3px;
  opacity: 0.5;
}

/* ============================================================
   STORIES
   ============================================================ */
.stories-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 760px) {
  .stories-head { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--space-9); }
}

.stories-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 740px) { .stories-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  background: var(--bg-deep);
  border-radius: 18px;
  padding: var(--space-6) var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease);
  min-height: 320px;
}
.story-card:hover { transform: translateY(-3px); }

.story-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-style: italic;
  line-height: 0.4;
  color: var(--teal-500);
  opacity: 0.5;
  margin-bottom: var(--space-3);
}
.story-card blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--teal-800);
  margin: 0 0 var(--space-5);
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.story-card .attribution {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--fg-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story-card .attribution .name {
  color: var(--teal-700);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.story-card .attribution .role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-soft);
}

/* ============================================================
   LEL CONNECTION
   ============================================================ */
.lel-connection {
  background: var(--paper);
}
.lel-inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 800px) {
  .lel-inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-9);
  }
}
.lel-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* Sampled directly from the bottom edge of the LEL world map for a seamless join */
  background-color: #1F0544;
  box-shadow: 0 30px 60px -30px rgba(5, 46, 51, 0.45);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lel-visual .lel-map {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Negative margin to overlap the band slightly, eliminating any visible seam */
  margin-bottom: -1px;
}
.lel-visual .lel-logo-band {
  /* Smooth purple-to-darker gradient so the band feels like a continuation of the map vignette */
  background: linear-gradient(180deg, #1F0544 0%, #16032E 100%);
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lel-visual .lel-logo-band img {
  display: block;
  width: 150px;
  max-width: 45%;
  height: auto;
}
.lel-text .eyebrow { color: var(--teal-600); }
.lel-text .eyebrow { color: var(--teal-600); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--teal-800);
  color: var(--cream);
  text-align: center;
  padding-block: var(--space-10);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 100%, rgba(95, 192, 63, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 70% 0%, rgba(18, 179, 225, 0.14) 0%, transparent 45%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  margin: 0 auto var(--space-5);
  max-width: 18ch;
}
.cta h2 em { color: var(--green-400); font-style: italic; }
.cta .lead { color: rgba(250, 246, 238, 0.85); max-width: 38rem; margin: 0 auto var(--space-7); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--teal-900);
  color: rgba(250, 246, 238, 0.7);
  padding-block: var(--space-8) var(--space-6);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-7); }
}
.footer-brand .logo-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand .logo-line img { height: 40px; }
.footer-brand .logo-line .wordmark { color: var(--cream); font-weight: 600; letter-spacing: 0.06em; }
.footer-brand p { max-width: 32ch; color: rgba(250, 246, 238, 0.65); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-400);
  font-weight: 600;
  margin: 0 0 var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55em; }
.footer-col a { color: rgba(250, 246, 238, 0.75); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250, 246, 238, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.8125rem;
  color: rgba(250, 246, 238, 0.55);
}

/* ============================================================
   GENERIC PAGES
   ============================================================ */
.page-hero {
  padding-top: 9rem;
  padding-bottom: var(--space-9);
  background: var(--cream);
  position: relative;
}
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 {
  font-size: var(--fs-h1);
  max-width: 22ch;
  margin: 0 0 var(--space-5);
}
.page-hero h1 em { color: var(--teal-700); font-style: italic; }
.page-hero .lead { max-width: 50ch; }

.page-section { padding-block: var(--space-9); }

/* FAQ accordion */
.faq-group { margin-bottom: var(--space-8); }
.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-700);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}
details.faq {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-4);
}
details.faq:last-child { border-bottom: 1px solid var(--rule); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  color: var(--teal-800);
  letter-spacing: -0.005em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--teal-600);
  line-height: 1;
  transition: transform var(--t-med) var(--ease);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body {
  margin-top: var(--space-4);
  color: var(--fg-soft);
  max-width: 60ch;
}
details.faq .faq-body p:last-child { margin-bottom: 0; }
details.faq .faq-body ul { padding-left: 1.2em; }
details.faq .faq-body li { margin-bottom: 0.4em; }

/* Form */
.form-card {
  background: var(--bg-deep);
  border-radius: 20px;
  padding: var(--space-7);
}
.form-grid {
  display: grid;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--teal-700);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--cream);
  color: var(--fg);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(42, 144, 149, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.8125rem; color: var(--fg-soft); }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--fg-soft);
}
.consent input { margin-top: 4px; }

/* ============================================================
   PAGE-SPECIFIC: Pillar deep-dive
   ============================================================ */
.pillar-hero {
  padding-top: 9rem;
  padding-bottom: var(--space-9);
  background: var(--teal-900);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pillar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(18, 179, 225, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(95, 192, 63, 0.12) 0%, transparent 50%);
}
.pillar-hero > * { position: relative; }
.pillar-hero .eyebrow { color: var(--green-400); }
.pillar-hero .eyebrow::before { background: var(--green-400); }
.pillar-hero h1 { font-size: var(--fs-display); max-width: 20ch; }
.pillar-hero h1 em { color: var(--blue-500); font-style: italic; }
.pillar-hero .lead { color: rgba(250, 246, 238, 0.85); max-width: 50ch; margin-top: var(--space-5); }

/* Utility: reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Topographic SVG divider */
.topo-divider {
  display: block;
  width: 100%;
  height: 80px;
  margin: 0;
}
.topo-divider path { fill: none; stroke: var(--rule); stroke-width: 1; }
.topo-divider path:nth-child(2) { opacity: 0.7; }
.topo-divider path:nth-child(3) { opacity: 0.5; }
.topo-divider path:nth-child(4) { opacity: 0.3; }

/* No-script fallback for reveal animations */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   AUDIENCE TABS (Fernway Connect page)
   ============================================================ */
.tabs-wrap {
  --tabs-gap: 0;
}
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-7);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }

.tab {
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--fg-soft);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  margin-bottom: -1px;
  font-variation-settings: "opsz" 36;
}
.tab:hover { color: var(--teal-800); }
.tab.is-active {
  color: var(--teal-800);
  border-bottom-color: var(--teal-500);
  font-weight: 500;
}
.tab:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.tab-panel[hidden] { display: none; }
.tab-panel.is-active {
  animation: tabFade 0.35s var(--ease);
}
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Mobile: tabs scroll horizontally, keep touch-friendly padding */
@media (max-width: 620px) {
  .tab { padding: var(--space-3) var(--space-4); font-size: 1rem; }
}

/* ============================================================
   OPERATORS / WHITE-LABEL SECTION
   ============================================================ */
.operators-section {
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.operators-section::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(18, 179, 225, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.operators-section > * { position: relative; z-index: 1; }
.operators-section .eyebrow.on-dark { color: var(--green-400); }
.operators-list .fl-num { color: var(--green-400); }
.operators-list li { border-color: rgba(250, 246, 238, 0.12) !important; }

/* ============================================================
   PHOTO COMPONENTS (used on programme deep-dive pages)
   ============================================================ */
.photo-feature {
  margin: 0 auto;
  padding-inline: var(--space-5);
  max-width: 1180px;
}
.photo-feature.flush {
  padding-block: 0;
  margin-block: 0;
}
.photo-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(5, 46, 51, 0.25);
}
.photo-feature figcaption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
}
.photo-feature.with-pull {
  margin-top: calc(-1 * var(--space-7));
  position: relative;
  z-index: 2;
}

/* Photo strip — 2 or 3 photos in a row */
.photo-strip {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--space-5);
}
@media (min-width: 700px) {
  .photo-strip.cols-2 { grid-template-columns: 1fr 1fr; }
  .photo-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .photo-strip.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .photo-strip.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(5, 46, 51, 0.18);
  transition: transform var(--t-med) var(--ease);
}
.photo-strip img:hover { transform: translateY(-3px); }
.photo-strip figure { margin: 0; }
.photo-strip figcaption {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--fg-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  line-height: 1.4;
}

/* ============================================================
   LANGUAGE PICKER (Google Translate integration)
   ============================================================ */
.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-3);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.95em;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.lang-toggle:hover {
  border-color: var(--teal-500);
  background: rgba(15, 90, 90, 0.06);
}
.lang-toggle svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: 0.75;
}
.lang-toggle .lang-label {
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-toggle .lang-chev {
  width: 10px; height: 10px;
  margin-left: 0.1em;
  opacity: 0.55;
  transition: transform var(--t-fast) var(--ease);
}
.lang-toggle[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }

/* On dark backgrounds (headers with .on-dark) */
.on-dark .lang-toggle {
  color: var(--cream);
  border-color: rgba(250, 246, 238, 0.28);
}
.on-dark .lang-toggle:hover {
  border-color: rgba(250, 246, 238, 0.55);
  background: rgba(250, 246, 238, 0.08);
}
/* When the header is in scrolled (solid) state, behave like the light treatment */
.site-header.is-scrolled .lang-toggle {
  color: var(--fg);
  border-color: var(--rule);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(5, 46, 51, 0.28);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 200;
  opacity: 1;
}
.lang-menu[hidden] { display: none; }

.lang-option {
  background: transparent;
  border: 0;
  padding: 0.55em 0.85em;
  text-align: left;
  font: inherit;
  font-size: 0.875rem;
  color: var(--fg);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-option:hover {
  background: rgba(15, 90, 90, 0.08);
  color: var(--teal-800);
}
.lang-option.is-current {
  background: rgba(15, 90, 90, 0.10);
  color: var(--teal-800);
  font-weight: 600;
}
.lang-option .lang-code {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 500;
}

/* Mobile: a touch larger to be tappable */
@media (max-width: 600px) {
  .lang-toggle { padding: 0.6em 0.85em; }
  .lang-menu { right: 0; min-width: 200px; }
}

/* Hide Google Translate's VISIBLE banner and tooltips only.
   Be careful NOT to catch invisible worker iframes (they do the translating). */

/* Classic iframe-based banner */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-logo-link,
.goog-te-spinner-pos,
.goog-te-balloon-frame,
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* Modern div-based banner — target only the KNOWN banner classes,
   not all VIpgJd-* elements (some are internal). */
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-l4eHX,
.VIpgJd-suEOdc {
  display: none !important;
}

/* Force body/html to ignore any offset Google Translate tries to inject */
body { top: 0 !important; position: static !important; }
html { margin-top: 0 !important; }
body[style*="top"] { top: 0 !important; }
html[style*="margin-top"] { margin-top: 0 !important; }

/* Google's word-level tooltip / highlight overlays */
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Keep our hidden widget host off-screen */
#google_translate_element {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
}

/* Google wraps translated text in <font> tags — force them to inherit */
font[style*="vertical-align: inherit"] { font-family: inherit !important; }

/* ============================================================
   STATS BLOCKS (used on About, Sports, Camps pages)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat .figure {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--teal-700);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
}
.stat .figure em {
  color: var(--blue-500);
  font-style: italic;
}
.stat .label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
  max-width: 22ch;
  line-height: 1.4;
}

/* ============================================================
   TWO-COLUMN PROSE BLOCK
   ============================================================ */
.two-col {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.4fr; gap: var(--space-9); }
}
.two-col h2 {
  font-size: var(--fs-h2);
  margin: 0;
}
.two-col h2 em { color: var(--teal-700); font-style: italic; }
.two-col .prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  max-width: 60ch;
}
.two-col .prose p:last-child { margin-bottom: 0; }
.two-col .prose p.lead {
  font-size: 1.25rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
}

/* ============================================================
   FEATURE LIST (numbered)
   ============================================================ */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
}
.feature-list > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  align-items: start;
}
.feature-list .fl-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--teal-500);
  font-variation-settings: "opsz" 36;
  line-height: 1;
  padding-top: 0.15em;
}
.feature-list .fl-body h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4em;
  color: var(--teal-800);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
}
.feature-list .fl-body p {
  margin: 0;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 56ch;
}

/* ============================================================
   CAMP THEMES GRID (Innovation Camps)
   ============================================================ */
.camps-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .camps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .camps-grid { grid-template-columns: repeat(3, 1fr); } }

.camp-card {
  position: relative;
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.camp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(5, 46, 51, 0.2);
  border-color: var(--teal-300);
}
/* Theme photo — softly rounded image sitting within the tile, echoing the card's curve */
.camp-card .camp-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: var(--space-5);
}
.camp-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0 0 0.4em;
  color: var(--teal-800);
  font-weight: 500;
}
.camp-card .camp-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-500);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: block;
}
.camp-card p {
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0;
}
.camp-card.feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  color: var(--cream);
  border: none;
  padding: var(--space-7);
}
/* On desktop 3-col grid: feature tile spans 2 cols (sits next to Creator,
   right edge aligns with AgriTech) instead of the full row. */
@media (min-width: 1100px) {
  .camp-card.feature { grid-column: span 2; }
}
.camp-card.feature h3 { color: var(--cream); }
.camp-card.feature .camp-tag { color: var(--green-400); }
.camp-card.feature p { color: rgba(250, 246, 238, 0.8); max-width: 60ch; }

/* ============================================================
   THREE-STAGE PATH (Sports Pathways)
   ============================================================ */
.three-stage {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: stage;
}
@media (min-width: 900px) { .three-stage { grid-template-columns: repeat(3, 1fr); } }

.stage-card {
  position: relative;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: var(--bg-deep);
  border-radius: 20px;
  border: 1px solid var(--rule);
}
.stage-card::before {
  counter-increment: stage;
  content: "0" counter(stage);
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--teal-300);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.02em;
}
.stage-card .stage-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-500);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.stage-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal-800);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
.stage-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: 0.7em;
}
.stage-card ul li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
}
.stage-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: 600;
}

/* ============================================================
   SPORTS LIST (chip cloud)
   ============================================================ */
.sports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
}
.sports-list li {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--teal-700);
  background: var(--cream);
  font-weight: 500;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.sports-list li:hover { border-color: var(--teal-500); color: var(--teal-800); }

/* ============================================================
   ABOUT TIMELINE
   ============================================================ */
.about-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-6);
  position: relative;
}
.about-timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--rule);
}
.about-timeline > li {
  position: relative;
  padding-left: 2.5rem;
}
.about-timeline > li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--bg);
}
.about-timeline .yr {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal-500);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
  display: block;
  font-variation-settings: "opsz" 24;
}
.about-timeline h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal-800);
  margin: 0 0 0.4em;
}
.about-timeline p {
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

/* ============================================================
   STORY CARDS — expanded (for stories page)
   ============================================================ */
.stories-feature {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) { .stories-feature { grid-template-columns: 1.3fr 1fr; } }

.story-feature-card {
  padding: var(--space-7);
  background: var(--bg-deep);
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story-feature-card .quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 6rem;
  line-height: 0.8;
  color: var(--teal-300);
  margin-bottom: var(--space-3);
  display: block;
  font-variation-settings: "opsz" 144;
}
.story-feature-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--teal-900);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
  max-width: 38ch;
}
.story-feature-card .attribution {
  font-size: 0.875rem;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}
.story-feature-card .attribution strong { color: var(--teal-700); font-weight: 600; }

/* ============================================================
   PROSE / PRIVACY PAGE
   ============================================================ */
.prose-page {
  padding-block: var(--space-9);
  background: var(--bg);
}
.prose-page .container-text > h2 {
  font-size: 1.625rem;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--teal-800);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.prose-page .container-text > h2:first-child { margin-top: 0; }
.prose-page .container-text > h3 {
  font-size: 1.125rem;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--teal-700);
  font-weight: 600;
  font-family: var(--font-body);
}
.prose-page .container-text p {
  line-height: 1.7;
  margin: 0 0 1em;
  max-width: 65ch;
}
.prose-page .container-text ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.prose-page .container-text ul li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}
.prose-page .updated {
  font-size: 0.85rem;
  color: var(--fg-soft);
  font-style: italic;
  margin-bottom: var(--space-7);
}

/* ============================================================
   CONTACT PAGE LAYOUT
   ============================================================ */
.contact-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; gap: var(--space-9); }
}
.contact-side h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal-800);
  margin: var(--space-6) 0 var(--space-2);
}
.contact-side h3:first-child { margin-top: 0; }
.contact-side p, .contact-side a {
  color: var(--fg);
  line-height: 1.6;
  margin: 0 0 0.4em;
  text-decoration: none;
}
.contact-side a:hover { color: var(--teal-700); }
.contact-side .reassurance {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-deep);
  border-radius: 14px;
  border-left: 3px solid var(--green-500);
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.6;
}

/* Light variant of form-card for use on cream backgrounds */
.form-card.light {
  background: white;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -28px rgba(5, 46, 51, 0.15);
}
.form-card.light .field input,
.form-card.light .field select,
.form-card.light .field textarea {
  background: var(--bg);
}

/* Form success message */
.form-success {
  display: none;
  padding: var(--space-5);
  background: rgba(95, 192, 63, 0.1);
  border-left: 3px solid var(--green-500);
  border-radius: 8px;
  color: var(--teal-800);
  line-height: 1.5;
}
.form-success.show { display: block; }

/* ============================================================
   CONNECT PAGE — extended Apple-style sections
   ============================================================ */
.connect-hero {
  padding-top: 9rem;
  padding-bottom: var(--space-9);
  background: linear-gradient(180deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.connect-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(18, 179, 225, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(95, 192, 63, 0.12) 0%, transparent 45%);
}
.connect-hero > * { position: relative; }
.connect-hero .eyebrow {
  color: var(--blue-500);
  margin-bottom: var(--space-5);
}
.connect-hero .eyebrow::before { background: var(--blue-500); }
.connect-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto var(--space-5);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.connect-hero h1 em {
  color: var(--blue-500);
  font-style: italic;
}
.connect-hero .lead {
  font-size: 1.25rem;
  max-width: 50ch;
  margin: 0 auto;
  color: rgba(250, 246, 238, 0.85);
  line-height: 1.5;
}

.audience-section {
  padding-block: var(--space-9);
}
.audience-section + .audience-section { border-top: 1px solid var(--rule); }
.audience-block {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .audience-block { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .audience-block.reverse > :first-child { order: 2; }
}
.audience-block .a-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: var(--space-3);
}
.audience-block h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--teal-900);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}
.audience-block h2 em { color: var(--teal-700); font-style: italic; }
.audience-block .a-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 var(--space-5);
  max-width: 50ch;
}
.audience-block ul.fl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.audience-block ul.fl li {
  padding: 0.4rem 0;
  padding-left: 1.6em;
  position: relative;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
}
.audience-block ul.fl li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 600;
}
.audience-visual {
  display: flex;
  justify-content: center;
}
