/*
  HazMat ACE design system
  Colors come from the HazMat ACE card deck: aged card stock, heavy black frames, fire-service red,
  and brass gold. The placard diamond is the mark, and course hours sit in a gold panel with an
  inset hairline, the same double-frame trick the cards use.
  Section colors: red = Education, black = Consulting, green = Aviation, gold = Resources.
*/

@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Palette lifted from the HazMat ACE card deck: aged card stock, black frames, fire red, brass gold. */
  --paper: #f4ebd5;
  --paper-2: #e9dec2;
  --field: #fffcf3;
  --ink: #14120f;
  --ink-2: #453f36;
  --ink-3: #6a6156;
  --rule: #c7ba9c;
  --gold: #e4b23a;
  --gold-hover: #f2c453;
  --gold-deep: #b98a22;
  --red: #c4161c;
  --red-deep: #9c1016;
  --green: #2e8b45;
  --focus: #c4161c;
  --band: var(--ink);
  --band-w: 14px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 66ch;
  --radius: 3px;
}

/* Section colors: red = Education, black = Consulting, green = Aviation, gold = Resources. */
.band-green { --band: var(--green); }
.band-red { --band: var(--red); }
.band-gold { --band: var(--gold); }
.band-ink { --band: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: 0.5rem 1rem; border: 2px solid var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 1.1rem/1 var(--display); letter-spacing: 0.02em;
  padding: 0.8rem 1.3rem; min-height: 48px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--paper-2); }
.btn-primary { background: var(--gold); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c2822; }
.btn-danger { color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #f6e3d9; }
.btn-small { padding: 0.5rem 0.8rem; min-height: 38px; font-size: 1rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 2px 0 var(--gold); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 700 1.55rem/1 var(--display); letter-spacing: 0.01em; color: var(--ink); }
.brand .logo { flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { font: 600 1.1rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; padding: 0.55rem 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .header-row { min-height: 60px; }
  .brand { font-size: 1.4rem; }
  .brand .logo { width: 32px; height: 32px; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-bottom: 0.5rem; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin-left: 0; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; margin-left: auto;
    font: 600 1.05rem/1 var(--display); letter-spacing: 0.03em;
    background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 0.55rem 0.9rem; min-height: 42px; cursor: pointer;
  }
  .js .nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 0.25rem var(--gutter) 1.25rem;
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: 1.25rem; }
  .js .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--rule); box-shadow: inset 5px 0 0 var(--red); padding-left: 0.9rem; }
  .js .site-nav .nav-cta { margin-top: 1rem; }
}

/* ---------- Hero: the name, decoded ---------- */
.hero { padding: clamp(2.75rem, 7vw, 6rem) 0 clamp(2.75rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 0.93; margin-bottom: 0.4em; }
.lede { font-size: 1.2em; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.hero .actions { margin-top: 1.75rem; }

.ace { display: grid; border-top: 2px solid var(--ink); }
.ace-row {
  position: relative; display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 1rem;
  padding: 1rem calc(var(--band-w) + 1.1rem) 1rem 0;
  border-bottom: 2px solid var(--ink); text-decoration: none; color: var(--ink);
}
.ace-row::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: var(--band-w); background: var(--band); }
.ace-letter { font: 700 clamp(4rem, 9vw, 5.6rem)/0.8 var(--display); text-align: center; }
.ace-text strong { display: block; font: 700 1.65rem/1.1 var(--display); letter-spacing: 0.01em; }
.ace-text span { display: block; color: var(--ink-2); line-height: 1.4; margin-top: 0.2rem; }
.ace-row:hover .ace-text strong, .ace-row:focus-visible .ace-text strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 980px) { .ace-row { padding-top: 1.35rem; padding-bottom: 1.35rem; grid-template-columns: 5.4rem 1fr; } }

