/*
  Jim Bachman — Tax Resolution Attorney & CPA
  IRS Lien Release — Texas edition (irsliensreleased.com)
  ---------------------------------------------------
  Design language: "law ledger" — aged document paper, ledger-ink navy,
  oxblood action, brass rules, Source Serif 4 + IBM Plex Mono. This build
  elevates the base with a full-bleed image billboard, an animated stat
  band, scroll-triggered reveals (Elementor-style slide-ins), and a
  feature image strip. All motion degrades to static under
  prefers-reduced-motion.
*/

:root {
  --ink: #141f2e;
  --ink-2: #1c2a3d;
  --ink-soft: #46536a;
  --paper: #ede8dc;
  --paper-raised: #f8f5ec;
  --line: #d9d0ba;
  --brass: #8a6a24;
  --brass-lit: #c7a35a;
  --brass-glow: #dab86f;
  --oxblood: #6e1b24;
  --oxblood-dark: #4f1119;
  --max: 1120px;
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

#qualifications,
#contact,
#topics { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--oxblood-dark); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

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

/* ---------- Reveal / motion system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.zoom       { transform: scale(0.94); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .billboard-media { animation: none !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.wordmark {
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark small {
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--ink-soft); margin-top: 2px;
}
.primary-nav ul {
  list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap;
}
.primary-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.96rem;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--brass);
}
.header-call {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3;
  text-decoration: none; color: var(--ink);
  font-family: "IBM Plex Mono", monospace; font-size: 1rem;
  border-left: 2px solid var(--brass); padding-left: 14px; white-space: nowrap;
}
.header-call span {
  font-family: "Source Serif 4", serif; font-size: 0.72rem; color: var(--ink-soft);
}
.header-call:hover { color: var(--oxblood); }

/* Red statute emphasis (matches Jim's own red markup in his documents) */
.law-red { color: #c8102e; }

/* Hamburger toggle — hidden on desktop, shown in the mobile media query */
.nav-toggle {
  display: none;
  appearance: none;
  margin-left: auto;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after  { position: absolute; top: 6px; }
.site-header.nav-open .nav-toggle .bars { background: transparent; }
.site-header.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Billboard (full-bleed image hero) ---------- */

.billboard {
  position: relative;
  padding: 0; /* override base section padding so the hero isn't stacked with dead space */
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.billboard-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-image, none);
  background-size: cover; background-position: center;
  animation: heroDrift 22s var(--ease) infinite alternate;
}
/* Fallback art when no photographic banner is present: a layered brass/ink
   "chamber" gradient so the hero is striking even before AI art is dropped in. */
.billboard-fallback {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(199,163,90,0.35), transparent 55%),
    radial-gradient(90% 80% at 12% 100%, rgba(110,27,36,0.5), transparent 60%),
    conic-gradient(from 210deg at 65% 40%, #17273a, #101a29 30%, #1d2f45 62%, #12202f);
}
.billboard-fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 75%);
}
.billboard-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,25,38,0.72) 0%, rgba(16,25,38,0.82) 60%, rgba(16,25,38,0.92) 100%);
}
.billboard .wrap {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 24px clamp(44px, 6vw, 80px);
}
.billboard-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-lit);
  margin: 0 0 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.billboard-eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--brass-lit);
}
.billboard h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.8rem);
  line-height: 1.08; max-width: 19ch; margin: 0 0 24px; font-weight: 700;
  letter-spacing: -0.01em;
}
.billboard h1 .accent { color: var(--brass-glow); font-style: italic; }
.billboard-lede {
  color: #cdd4de; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 54ch; margin: 0 0 34px;
}
.billboard-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.billboard-trust {
  margin: 30px 0 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: #aeb8c6;
  letter-spacing: 0.02em;
}
.billboard-trust b { color: var(--paper); font-weight: 500; }

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -2%, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; background: var(--oxblood); color: #f8f5ec; border: none;
  padding: 14px 28px; font-family: "Source Serif 4", serif; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: transform 0.18s var(--ease), background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--oxblood-dark); color: #f8f5ec;
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,17,25,0.28);
}
.btn-billboard {
  background: var(--brass-lit); color: var(--ink); font-weight: 600;
}
.btn-billboard:hover { background: var(--brass-glow); color: var(--ink); box-shadow: 0 10px 28px rgba(199,163,90,0.35); }
.btn-ghost {
  display: inline-block; padding: 13px 24px; border: 1px solid rgba(255,255,255,0.4);
  color: var(--paper); text-decoration: none; border-radius: 2px;
  font-size: 1rem; transition: border-color 0.18s ease, background 0.18s ease;
}
.btn-ghost:hover { border-color: var(--brass-lit); color: var(--paper); background: rgba(255,255,255,0.06); }
.btn-quiet {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--line); padding: 12px 25px;
  font-family: "Source Serif 4", serif; font-size: 1rem; text-decoration: none;
  transition: border-color 0.18s ease;
}
.btn-quiet:hover { border-color: var(--brass); color: var(--ink); }

