/* ==========================================================================
   Golden Bear Storage — modern static site
   Theme: white + California Gold (#FDB515) + Berkeley Blue (#003262)
   Author: ShaferTech
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --blue-900: #00233f;
  --blue-800: #003262; /* Berkeley Blue */
  --blue-700: #0a4a86;
  --blue-600: #1561a8;
  --blue-100: #e3eef7;
  --blue-050: #f2f7fb;

  --gold-600: #c98a00;
  --gold-500: #fdb515; /* California Gold */
  --gold-400: #ffc845;
  --gold-100: #fff3d6;
  --gold-050: #fffaf0;

  --white: #ffffff;
  --ink-900: #11233a;
  --ink-700: #324a63;
  --ink-500: #5d738c;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;

  /* Semantic */
  --color-text: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-bg: var(--bg);
  --color-surface: var(--white);
  --color-primary: var(--blue-800);
  --color-accent: var(--gold-500);
  --color-border: var(--line);
  --color-link: var(--blue-700);

  /* Typography (self-hosted system stack — fast, private, no network dependency) */
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 1rem;

  /* a11y-tunable typography (overridden by accessibility widget) */
  --a11y-scale: 1;        /* set on <html> as inline style */
  --a11y-line: 1.65;      /* body line-height */
  --a11y-letter: normal;  /* letter-spacing */

  /* Spacing / shape */
  --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;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 58, 0.06), 0 1px 3px rgba(16, 35, 58, 0.08);
  --shadow: 0 8px 24px rgba(16, 35, 58, 0.10);
  --shadow-lg: 0 22px 48px rgba(16, 35, 58, 0.16);
  --container: 1200px;
  --container-wide: 1480px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --t-slow: 520ms;
}

/* Root font scaling for the "Text size" accessibility control */
html {
  font-size: calc(100% * var(--a11y-scale, 1));
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--a11y-line, 1.65);
  letter-spacing: var(--a11y-letter, normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-link); text-decoration-color: color-mix(in srgb, var(--color-link) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
ul, ol { padding-left: 1.25rem; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--blue-800);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { color: var(--ink-700); }

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

.skip-link {
  position: fixed;
  top: -200px;
  left: 16px;
  z-index: 1000;
  background: var(--blue-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--bg-alt); }
.section--blue {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(253,181,21,0.16), transparent 60%),
    linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #eaf2fa;
}
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue p { color: #c4d6e8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.section--blue .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.section-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.6rem); margin-top: 0.5rem; }
.section-head p { margin-top: 0.85rem; font-size: 1.06rem; }
.lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem); color: var(--ink-700); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
    background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--blue-900);
  box-shadow: 0 10px 22px rgba(253, 181, 21, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 30px rgba(253, 181, 21, 0.45); }

.btn-secondary {
  background: var(--blue-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--blue-700); }

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--blue-800) 22%, transparent);
  color: var(--blue-800);
}
.btn-ghost:hover { border-color: var(--blue-800); background: var(--blue-050); }

.section--blue .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--blue .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: none; line-height: 1.05; }
.brand-text strong { display: block; font-family: var(--font-display); color: var(--blue-800); font-size: 1.02rem; }
.brand-text span { font-size: 0.72rem; color: var(--gold-600); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.nav-links {
  list-style: none;
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-700);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-links a:hover { background: var(--blue-050); color: var(--blue-800); }
.nav-links a[aria-current="page"] { color: var(--blue-800); background: var(--gold-100); }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-800);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(0, 35, 63, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  transform: translateY(-14px);
  transition: transform var(--t) var(--ease);
}
.mobile-nav.open .mobile-nav-panel { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue-800);
}
.mobile-nav a[aria-current="page"] { color: var(--gold-600); }
.mobile-nav .btn { width: 100%; margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(900px 540px at 80% -10%, rgba(253,181,21,0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(21,97,168,0.12), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--blue-050));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { max-width: 60ch; }
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.7rem);
  letter-spacing: -0.02em;
}
.hero h1 .hl {
  background: var(--gold-400);
  color: var(--blue-900);
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.18em;
  border-radius: 0.14em;
}
.hero p.lede { margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink-700); font-size: 0.92rem; }
.hero-trust svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }

