/* ===================================================================
   TOREE — shared styles
   Palette from the brochure and logo: signal blue and white, a red
   accent from the logo type, and a warm paper tone between sections.
   Fonts are loaded with <link> tags in each page head.
=================================================================== */

:root {
  /* Brand. Every blue here is measured from Toree Brochure Nov24.pdf:
     #006BA6 is the cover field and the back-page contact block, and
     #2B2873 is the colour of the About Us, Vision, Mission, Values and
     Goals headings. --blue-deep is the one derived value, a darkened
     #006BA6 used only where two blue blocks need to sit apart. */
  --blue: #006BA6;
  --blue-deep: #004D79;
  --indigo: #2B2873;
  --blue-mid: #0A5378;
  --blue-pale: #E7F1F7;
  --red: #E2231A;
  --sand: #F6F2E9;
  --sand-deep: #EDE6D7;

  /* Ink and surfaces */
  --ink: #17242C;
  --ink-soft: #4B5D67;
  --ink-faint: #5F707A;
  --white: #FFFFFF;
  --line: rgba(0, 107, 166, 0.18);
  --line-soft: rgba(0, 107, 166, 0.10);

  /* Ink on dark grounds */
  --on-dark: #FFFFFF;
  --on-dark-soft: #DCEDF8;
  --on-dark-faint: #CEEBFD;
  --sky: #D5EBFA;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --t-h1: clamp(2.25rem, 1.55rem + 2.9vw, 4rem);
  --t-h2: clamp(1.65rem, 1.3rem + 1.5vw, 2.5rem);
  --t-h3: clamp(1.15rem, 1.06rem + 0.35vw, 1.35rem);
  --t-lede: clamp(1.06rem, 0.99rem + 0.32vw, 1.25rem);
  --t-small: 0.9rem;

  /* Rhythm */
  --gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --section-y: clamp(3.75rem, 2.4rem + 5vw, 6.5rem);
  --max: 1180px;
  --measure: 64ch;
  --header-h: 74px;
  --radius: 3px;
  --shadow: 0 18px 44px -22px rgba(0, 45, 72, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* The width and height attributes on each <img> are kept so the browser
   reserves space before the file loads. height:auto hands the final say
   back to the aspect-ratio set further down; rules that need a fixed
   height (the hero strip) set one of their own. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--indigo);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}
.wrap.narrow { max-width: 780px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--indigo);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { margin: 0 0 1.15em; max-width: var(--measure); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.lede { font-size: var(--t-lede); color: var(--ink); line-height: 1.55; }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--blue); color: var(--white); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  flex: none;
  height: 2px;
  width: 34px;
  background: currentColor;
}
.on-dark .eyebrow, .deep .eyebrow, .page-hero .eyebrow { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-light { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(20px, 5vw, 32px);
  max-width: var(--max);
  margin-inline: auto;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  flex: none;
}
.brand-text { font-family: var(--serif); color: var(--white); line-height: 1.15; }
.brand-text strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-top: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.09); }
.main-nav a[aria-current="page"] { color: var(--white); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.16s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 10px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .main-nav a { padding: 13px 8px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"]::after { left: 8px; right: auto; width: 26px; bottom: 6px; }
  .brand-text small { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 0; /* the inner block carries its own spacing */
  background: var(--blue);
  background-image:
    radial-gradient(closest-side at 84% 18%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(closest-side at 6% 92%, rgba(0, 61, 96, 0.30), transparent 72%);
  color: var(--white);
}
.hero-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 1.6rem + 5vw, 5.5rem) clamp(20px, 5vw, 32px) clamp(3.25rem, 2rem + 5vw, 5.75rem);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 13ch; margin-bottom: 0.42em; }
.hero .lede { color: var(--on-dark-soft); max-width: 48ch; }
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--sky);
  margin: 0 0 14px;
  max-width: none;
}
.hero-figure { position: relative; max-width: 470px; margin-left: auto; width: 100%; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 22px -20px -20px 22px;
  border: 2px solid rgba(226, 35, 26, 0.85);
  border-radius: var(--radius);
  z-index: 1;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--red);
}
.hero-strip img {
  width: 100%;
  height: clamp(120px, 13vw, 190px);
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-figure { max-width: 420px; }
  .hero-figure img { aspect-ratio: 3 / 2; }
  .hero-figure::before { inset: 16px -14px -14px 16px; }
}
@media (max-width: 640px) {
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-strip img:nth-child(n + 4) { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--blue);
  background-image: radial-gradient(closest-side at 80% 8%, rgba(255, 255, 255, 0.10), transparent 72%);
  color: var(--white);
  padding: clamp(3rem, 2rem + 4vw, 4.75rem) 0 clamp(3.25rem, 2.2rem + 4vw, 5rem);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.35em; }
