/* ==========================================================================
   Master Test and Tag — design system
   Palette grounded in the subject: switchboard navy, hi-vis tag yellow,
   pass green. Type: Archivo (signage), Public Sans (institutional body),
   IBM Plex Mono (tag / certificate data).
   ========================================================================== */

:root {
  --navy:        #0B1622;
  --navy-800:    #122032;
  --navy-700:    #1C3047;
  --steel:       #6E8098;
  --steel-200:   #C4CEDA;
  --paper:       #F6F4EF;
  --white:       #FFFFFF;
  --gold:        #D9B65F;
  --gold-light:  #F0DCA4;
  --gold-dark:   #A8863A;
  --gold-grad:   linear-gradient(135deg, #F0DCA4 0%, #D9B65F 45%, #A8863A 100%);
  --pass:        #16A75C;
  --fail:        #D64545;

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body:    'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 6px;
  --rule: 1px solid var(--steel-200);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--navy); padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 0; }

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

/* ---------- eyebrow / structural labels ----------
   Mono labels read as register entries, not decoration. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: ''; flex: 1; height: 1px; background: var(--steel-200);
}
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::after { background: rgba(255,255,255,.16); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-grad); color: var(--navy); box-shadow: 0 2px 14px rgba(217,182,95,.28); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- header ---------- */
.utility {
  background: #060E17;
  color: var(--steel-200);
  border-bottom: 1px solid rgba(217,182,95,.14);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
}
.utility .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.utility a { color: var(--white); text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility .u-left { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,22,34,.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(217,182,95,.22);
  color: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.site-footer .brand-logo { height: 54px; margin-bottom: 16px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  background: var(--navy); border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--gold);
  font-size: .95rem; letter-spacing: -.04em;
}
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.06rem; line-height: 1.1; letter-spacing: -.02em;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: .62rem; letter-spacing: .13em; color: var(--steel); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a {
  display: block; padding: 10px 13px; text-decoration: none;
  font-weight: 600; font-size: .93rem; border-radius: 4px;
}
.nav a { color: var(--steel-200); }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.07); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); color: var(--gold-light); }

.has-sub > a::after { content: ' ▾'; color: var(--steel); font-size: .7em; }
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--navy-800); border: 1px solid rgba(217,182,95,.22); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  list-style: none; margin: 6px 0 0; padding: 7px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .16s ease;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { font-weight: 500; font-size: .9rem; padding: 9px 12px; }

.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; background: none; color: var(--gold); border: 1px solid rgba(217,182,95,.4);
  border-radius: 5px; padding: 9px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
}

/* ---------- signature element: the compliance tag ----------
   Every NZ tested appliance carries one of these. It is the single
   memorable object in the brand, so it does the heavy lifting. */
.tag {
  width: 260px; flex: none;
  background: var(--gold-grad);
  border-radius: 8px;
  font-family: var(--font-mono);
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
}
.tag-head {
  background: var(--navy); color: var(--gold-light);
  padding: 9px 16px 9px 38px;
  font-size: .68rem; letter-spacing: .2em; font-weight: 500;
}
.tag-head::before {
  content: ''; position: absolute; left: 13px; top: 10px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}
.tag-body { padding: 14px 16px 16px; }
.tag-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .7rem; padding: 5px 0;
  border-bottom: 1px dashed rgba(16,32,47,.28);
}
.tag-row:last-child { border-bottom: 0; }
.tag-row span:first-child { opacity: .68; letter-spacing: .06em; }
.tag-row span:last-child { font-weight: 600; text-align: right; }
.tag-stamp {
  margin-top: 12px; background: var(--pass); color: var(--white);
  text-align: center; padding: 7px; border-radius: 4px;
  font-size: .82rem; letter-spacing: .22em; font-weight: 600;
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* fine schematic grid — reads as switchboard drawing paper */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 70% at 30% 40%, #000 40%, transparent 100%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
  padding-top: clamp(52px, 8vw, 96px); padding-bottom: clamp(52px, 8vw, 96px);
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede { font-size: 1.12rem; color: var(--steel-200); max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-tag { display: flex; justify-content: center; }
.hero-tag .tag { transform: rotate(-3.5deg); animation: settle .8s cubic-bezier(.2,.8,.3,1) both; }
@keyframes settle {
  from { opacity: 0; transform: rotate(-11deg) translateY(-26px); }
  to   { opacity: 1; transform: rotate(-3.5deg) translateY(0); }
}

/* standards strip */
.standards {
  background: var(--navy-800); color: var(--steel-200);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  border-top: 1px solid rgba(255,255,255,.08);
}
.standards .wrap {
  display: flex; gap: 12px 34px; flex-wrap: wrap;
  padding-top: 15px; padding-bottom: 15px;
}
.standards span { display: flex; align-items: center; gap: 8px; }
.standards span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--steel-200); }
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 46px); }
.lede { font-size: 1.1rem; color: var(--navy-700); }
.section-dark .lede { color: var(--steel-200); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
a.card:hover {
  border-color: var(--navy); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,32,47,.09);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; color: var(--navy-700); margin-bottom: 1em; }
.card-more {
  margin-top: auto; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
a.card:hover .card-more { color: var(--navy); }
.card-icon {
  width: 40px; height: 40px; border-radius: 5px; margin-bottom: 16px;
  background: var(--gold-grad); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; font-weight: 600;
}
.card-freq {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--pass); margin-bottom: 10px; text-transform: uppercase;
}