/* Hero media (animated SVG scene with Ken Burns) */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  aspect-ratio: 4 / 3;
}
.hero-media .kenburns {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
.hero-media svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-badge strong { font-family: var(--font-display); color: var(--blue-800); font-size: 1.4rem; display: block; line-height: 1; }
.hero-badge span { font-size: 0.78rem; color: var(--ink-500); }
.hero-badge .star { color: var(--gold-500); }

@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}

/* ---------- Cards / features ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-500) 40%, var(--line)); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-100), var(--gold-050));
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.22rem; }
.card p { margin-top: 0.5rem; font-size: 0.98rem; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem); color: var(--gold-500); line-height: 1; }
.section--blue .stat .num { color: var(--gold-400); }
.stat .label { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-500); }
.section--blue .stat .label { color: #b9cde0; }

/* ---------- Interactive storage units (SVG doors) ---------- */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.unit {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.unit:hover, .unit:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-500) 55%, var(--line)); }
.unit-visual { position: relative; }
.unit-visual svg { width: 100%; height: auto; display: block; }
.unit-toggle {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
}
.unit-toggle:focus-visible { outline: 3px solid var(--gold-500); outline-offset: -4px; border-radius: var(--radius); }
.unit-tag {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  z-index: 3;
  background: var(--blue-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.unit-price {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 3;
  background: var(--gold-500);
  color: var(--blue-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.unit-body { padding: 1.1rem 1.2rem 1.3rem; }
.unit-body h3 { font-size: 1.15rem; }
.unit-body .dims { color: var(--gold-600); font-weight: 600; font-size: 0.9rem; margin-top: 0.15rem; }
.unit-body p { font-size: 0.95rem; margin-top: 0.55rem; }
.unit-hint {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.82rem; font-weight: 600; color: var(--blue-700);
}
.unit-hint svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.unit[data-open="true"] .unit-hint svg { transform: rotate(180deg); }

/* SVG door mechanics (driven by data-open on .unit) */
.door-panel {
  transition: transform var(--t-slow) var(--ease), opacity var(--t) var(--ease);
  transform-box: fill-box;
  transform-origin: top center;
}
.unit[data-open="true"] .door-panel { transform: translateY(-91%) scaleY(0.94); }
.door-shadow { opacity: 0; transition: opacity var(--t) var(--ease); }
.unit[data-open="true"] .door-shadow { opacity: 0.5; }
.unit-contents { opacity: 0; transition: opacity var(--t) var(--ease) 120ms; }
.unit[data-open="true"] .unit-contents { opacity: 1; }
/* Space is always reserved so opening a door never changes card height
   (no layout shift / button jump). The pills brighten when the door opens. */
.unit-reveal { display: block; }
.unit-reveal .specs {
  list-style: none; padding: 0; margin: 0.85rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  opacity: 0.45;
  transition: opacity var(--t) var(--ease);
}
.unit[data-open="true"] .unit-reveal .specs { opacity: 1; }
.unit-reveal .specs li {
  font-size: 0.78rem; font-weight: 600;
  background: var(--blue-050); color: var(--blue-800);
  padding: 0.28rem 0.6rem; border-radius: var(--radius-pill);
}

/* ---------- Tables (rates, mailboxes) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--white); }
table.data caption { text-align: left; padding: 1rem 1.1rem 0; color: var(--ink-500); font-size: 0.9rem; }
table.data th, table.data td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--blue-800); color: #fff; font-family: var(--font-display); font-weight: 600; }
table.data thead th:first-child { border-top-left-radius: 0; }
table.data tbody th { font-weight: 600; color: var(--blue-800); }
table.data tbody tr:nth-child(even) { background: var(--bg-alt); }
table.data tbody tr:hover { background: var(--gold-050); }
table.data td { font-variant-numeric: tabular-nums; }

/* ---------- Supplies / list cards ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-050); color: var(--blue-700); display: grid; place-items: center; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.02rem; }
.tile .dim { color: var(--gold-600); font-weight: 600; font-size: 0.82rem; }
.tile p { font-size: 0.9rem; margin-top: 0.25rem; }

/* ---------- Pill list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--gold-500); margin-top: 1px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(253,181,21,0.22), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900));
  color: #fff;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.3rem); }
.cta-band p { color: #cfe0f0; margin-top: 0.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Contact / map ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
.contact-card { display: grid; gap: 1.1rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.contact-item .ic svg { width: 24px; height: 24px; }
.contact-item h3 { font-size: 1.02rem; }
.contact-item a { font-weight: 600; }
.contact-item p, .contact-item address { font-style: normal; color: var(--ink-700); margin-top: 0.15rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-700); }
.hours-table th { font-weight: 600; color: var(--blue-800); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: clamp(248px, 30vw, 330px);
  background:
    radial-gradient(700px 380px at 85% -30%, rgba(253,181,21,0.16), transparent 60%),
    linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff;
  padding-block: clamp(2rem, 5vw, 3rem);
}
.page-hero > .container { width: 100%; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); }
.page-hero p { color: #cbdcee; margin-top: 0.8rem; max-width: 60ch; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--gold-400); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; margin-bottom: 0.6rem; }
.breadcrumbs a { color: #cbdcee; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span { color: #8fb0cf; }

/* decorative blob in page hero */
.page-hero-deco { position: absolute; right: -40px; bottom: -60px; width: 320px; opacity: 0.25; pointer-events: none; }
.page-hero-deco svg { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #c4d6e8;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; font-family: var(--font-display); }
.footer-brand img { height: 50px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-brand p { color: #9fbada; margin-top: 0.9rem; font-size: 0.95rem; max-width: 38ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: #c4d6e8; text-decoration: none; font-size: 0.96rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact { display: grid; gap: 0.6rem; font-size: 0.95rem; }
.footer-contact a { color: #c4d6e8; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  justify-content: space-between;
  font-size: 0.85rem; color: #87a4c4;
}
.footer-bottom a { color: #87a4c4; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* float animation for decorative svgs */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: float 6s ease-in-out infinite; }

/* slow spin (sun rays) + gentle drift (clouds) for SVG scenes */
@keyframes spin360 { to { transform: rotate(360deg); } }
.spin-slow { animation: spin360 90s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(26px); } }
.drift { animation: drift 9s ease-in-out infinite alternate; }
.drift-2 { animation: drift 13s ease-in-out infinite alternate; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 640px) {
  .brand-text { display: block; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .cta-band { grid-template-columns: 1.4fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1440px) {
  .container { max-width: var(--container-wide); }
  .hero h1 { font-size: clamp(3rem, 2rem + 2vw, 4.2rem); }
}

/* small screens: stack grids */
@media (max-width: 879px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tile-grid, .units-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ACCESSIBILITY DISPLAY MODES  (toggled by the a11y widget on <html>)
   ========================================================================== */

/* Line spacing */
html.ls-relaxed { --a11y-line: 1.9; }
html.ls-loose   { --a11y-line: 2.3; }
html.ls-relaxed p, html.ls-loose p,
html.ls-relaxed li, html.ls-loose li { line-height: var(--a11y-line); }

/* Letter spacing */
html.tr-wide   { --a11y-letter: 0.06em; }
html.tr-wider  { --a11y-letter: 0.12em; }
html.tr-wide body, html.tr-wider body { letter-spacing: var(--a11y-letter); }

/* Color & contrast modes (filters applied to page wrapper, not the widget) */
html.cc-mono   #app { filter: grayscale(1); }
html.cc-muted  #app { filter: saturate(0.55); }
html.cc-vivid  #app { filter: saturate(1.55) contrast(1.04); }

/* High contrast theme */
html.cc-contrast {
  --color-text: #000000;
  --color-muted: #1a1a1a;
  --ink-900: #000; --ink-700: #000; --ink-500: #161616;
  --color-bg: #ffffff;
  --bg-alt: #ffffff;
  --color-surface: #ffffff;
  --line: #000000;
  --color-link: #00366e;
  --blue-800: #00204a;
}
html.cc-contrast body { background: #fff; }
html.cc-contrast .card,
html.cc-contrast .tile,
html.cc-contrast .unit,
html.cc-contrast .table-wrap,
html.cc-contrast .nav-toggle { border: 2px solid #000 !important; box-shadow: none !important; }
html.cc-contrast .section--blue,
html.cc-contrast .page-hero,
html.cc-contrast .cta-band,
html.cc-contrast .site-footer,
html.cc-contrast .hero-media {
  background: #00204a !important; color: #fff !important;
}
html.cc-contrast .section--blue p,
html.cc-contrast .page-hero p,
html.cc-contrast .cta-band p,
html.cc-contrast .site-footer { color: #fff !important; }
html.cc-contrast a { text-decoration: underline; }
html.cc-contrast .btn-primary { background: #fdb515; color: #000; border-color: #000; box-shadow: none; }
html.cc-contrast .btn-secondary { background: #00204a; color: #fff; border-color: #000; }

/* Tools */
html.tool-links a:not(.btn) {
  text-decoration: underline !important;
  text-underline-offset: 2px;
  background: color-mix(in srgb, var(--gold-400) 35%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-500) 45%, transparent);
  border-radius: 3px;
}
html.tool-headings :is(h1,h2,h3,h4,h5,h6) {
  outline: 2px dashed var(--gold-500);
  outline-offset: 3px;
  background: color-mix(in srgb, var(--gold-100) 60%, transparent);
}
html.tool-legible, html.tool-legible body {
  font-family: "Atkinson Hyperlegible", Verdana, Tahoma, system-ui, sans-serif !important;
}
html.tool-legible :is(h1,h2,h3,h4,h5,h6) { font-family: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif !important; }
html.tool-dyslexia, html.tool-dyslexia body,
html.tool-dyslexia :is(h1,h2,h3,h4,h5,h6) {
  font-family: "OpenDyslexic", "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important;
  --a11y-letter: 0.04em;
  word-spacing: 0.1em;
}
html.tool-cursor, html.tool-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4 L8 38 L17 30 L23 44 L30 41 L24 27 L36 27 Z' fill='%23fdb515' stroke='%23003262' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
html.tool-leftalign :is(p,h1,h2,h3,h4,h5,h6,li,td,th,.section-head,.hero-copy,.eyebrow) {
  text-align: left !important;
  margin-inline: 0 !important;
}
html.tool-hideimg img,
html.tool-hideimg .hero-media,
html.tool-hideimg .page-hero-deco,
html.tool-hideimg [data-deco] { visibility: hidden !important; }
html.tool-hideimg .hero-media { background: var(--blue-050) !important; }

/* Reading guide */
.reading-guide {
  position: fixed;
  left: 0; right: 0;
  height: 2.6rem;
  z-index: 9990;
  pointer-events: none;
  background: rgba(0, 35, 63, 0.10);
  border-top: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  display: none;
  transform: translateY(-50%);
}
html.tool-guide .reading-guide { display: block; }

/* ---------- Reduced motion (system pref OR "Pause animations" tool) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
html.tool-noanim *, html.tool-noanim *::before, html.tool-noanim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.tool-noanim .reveal { opacity: 1 !important; transform: none !important; }
html.tool-noanim .kenburns { animation: none !important; }

@media print {
  .site-header, .mobile-nav, .a11y-fab, .a11y-panel, .reading-guide, .site-footer .footer-bottom { display: none !important; }
}
