/* ==========================================================
   My Pet Mangrove: brand stylesheet
   Navy and lagoon blues from the logo, Archivo Expanded for headings.
   ========================================================== */

:root {
  --navy: #143258;
  --deep: #0c2444;
  --blue: #1453a0;
  --blue-dark: #0f417f;
  --sky: #8cc4f5;
  --sky-light: #b9dbfa;
  --foam: #e8f4fc;
  --mist: #f2f5f7;
  --ink: #15294a;
  --text: #33445f;
  --muted: #5b6b85;
  --line: #cfdae7;
  --white: #ffffff;
  --leaf: #2f7d4f;
  --coral: #b4462f;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 7vw, 6rem);
  --radius: 4px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.bg-white :focus-visible, .bg-mist :focus-visible, .bg-foam :focus-visible { outline-color: var(--blue); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sky); color: var(--navy); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- Type ---------- */
h1, h2, h3, h4, .h2, .h3, .h4 {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.h4 { font-size: 1rem; }
.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }

/* ---------- Buttons and links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 .97rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sky { background: var(--sky); color: var(--navy); }
.btn--sky:hover { background: var(--sky-light); color: var(--navy); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--deep); color: var(--white); }
.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.arrow-link::after {
  content: ""; width: 28px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5h26M22 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5h26M22 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .15s;
}
.arrow-link:hover { color: var(--blue); }
.arrow-link:hover::after { transform: translateX(4px); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link--light { color: var(--white); }
.text-link--light:hover { color: var(--sky); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1400px; margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--white); text-decoration: none; flex: none;
}
.brand__mark { width: 52px; height: auto; }
.brand__word {
  font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: .9rem; line-height: .95; letter-spacing: .01em;
}
.site-nav { display: flex; align-items: center; flex: 1; gap: 1rem; }
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .7rem;
  background: none; border: 0; color: var(--white);
  font: 600 .97rem/1 var(--font); text-decoration: none; cursor: pointer;
  border-radius: var(--radius);
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--sky); }
.site-nav__link .chev { transition: transform .15s; }
.site-nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  margin: 0; padding: .5rem; list-style: none;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(12, 36, 68, .22);
  display: none;
}
.site-nav__item.is-open .submenu { display: block; }
.submenu a {
  display: block; padding: .6rem .75rem; border-radius: var(--radius);
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--foam); }
.site-nav__actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.site-nav__actions .btn { min-height: 44px; padding: .55rem 1.05rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; background: none; color: var(--white); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto;
  transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem clamp(1rem, 4vw, 2rem) 2rem;
    background: var(--navy);
    overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__item { border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 1.1rem .25rem; font-size: 1.1rem; }
  .submenu { position: static; box-shadow: none; background: transparent; padding: 0 0 .75rem; min-width: 0; }
  .submenu a { color: var(--white); padding: .6rem .75rem; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .site-nav__actions { margin: 1.5rem 0 0; flex-direction: column; align-items: stretch; }
  .site-nav__actions .text-link { padding: .5rem 0; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Tide line (from the logo's water strokes) ---------- */
.tideline {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 60px; pointer-events: none;
}
.tideline path { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tideline path:nth-child(1) { stroke: var(--sky); opacity: .55; }
.tideline path:nth-child(2) { stroke: var(--sky); opacity: .8; }
.tideline path:nth-child(3) { stroke: var(--blue); opacity: .9; }
.tideline--short { height: 40px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: min(82vh, 760px);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__copy {
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.5rem) clamp(5rem, 9vw, 7rem);
  max-width: 720px; justify-self: end;
}
.hero__kicker { color: var(--sky); font-weight: 700; margin-bottom: 1rem; }
.hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 900;
  line-height: .98;
  margin-bottom: .45em;
}
.hero__text { font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 34em; color: #dbe8f6; }
.hero__note { margin: 2rem 0 0; font-size: .95rem; }
.hero__note a { color: var(--sky); font-weight: 700; }
.hero__media { margin: 0; position: relative; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__media figcaption {
  position: absolute; right: 1rem; bottom: 4.5rem; background: rgba(12,36,68,.8);
  color: var(--white); font-size: .85rem; padding: .35rem .6rem; border-radius: var(--radius);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; height: 52vh; max-height: 440px; }
  .hero__copy { justify-self: stretch; padding-top: 2.25rem; }
}

/* ---------- Page header ---------- */
.page-header {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.page-header--compact { padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 4.25rem); }
.page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-header--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,50,88,.96) 0%, rgba(20,50,88,.82) 55%, rgba(20,50,88,.55) 100%);
  z-index: 0;
}
.page-header--image .page-header__bg { opacity: 1; }
.page-header__inner { position: relative; z-index: 1; }
.page-header__title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 900; max-width: 16em; }
.page-header__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38em; color: #dbe8f6; margin: 0; }
.crumbs { margin-bottom: 1rem; font-weight: 600; }
.crumbs a { color: var(--sky); }