/* ---------- Stat band (animated count-up) ---------- */

.statband {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--brass);
}
.statband .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 0;
}
.stat {
  padding: 40px 26px; text-align: center;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 500; line-height: 1; color: var(--brass-lit);
  letter-spacing: -0.02em; display: block;
}
.stat-label {
  margin: 12px 0 0; font-size: 0.92rem; color: #c1cad6; line-height: 1.45;
  max-width: 24ch; margin-inline: auto;
}

/* ---------- Section scaffolding ---------- */

section { padding: clamp(52px, 7vw, 84px) 0; }
.section-divide { border-top: 1px solid var(--line); }
.section-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 12px;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-dek { color: var(--ink-soft); max-width: 62ch; margin: 0 0 36px; font-size: 1.08rem; }

/* ---------- Intro / keyword lede ---------- */

.intro { background: var(--paper-raised); border-top: 1px solid var(--line); }
.intro .wrap { max-width: 900px; }
.intro p {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.42rem);
  line-height: 1.55; margin: 0; color: var(--ink);
}
.intro .drop::first-letter {
  float: left; font-size: 3.6em; line-height: 0.82; padding: 6px 12px 0 0;
  color: var(--oxblood); font-weight: 700;
}

/* ---------- Hero (portrait + text) ---------- */

.hero .wrap {
  display: block; max-width: 820px;
}
.hero h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.16; margin: 0 0 20px; }
.hero .lede { color: var(--ink-soft); font-size: 1.14rem; max-width: 46ch; margin: 0 0 24px; }
.pull-quote {
  font-style: italic; font-size: 1.28rem; line-height: 1.5;
  border-left: 3px solid var(--brass); padding-left: 20px; margin: 0 0 28px;
  max-width: 46ch; color: var(--ink);
}
.pull-quote cite { display: block; font-style: normal; font-size: 0.85rem; font-family: "IBM Plex Mono", monospace; color: var(--ink-soft); margin-top: 10px; }
.hero-portrait {
  position: relative; border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass);
  padding: 14px 0;
}
.hero-portrait img { width: 100%; height: auto; }
.hero-portrait figcaption {
  position: absolute; bottom: 24px; left: 0; background: rgba(20,31,46,0.9); color: var(--paper);
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 8px 14px;
}

/* ---------- Topic index ---------- */

.topic-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-index li {
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline;
  gap: 18px; padding: 24px 0;
  transition: background 0.2s ease, padding-left 0.2s var(--ease);
}
.topic-index li:hover { background: var(--paper-raised); padding-left: 10px; }
.topic-index .num { font-family: "IBM Plex Mono", monospace; color: var(--brass); font-size: 0.95rem; }
.topic-index h3 { margin: 0 0 4px; font-size: 1.22rem; font-weight: 600; }
.topic-index p { margin: 0; color: var(--ink-soft); max-width: 58ch; }
.topic-index a.read { text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.topic-index a.read::after { content: " \2192"; }

/* ---------- Feature image strip ---------- */

.gallery .wrap { max-width: var(--max); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  grid-auto-rows: 1fr;
}
.gallery-grid figure {
  position: relative; margin: 0; overflow: hidden; border-top: 3px solid var(--brass);
  aspect-ratio: 3 / 4; background: var(--ink);
}
.gallery-grid figure.wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 12px; color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(16,25,38,0.86));
  font-size: 0.9rem; line-height: 1.35;
}

/* ---------- Qualifications ---------- */

