/* =========================================================================
   Siganda Secondary School — Brand & Design System
   Design language: a clean school identity built from deep green, sky blue,
   yellow, and white, with crisp editorial type and strong image-led heroes.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Color tokens ---- */
  --ink: #063d2d;
  --ink-soft: #0f5f46;
  --clay: #0f8f4d;
  --clay-deep: #066b38;
  --clay-soft: rgba(15, 143, 77, .12);
  --gold: #f2c230;
  --gold-soft: rgba(242, 194, 48, .2);
  --sage: #0ea5e9;
  --sage-deep: #0369a1;
  --sage-soft: rgba(14, 165, 233, .14);
  --paper: #eef9ff;
  --paper-deep: #d8f2ff;
  --paper-high: #ffffff;
  --surface: #ffffff;
  --muted: #43645c;
  --line: rgba(6, 61, 45, .16);
  --line-strong: rgba(6, 61, 45, .3);
  --shadow-sm: 0 6px 18px rgba(3, 84, 63, .08);
  --shadow: 0 20px 46px rgba(3, 84, 63, .16);
  --radius: 3px;
  --radius-lg: 4px;
  --hero-image: none;
  --hero-position: center;

  /* ---- Type tokens ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background:
    linear-gradient(180deg, var(--paper-high) 0, var(--paper) 360px, var(--paper) 100%);
  overflow-x: hidden;
}

/* Subtle school-paper texture, faint, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(14, 165, 233, .07) 0 1px, transparent 1px 46px);
}

body > * {
  position: relative;
  z-index: 1;
}

img { display: block; max-width: 100%; }

a { color: var(--clay); }
a:hover { color: var(--clay-deep); }

::selection { background: var(--gold); color: var(--ink); }

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--paper-high);
  background: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

.muted { color: var(--muted); }

/* ---------------------------------------------------------------------
   Eyebrow / labels — set like a stamped ledger entry
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--clay-deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

/* ---------------------------------------------------------------------
   Topbar
   --------------------------------------------------------------------- */
.topbar {
  display: none;
  color: var(--paper-high);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 40px; font-family: var(--font-mono); }
.topbar__link, .topbar__social {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: .01em;
}
.topbar__link i, .topbar__social i { color: var(--gold); }
.topbar__spacer { flex: 1; }
.topbar__social {
  justify-content: center; width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header__inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 84px; padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand__logo { width: 46px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.brand__text { display: flex; min-width: 0; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.brand__tag { margin-top: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.nav { display: none; align-items: center; gap: 2px; }
.nav__link {
  position: relative; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--paper-deep); }
.nav__link--active { color: var(--clay-deep); }
.nav__link--active::after {
  content: ""; position: absolute; right: 12px; bottom: 6px; left: 12px; height: 2px;
  background: var(--clay); border-radius: 999px;
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--surface); cursor: pointer;
}
.nav-toggle i { font-size: 19px; }

.nav.nav--open {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0;
  display: grid; gap: 3px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-high); box-shadow: var(--shadow);
}
.nav.nav--open .nav__link { width: 100%; padding: 13px 12px; }

.cta {
  display: none; align-items: center; gap: 9px; padding: 12px 16px;
  border-radius: var(--radius); color: var(--paper-high); background: var(--clay);
  text-decoration: none; font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
}
.cta:hover { color: var(--paper-high); background: var(--clay-deep); }

/* ---------------------------------------------------------------------
   Official seal — signature element, reused across the site
   --------------------------------------------------------------------- */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-soft);
  background: var(--paper-high);
  flex: 0 0 auto;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.seal svg { grid-area: 1 / 1; width: 100%; height: 100%; }
.seal__crest { grid-area: 1 / 1; width: 40px; height: 48px; object-fit: contain; z-index: 1; }
.seal--sm { width: 108px; height: 108px; }
.seal--sm .seal__crest { width: 30px; height: 36px; }