/* ---------- Section blocks ---------- */
.block { padding: var(--space) 0; }
.bg-white { background: var(--white); }
.bg-foam { background: var(--foam); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #dbe8f6; }
.bg-blue { background: var(--blue); color: #e6f1fc; }
.bg-navy :is(h2, h3, .h2, .h3, .lead, strong), .bg-blue :is(h2, h3, .h2, .h3, .lead, strong) { color: var(--white); }
.bg-navy a:not(.btn), .bg-blue a:not(.btn) { color: var(--sky); }
.bg-navy .arrow-link, .bg-blue .arrow-link { color: var(--white); }
.bg-white + .bg-white { padding-top: 0; }
.block-intro { max-width: 40em; margin-bottom: 2.25rem; }
.block-head { margin-bottom: 2.25rem; }
.block-head--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: start; }
.block-head--split .h2 { margin: 0; }
.block-head__intro > :last-child { margin: 0; }
.block-head--row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.block-head--row .h2 { margin: 0; }
@media (max-width: 760px) { .block-head--split { grid-template-columns: 1fr; } }

/* Split: text beside an image */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--left .split__media { order: -1; }
.split__copy { max-width: 36em; }
.split__sub { font-size: 1.2rem; font-weight: 700; color: var(--blue); margin: -.25rem 0 1rem; }
.bg-navy .split__sub, .bg-blue .split__sub { color: var(--sky); }
.split__media { margin: 0; position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 30%; }
.split__media img.is-portrait { aspect-ratio: 4 / 5; }
.split--boxed { gap: 0; align-items: stretch; }
.split--boxed .split__copy {
  border: 2px solid var(--foam); outline: 1px solid var(--line); outline-offset: -1px;
  padding: clamp(2rem, 4vw, 3.25rem); max-width: none;
  display: flex; flex-direction: column; justify-content: center;
  margin: 2rem 0;
}
.split--boxed.split--right .split__copy { border-right: 0; }
.split--boxed .split__media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.badge {
  position: absolute; left: 0; bottom: 1.25rem;
  background: var(--navy); color: var(--white);
  padding: .7rem 1rem; max-width: 85%;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: .88rem; line-height: 1.2;
  border-left: 4px solid var(--sky);
}
.badge strong { color: var(--sky); font-size: .78rem; display: inline-block; margin-bottom: .2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tags li {
  border: 1.5px solid var(--navy); color: var(--navy); border-radius: var(--radius);
  padding: .25rem .65rem; font-size: .78rem; font-weight: 700; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .03em;
}
.callout {
  border-left: 4px solid var(--blue);
  padding: .1rem 0 .1rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: 1.2rem; font-weight: 700; line-height: 1.45; color: var(--ink);
}
.bg-navy .callout, .bg-blue .callout { border-color: var(--sky); color: var(--white); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--left .split__media { order: 0; }
  .split__media { order: -1; }
  .split--boxed .split__copy { margin: 0; border: 2px solid var(--foam); }
  .split--boxed .split__media img { min-height: 0; aspect-ratio: 4/3; }
  .split--form .split__copy { order: 0; }
}

/* Steps: the four-step loop */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.step__link { color: inherit; text-decoration: none; display: block; height: 100%; }
.step__media { position: relative; margin-bottom: 1rem; overflow: hidden; background: var(--navy); }
.step__media img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .35s ease; }
.step__media::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(180deg, rgba(20,50,88,0) 0%, rgba(20,50,88,.92) 100%);
}
.step__link:hover .step__media img { transform: scale(1.04); }
.step__label {
  position: absolute; left: 1rem; bottom: .8rem; z-index: 1; margin: 0;
  color: var(--white); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1;
}
.step__num { color: var(--sky); margin-right: .15em; }
.step__title { font-size: 1.05rem; font-stretch: 100%; text-transform: none; font-weight: 700; margin: 0 0 .35rem; color: var(--navy); line-height: 1.3; }
.step__body { font-size: .97rem; margin: 0; }
.step__link:hover .step__title { color: var(--blue); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--1 { grid-template-columns: minmax(0, 1fr); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
}
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.1rem; margin-bottom: .5rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { font-size: .97rem; }
.card__text p:last-child { margin: 0; }
.card__text em { color: var(--blue); font-weight: 600; }
.card__more {
  margin: auto 0 0; padding-top: 1rem; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: .6rem;
}
.card__more::after {
  content: ""; width: 28px; height: 10px; background: currentColor; transition: transform .15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5h26M22 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5h26M22 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.card:hover .card__title a, .card:hover .card__more { color: var(--blue); }
.card:hover .card__more::after { transform: translateX(4px); }
.card:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.card__title a:focus-visible { outline: none; }
.bg-mist .card, .bg-foam .card { border-color: transparent; }
@media (max-width: 960px) { .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards--2, .cards--3 { grid-template-columns: 1fr; } }

/* Quote */
.pull-quote { margin: 0 auto; max-width: 900px; }
.pull-quote blockquote { margin: 0; }
.pull-quote blockquote p {
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; font-weight: 600; color: var(--navy);
  margin: 0 0 1.25rem; text-wrap: pretty;
}
.pull-quote blockquote p::before { content: "“"; color: var(--sky); font-weight: 900; margin-left: -.45em; }
.pull-quote blockquote p::after { content: "”"; color: var(--sky); font-weight: 900; }
.pull-quote figcaption { font-weight: 700; color: var(--blue); }
.pull-quote figcaption::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--blue); vertical-align: middle; margin-right: .75rem; }