.quals .wrap { display: block; max-width: 820px; }
.quals img { border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass); }
.quals ul { margin: 20px 0 0; padding: 0; list-style: none; }
.quals li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; }
.quals li:last-child { border-bottom: 1px solid var(--line); }
.quals li::before {
  content: "\00A7"; position: absolute; left: 0; top: 14px;
  font-family: "IBM Plex Mono", monospace; color: var(--brass); font-weight: 500;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--oxblood);
  color: #fbefe0;
  text-align: center;
}
.cta-band .wrap { max-width: 760px; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #f0d7cf; font-size: 1.12rem; margin: 0 0 28px; }
.cta-band .btn { background: var(--brass-lit); color: var(--ink); }
.cta-band .btn:hover { background: var(--brass-glow); }

/* ---------- Contact ---------- */

.contact { background: var(--paper-raised); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
.contact-card { background: var(--ink); color: var(--paper); padding: 36px 32px; border-top: 3px solid var(--brass); }
.contact-card h2 { color: var(--paper); }
.contact-card p { color: #c9d0da; max-width: 40ch; }
.contact-info { margin: 28px 0 0; display: grid; gap: 16px; }
.contact-info div { border-top: 1px solid rgba(201,208,218,0.2); padding-top: 14px; }
.contact-info dt { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--brass-lit); margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: 1.05rem; }
.contact-info a { color: var(--paper); }
.contact-info a:hover { color: var(--brass-lit); }

form.contact-form, form.questionnaire-form { display: grid; gap: 16px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: "Source Serif 4", serif; font-size: 1rem; padding: 11px 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(138,106,36,0.12); }
textarea { min-height: 120px; resize: vertical; }
.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status[data-state="ok"] { color: #2b5f3a; }
.form-status[data-state="error"] { color: var(--oxblood); }

/* ---------- Questionnaire page ---------- */

.q-hero { background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--brass); }
.q-hero .wrap { padding-top: 56px; padding-bottom: 56px; max-width: 760px; }
.q-hero .section-kicker { color: var(--brass-lit); }
.q-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 0 0 14px; line-height: 1.12; }
.q-hero p { color: #cdd4de; font-size: 1.12rem; max-width: 54ch; margin: 0; }
.q-body .wrap { max-width: 760px; }
.q-step {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--brass); text-transform: uppercase; margin: 0 0 6px;
}
.fieldset-card {
  border: 1px solid var(--line); background: var(--paper-raised);
  padding: 26px 26px 28px; margin: 0 0 22px;
}
.fieldset-card legend {
  padding: 0 10px; font-weight: 600; font-size: 1.1rem; color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.875rem; color: var(--ink-soft); }
.site-footer .disclaimer { max-width: 74ch; margin: 16px auto 0; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Topic (interior) pages ---------- */

.topic-page main { padding: 44px 0 20px; }
.topic-page .breadcrumb { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 18px; }
.topic-page .breadcrumb a { color: var(--ink-soft); }
.topic-page h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin: 0 0 6px; line-height: 1.2; }
.topic-page .page-of { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--brass); margin: 0 0 32px; }
.copy { max-width: var(--measure); }
.copy p { margin: 0 0 22px; }
.copy h2 { font-size: 1.15rem; margin: 32px 0 14px; }
.statute {
  background: var(--paper-raised); border-left: 3px solid var(--brass); padding: 18px 22px;
  margin: 0 0 26px; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  line-height: 1.7; color: var(--ink); max-width: var(--measure);
}
.statute p { margin: 0 0 10px; }
.statute p:last-child { margin-bottom: 0; }
.qa { margin: 0 0 26px; }
.qa dt { font-weight: 600; margin: 0 0 8px; max-width: var(--measure); }
.qa dd { margin: 0 0 26px; color: var(--ink); max-width: var(--measure); }
.pagination { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; max-width: var(--measure); }
.pagination .pg-count { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--ink-soft); }
.pagination a { text-decoration: none; font-size: 0.95rem; }
.pagination .disabled { color: var(--line); pointer-events: none; }
.topic-cta { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); max-width: var(--measure); }
.topic-cta p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .statband .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; }
}

@media (max-width: 880px) {
  .header-call { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 380px; }
  .quals .wrap { grid-template-columns: 1fr; }
  .quals img { max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topic-index li { grid-template-columns: 40px 1fr; }
  .topic-index a.read { grid-column: 2 / 3; }
}

@media (max-width: 560px) {
  .primary-nav ul { gap: 14px; }
  .statband .wrap { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .stat:first-child { border-top: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure, .gallery-grid figure.wide { grid-column: auto; aspect-ratio: 3 / 2; }
}

/* ---------- Mobile top menu + uniform photos (placed last so it wins the cascade) ---------- */
@media (max-width: 760px) {
  /* Mobile top menu → hamburger (Task 3) + 92%-opaque header (Task 4) */
  .site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav-toggle { display: inline-flex; }
  .header-call { display: none; }
  .primary-nav { display: none; width: 100%; flex-basis: 100%; order: 3; }
  .site-header.nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; margin-top: 12px; width: 100%; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 13px 2px; font-size: 1.02rem; border-bottom: none; }

  /* Uniform photos: every photo 80vw wide, cropped to the same 4:3 box (Task 5) */
  .gallery-grid { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .gallery-grid figure,
  .gallery-grid figure.wide {
    grid-column: auto; width: 80vw; max-width: 80vw; aspect-ratio: 4 / 3; margin: 0 auto;
  }
  .hero .wrap { justify-items: center; }
  .hero-portrait {
    width: 80vw; max-width: 80vw; margin: 0 auto; padding: 0; overflow: hidden;
    aspect-ratio: 4 / 3;
    border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass);
  }
  .hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
  .quals .wrap { justify-items: center; }
  .quals img {
    width: 80vw; max-width: 80vw; margin: 0 auto;
    aspect-ratio: 4 / 3; object-fit: cover; object-position: center 18%;
  }
}