/* ---------- process: a real sequence, so numbering is earned ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 74px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.13);
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 1.5rem; color: var(--gold);
  line-height: 1.1;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.stat-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--steel-200); border: var(--rule); }
.stat { background: var(--white); padding: 22px 20px; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; letter-spacing: -.03em; line-height: 1;
}
.stat span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }

/* ---------- coverage list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; list-style: none; margin: 0; }
.chips a {
  display: block; padding: 9px 15px; border: var(--rule); border-radius: 40px;
  text-decoration: none; font-size: .9rem; font-weight: 600; background: var(--white);
  transition: all .15s ease;
}
.chips a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; color: var(--steel);
}
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { color: var(--navy); }
.faq-answer { padding: 0 40px 20px 0; color: var(--navy-700); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- reviews ---------- */
.review {
  background: var(--white); border: var(--rule); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 16px; font-size: 1rem; color: var(--navy-700); }
.review cite {
  font-style: normal; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .06em; color: var(--steel); margin-top: auto;
}
.review cite b { display: block; font-family: var(--font-body); font-size: .95rem; color: var(--navy); letter-spacing: 0; }

/* ---------- form ---------- */
.form-panel {
  background: var(--white); border: var(--rule); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 7px;
}
.field .req { color: var(--fail); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--steel-200); border-radius: 5px;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .84rem; color: var(--steel); margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px; border-radius: 5px; font-size: .93rem; display: none; }
.form-status.ok { display: block; background: rgba(22,167,92,.1); border: 1px solid var(--pass); }
.form-status.err { display: block; background: rgba(214,69,69,.08); border: 1px solid var(--fail); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-grad); color: var(--navy); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding-top: 42px; padding-bottom: 42px;
}
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn-primary { background: var(--navy); color: var(--gold); }
.cta-band .btn-primary:hover { background: var(--navy-800); }

/* ---------- page header (inner pages) ---------- */
.page-head {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 25% 50%, #000 30%, transparent 100%);
}
.page-head .wrap { position: relative; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.page-head p { color: var(--steel-200); max-width: 62ch; font-size: 1.08rem; margin-bottom: 0; }
.crumbs {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 18px;
}
.crumbs a { color: var(--steel-200); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.callout {
  border-left: 4px solid var(--gold); background: var(--paper);
  padding: 18px 22px; margin: 26px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-family: var(--font-display); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--steel-200); font-size: .93rem; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px;
  padding-top: clamp(44px, 6vw, 68px); padding-bottom: 38px;
}
.site-footer h4 {
  font-size: .78rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; color: var(--steel);
}

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-tag { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800); border-bottom: 1px solid rgba(217,182,95,.22);
    flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 20px; gap: 0;
    box-shadow: 0 16px 30px rgba(16,32,47,.12);
    max-height: 78vh; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.09); border-radius: 0; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0 0 0 14px; padding: 0;
  }
  .subnav a { border-bottom: 1px dotted rgba(255,255,255,.14); font-size: .88rem; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .has-sub > a::after { content: ''; }
  body { padding-bottom: 62px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  }
  .callbar a {
    padding: 17px 10px; text-align: center; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  }
  .callbar .c-quote { background: var(--gold-grad); color: var(--navy); }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
  .stat-block { grid-template-columns: 1fr 1fr; }
  .utility .u-left { gap: 12px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-tag .tag { transform: rotate(-3.5deg); }
}

@media print {
  .site-header, .utility, .callbar, .cta-band, .site-footer { display: none; }
}

/* ==========================================================================
   PHOTOGRAPHY
   Every slot is 16:9-ish and object-fit cover, so swapping in a real photo
   of the documented size needs no CSS change.
   ========================================================================== */

/* --- photographic hero --- */
.hero-photo { background: var(--navy); }
.hero-photo .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(16,32,47,.96) 0%, rgba(16,32,47,.88) 42%, rgba(16,32,47,.55) 100%);
}
.hero-photo::before { z-index: 2; }
.hero-photo .wrap { z-index: 3; }

/* --- image on cards --- */
.card-media {
  margin: -26px -24px 20px;
  aspect-ratio: 25 / 18;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
a.card:hover .card-media img { transform: scale(1.05); }
.card-media + .card-freq { margin-top: 0; }

/* --- standalone figure --- */
.media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 10; }
.media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 20px 16px; color: var(--white);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .09em;
  background: linear-gradient(transparent, rgba(16,32,47,.9));
}
/* the tag can sit on a photo — the signature element, reused */
.media .tag { position: absolute; right: -18px; bottom: 24px; width: 210px; transform: rotate(-4deg); }

/* --- photographic page header --- */
.page-head-photo .head-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-head-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(16,32,47,.95) 0%, rgba(16,32,47,.86) 48%, rgba(16,32,47,.58) 100%);
}
.page-head-photo::before { z-index: 2; }
.page-head-photo .wrap { z-index: 3; }

/* --- full-bleed photo band --- */
.photo-band {
  position: relative; overflow: hidden;
  min-height: 380px; display: grid; align-items: center;
  color: var(--white);
}
.photo-band img.band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.photo-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,32,47,.94), rgba(16,32,47,.62) 65%, rgba(16,32,47,.35));
}
.photo-band .wrap { position: relative; z-index: 2; padding: 60px 0; }
.photo-band h2 { color: var(--white); max-width: 20ch; }
.photo-band p { color: var(--steel-200); max-width: 48ch; }

/* --- location card imagery --- */
.card-media-wide { aspect-ratio: 16 / 9; }

@media (max-width: 980px) {
  .media .tag { right: 12px; width: 175px; }
}
@media (max-width: 620px) {
  .media .tag { display: none; }
  .photo-band { min-height: 300px; }
}