/* Stats */
.block--stats:not(.has-stats) { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column; border-top: 3px solid var(--sky); padding-top: 1rem; }
.stat[hidden] { display: none; }
.stat__value {
  order: -1; margin: 0 0 .35rem;
  font-stretch: 125%; font-weight: 900; color: var(--blue);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-weight: 600; color: var(--ink); line-height: 1.35; }
.stat__note { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); }
.bg-navy .stat__value { color: var(--sky); }
.bg-navy .stat__label { color: var(--white); }
.bg-navy .stat__note, .bg-navy .source-note { color: #b7c8dd; }
.source-note { margin: 2rem 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Band */
.band { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; overflow: hidden; color: #e6f1fc; }
.band--image { padding: clamp(5rem, 11vw, 8.5rem) 0; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,50,88,.94) 0%, rgba(20,50,88,.78) 50%, rgba(20,50,88,.35) 100%); z-index: 1; }
.band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.band .h2 { color: var(--white); margin: 0; max-width: 14em; }
.band__text { max-width: 36em; margin-top: 1rem; font-size: 1.1rem; }
.band__text p:last-child { margin: 0; }
.band .btn-row { margin: 0; }
.band--image .band__inner { flex-direction: column; align-items: flex-start; }

/* Video */
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video__frame img, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; background: none; cursor: pointer; padding: 0; }
.video__play svg { width: 100%; height: 100%; transition: transform .15s; }
.video__play:hover svg { transform: scale(1.06); }
.video figcaption { margin-top: .75rem; font-size: .92rem; }

