/* ===========================================================
   Shamu Foundation
   =========================================================== */

:root{
  --ivory:#FBF9F5; --cream:#F4EFE7;
  --sage:#8FA99B; --sage-deep:#5F7A6C; --sage-ink:#3D5248;
  --champagne:#D9C7A3; --champagne-deep:#BFA875;
  --ink:#3A3F3C; --muted:#7C837E; --line:#E7E1D6;
  --glass:rgba(255,255,255,.62);
  --nav-h:70px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 12px);}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--ivory);line-height:1.6;}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px;}
a{color:var(--sage-deep);text-decoration:none;}
/* `height:auto` is not decoration — the width/height attributes on an <img> land
   as CSS presentational hints, and with both dimensions resolved the browser
   ignores any `aspect-ratio` we set, so cropped photo cards silently render at
   full natural height. Every <img> here still carries its attributes, because
   they are what reserve the right space before the file loads. */
img{max-width:100%;height:auto;display:block;}

/* Visible keyboard focus — the design has no other focus cue. */
a:focus-visible,button:focus-visible{outline:3px solid var(--sage-deep);outline-offset:3px;border-radius:4px;}

.skiplink{position:absolute;left:-9999px;top:0;z-index:100;background:var(--sage-ink);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;font-weight:700;font-size:14px;}
.skiplink:focus{left:0;}

/* ===== Nav — glassy ===== */
nav{position:sticky;top:0;z-index:50;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
.navin{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);}
.logo{display:flex;align-items:center;gap:11px;text-decoration:none;}
.logo img{width:46px;height:46px;filter:drop-shadow(0 3px 6px rgba(95,122,108,.25));transition:transform .3s cubic-bezier(.2,.8,.3,1);}
.logo:hover img,.flogo:hover img{transform:scale(1.07) rotate(-3deg);}
.logo .name{font-family:Georgia,serif;font-size:19px;color:var(--sage-ink);letter-spacing:.01em;line-height:1.25;}
.logo .name small{display:block;font-family:'Segoe UI',sans-serif;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--champagne-deep);}

/* The mark animates itself from inside logo.svg — it is an <img>, so its own
   stylesheet drives it. These two rules bring the wordmark in on the same beat
   so the lockup reads as one animation rather than a picture next to text.
   `both` holds the start frame, so nothing flashes before the delay elapses. */