/* ---------------------------------------------------------------------
   Hero (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 0;
  color: var(--paper-high);
  background-color: var(--ink);
  background-image:
    linear-gradient(102deg, rgba(6, 61, 45, .9) 0%, rgba(6, 61, 45, .72) 48%, rgba(3, 105, 161, .42) 100%),
    var(--hero-image);
  background-position: center, var(--hero-position);
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero--home { --hero-image: url("../img/hero2.jpg"); }
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}
.hero__content {
  padding: 40px 0 56px;
  min-width: 0;
}
.hero__content .eyebrow { color: var(--gold); }
.hero__content .eyebrow::before { background: var(--gold); }

.hero h1 {
  margin: 0;
  color: var(--paper-high);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(6, 61, 45, .34);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero__lead {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17.5px;
  text-shadow: 0 2px 12px rgba(6, 61, 45, .28);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.proof-item { display: flex; flex-direction: column; gap: 4px; }
.proof-item strong {
  font-family: var(--font-display); color: var(--paper-high); font-size: 24px; font-weight: 700;
}
.proof-item span {
  font-family: var(--font-mono); color: rgba(255, 255, 255, .68);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

.hero__media {
  position: relative;
  min-height: 320px;
  background: var(--ink);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 61, 45, .55), rgba(6, 61, 45, 0) 45%);
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 18px 20px;
  color: var(--paper-high);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--paper-high);
  background-color: var(--ink);
  background-image:
    linear-gradient(0deg, rgba(6, 61, 45, .82) 8%, rgba(6, 61, 45, .4) 55%, rgba(3, 105, 161, .48)),
    var(--hero-image);
  background-position: center, var(--hero-position);
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  border-bottom: 1px solid rgba(6, 61, 45, .24);
}
.page-hero--about { --hero-image: url("../img/school-buildings.jpg"); }
.page-hero--academics { --hero-image: url("../img/classroom-blocks.jpg"); }
.page-hero--admissions { --hero-image: url("../img/junior-students.jpg"); }
.page-hero--gallery { --hero-image: url("../img/group-of-girls-students.jpg"); }
.page-hero--contact { --hero-image: url("../img/school-bus.jpg"); }
.page-hero__media,
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-position: var(--hero-position);
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero__media img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position);
  display: block;
}
.page-hero__media::after,
.hero-media::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(6, 61, 45, .82) 8%, rgba(6, 61, 45, .38) 55%, rgba(3, 105, 161, .42));
}
.page-hero__content {
  position: relative; z-index: 2;
  max-width: 760px;
  padding: 90px 0 40px;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 {
  margin: 0;
  color: var(--paper-high);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(6, 61, 45, .34);
}
.page-hero .lead {
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 2px 12px rgba(6, 61, 45, .28);
}

.lead { max-width: 640px; margin: 16px 0 0; font-size: 17px; color: var(--muted); }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--soft { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--paper-high); }
.section--ink .muted { color: rgba(255, 255, 255, .72); }

.section__head { max-width: 720px; margin-bottom: 30px; }
.section__head h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.16;
}
.section--ink .section__head h2 { color: var(--paper-high); }
.section__head p { margin: 0; color: var(--muted); font-size: 16px; }

h1, h2, h3 { font-family: var(--font-display); }

/* ---------------------------------------------------------------------
   Grids / cards
   --------------------------------------------------------------------- */
.grid2, .grid3, .grid4 { display: grid; gap: 20px; }

.card, .feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card { padding: 26px; }
.feature {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-top: 3px solid var(--sage);
}
.feature--clay { border-top-color: var(--clay); }
.feature--gold { border-top-color: var(--gold); }

.feature h3, .card h2 { margin: 0 0 10px; line-height: 1.25; color: var(--ink); font-weight: 700; font-size: 20px; }
.feature p, .card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 12px; }