/* Press */
.press { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.press__item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .5rem 2rem; }
.press__meta { margin: 0; font-weight: 700; color: var(--navy); display: flex; flex-direction: column; gap: .15rem; }
.press__kind, .press__meta time { font-weight: 500; color: var(--muted); font-size: .9rem; }
.press__title { font-size: 1.15rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.press__title:hover { text-decoration: underline; }
@media (max-width: 640px) { .press__item { grid-template-columns: 1fr; } }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--blue), var(--blue)) center/14px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center/2px 14px no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .prose { padding: 0 0 1.25rem; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.bg-white .form-card { background: var(--mist); border-color: transparent; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field label, .field .label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.req { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; min-height: 46px;
  padding: .6rem .75rem;
  border: 1.5px solid #a9b8cc; border-radius: var(--radius);
  background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--blue); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; accent-color: var(--blue); flex: none; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.checks--inline { display: flex; gap: 1.5rem; }
.checks label { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.topic-fields { display: none; }
.topic-fields.is-active { display: block; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: .9rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: var(--coral); }
.form-status.is-ok { color: var(--leaf); }
@media (max-width: 560px) { .field-row, .checks { grid-template-columns: 1fr; } }
.footer-email--dark { color: var(--navy); font-weight: 700; }

/* Events */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: var(--white); padding: 1.25rem 1.5rem; }
.event__date { margin: 0; text-align: center; background: var(--navy); color: var(--white); padding: .9rem .5rem; font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1.05; font-size: 1.15rem; }
.event__title { font-size: 1.15rem; margin-bottom: .35rem; }
.event__meta { list-style: none; padding: 0; margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.event__bring { margin: 0; font-size: .95rem; }
.event .prose { font-size: .95rem; margin-top: .5rem; }
@media (max-width: 700px) { .event { grid-template-columns: 1fr; } .event__date { justify-self: start; padding: .5rem 1rem; } }
.empty-note { background: var(--white); border-left: 4px solid var(--sky); padding: 1.25rem 1.5rem; margin: 0; }
.bg-white .empty-note { background: var(--mist); }
.empty-note p { margin: 0 0 .5rem; }
.past-heading { margin-top: 2.5rem; }
.past-events { margin: 0; color: var(--muted); }
.past-events time { font-weight: 700; color: var(--ink); margin-right: .5rem; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gallery--square { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--square .gallery__item img { aspect-ratio: 1; }
.gallery__item a { display: block; }
.gallery__item a:hover img { opacity: .88; }
.gallery__caption { margin: .4rem 0 0; font-size: .88rem; color: var(--muted); }
.block--gallery.is-empty { display: none; }
@media (max-width: 860px) { .gallery--square { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Grade-band links */
.band-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.band-links a {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  padding: 1.25rem; background: var(--navy); color: var(--white); text-decoration: none;
  border-bottom: 4px solid var(--sky);
}
.band-links a:hover { background: var(--blue); color: var(--white); }
.band-links__label { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; }
.band-links__count { color: var(--sky-light); font-size: .92rem; }
@media (max-width: 900px) { .band-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lesson library ---------- */
.library-tools { background: var(--mist); padding: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 2.5rem; }
.grade-picker legend { font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.grade-picker__options { display: flex; flex-wrap: wrap; gap: .4rem; }
.grade-picker label { position: relative; }
.grade-picker input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.grade-picker span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 44px; padding: 0 .85rem;
  border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  font-weight: 800; font-stretch: 112%; border-radius: var(--radius);
}
.grade-picker input:checked + span { background: var(--navy); color: var(--white); }
.grade-picker input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.grade-picker label:hover span { background: var(--foam); }
.grade-picker input:checked:hover + span { background: var(--navy); }
.library-tools__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; margin-top: 1.25rem; }
.library-tools__row .field { margin: 0; }
@media (max-width: 640px) { .library-tools__row { grid-template-columns: 1fr; } }
.lesson-band { margin-bottom: 3rem; }
.lesson-band[hidden] { display: none; }
.lesson-band__title { display: flex; align-items: center; gap: 1rem; }
.lesson-band__title::after { content: ""; flex: 1; height: 2px; background: var(--foam); }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.lessons:empty { display: none; }
.lesson-card { position: relative; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 1.25rem; display: flex; flex-direction: column; }
.lesson-card[hidden] { display: none; }
.lesson-card__grades { margin: 0 0 .5rem; font-weight: 800; color: var(--blue); font-size: .92rem; }
.lesson-card__title { font-size: 1.1rem; margin-bottom: .5rem; }
.lesson-card__title a { color: inherit; text-decoration: none; }
.lesson-card__title a::after { content: ""; position: absolute; inset: 0; }
.lesson-card:hover .lesson-card__title { color: var(--blue); }
.lesson-card:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.lesson-card__summary { font-size: .97rem; }
.lesson-card__meta { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lesson-card__meta li { background: var(--foam); color: var(--navy); font-size: .82rem; font-weight: 600; padding: .2rem .55rem; border-radius: var(--radius); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lesson-facts { background: var(--mist); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.lesson-facts dl { margin: 0 0 1.25rem; }
.lesson-facts dl div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.lesson-facts dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.lesson-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.downloads { padding-left: 1.1em; }
.lesson-help { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-facts { position: static; } }

/* News */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.news-item { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.news-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-item__meta { color: var(--muted); font-weight: 600; margin-bottom: .4rem; }
.news-item h2 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover { color: var(--blue); }
.post-image { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 2rem; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d8ea; }
.footer-news { border-bottom: 1px solid rgba(255,255,255,.12); padding: 2.75rem 0; }
.footer-news__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center; }
.footer-news__heading { color: var(--white); font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: .35rem; }
.footer-news p { margin: 0; }
.newsletter__label { display: block; font-weight: 700; color: var(--white); font-size: .92rem; margin-bottom: .4rem; }
.newsletter__row { display: flex; gap: .6rem; }
.newsletter__row input { border-color: transparent; }
.newsletter__row .btn { white-space: nowrap; flex: none; }
.newsletter .form-status { min-height: 0; margin-top: .5rem; }
.newsletter .form-status.is-ok { color: var(--sky-light); }
.newsletter .form-status.is-error { color: #ffb4a3; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 2.5rem 4rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 88px; }
.footer-brand__word { font-stretch: 125%; font-weight: 900; text-transform: uppercase; color: var(--white); font-size: 1.15rem; line-height: 1; margin: .5rem 0 1rem; }
.footer-brand p { font-size: .95rem; }
.footer-email { color: var(--white); font-weight: 700; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; color: var(--white);
}
.footer-social a:hover { background: var(--white); color: var(--navy); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.footer-col__heading { font-size: .85rem; color: var(--white); padding-bottom: .6rem; border-bottom: 2px solid var(--sky); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #dbe8f6; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-base { background: var(--deep); padding: 1.1rem 0; font-size: .9rem; }
.footer-base__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-base p { margin: 0; }
.footer-base a { color: #dbe8f6; }
@media (max-width: 1000px) { .footer-main { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .footer-news__inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .newsletter__row { flex-direction: column; } }

@media print {
  .site-header, .site-footer, .tideline, .btn-row { display: none !important; }
}