.page-hero p { color: var(--on-dark-soft); font-size: var(--t-lede); max-width: 56ch; }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
section.alt { background: var(--sand); }
section.deep {
  background: var(--blue-deep);
  background-image: radial-gradient(closest-side at 15% 0%, rgba(0, 107, 166, 0.55), transparent 72%);
  color: var(--on-dark-soft);
}
section.deep h2, section.deep h3 { color: var(--white); }
section.deep p { color: var(--on-dark-soft); }
section.tight { padding-top: 0; }

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.section-head p { font-size: var(--t-lede); }
.section-head h2 { margin-bottom: 0.45em; }

.rule-top { border-top: 1px solid var(--line); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: clamp(26px, 2vw, 36px) clamp(22px, 1.8vw, 32px);
  transition: background 0.2s ease;
}
.pillar:hover { background: var(--blue-pale); }
.alt .pillar { background: var(--sand); }
.alt .pillar:hover { background: var(--white); }
.pillar .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.98rem; margin-bottom: 0; }

@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-child, .feature-row.no-rule { border-top: none; padding-top: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature-media.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feature-media.duo img { aspect-ratio: 4 / 5; }
.feature-media.wide img { aspect-ratio: 16 / 10; }

figure { margin: 0; }
figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 10px;
  line-height: 1.45;
  max-width: 46ch;
}
.deep figcaption { color: var(--on-dark-faint); }

.kicker {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.feature-text h2, .feature-text h3 { margin-bottom: 0.5em; }
.feature-text ul {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.feature-text li { margin-bottom: 8px; }
.feature-text li::marker { color: var(--red); }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-media { order: 1; }
  .feature-row.reverse .feature-text { order: 2; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Zoomable images */
.zoom {
  cursor: zoom-in;
  transition: opacity 0.18s ease, transform 0.25s ease;
}
.zoom:hover { opacity: 0.92; }

/* ---------- Quote ---------- */
.quote-block {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  align-items: center;
}
.quote-block img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.quote-block blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--indigo);
  position: relative;
}
.quote-block blockquote p { color: inherit; max-width: 46ch; font-size: inherit; }
.quote-block cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--indigo);
  display: block;
  padding-top: 16px;
  border-top: 2px solid var(--red);
  width: fit-content;
}
.quote-block cite span {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .quote-block { grid-template-columns: 1fr; }
  .quote-block img { max-width: 220px; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 0.6rem + 2.5vw, 2.5rem);
}
.stat { border-top: 2px solid rgba(255, 255, 255, 0.28); padding-top: 18px; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 6px;
}
.stat span { color: var(--on-dark-soft); font-size: 0.94rem; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  margin: 0;
  background: var(--line-soft);
  border-block: 1px solid var(--line);
}
.team-grid > div { background: var(--white); padding: 20px 22px 20px 0; }
.alt .team-grid > div { background: var(--sand); }
.team-grid dt {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--indigo);
}
.team-grid dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
.info-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(26px, 2.5vw, 38px);
}
.info-card h2 { font-size: 1.35rem; margin-bottom: 22px; }
.info-line { padding: 14px 0; border-top: 1px solid var(--line); }
.info-line:first-of-type { border-top: none; padding-top: 0; }
.info-line strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.info-line span { color: var(--ink-soft); display: block; }
.info-line a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.info-line a:hover { color: var(--blue); border-color: currentColor; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Section nav (Our Work) ---------- */
.section-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}
.section-nav .wrap {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.section-nav a {
  white-space: nowrap;
  padding: 15px 14px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.section-nav a:hover { color: var(--blue); }
.section-nav a.is-current { color: var(--indigo); font-weight: 600; border-bottom-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: var(--on-dark-soft);
  padding: clamp(2.75rem, 2rem + 3vw, 4rem) 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-brand img { height: 42px; width: 42px; border-radius: 50%; background: var(--white); padding: 2px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.2rem; color: var(--white); letter-spacing: 0.04em; }
.site-footer p { color: var(--on-dark-faint); font-size: 0.92rem; max-width: 38ch; }
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--on-dark-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1200px);
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 25, 38, 0.92); }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}
.lightbox figcaption {
  color: var(--on-dark-soft);
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  max-width: none;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Reveal on scroll ----------
   Only hidden when scripting is available to reveal it again, so the
   page stays fully readable if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .section-nav, .hero-strip, .btn, .lightbox, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .page-hero, section.deep, .site-footer {
    background: none !important;
    color: #000 !important;
  }
  .hero h1, .page-hero h1, section.deep h2, .footer-brand strong { color: #000 !important; }
  section { padding: 1.25rem 0; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