.card__icon, .feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: var(--radius);
  color: var(--paper-high); background: var(--ink);
  font-size: 16px;
}
.card__icon { color: var(--clay-deep); background: var(--clay-soft); }
.feature__icon { background: var(--sage); }
.feature--clay .feature__icon { background: var(--clay); }
.feature--gold .feature__icon { background: var(--gold); color: var(--ink); }

.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; height: 190px; object-fit: cover; }
.card--photo .card__body { padding: 22px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer;
}
.btn--primary { color: var(--paper-high); background: var(--clay); border-color: var(--clay); }
.btn--primary:hover { color: var(--paper-high); background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--secondary { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.btn--secondary:hover { color: var(--ink); background: #d9a914; }
.btn--ghost { color: var(--paper-high); background: transparent; border-color: rgba(255, 255, 255, .58); }
.btn--ghost:hover { color: var(--ink); background: var(--paper-high); border-color: var(--paper-high); }
.btn--outline { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--outline:hover { color: var(--ink); background: var(--paper-deep); }
.btn--lg { min-height: 54px; padding: 15px 22px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  color: var(--clay-deep); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
.link:hover { color: var(--clay); gap: 11px; transition: gap .15s ease; }

/* ---------------------------------------------------------------------
   Split layout / signature panel
   --------------------------------------------------------------------- */
.split { display: grid; gap: 30px; align-items: center; }

.signature-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: var(--radius);
  color: var(--paper-high);
  background: var(--ink);
}
.signature-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 40px);
}
.signature-panel > * { position: relative; z-index: 1; }
.signature-panel h2 { margin: 0; max-width: 480px; font-size: 27px; line-height: 1.24; font-weight: 700; }
.signature-panel p { margin: 14px 0 0; color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------------
   Quicklinks
   --------------------------------------------------------------------- */
.quicklinks { display: grid; gap: 12px; }
.quicklink {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; background: var(--surface); text-decoration: none;
}
.quicklink:hover { color: inherit; border-color: var(--clay); }
.quicklink__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  color: var(--paper-high); background: var(--sage);
}
.quicklink__title { display: block; color: var(--ink); font-weight: 700; }
.quicklink__desc { display: block; color: var(--muted); font-size: 13px; }
.quicklink__arrow { color: var(--muted); }

/* ---------------------------------------------------------------------
   Callout
   --------------------------------------------------------------------- */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--clay);
  border-radius: var(--radius); background: var(--surface);
}
.callout__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--paper-high); background: var(--clay);
}
.callout__body { flex: 1; }
.callout h3, .callout p { margin: 0; }
.callout h3 { color: var(--ink); font-size: 18px; }
.callout p { color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------------
   Stat strip ("the record")
   --------------------------------------------------------------------- */
.record { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-bottom: 44px; }
.record__row { display: grid; }
.metric {
  position: relative; padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none; }
.metric__value { display: block; color: var(--ink); font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1; }
.metric__label { display: block; margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------------
   Steps (real sequence — admissions)
   --------------------------------------------------------------------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / -1;
  display: grid; place-items: center; width: 46px; height: 46px; align-self: start;
  border-radius: 50%; color: var(--paper-high); background: var(--ink);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
}
.step h3, .step p { grid-column: 2; margin: 0; min-width: 0; }
.step h3 { color: var(--ink); font-size: 17px; }
.step p { margin-top: 4px; color: var(--muted); }

/* ---------------------------------------------------------------------
   Timeline
   --------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-strong); }
.timeline__item { position: relative; padding: 4px 0 26px 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--clay); border: 2px solid var(--paper);
}
.timeline__year { display: block; color: var(--clay-deep); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.timeline__item strong { display: block; margin-top: 4px; color: var(--ink); font-size: 17px; }
.timeline__item span.muted { display: block; margin-top: 4px; }

/* ---------------------------------------------------------------------
   Pills / list
   --------------------------------------------------------------------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  background: var(--paper-high); font-size: 13.5px; font-weight: 600;
}
.pill i { color: var(--sage-deep); }

.list { margin: 16px 0 0; padding: 0; list-style: none; }
.list li { position: relative; margin: 11px 0; padding-left: 28px; color: var(--muted); }
.list li::before {
  content: "\f00c"; position: absolute; top: 1px; left: 0; color: var(--clay);
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px;
}

/* ---------------------------------------------------------------------
   Gallery
   --------------------------------------------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-btn {
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; cursor: pointer;
}
.filter-btn:hover { border-color: var(--clay); color: var(--clay-deep); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-high); }

.gallery { display: grid; gap: 14px; }
.gallery__item {
  position: relative; min-height: 240px; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink);
}
.gallery__item img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .5s ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: auto 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(6, 61, 45, .9));
}
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item figcaption {
  position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 16px;
  color: var(--paper-high); font-weight: 700; font-size: 14.5px;
}
.gallery__item figcaption span {
  display: block; margin-top: 2px; color: rgba(255, 255, 255, .74);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
}
.gallery__item[hidden] { display: none; }

/* ---------------------------------------------------------------------
   Map / contact
   --------------------------------------------------------------------- */
.map { overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-deep); }
.map iframe { width: 100%; height: 320px; border: 0; }