/* ---------- Page headers carry their section's ERG band ---------- */
.page-head { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) calc(var(--band-w) + 0.5rem) clamp(2rem, 4vw, 3rem) 0; border-bottom: 2px solid var(--ink); }
.page-head::after { content: ""; position: absolute; top: 0; right: 0; bottom: -2px; width: var(--band-w); background: var(--band); }
.page-head .lede { margin-bottom: 0; }
.page-head .lede + p { margin-top: 1.5rem; }
.crumbs { font: 600 1.05rem/1.2 var(--display); letter-spacing: 0.02em; color: var(--ink-3); margin: 0 0 0.9rem; }
.crumbs a { color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-2); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; max-width: none; }
.after-list { margin-top: 1.5rem; }
.split { display: grid; gap: 1.25rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split-center { align-items: center; } }
.columns { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 800px) { .columns { grid-template-columns: repeat(3, 1fr); } .columns-2 { grid-template-columns: repeat(2, 1fr); } }
.columns > div { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.columns p { color: var(--ink-2); }
.empty { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.75rem; background: var(--field); }
.empty p:last-child { margin-bottom: 0; }

.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
@media (max-width: 700px) { .photo img { aspect-ratio: 4 / 3; } }
.split .photo img { border-radius: var(--radius); }

/* ---------- Course guide: each entry reads like a placard with its ID panel ---------- */
.guide { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.guide-item {
  display: grid; grid-template-columns: 5.25rem 1fr; gap: 0.4rem 1.4rem; align-items: start;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { .guide-item { grid-template-columns: 6.25rem 1fr auto; } }
.panel {
  grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 4.5rem; padding: 0.4rem 0.3rem; text-align: center;
  background: var(--gold); border: 2px solid var(--ink); border-radius: var(--radius);
  outline: 1px solid rgba(244, 235, 213, 0.75); outline-offset: -5px;
}
.panel b { font: 700 2rem/0.95 var(--display); }
.panel small { font: 600 0.85rem/1.1 var(--display); letter-spacing: 0.03em; margin-top: 0.15rem; }
.panel-plain { background: var(--field); }
.panel-plain small { font-size: 0.95rem; line-height: 1.05; }
.guide-body h3 { margin: 0.15rem 0 0.35rem; }
.guide-body p { margin: 0; color: var(--ink-2); }
.guide-body .guide-meta { margin-top: 0.45rem; font-size: 0.92rem; color: var(--ink-3); }
.guide-cta { font: 600 1.05rem/1.2 var(--display); letter-spacing: 0.02em; white-space: nowrap; align-self: center; }
@media (max-width: 759px) { .guide-cta { grid-column: 2; margin-top: 0.4rem; } }

.check-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.check-list li { padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 1.1em; }
.check-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.25rem; width: 0.85rem; height: 0.85rem;
  border: 2px solid var(--ink); background: var(--band, var(--gold)); transform: rotate(45deg);
}
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 800px) { .steps:not(.steps-compact) { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps > li::before { content: counter(step); display: block; font: 700 2.4rem/1 var(--display); margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); margin: 0; }
.steps-compact > li { display: grid; grid-template-columns: 2rem 1fr; padding-top: 0.75rem; }
.steps-compact > li::before { font-size: 1.6rem; margin: 0; }

/* ---------- Resources ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.tabs a { display: inline-block; padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); font: 600 1.05rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; }
.tabs a:hover { background: var(--paper-2); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.post-row { display: grid; gap: 1rem 1.75rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .post-row.has-thumb { grid-template-columns: 240px 1fr; } }
.post-thumb { position: relative; display: block; }
.post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); border: 2px solid var(--ink); }
.play-badge { position: absolute; left: 0.6rem; bottom: 0.6rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font: 600 1rem/1.3 var(--display); letter-spacing: 0.02em; color: var(--ink-3); margin: 0 0 0.35rem; }
.post-row h3 { margin: 0 0 0.4rem; }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { text-decoration: underline; }
.post-excerpt { color: var(--ink-2); margin: 0; }
.post-cover { display: block; width: 100%; border-radius: var(--radius); margin: 0 0 2rem; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: 2rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child, .prose > div > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 5px solid var(--red); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: var(--radius); font-size: 0.9em; }
.prose pre { overflow-x: auto; background: var(--paper-2); padding: 1rem; border-radius: var(--radius); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.45rem 0.7rem; text-align: left; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 2.5rem 0; }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none; }
.video-fallback a { color: var(--paper); }

/* ---------- Calls to action and footer ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: var(--band-w); background: var(--band); }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #d8cfb8; }
.cta-grid { display: grid; gap: 1.5rem 3rem; align-items: center; padding-right: calc(var(--gutter) + var(--band-w)); }
@media (min-width: 860px) { .cta-grid { grid-template-columns: 1fr auto; } }
.cta-band .btn-primary { border-color: var(--gold-deep); }

.site-footer { border-top: 2px solid var(--ink); box-shadow: inset 0 3px 0 var(--gold); padding: 3rem 0 2rem; font-size: 0.98rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-tag { margin: 1rem 0 0.2rem; font-weight: 600; }
.footer-pillars { color: var(--ink-3); }
.footer-h { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.fine { color: var(--ink-3); font-size: 0.88rem; margin: 2rem 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; max-width: 46rem; }
.form-narrow { max-width: 30rem; }
.form-wide { max-width: 60rem; }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label, .label { display: block; font-weight: 600; margin: 0 0 0.35rem; }
.hint { font-weight: 400; color: var(--ink-3); font-size: 0.9rem; }
p.hint { margin: 0.35rem 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"],
input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 2px solid var(--ink-3); border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
textarea { resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

.contact-grid { display: grid; gap: 3rem 4rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 20rem; } }
.contact-aside h2 { font-size: 1.7rem; }
.contact-direct { margin-top: 2rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.contact-direct h3 { font-size: 1.25rem; }

.notice { border: 2px solid var(--ink); border-left-width: 10px; border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; background: var(--field); max-width: 60rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-ok { border-left-color: var(--green); }
.notice-err { border-left-color: var(--red); }
.notice-info { border-left-color: var(--gold-deep); }

/* ---------- Training Portal ---------- */
.panels { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 860px) { .panels { grid-template-columns: 1fr 1fr; } }
.box { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.portal-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }
.portal-bar p { margin: 0; }
.portal-bar-sep { color: var(--rule); }
.lib-group { margin: 0 0 2.75rem; }
.lib-group h2 { font-size: 1.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.lib-list { list-style: none; margin: 0; padding: 0; }
.lib-group:not(:has(h2)) .lib-list { border-top: 2px solid var(--ink); }
.lib-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.lib-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--field); }
.lib-icon-video { background: var(--gold); }
.lib-title { font: 600 1.35rem/1.2 var(--display); letter-spacing: 0.01em; }
.lib-desc { margin: 0.3rem 0 0; color: var(--ink-2); }
.lib-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-3); }
.watch h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } }
.plan { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--field); outline: 1px solid var(--rule); outline-offset: -6px; }
.plan h2 { font-size: 1.7rem; margin: 0; }
.plan-price { font: 700 2.6rem/1 var(--display); margin: 0.25rem 0 0; }
.plan-length { font-weight: 600; }
.plan .btn { margin-top: auto; align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  .page-head::after { display: none; }
}

