/* ==========================================================================
   khashaba.in — The Khashaba Jadhav Legacy Archive
   Theme: archival parchment, ink, brass — a documentary/museum register.
   Sibling to khashabafoundation.org (shared maroon/gold DNA, calmer voice).
   ========================================================================== */

:root {
  --ink: #1f1c18;
  --ink-soft: #3d3730;
  --muted: #6d6355;
  --parchment: #f6f1e6;
  --parchment-deep: #ece3d2;
  --paper: #fffcf6;
  --brass: #a8823a;
  --brass-bright: #c9a24d;
  --brass-light: #e3cf9f;
  --line: #ddd0b6;
  --oxblood: #6b1f1f;
  --oxblood-deep: #481313;
  --saffron: #cf6f22;
  --green: #1e5b3c;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-dev: "Noto Sans Devanagari", "Segoe UI", sans-serif;

  --wrap: 1120px;
  --narrow: 760px;
  --radius: 4px;
  --shadow: 0 18px 44px -26px rgba(31, 28, 24, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--oxblood); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.22; color: var(--ink); font-weight: 700; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--oxblood); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   Cross-site bar + header
   -------------------------------------------------------------------------- */

.crossbar {
  background: var(--ink);
  color: var(--parchment-deep);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.crossbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 7px; padding-bottom: 7px;
}
.crossbar .site-label { opacity: 0.75; }
.crossbar a {
  color: var(--brass-bright); text-decoration: none; font-weight: 700; white-space: nowrap;
}
.crossbar a:hover { color: var(--brass-light); text-decoration: underline; }

.crossbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600; }
.lang-switch a { color: var(--parchment-deep); text-decoration: none; font-weight: 600; opacity: 0.85; }
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch .current { color: var(--brass-bright); font-weight: 700; }
.lang-switch .sep { opacity: 0.4; }
@media (max-width: 640px) {
  .crossbar .site-label { display: none; }
  .crossbar .wrap { justify-content: flex-end; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px -14px rgba(31, 28, 24, 0.5);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand img { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; }
.brand-name .en {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  line-height: 1.15; color: var(--ink);
}
.brand-name .sub {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 8px 11px; border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover { background: var(--parchment-deep); color: var(--oxblood); }
.nav a[aria-current="page"] { color: var(--oxblood); box-shadow: inset 0 -2px 0 var(--brass); }
.nav a.btn-legacy {
  background: var(--oxblood); color: var(--paper); font-weight: 700;
  margin-left: 8px; padding: 9px 16px; border-radius: 999px; box-shadow: none;
}
.nav a.btn-legacy:hover { background: var(--oxblood-deep); color: var(--paper); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.35rem; line-height: 1; padding: 6px 12px;
  border-radius: var(--radius); cursor: pointer;
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 18px 18px; gap: 2px;
    box-shadow: 0 20px 30px -18px rgba(31, 28, 24, 0.4);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav a.btn-legacy { margin: 10px 0 0; text-align: center; }
  .brand-name .en { white-space: normal; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(168, 130, 58, 0.28), transparent 62%),
    linear-gradient(165deg, #16130f 0%, var(--oxblood-deep) 62%, var(--oxblood) 100%);
  color: var(--parchment);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -160px; top: 50%; transform: translateY(-50%);
  width: 580px; height: 580px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 77, 0.22);
  box-shadow: 0 0 0 54px rgba(201, 162, 77, 0.045), 0 0 0 120px rgba(201, 162, 77, 0.035);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 92px; padding-bottom: 96px; max-width: 900px; }
.hero .kicker {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass-bright);
  border: 1px solid rgba(201, 162, 77, 0.45); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem); color: var(--paper);
  margin-bottom: 20px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero p.lead {
  font-size: 1.18rem; max-width: 660px; color: rgba(246, 241, 230, 0.9); margin-bottom: 32px;
}
.hero .dev-line { font-family: var(--font-dev); color: rgba(227, 207, 159, 0.85); margin-bottom: 12px; }

/* Page hero (inner) */
.page-hero {
  background:
    radial-gradient(760px 320px at 88% -20%, rgba(168, 130, 58, 0.22), transparent 62%),
    linear-gradient(165deg, #16130f 0%, var(--oxblood-deep) 70%, var(--oxblood) 100%);
  color: var(--parchment);
}
.page-hero .wrap { padding-top: 58px; padding-bottom: 54px; }
.page-hero .kicker {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass-bright);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--paper); margin: 10px 0 12px; text-wrap: balance;
}
.page-hero p { max-width: 720px; color: rgba(246, 241, 230, 0.86); font-size: 1.08rem; }

/* Breadcrumbs */
.crumbs { font-size: 0.84rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--oxblood); text-decoration: underline; }
.crumbs span { opacity: 0.6; margin: 0 6px; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.93rem;
  letter-spacing: 0.03em; padding: 13px 26px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: #241d0c; }
.btn-brass:hover { background: var(--brass-bright); }
.btn-ghost { border: 1.5px solid rgba(227, 207, 159, 0.6); color: var(--brass-light); }
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn-ink { background: var(--oxblood); color: var(--paper); }
.btn-ink:hover { background: var(--oxblood-deep); }

/* --------------------------------------------------------------------------
   Sections & prose
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }
.section.alt { background: var(--parchment-deep); }
.section.paper { background: var(--paper); }
.section.dark {
  background: linear-gradient(165deg, #16130f, var(--oxblood-deep));
  color: var(--parchment);
}
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark p { color: rgba(246, 241, 230, 0.85); }

.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--saffron); margin-bottom: 10px;
}
.section.dark .eyebrow { color: var(--brass-bright); }

.section h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 16px; text-wrap: balance; }
.section h3 { font-size: 1.3rem; margin-bottom: 12px; }
.section-intro { max-width: 740px; color: var(--muted); font-size: 1.08rem; margin-bottom: 38px; }
.section.dark .section-intro { color: rgba(246, 241, 230, 0.8); }

.rule { width: 66px; height: 3px; background: linear-gradient(to right, var(--brass), var(--brass-light)); border: 0; margin: 0 0 22px; }

.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin-top: 34px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.lead-para { font-size: 1.18rem; color: var(--ink-soft); }
.lead-para::first-letter {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 700;
  float: left; line-height: 0.86; padding: 6px 10px 0 0; color: var(--oxblood);
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card a.more {
  display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.88rem;
  color: var(--oxblood); text-decoration: none;
}
.card a.more:hover { color: var(--saffron); }
a.card { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease; }
a.card:hover { transform: translateY(-3px); }

/* Downloadable classroom pack */
.dl-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.dl-info { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 320px; min-width: 0; }
.dl-icon { font-size: 1.5rem; line-height: 1.3; flex: 0 0 auto; }
.dl-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dl-info p { color: var(--muted); font-size: 0.92rem; }
.dl-links { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.dl-links a {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.86rem;
  color: var(--oxblood); background: var(--parchment); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; white-space: nowrap;
}
.dl-links a:hover { background: var(--brass-light); border-color: var(--brass); }
.dl-links a.dev { font-family: var(--font-dev); }
@media (max-width: 640px) {
  .dl-row { flex-direction: column; align-items: stretch; }
  .dl-links { justify-content: flex-start; }
}

/* Chapter cards (life story hub) */
.chapter {
  position: relative; padding-left: 74px;
}
.chapter .ch-num {
  position: absolute; left: 24px; top: 26px; font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; color: var(--brass); line-height: 1;
}

/* --------------------------------------------------------------------------
   Split
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   Figures & photo slots
   -------------------------------------------------------------------------- */

.figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--paper); border: 1px solid var(--line);
}
.figure img { width: 100%; display: block; }
.figure figcaption {
  font-size: 0.82rem; line-height: 1.55; color: var(--muted);
  padding: 10px 16px; background: var(--paper); border-top: 3px solid var(--brass);
}
.figure figcaption .credit { display: block; font-size: 0.72rem; opacity: 0.75; }
.split .figure img { min-height: 280px; max-height: 440px; object-fit: cover; }
.gallery-grid .figure img { height: 220px; object-fit: cover; }
.figure.plate img { max-height: 560px; object-fit: contain; background: var(--parchment-deep); }

.photo-slot {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-height: 260px;
  background:
    repeating-linear-gradient(45deg, rgba(168, 130, 58, 0.07) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--parchment), var(--parchment-deep));
  border: 2px dashed var(--brass); border-radius: var(--radius);
  color: var(--muted); text-align: center; padding: 24px;
}
.photo-slot .ph-icon { font-size: 2.2rem; }
.photo-slot strong { color: var(--oxblood); letter-spacing: 0.06em; font-size: 0.82rem; text-transform: uppercase; }
.photo-slot span { font-size: 0.84rem; max-width: 300px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote-band {
  background: radial-gradient(680px 280px at 18% 0%, rgba(201, 162, 77, 0.12), transparent 58%), var(--oxblood-deep);
  color: var(--parchment); text-align: center;
}
.quote-band .wrap { padding-top: 64px; padding-bottom: 64px; max-width: 840px; }
.quote-band blockquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-style: italic; color: var(--brass-light); text-wrap: balance;
}
.quote-band cite {
  display: block; margin-top: 18px; font-family: var(--font-body); font-style: normal;
  font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246, 241, 230, 0.7);
}

.pullquote {
  border-left: 4px solid var(--brass); padding: 6px 0 6px 22px; margin: 28px 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.24rem; color: var(--ink);
}