.contact-list { display: grid; gap: 13px; margin: 18px 0 0; padding: 0; list-style: none; }
.contact-list a, .contact-list span {
  display: inline-flex; align-items: center; gap: 11px; color: var(--ink-soft);
  text-decoration: none; font-weight: 600;
}
.contact-list i { width: 20px; color: var(--clay-deep); text-align: center; }

.form { display: grid; gap: 15px; }
.form label { display: grid; gap: 7px; color: var(--ink-soft); font-weight: 700; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--surface); font: inherit; outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.form__hint { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer { padding: 48px 0 26px; color: var(--paper-high); background: var(--ink); }
.footer a { color: var(--paper-high); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .brand__name { color: var(--paper-high); }
.footer .brand__tag, .footer .muted { color: rgba(255, 255, 255, .68); }
.footer__grid { display: grid; gap: 30px; }
.footer__brand p { max-width: 400px; margin: 14px 0 0; }
.footer__title {
  margin: 0 0 14px; color: var(--paper-high); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14.5px; }
.footer__links i { color: var(--gold); width: 14px; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 8px; margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16); font-family: var(--font-mono); font-size: 12.5px;
  color: rgba(255, 255, 255, .68);
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 640px) {
  .record__row { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
}

@media (min-width: 720px) {
  .topbar { display: block; }
  .hero h1 { font-size: 58px; }
  .page-hero h1 { font-size: 46px; }
  .grid2, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; min-height: 100%; }
  .footer__grid { grid-template-columns: 1.3fr .8fr .9fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero__content { padding: 64px 0 74px; max-width: 620px; }
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1fr .78fr; align-items: stretch; }
  .hero__media { min-height: 100%; }
  .callout { flex-wrap: nowrap; }
}

@media (min-width: 980px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .split--reverse { direction: rtl; }
  .split--reverse > * { direction: ltr; }
  .record__row { grid-template-columns: repeat(4, 1fr); }
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:nth-child(4) { border-right: none; }
  .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .cta { display: inline-flex; }
  .hero h1 { font-size: 66px; }
}

@media (max-width: 719px) {
  .container { width: min(100% - 28px, 1180px); }
  .header__inner { min-height: 72px; }
  .brand__logo { width: 40px; height: 48px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 10px; }
  .hero {
    background-image:
      linear-gradient(0deg, rgba(6, 61, 45, .68) 0%, rgba(3, 105, 161, .42) 100%),
      var(--hero-image);
    background-position: center, center top;
  }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .hero__lead, .lead { font-size: 16px; }
  .hero__actions .btn, .callout .btn { width: 100%; }
  .callout { align-items: flex-start; flex-direction: column; }
  .step { grid-template-columns: 40px 1fr; }
  .step::before { width: 40px; height: 40px; font-size: 12px; }
  .metric { border-right: none !important; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: none; }
}