/* ---------- Gallery ---------- */
.album { margin: 0 0 3rem; }
.album h2 { font-size: 1.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
.gallery-grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gallery-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 0.85rem; margin-top: 0; }
.shot a { display: block; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.shot a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot-caption { margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.35; color: var(--ink-2); max-width: none; }

body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; gap: 0.5rem; padding: clamp(0.75rem, 3vw, 2rem); background: rgba(20, 18, 15, 0.94); }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: min(1100px, 100%); max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--ink); }
.lb-figure figcaption { color: var(--paper); font-size: 1rem; text-align: center; max-width: 60ch; }
.lb-figure figcaption[hidden] { display: none; }
.lb-btn { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); font: 600 1.6rem/1 var(--display); width: 3rem; height: 3rem; cursor: pointer; flex: none; }
.lb-btn:hover { background: var(--gold); }
.lb-close { position: absolute; top: clamp(0.75rem, 3vw, 1.5rem); right: clamp(0.75rem, 3vw, 1.5rem); }
@media (max-width: 700px) {
  .lb-btn { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
  .lb-figure img { max-height: 68vh; }
}

/* ---------- Photo band across the home page ---------- */
.photo-band { display: grid; gap: 3px; background: var(--ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
@media (min-width: 720px) { .photo-band { grid-template-columns: repeat(3, 1fr); } }
.photo-band figure { margin: 0; }
.photo-band img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 719px) { .photo-band img { aspect-ratio: 4 / 3; } }
.photo-tall img { aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: var(--radius); }