@keyframes logoWordIn{from{opacity:0;transform:translateX(-8px);}to{opacity:1;transform:none;}}
.logo .name,.flogo .name{animation:logoWordIn .7s cubic-bezier(.2,.8,.3,1) .55s both;}
.logo .name small,.flogo .name small{animation:logoWordIn .7s cubic-bezier(.2,.8,.3,1) .75s both;}
.navlinks{display:flex;gap:22px;font-size:14px;font-weight:600;align-items:center;}
.navlinks a{color:var(--ink);opacity:.85;}
.navlinks a:hover{opacity:1;}
.navlinks a.btn-solid{opacity:1;}
.btn{display:inline-block;border-radius:999px;font-weight:700;transition:.2s;cursor:pointer;}
.btn-solid{background:linear-gradient(160deg,#6E8B7C,#54705F);color:#fff !important;padding:10px 22px;box-shadow:inset 0 1px 2px rgba(255,255,255,.35),0 6px 16px rgba(84,112,95,.3);}
.btn-solid:hover{transform:translateY(-1px);}
.btn-champagne{background:linear-gradient(160deg,#E3D2AE,#C7AE7C);color:#4A3D22 !important;padding:13px 28px;font-size:15px;box-shadow:inset 0 1px 3px rgba(255,255,255,.6),0 8px 20px rgba(191,168,117,.35);}
.btn-champagne:hover{transform:translateY(-1px);}
.btn-quiet{border:1.5px solid var(--line);background:var(--glass);color:var(--sage-ink) !important;padding:13px 28px;font-size:15px;backdrop-filter:blur(6px);}

/* Hamburger — hidden until the breakpoint */
.navtoggle{display:none;width:44px;height:44px;border:1.5px solid var(--line);background:var(--glass);border-radius:12px;cursor:pointer;align-items:center;justify-content:center;}
.navtoggle .bars,.navtoggle .bars::before,.navtoggle .bars::after{display:block;width:20px;height:2px;background:var(--sage-ink);border-radius:2px;transition:.2s;}
.navtoggle .bars{position:relative;}
.navtoggle .bars::before,.navtoggle .bars::after{content:"";position:absolute;left:0;}
.navtoggle .bars::before{top:-6px;}
.navtoggle .bars::after{top:6px;}
.navtoggle[aria-expanded="true"] .bars{background:transparent;}
.navtoggle[aria-expanded="true"] .bars::before{top:0;transform:rotate(45deg);}
.navtoggle[aria-expanded="true"] .bars::after{top:0;transform:rotate(-45deg);}
.navscrim{position:fixed;inset:var(--nav-h) 0 0;background:rgba(58,63,60,.35);z-index:40;backdrop-filter:blur(2px);}

/* ===== Hero ===== */
.hero{position:relative;overflow:hidden;padding:80px 0 92px;background:
  radial-gradient(900px 420px at 15% -10%, rgba(217,199,163,.35), transparent 60%),
  radial-gradient(800px 500px at 90% 10%, rgba(143,169,155,.28), transparent 55%),
  linear-gradient(180deg,#FDFCFA 0%, var(--ivory) 100%);}
.hero .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;}
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(8px);padding:6px 16px;border-radius:999px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--sage-deep);font-weight:700;margin-bottom:22px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.hero h1{font-family:Georgia,serif;font-size:44px;line-height:1.16;font-weight:500;color:var(--sage-ink);margin-bottom:18px;}
.hero h1 em{font-style:italic;color:var(--champagne-deep);}
.hero .lead{font-size:17px;color:var(--muted);max-width:500px;margin-bottom:30px;}
.btns{display:flex;gap:14px;flex-wrap:wrap;}
.trust{margin-top:36px;font-size:12.5px;color:var(--muted);letter-spacing:.04em;}

.memory{position:relative;background:linear-gradient(165deg,rgba(255,255,255,.9),rgba(244,239,231,.75));border:1px solid rgba(255,255,255,.8);border-radius:22px;padding:28px;backdrop-filter:blur(10px);box-shadow:0 24px 60px rgba(95,122,108,.18), inset 0 1px 0 rgba(255,255,255,.9);}
.memory::before{content:"";position:absolute;inset:0;border-radius:22px;background:linear-gradient(120deg,rgba(255,255,255,.55) 0%,transparent 35%);pointer-events:none;}
.memory .photo{height:230px;border-radius:16px;background:linear-gradient(140deg,#D6CDBB,#A8B8AC);display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;text-align:center;padding:0 26px;margin-bottom:18px;box-shadow:inset 0 2px 10px rgba(0,0,0,.08);}
/* Shamu is high in the frame of the photo, so the crop is biased upward to keep
   his face in view at every card width. */
.memory img.photo{width:100%;object-fit:cover;object-position:center 30%;padding:0;}
.memory h3{font-family:Georgia,serif;font-size:20px;color:var(--sage-ink);margin-bottom:6px;}
.memory p{font-size:13.5px;color:var(--muted);}
.memory .rib{position:absolute;top:18px;right:18px;background:linear-gradient(160deg,#E3D2AE,#C7AE7C);color:#4A3D22;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:5px 13px;border-radius:999px;box-shadow:0 3px 8px rgba(191,168,117,.4);z-index:1;}

section.block{padding:70px 0;}
.sec-head{text-align:center;max-width:640px;margin:0 auto 44px;}
.sec-head .tag{color:var(--champagne-deep);font-weight:800;font-size:12px;letter-spacing:.18em;text-transform:uppercase;}
.sec-head h2{font-family:Georgia,serif;font-size:32px;font-weight:500;color:var(--sage-ink);margin:8px 0 12px;}
.sec-head p{color:var(--muted);font-size:15.5px;}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.step{background:var(--glass);border:1px solid rgba(255,255,255,.85);border-radius:18px;padding:26px 22px;backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(95,122,108,.09), inset 0 1px 0 rgba(255,255,255,.9);transition:.2s;}
.step:hover{transform:translateY(-4px);}
.step .num{width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#F0E6D2,#D9C7A3);color:#6B5A35;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;margin-bottom:16px;box-shadow:inset 0 1px 3px rgba(255,255,255,.7),0 4px 10px rgba(191,168,117,.25);}
.step h4{font-size:15.5px;color:var(--sage-ink);margin-bottom:8px;}
.step p{font-size:13.5px;color:var(--muted);}

.storyband{background:linear-gradient(150deg,#5F7A6C 0%,#43584D 100%);color:#F2F0E9;position:relative;overflow:hidden;}
.storyband::after{content:"";position:absolute;top:-40%;right:-10%;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.10),transparent 70%);}
.storyband .in{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;position:relative;z-index:1;}
.storyband h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin-bottom:16px;}
.storyband h2 em{color:var(--champagne);font-style:italic;}
.storyband p{font-size:15px;color:#D6DDD4;margin-bottom:14px;}
.storyband .quote{font-family:Georgia,serif;font-style:italic;font-size:17px;color:#EFE7D3;border-left:3px solid var(--champagne);padding-left:18px;margin:22px 0;}
.storyband .sig{font-size:13px;color:#BFCBC0;}
/* Portrait card facing the story text. The source is a phone photo — very tall,
   with a thin blue bar along the top — so the crop is pulled upward to drop the
   bar and hold both faces in frame at any column width. */
.storyband .story-photo{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);box-shadow:0 26px 60px rgba(0,0,0,.3);}
.storyband .story-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 12%;}
.storyband .story-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:44px 20px 16px;font-size:12.5px;letter-spacing:.06em;color:#EFE7D3;background:linear-gradient(180deg,transparent,rgba(29,40,34,.88));}

.storyband .film{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:20px;height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;backdrop-filter:blur(4px);}
.storyband .play{width:64px;height:64px;border-radius:50%;background:linear-gradient(160deg,#E3D2AE,#C7AE7C);display:flex;align-items:center;justify-content:center;color:#4A3D22;font-size:24px;box-shadow:0 10px 26px rgba(0,0,0,.3), inset 0 1px 3px rgba(255,255,255,.6);}
.storyband .film span{font-size:13px;color:#D6DDD4;letter-spacing:.06em;}
.storyband .tag{display:block;color:var(--champagne);font-weight:800;font-size:12px;letter-spacing:.18em;text-transform:uppercase;margin-bottom:10px;}
.storyband .story-lead{font-family:Georgia,serif;font-size:20px;font-style:italic;color:#EFE7D3;margin-bottom:18px;}
/* The quotation marks are decorative, so they live in CSS rather than in the
   prose — the text stays clean for screen readers and for copy-and-paste. */
.storyband .quote::before{content:"\201C";}
.storyband .quote::after{content:"\201D";}

/* ===== Shamu's story, long form ===== */
/* Reduced top padding: this section is the second half of the story band above
   it, not a separate topic, so it should not read as a fresh start. The
   `section` qualifier is needed to outrank `section.block`'s 70px. */
section.storyfull{background:linear-gradient(180deg,#F7F3EC 0%,var(--ivory) 60%);padding-top:58px;}
.story-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start;}
.story-body p{font-size:16.5px;line-height:1.85;color:#4A5450;margin-bottom:18px;}
.story-body .opening::first-letter{float:left;font-family:Georgia,serif;font-size:56px;line-height:.86;color:var(--champagne-deep);padding:6px 12px 0 0;}
/* One-line paragraphs that carry the turn in the story — set apart so they
   land the way they read aloud. */
.story-body .beat{font-family:Georgia,serif;font-style:italic;font-size:19.5px;color:var(--sage-deep);text-align:center;margin:6px 0;line-height:1.5;}
.story-body .beat + .beat{margin-bottom:26px;}
.story-body .story-pull{font-family:Georgia,serif;font-style:italic;font-size:20px;line-height:1.6;color:var(--sage-ink);border-left:3px solid var(--champagne-deep);padding-left:22px;margin:30px 0;}
.story-body .story-sub{font-family:Georgia,serif;font-size:23px;font-weight:500;color:var(--sage-ink);margin:36px 0 14px;}

.story-time{background:var(--glass);border:1px solid rgba(255,255,255,.85);border-radius:20px;padding:22px 20px;backdrop-filter:blur(8px);box-shadow:0 14px 40px rgba(95,122,108,.12), inset 0 1px 0 rgba(255,255,255,.9);}
.story-time h3{font-family:Georgia,serif;font-size:18px;font-weight:500;color:var(--sage-ink);margin-bottom:15px;}
.story-time ol{list-style:none;}
.story-time li{position:relative;padding:0 0 15px 18px;border-left:2px solid var(--line);}
.story-time li:last-child{padding-bottom:0;border-left-color:transparent;}
.story-time li::before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:linear-gradient(145deg,#F0E6D2,#D9C7A3);box-shadow:0 0 0 3px var(--ivory);}
.story-time .when{display:block;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--champagne-deep);margin-bottom:2px;}
.story-time b{display:block;font-size:14px;color:var(--sage-ink);}
.story-time p{font-size:12.5px;color:var(--muted);line-height:1.55;margin-top:3px;}

/* The timeline follows the reader down a long story — but only where the whole
   card fits on screen. A sticky box taller than the viewport would pin its own
   last entries out of sight, so on short screens it simply scrolls with the
   prose instead. */
@media(min-height:740px){
  .story-time{position:sticky;top:calc(var(--nav-h) + 20px);}
}

.story-close{max-width:640px;margin:56px auto 0;padding-top:38px;border-top:1px solid var(--line);text-align:center;}
.story-close .line{font-family:Georgia,serif;font-style:italic;font-size:22px;line-height:1.5;color:var(--sage-ink);}
.story-close .creed{font-family:Georgia,serif;font-style:italic;font-size:15.5px;color:var(--muted);max-width:520px;margin:20px auto 0;}
.story-close .sign{margin-top:18px;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--champagne-deep);}

.impact{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.imp{text-align:center;background:var(--glass);border:1px solid rgba(255,255,255,.85);border-radius:18px;padding:30px 20px;backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(95,122,108,.08), inset 0 1px 0 rgba(255,255,255,.9);}
.imp b{font-family:Georgia,serif;display:block;font-size:34px;font-weight:500;color:var(--sage-deep);}
.imp span{font-size:13px;color:var(--muted);letter-spacing:.05em;}

.stories-bg{background:linear-gradient(180deg,var(--ivory),var(--cream));}
.vids{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.vid{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 26px rgba(95,122,108,.08);transition:.2s;}
.vid:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(95,122,108,.14);}
.thumb{height:150px;background:linear-gradient(140deg,#B9C8BC,#8FA99B);position:relative;display:flex;align-items:center;justify-content:center;}
.thumb::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.35) 0%,transparent 40%);}
.play-sm{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;color:var(--sage-deep);font-size:17px;box-shadow:0 6px 16px rgba(0,0,0,.18);position:relative;}
.badge{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.9);color:var(--sage-deep);font-size:10.5px;font-weight:800;letter-spacing:.08em;padding:4px 11px;border-radius:999px;z-index:1;}
.vid .body{padding:16px 18px 20px;}
.vid h4{font-size:15px;color:var(--sage-ink);margin-bottom:6px;}
.vid p{font-size:12.5px;color:var(--muted);}

/* ===== About Us ===== */
.about{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;}
.about h2{font-family:Georgia,serif;font-size:30px;font-weight:500;color:var(--sage-ink);margin-bottom:16px;}
.about p{font-size:15px;color:var(--muted);margin-bottom:14px;}
.about .quietlink{font-size:13.5px;font-weight:700;}
.about .card{background:var(--glass);border:1px solid rgba(255,255,255,.85);border-radius:20px;padding:30px;backdrop-filter:blur(8px);box-shadow:0 14px 40px rgba(95,122,108,.12), inset 0 1px 0 rgba(255,255,255,.9);}
.about .card ul{list-style:none;}
.about .card li{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink);}
.about .card li:last-child{border-bottom:none;}
.about .card .dot{width:34px;height:34px;border-radius:50%;flex-shrink:0;background:linear-gradient(145deg,#F0E6D2,#D9C7A3);display:flex;align-items:center;justify-content:center;font-size:15px;}
.about .tag{color:var(--champagne-deep);font-weight:800;font-size:12px;letter-spacing:.18em;text-transform:uppercase;}

.applyband{background:linear-gradient(150deg,#F0E6D2,#D9C7A3);position:relative;overflow:hidden;}
.applyband::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.55) 0%,transparent 45%);}
.applyband .in{position:relative;text-align:center;padding:64px 24px;}
.applyband h2{font-family:Georgia,serif;font-size:30px;font-weight:500;color:#57492A;margin-bottom:12px;}
.applyband p{color:#6B5A35;font-size:15.5px;max-width:520px;margin:0 auto 28px;}

/* ===== Our Founder ===== */
.founderband{background:linear-gradient(180deg,var(--cream) 0%,var(--ivory) 100%);}
.founder-in{display:grid;grid-template-columns:minmax(0,410px) minmax(0,1fr);gap:52px;align-items:center;}
.founder-photo{position:relative;border-radius:22px;overflow:hidden;background:linear-gradient(140deg,#D6CDBB,#A8B8AC);box-shadow:0 24px 60px rgba(95,122,108,.22), inset 0 1px 0 rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.8);}
/* The portrait is square, and it is framed with the subject standing slightly
   right of centre against a sunset that is half the picture. A square card
   therefore shows it essentially uncropped; a taller ratio would shave his
   shoulder off and throw the composition off balance. Declaring the ratio here
   also stops the page reflowing as the image loads. */
.founder-photo img,.founder-photo .ph{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 25%;}
.founder-photo .ph{display:flex;align-items:center;justify-content:center;color:#fff;font-size:13.5px;text-align:center;padding:0 24px;}
.founder-photo .rib{position:absolute;left:18px;bottom:18px;background:linear-gradient(160deg,#E3D2AE,#C7AE7C);color:#4A3D22;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:6px 14px;border-radius:999px;box-shadow:0 6px 16px rgba(0,0,0,.22);}
.founder-text .tag{display:block;color:var(--champagne-deep);font-weight:800;font-size:12px;letter-spacing:.18em;text-transform:uppercase;margin-bottom:8px;}
.founder-text h2{font-family:Georgia,serif;font-size:30px;font-weight:500;color:var(--sage-ink);margin-bottom:16px;}
.founder-text p{font-size:15.5px;line-height:1.8;color:var(--muted);margin-bottom:14px;}
/* The milestones sit under the portrait rather than in the prose column: they
   are biography, they belong with the picture, and they take up almost exactly
   the height the taller text column would otherwise leave as dead space beside
   a square photo. */
.founder-marks{list-style:none;margin-top:22px;}
.founder-marks li{display:grid;grid-template-columns:66px 1fr;gap:14px;align-items:baseline;padding:11px 2px;border-bottom:1px solid var(--line);}
.founder-marks li:last-child{border-bottom:none;}
.founder-marks b{font-family:Georgia,serif;font-size:17px;font-weight:500;color:var(--sage-deep);}
.founder-marks span{font-size:12.5px;color:var(--muted);line-height:1.5;}
.founder-pledge{font-family:Georgia,serif;font-style:italic;font-size:18px;line-height:1.6;color:var(--sage-ink);border-left:3px solid var(--champagne-deep);padding-left:20px;margin:26px 0 12px;}
.founder-pledge::before{content:"\201C";}
.founder-pledge::after{content:"\201D";}
.founder-text .sig{font-size:12.5px;letter-spacing:.06em;color:var(--muted);}

/* ===== Contact ===== */
.contactband{background:linear-gradient(180deg,var(--ivory) 0%,var(--cream) 100%);}
.contact-form{max-width:760px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:18px;background:var(--glass);border:1px solid rgba(255,255,255,.85);border-radius:22px;padding:32px;backdrop-filter:blur(8px);box-shadow:0 18px 50px rgba(95,122,108,.14), inset 0 1px 0 rgba(255,255,255,.9);}
.contact-form .field{display:flex;flex-direction:column;gap:7px;min-width:0;}
.contact-form .full{grid-column:1 / -1;}
.contact-form label{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--sage-ink);}
.contact-form label span{color:var(--champagne-deep);}
.contact-form input[type=text],.contact-form input[type=email],.contact-form input[type=tel],.contact-form textarea{
  font-family:inherit;font-size:15px;color:var(--ink);background:rgba(255,255,255,.85);
  border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;width:100%;transition:.15s;}
.contact-form textarea{resize:vertical;min-height:130px;line-height:1.6;}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--sage-deep);box-shadow:0 0 0 3px rgba(95,122,108,.15);background:#fff;}
.contact-form input:invalid:not(:placeholder-shown),.contact-form textarea:invalid:not(:placeholder-shown){border-color:#C08A6E;}
/* Honeypot: off-screen rather than display:none, because some bots skip fields
   they can tell are hidden. aria-hidden keeps it away from screen readers. */
.contact-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.contact-form .consent{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;background:rgba(255,255,255,.5);border:1px solid var(--line);border-radius:14px;padding:16px 18px;}
.contact-form .consent input{width:20px;height:20px;margin-top:2px;accent-color:var(--sage-deep);flex-shrink:0;cursor:pointer;}
.contact-form .consent label{font-size:12.5px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted);line-height:1.65;cursor:pointer;}
.contact-form .consent a{font-weight:700;text-decoration:underline;}
.contact-form .actions{flex-direction:row;align-items:center;gap:16px;flex-wrap:wrap;}
.contact-form .actions .req{font-size:12px;color:var(--muted);}
.contact-form button{border:none;font-family:inherit;}
.formnote{max-width:760px;margin:0 auto 20px;border-radius:14px;padding:15px 20px;font-size:14.5px;border:1px solid;}
.formnote.ok{background:rgba(143,169,155,.14);border-color:var(--sage);color:var(--sage-ink);}
.formnote.bad{background:rgba(192,138,110,.12);border-color:#C08A6E;color:#8A5137;}

/* ===== Legal pages ===== */
.legal{max-width:760px;}
.legal .updated{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--champagne-deep);margin-bottom:24px;}
.legal h2{font-family:Georgia,serif;font-size:22px;font-weight:500;color:var(--sage-ink);margin:34px 0 12px;}
.legal p{font-size:15.5px;line-height:1.8;color:var(--muted);margin-bottom:14px;}
.legal ul{margin:0 0 16px 20px;}
.legal li{font-size:15.5px;line-height:1.8;color:var(--muted);margin-bottom:6px;}
.legal b{color:var(--ink);}
.legal a{font-weight:700;}

/* ===== Network page ===== */
.pagehead{background:linear-gradient(150deg,#5F7A6C 0%,#43584D 100%);color:#F2F0E9;padding:56px 0;}
.pagehead h1{font-family:Georgia,serif;font-size:34px;font-weight:500;margin-bottom:10px;}
.pagehead p{color:#D6DDD4;font-size:15px;max-width:640px;}
.pagehead .crumb{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--champagne);font-weight:700;margin-bottom:14px;}
.pagehead .crumb a{color:inherit;}
.clinics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.clinic{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 26px rgba(95,122,108,.08);transition:.2s;}
.clinic:hover{transform:translateY(-3px);}
.clinic .ph{height:110px;background:linear-gradient(140deg,#C9D5CB,#8FA99B);display:flex;align-items:center;justify-content:center;color:#fff;font-size:12.5px;}
.clinic .body{padding:16px 18px 18px;}
.clinic h4{font-size:15px;color:var(--sage-ink);}
.clinic .flag{display:inline-block;background:linear-gradient(160deg,#E3D2AE,#C7AE7C);color:#4A3D22;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 10px;border-radius:999px;margin-bottom:6px;}
.clinic p{font-size:12.5px;color:var(--muted);}
.tier{margin-bottom:34px;}
.tier h3{font-family:Georgia,serif;font-weight:500;font-size:19px;color:var(--sage-ink);border-left:3px solid var(--champagne-deep);padding-left:12px;margin-bottom:16px;}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.doc{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.18s;display:flex;flex-direction:column;box-shadow:0 6px 20px rgba(95,122,108,.07);}
.doc:hover{box-shadow:0 14px 32px rgba(95,122,108,.14);transform:translateY(-3px);}
.avatar{height:110px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;font-weight:700;font-family:Georgia,serif;}
.doc .body{padding:13px 15px 15px;flex:1;display:flex;flex-direction:column;}
.doc h4{font-size:14.5px;color:var(--ink);}
.doc .cred{font-size:11.5px;color:var(--champagne-deep);font-weight:700;margin-bottom:3px;}
.doc .loc{font-size:12px;color:var(--muted);margin-bottom:10px;}
.doc .link{margin-top:auto;font-size:12.5px;font-weight:700;}
.doc .link small{color:var(--muted);font-weight:400;display:block;font-size:10.5px;margin-top:2px;}
.filters{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:30px;}
.filters button{border:1.5px solid var(--line);background:#fff;color:var(--ink);font-weight:600;font-size:13px;padding:8px 16px;border-radius:999px;cursor:pointer;transition:.15s;}
.filters button:hover{border-color:var(--sage-deep);}
.filters button.on{background:linear-gradient(160deg,#6E8B7C,#54705F);border-color:var(--sage-deep);color:#fff;}
.partnerband{background:var(--cream);border:1px solid var(--line);border-radius:20px;padding:30px 34px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
.partnerband h4{font-family:Georgia,serif;font-weight:500;font-size:19px;color:var(--sage-ink);margin-bottom:4px;}
.partnerband p{font-size:13.5px;color:var(--muted);}

/* ===== 404 ===== */
.notfound{text-align:center;padding:96px 0 110px;max-width:560px;margin:0 auto;}
.notfound .code{font-family:Georgia,serif;font-size:76px;line-height:1;color:var(--champagne-deep);margin-bottom:10px;}
.notfound h1{font-family:Georgia,serif;font-size:30px;font-weight:500;color:var(--sage-ink);margin-bottom:12px;}
.notfound p{color:var(--muted);font-size:15.5px;margin-bottom:28px;}
.notfound .btns{justify-content:center;}

footer{background:#404A44;color:#B9C2BB;padding:44px 0 30px;font-size:13.5px;}
.fgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;margin-bottom:28px;}
footer h5{color:#EDEBE3;font-family:Georgia,serif;font-weight:500;font-size:15px;margin-bottom:12px;}
/* Same logo lockup as the nav, recoloured for the dark footer. */
.flogo{display:flex;align-items:center;gap:11px;margin-bottom:14px;text-decoration:none;}
.flogo img{width:46px;height:46px;flex-shrink:0;transition:transform .3s cubic-bezier(.2,.8,.3,1);}
.flogo .name{font-family:Georgia,serif;font-size:19px;color:#EDEBE3;letter-spacing:.01em;line-height:1.25;transition:.2s;}
.flogo .name small{display:block;font-family:'Segoe UI',sans-serif;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--champagne);margin-top:2px;}
.flogo:hover .name{color:#fff;}
/* reCAPTCHA v3.
   Google's own floating badge, bottom right, carries the required attribution.
   It may only be hidden if the wording it stands in for is shown on the form
   instead — so if you ever hide it, that text has to go back. */
.grecaptcha-badge{z-index:40;}

/* Postal address and contact email, sitting under the footer blurb. */
.fcontact{font-style:normal;line-height:1.75;margin-top:14px;}
.fcontact a{text-decoration:none;border-bottom:1px solid rgba(185,194,187,.35);}
footer li{list-style:none;margin-bottom:8px;}
footer a{color:#B9C2BB;}
footer a:hover{color:#EDEBE3;}
.fbottom{border-top:1px solid rgba(255,255,255,.12);padding-top:18px;text-align:center;font-size:11.5px;color:#8E9990;}

@media(max-width:900px){
  .hero .grid,.storyband .in,.about,.story-grid{grid-template-columns:1fr;}
  /* The portrait would dominate a phone screen at its desktop ratio, so it
     becomes a wide crop above the text instead of a tall column beside it. */
  .storyband .story-photo{max-width:460px;margin:0 auto;}
  /* The timeline reads as a summary beside the story on desktop; stacked on a
     phone it works better as a recap, so it moves below the prose. */
  .story-grid{gap:36px;}
  .story-time{position:static;}
  .steps{grid-template-columns:1fr 1fr;}
  .impact,.vids,.clinics{grid-template-columns:1fr;}
  .cards{grid-template-columns:1fr 1fr;}
  .fgrid{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:34px;}

  .navtoggle{display:flex;}
  .navlinks{
    position:fixed;top:var(--nav-h);left:0;right:0;z-index:45;
    flex-direction:column;align-items:stretch;gap:0;
    padding:10px 24px 24px;
    background:rgba(251,249,245,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);box-shadow:0 18px 40px rgba(95,122,108,.16);
    max-height:calc(100dvh - var(--nav-h));overflow-y:auto;
    opacity:0;visibility:hidden;transform:translateY(-10px);
    transition:opacity .2s,transform .2s,visibility .2s;
  }
  .navlinks.open{opacity:1;visibility:visible;transform:none;}
  .navlinks a{padding:15px 2px;border-bottom:1px solid var(--line);font-size:15px;}
  .navlinks a.btn-solid{margin-top:16px;text-align:center;border-bottom:none;padding:13px 22px;}
}

/* The founder section stacks earlier than everything else. Its portrait is
   square, so between 900px and 1000px the photo column shrinks while the prose
   column beside it grows taller — the two stop lining up well before the layout
   is actually too narrow to hold them. */
@media(max-width:1000px){
  .founder-in{grid-template-columns:1fr;gap:34px;}
  /* justify-self rather than `margin:0 auto` — auto margins on a grid item stop
     it stretching, which collapses the card to its content width. */
  .founder-aside{width:100%;max-width:460px;justify-self:center;}
}

@media(max-width:560px){
  .steps,.cards,.fgrid{grid-template-columns:1fr;}
  .hero{padding:56px 0 64px;}
  .hero h1{font-size:29px;}
  section.block{padding:52px 0;}
  .sec-head h2{font-size:26px;}
  .logo .name{font-size:17px;}
  .partnerband{flex-direction:column;align-items:flex-start;}
  .story-body p{font-size:15.5px;}
  .story-body .beat{font-size:18px;}
  .story-body .story-pull{font-size:18px;padding-left:16px;}
  .story-close .line{font-size:19px;}
  .contact-form{grid-template-columns:1fr;padding:22px 18px;}
  .founder-marks li{grid-template-columns:58px 1fr;gap:10px;}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;}
  .step:hover,.vid:hover,.clinic:hover,.doc:hover,.btn:hover{transform:none;}
}

@media print{
  nav,.navscrim,.skiplink,footer .fgrid{display:none;}
  body{background:#fff;}
}