/* --------------------------------------------------------------------------
   Bout cards (Helsinki)
   -------------------------------------------------------------------------- */

.bout {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--brass);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.bout.win { border-left-color: var(--green); }
.bout.loss { border-left-color: #8d3a3a; }
.bout .bout-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.bout .round {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.bout h3 { font-size: 1.15rem; margin: 0; }
.bout .result {
  margin-left: auto; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.bout.win .result { background: rgba(30, 91, 60, 0.12); color: var(--green); }
.bout.loss .result { background: rgba(141, 58, 58, 0.12); color: #8d3a3a; }
.bout p { font-size: 0.96rem; color: var(--muted); }
.bout .opponent-note { font-size: 0.88rem; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.info-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.info-table th, .info-table td {
  text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.info-table thead th {
  background: var(--oxblood); color: var(--parchment); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; width: auto;
}
.info-table tbody th {
  width: 34%; background: var(--parchment-deep); font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--oxblood);
}
.info-table td { font-size: 0.97rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table tr.highlight td, .info-table tr.highlight th { background: rgba(201, 162, 77, 0.16); font-weight: 700; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--brass), var(--parchment-deep));
}
.t-item { position: relative; padding: 0 0 30px 28px; }
.t-item::before {
  content: ""; position: absolute; left: -28px; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--parchment); border: 3px solid var(--brass);
  box-shadow: 0 0 0 4px rgba(168, 130, 58, 0.13);
}
.t-item.major::before { background: var(--brass); }
.t-item .t-year { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--oxblood); }
.t-item h3 { font-size: 1.02rem; margin: 2px 0 6px; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.t-item p { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Chapter nav (prev/next)
   -------------------------------------------------------------------------- */

.chapter-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .chapter-nav { grid-template-columns: 1fr; } }
.chapter-nav a {
  display: block; text-decoration: none; color: inherit; padding: 16px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.chapter-nav a:hover { border-color: var(--brass); }
.chapter-nav .dir {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 4px;
}
.chapter-nav .ttl { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.chapter-nav .next { text-align: right; }

/* --------------------------------------------------------------------------
   Notes / callouts
   -------------------------------------------------------------------------- */

.note {
  background: rgba(201, 162, 77, 0.15); border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px;
  font-size: 0.95rem; color: var(--ink-soft);
}
.note.record {
  background: var(--paper); border-left-color: var(--oxblood); border: 1px solid var(--line);
  border-left: 4px solid var(--oxblood);
}
.note strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Video cards
   -------------------------------------------------------------------------- */

.video-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .vc-body { padding: 18px 20px; }
.video-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.video-card p { font-size: 0.9rem; color: var(--muted); }
.video-card .src { font-size: 0.75rem; color: var(--muted); opacity: 0.8; margin-top: 8px; display: block; }

/* --------------------------------------------------------------------------
   Foundation bridge banner
   -------------------------------------------------------------------------- */

.bridge {
  background:
    radial-gradient(700px 300px at 80% 120%, rgba(207, 111, 34, 0.24), transparent 62%),
    linear-gradient(150deg, var(--oxblood) 0%, var(--oxblood-deep) 100%);
  color: var(--parchment); text-align: center;
}
.bridge .wrap { padding-top: 62px; padding-bottom: 66px; max-width: 820px; }
.bridge .eyebrow { color: var(--brass-bright); }
.bridge h2 { color: var(--paper); font-size: clamp(1.55rem, 2.8vw, 2.2rem); margin-bottom: 14px; text-wrap: balance; }
.bridge p { color: rgba(246, 241, 230, 0.86); margin-bottom: 26px; }
.bridge .btn-row { justify-content: center; }

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

.site-footer { background: #16130f; color: rgba(246, 241, 230, 0.78); font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 52px 0 36px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--brass-light); }
.footer-brand p { margin-top: 10px; font-size: 0.87rem; color: rgba(246, 241, 230, 0.6); }
.site-footer h4 {
  color: var(--brass-bright); font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 13px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(246, 241, 230, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--brass-bright); }
.footer-legal {
  border-top: 1px solid rgba(227, 207, 159, 0.16); padding: 18px 0 26px;
  font-size: 0.79rem; color: rgba(246, 241, 230, 0.5); line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Reveal + utility
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover { transform: none; }
}

.center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--brass-bright); line-height: 1.1; }
.stat .lbl { font-size: 0.79rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 241, 230, 0.75); margin-top: 6px; }
.section:not(.dark) .stat .num { color: var(--oxblood); }
.section:not(.dark) .stat .lbl { color: var(--muted); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--brass-bright);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 28, 24, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
  z-index: 500;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--brass-light); }
@media (max-width: 640px) {
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s ease, visibility 0.15s; }
}
