/* Reusable interface components.

   Part 1 is the design system from docs/design/homepage-figma-make translated
   to plain CSS: sections, labels, headings, cards, pills, badges, buttons,
   header and footer. The home page is built on it.

   Part 2 keeps the components the sub-pages still use from the first build.
   They inherit the new tokens so they sit on the same palette; each page is
   migrated to Part 1 in turn. */

/* ═══════════════════════════════════════════════════════════
   PART 1 — DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  padding: .85rem 1.75rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s, border-color .25s;
  overflow: hidden;
}
.btn + .btn { margin-left: .6rem; }
.btn--sm { font-size: .78rem; padding: .6rem 1.15rem; }

/* Primary — gold */
.btn-primary {
  background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 45%, #A07828 100%);
  color: var(--gold-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.2) inset,
              0 4px 16px rgba(196,151,58,.4), 0 12px 40px rgba(196,151,58,.15);
}
.btn-primary::after {           /* shimmer sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -1px 0 rgba(0,0,0,.2) inset,
              0 6px 20px rgba(196,151,58,.55), 0 16px 48px rgba(196,151,58,.25); }
.btn-primary:hover::after { opacity: 1; animation: shimmer .8s var(--ease-out) forwards; }
@keyframes shimmer { to { left: 130%; } }

/* Ghost — gold outline on dark */
.btn-ghost {
  background: rgba(196,151,58,.08); border-color: rgba(196,151,58,.4); color: var(--gold-light);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 12px rgba(196,151,58,.1);
}
.btn-ghost:hover { background: rgba(196,151,58,.15); border-color: rgba(196,151,58,.7); transform: translateY(-1px); }

/* Navy — on light sections */
.btn-navy, .btn-secondary {
  background: linear-gradient(145deg, var(--navy-4) 0%, #0A1020 100%); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 -1px 0 rgba(0,0,0,.3) inset,
              0 4px 16px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.15);
}
.btn-navy:hover, .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 6px 20px rgba(0,0,0,.35), 0 16px 48px rgba(0,0,0,.2); }

/* Outline — gold on light */
.btn-outline { background: transparent; color: var(--gold-text); border-color: rgba(196,151,58,.55); }
.btn-outline:hover { background: rgba(196,151,58,.1); border-color: var(--gold); }

/* ── Sections ──────────────────────────────────────────── */
.sec { position: relative; padding-block: var(--row-pad); overflow: hidden; isolation: isolate; }
.sec > .shell { position: relative; z-index: 2; }

.sec--light { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); color: var(--ink-warm); }
.sec--light.sec--rev { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }

.sec--dark { background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: var(--on-dark); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #fff; }
.sec--dark p { color: var(--on-dark-soft); }
.sec--deep { background: linear-gradient(180deg, var(--navy-1) 0%, #04080F 100%); }

/* Radial orbs behind dark sections — static; only the hero's drift. */
.sec--dark::before, .sec--dark::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
}
.sec--dark::before { width: 640px; height: 640px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(196,151,58,.11) 0%, transparent 60%); }
.sec--dark::after  { width: 720px; height: 720px; bottom: -280px; left: -220px;
  background: radial-gradient(circle, rgba(41,78,140,.14) 0%, transparent 60%); }
.sec--orbs::before { animation: float-orb 22s ease-in-out infinite; }
.sec--orbs::after  { animation: float-orb 28s ease-in-out infinite reverse; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(.97); }
}

/* Hero particle network canvas — one per page, behind everything in .sec */
.nexus { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ── Section label  ── LABEL ──  ───────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem;
  font-family: var(--font-body); font-size: .6875rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text);
}
.label::before, .label::after { content: ""; width: 16px; height: 1px; flex: 0 0 auto; }
.label::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.label::after  { background: linear-gradient(90deg, var(--gold-light), transparent); }
.sec--dark .label { color: var(--gold-light); }
.crumb-link { color: inherit; text-decoration: none; }
.crumb-link:hover { text-decoration: underline; }

/* ── Heading anatomy ───────────────────────────────────── */
.em {                              /* the one italic gold word */
  font-style: italic; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-text) 0%, #A87E36 50%, var(--gold-text) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-right: .06em;            /* room for the italic overhang */
}
.sec--dark .em {
  background-image: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
}
.divider {
  width: 48px; height: 4px; border-radius: 999px; margin: 1.25rem 0 1.75rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.sechead { margin-bottom: 3.5rem; max-width: 46rem; }
.sechead p { max-width: 40rem; }
.sechead p:last-child { margin-bottom: 0; }
.sechead--center { text-align: center; margin-inline: auto; }
.sechead--center h2, .sechead--center p, .sechead--center .divider { margin-inline: auto; }
@media (max-width: 767px) { .sechead { margin-bottom: 2.5rem; } }

/* ── Two-column layout ─────────────────────────────────── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cols--start { align-items: start; }
.cols--flip > :first-child { order: 2; }
@media (max-width: 1023px) {
  .cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .cols--flip > :first-child { order: 0; }
}

/* ── Card grids ────────────────────────────────────────── */
.cards { display: grid; gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
/* Heading as the first grid cell — seven value cards plus the head fill a
   4-column (and 2-column) grid exactly. */
.cards--lead .sechead { margin: 0; align-self: center; padding-right: 1rem; }
@media (max-width: 1023px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }

/* ── White card (light sections) ───────────────────────── */
.wcard {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.09), 0 24px 56px rgba(0,0,0,.05);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  overflow: hidden;
}
.wcard::before {                   /* 1px accent bar along the top edge */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(196,151,58,.35));
}
.wcard--navy::before { background: linear-gradient(90deg, var(--navy-2), #2A4A72); }
.wcard h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.wcard p  { font-size: .95rem; color: var(--ink-warm); margin: 0; }
.wcard p + p { margin-top: .8rem; }
.card-h { font-size: 1.15rem; margin-bottom: .75rem; }

/* ── Glass card (dark sections) ────────────────────────── */
.gcard {
  position: relative; border-radius: var(--radius-lg); padding: 1.75rem;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 8px 32px rgba(0,0,0,.3), 0 24px 64px rgba(0,0,0,.2);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s, border-color .25s;
  overflow: hidden;
}
.gcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,151,58,.5), transparent);
}
.gcard h3 { font-size: 1.2rem; margin-bottom: .6rem; color: #fff; }
.gcard p  { font-size: .95rem; color: var(--on-dark-soft); margin: 0; }

@media (hover: hover) {
  .wcard:hover { transform: translateY(-4px);
    box-shadow: 0 1px 0 #fff inset, 0 4px 16px rgba(0,0,0,.1), 0 16px 48px rgba(0,0,0,.14), 0 40px 80px rgba(0,0,0,.08); }
  .gcard:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18);
    box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(196,151,58,.2); }
}

/* Card carrying a numbered badge in its corner */
.card-num { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.card-num h3 { margin: 0; }

/* ── Numbered badge  01 02 03 ──────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 3px 10px rgba(196,151,58,.4);
  color: var(--gold-ink); font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.badge--sm { width: 28px; height: 28px; font-size: .62rem; }

/* ── Pills (list rows) ─────────────────────────────────── */
.pills { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pills--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 639px) { .pills--2 { grid-template-columns: 1fr; } }
.pills li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .65rem 1rem; border-radius: var(--radius); font-size: .92rem; line-height: 1.55;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, border-color .25s;
}
.pills li::before { content: "›"; font-weight: 700; color: var(--gold); line-height: 1.55; flex: 0 0 auto; }
/* cream variant */
.sec--light .pills li, .wcard .pills li {
  background: linear-gradient(135deg, #fff, var(--cream-3)); border: 1px solid rgba(196,151,58,.2);
  color: var(--ink-warm);
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.05);
}
/* gold variant */
.sec--dark .pills li, .gcard .pills li {
  background: linear-gradient(135deg, rgba(232,196,100,.12), rgba(196,151,58,.06));
  border: 1px solid rgba(196,151,58,.25); color: var(--on-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.15);
}
@media (hover: hover) {
  .sec--light .pills li:hover, .wcard .pills li:hover { transform: translateX(3px);
    box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.07), 0 0 0 1px rgba(196,151,58,.35); }
  .sec--dark .pills li:hover, .gcard .pills li:hover { transform: translateX(3px);
    background: linear-gradient(135deg, rgba(232,196,100,.18), rgba(196,151,58,.1)); border-color: rgba(196,151,58,.45); }
}

/* Numbered pills (ordered lists) */
.pills--num { counter-reset: pill; }
.pills--num li { align-items: center; padding-left: .7rem; }
.pills--num li::before {
  counter-increment: pill; content: counter(pill, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 2px 8px rgba(196,151,58,.35);
  color: var(--gold-ink); font-size: .62rem; font-weight: 700; letter-spacing: .04em;
}

/* ── Chips (short role names, inline) ──────────────────── */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem; border-radius: var(--radius); font-size: .84rem; font-weight: 500; line-height: 1.3;
}
.chips li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.sec--light .chips li, .wcard .chips li {
  background: linear-gradient(135deg, #fff, var(--cream-3)); border: 1px solid rgba(196,151,58,.2); color: var(--navy-2);
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(0,0,0,.05);
}
.sec--dark .chips li, .gcard .chips li {
  background: linear-gradient(135deg, rgba(232,196,100,.12), rgba(196,151,58,.06));
  border: 1px solid rgba(196,151,58,.25); color: var(--on-dark);
}

/* Small caption under a list */
.note, .wcard .note, .gcard .note { font-size: .86rem; margin: 1rem 0 0; }
.sec--light .note, .wcard .note { color: var(--muted-warm); }
.sec--dark .note, .gcard .note { color: var(--on-dark-faint); }

/* ── Photo / emblem frame with floating glass badge ────── */
.frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 4px 0 rgba(196,151,58,.25), 0 16px 48px rgba(0,0,0,.18), 0 40px 80px rgba(0,0,0,.1);
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {                    /* dark bottom overlay */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,20,36,.5) 0%, transparent 55%);
}
.frame--emblem { display: grid; place-items: center; }
.frame--emblem::before {           /* soft gold glow behind the seal */
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,151,58,.28) 0%, transparent 65%);
}
.frame--emblem > img { position: relative; width: 46%; height: auto; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.frame-badge {
  position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg); background: rgba(12,20,36,.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(196,151,58,.2); box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.frame-badge .k { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: .35rem; }
.frame-badge p { font-size: .84rem; line-height: 1.6; color: var(--on-dark-soft); margin: 0; }
.frame-badge p.q { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: #fff; }

/* ── Journal cover cards ───────────────────────────────── */
.jcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 1023px) { .jcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .jcards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.jcard { display: flex; flex-direction: column; }
.jcard-cover {
  position: relative; display: block; aspect-ratio: 1391 / 2000; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1.4rem; background: var(--navy-2);
  box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 12px 48px rgba(0,0,0,.7), 0 4px 0 rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.jcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.jcard-cover::before {             /* diagonal sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.14) 0%, transparent 40%);
}
.jcard-cover::after {              /* left spine */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; z-index: 1;
  background: var(--gold); opacity: .3;
}
@media (hover: hover) {
  .jcard-cover:hover { transform: translateY(-6px);
    box-shadow: 0 2px 0 rgba(255,255,255,.1) inset, 0 20px 60px rgba(0,0,0,.75), 0 4px 0 rgba(0,0,0,.3), 0 0 0 1px rgba(196,151,58,.35); }
}
.jcard-abbr { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: .45rem; }
.jcard h2, .jcard h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .6rem; color: #fff; }
.jcard p  { font-size: .9rem; flex: 1; margin-bottom: 1.2rem; }
.jcard .jcard-abbr { flex: 0 0 auto; }
.jcard .btn { align-self: flex-start; }

/* Cover-art fallback — used only while a journal has no cover file yet */
.jcard-cover--fallback { display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.25rem; color: #fff; }
.jcard-cover--fallback .ct { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.jcard-cover--fallback .cm { font-size: .72rem; opacity: .82; }
.cover--rscsl  { background: linear-gradient(160deg, #4B2472, #2A1244); }
.cover--sfrems { background: linear-gradient(160deg, #8C1F1F, #134A2C); }
.cover--reabms { background: linear-gradient(160deg, #D4A017, #2E6FA8); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding-block: calc(var(--row-pad) * .9) var(--row-pad); }
.hero .cols { gap: 3rem; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--gold-light); margin: 1.4rem 0 1.5rem; line-height: 1.45; }
.hero .intro { color: var(--on-dark-soft); max-width: 36rem; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-actions .btn + .btn { margin-left: 0; }

.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 3rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid rgba(196,151,58,.2); list-style: none; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stats span { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-top: .35rem; }

/* Fanned covers on the right of the hero */
.fan { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end;
  padding: 1.5rem 0 2rem; }
.fan a { display: block; border-radius: 6px; overflow: hidden; background: var(--navy-2);
  box-shadow: 0 2px 0 rgba(255,255,255,.08) inset, 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.fan a:nth-child(1) { transform: translateY(18px) rotate(-3deg); }
.fan a:nth-child(2) { transform: translateY(-10px) scale(1.06); z-index: 1; }
.fan a:nth-child(3) { transform: translateY(18px) rotate(3deg); }
@media (hover: hover) {
  .fan a:hover { z-index: 2; transform: translateY(-14px) scale(1.08);
    box-shadow: 0 2px 0 rgba(255,255,255,.1) inset, 0 32px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(196,151,58,.4); }
}
.fan img { width: 100%; height: auto; aspect-ratio: 1391 / 2000; object-fit: cover; }
.fan-note { grid-column: 1 / -1; text-align: center; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-dark-faint); margin: 1.4rem 0 0; }
@media (max-width: 1023px) {
  .hero .cols { gap: 3rem; }
  .fan { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 639px) {
  .fan { gap: .6rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .label { font-size: .62rem; letter-spacing: .16em; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
  .stats b { font-size: 1.25rem; }
  .stats span { font-size: .56rem; letter-spacing: .12em; }
}

/* ── Decorative ────────────────────────────────────────── */
.bigquote {                        /* oversized background quote mark */
  position: absolute; top: 2rem; right: 3rem; z-index: 0; font-family: var(--font-display);
  font-size: 200px; line-height: 1; color: rgba(196,151,58,.08); pointer-events: none; user-select: none;
}
.rule {                            /* ── ● ── centred rule */
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.5rem auto 1.75rem;
}
.rule::before, .rule::after { content: ""; flex: 1; max-width: 96px; height: 1px; }
.rule::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after  { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ── Scroll reveal (progressive: only active once reveal.js runs) ── */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .7s var(--ease-out);
}
.js-reveal [data-reveal="left"]  { transform: translateX(-28px); }
.js-reveal [data-reveal="right"] { transform: translateX(28px); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* Grid children cascade left-to-right */
.js-reveal [data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
.js-reveal [data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js-reveal [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.js-reveal [data-reveal="stagger"] > :nth-child(2) { transition-delay: 90ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(3) { transition-delay: 180ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(4) { transition-delay: 270ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(5) { transition-delay: 360ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(6) { transition-delay: 450ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(7) { transition-delay: 540ms; }
.js-reveal [data-reveal="stagger"] > :nth-child(n+8) { transition-delay: 600ms; }

/* ── Header ────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,15,30,.86);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,151,58,.15);
  box-shadow: 0 4px 32px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.04) inset;
}
.masthead .shell { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: 0 0 auto; }
.seal { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(196,151,58,.35)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em;
  color: #fff; line-height: 1.05; }
.brand-sub  { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  color: var(--on-dark-faint); }

.nav { margin-left: auto; display: flex; gap: .15rem; align-items: center; }
.nav a { font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.62); text-decoration: none; padding: .55rem .6rem; border-radius: var(--radius-sm);
  transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { margin-left: .6rem; }
.nav .btn-primary { color: var(--gold-ink); letter-spacing: .08em; text-transform: uppercase; }
/* Seven links plus the CTA need ~1240px; below that the CTA yields to the
   Contacts link (the mobile menu brings it back). */
@media (min-width: 1024px) and (max-width: 1279px) { .nav .btn { display: none; } }

.navtoggle { display: none; margin-left: auto; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm);
  padding: .5rem .8rem; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; cursor: pointer; }

@media (max-width: 1023px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
         background: rgba(8,12,24,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
         border-bottom: 1px solid rgba(196,151,58,.2); box-shadow: 0 24px 48px rgba(0,0,0,.5);
         flex-direction: column; align-items: stretch; padding: .5rem var(--s5) var(--s5); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
  .navtoggle { display: block; }
  .brand-sub { display: none; }
}

/* ── Footer ────────────────────────────────────────────── */
footer.site { background: var(--near-black); color: var(--on-dark-soft); position: relative; }
footer.site::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,151,58,.5), transparent); }
footer.site > .shell { padding-block: var(--s8) var(--s7);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s6); }
@media (max-width: 900px) { footer.site > .shell { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { footer.site > .shell { grid-template-columns: 1fr; } }
.fbrand p { font-size: .86rem; line-height: 1.7; color: var(--on-dark-faint); margin: 1.1rem 0 0; max-width: 30ch; }
.fcol { display: flex; align-items: center; gap: .6rem; color: var(--gold-light); font-size: .68rem;
  font-family: var(--font-body); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: var(--s4); }
.fcol::before { content: ""; width: 14px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: .55rem; }
footer.site a { color: var(--on-dark-soft); text-decoration: none; font-size: .92rem; transition: color .2s; }
footer.site a:hover { color: var(--gold-light); }
footer.site p { color: var(--on-dark-soft); font-size: .92rem; line-height: 1.7; }
footer.site address { font-style: normal; }

/* Deferred targets: rendered inert rather than as empty anchors. */
.inert { color: rgba(255,255,255,.4); cursor: default; font-size: .92rem; }

.colophon { border-top: 1px solid rgba(255,255,255,.08); }
.colophon .shell { padding-block: var(--s4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.5); }


/* ═══════════════════════════════════════════════════════════
   PART 2 — PAGE-SPECIFIC COMPONENTS
   Detail-page and listing components with no generic Part 1
   equivalent (event/announcement rows, forms, profile cards).
   All re-tokened to the same palette as Part 1.
   ═══════════════════════════════════════════════════════════ */

/* ── Boxes ─────────────────────────────────────────────── */
.emptybox { border: 1px dashed var(--color-rule); border-radius: var(--radius-lg);
            padding: var(--s7); background: #fff; max-width: 620px; }
.emptybox h2 { margin-bottom: var(--s3); }

/* ── In-page section navigation ────────────────────────── */
.subnav {
  background: rgba(247,244,238,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
  position: sticky; top: var(--header-h); z-index: 40;
}
.subnav .shell { display: flex; gap: var(--s2); padding-block: .65rem; overflow-x: auto; }
.subnav a {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-slate);
  text-decoration: none; padding: .45rem .8rem;
  border-radius: var(--radius); white-space: nowrap;
}
.subnav a:hover { background: #fff; color: var(--color-structure); }

.panel-sub {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); margin: var(--s4) 0 var(--s2);
}

/* ── Callout ───────────────────────────────────────────── */
.callout {
  margin-top: var(--s6);
  border-left: 3px solid var(--gold);
  padding: var(--s4) 0 var(--s4) var(--s5);
}
.callout h3 { margin-bottom: var(--s2); }
.callout p { margin: 0; max-width: 72ch; }
.callout--onnavy p { color: var(--on-dark-soft); }

.measure-wide { max-width: 78ch; }

/* ── Event listings ────────────────────────────────────── */
.elist { border-top: 1px solid var(--color-rule); }
.eitem {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: var(--s5); align-items: start;
  padding: var(--s5) 0; border-bottom: 1px solid var(--color-rule);
}
.eitem--thumb { grid-template-columns: 96px 160px 1fr auto; }
.ethumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--color-ground-alt); }
.ethumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .eitem, .eitem--thumb { grid-template-columns: 1fr; gap: var(--s3); }
  .ethumb { max-width: 320px; }
  .eitem .btn { justify-self: start; }
}
.edate {
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
  color: var(--gold-text); font-variant-numeric: tabular-nums; font-size: 1.05rem;
}
.edate small {
  display: block; font-family: var(--font-body); font-size: .78rem;
  color: var(--color-slate); font-weight: 400;
}
.eitem h2, .eitem h3 { font-size: 1.1rem; margin: .45rem 0 .3rem; }
.eitem h2 a, .eitem h3 a { color: var(--color-structure); text-decoration: none; }
.eitem h2 a:hover, .eitem h3 a:hover { text-decoration: underline; }
.eitem p { font-size: .94rem; color: var(--color-slate); margin: 0 0 .4rem; max-width: 64ch; }
.emeta { font-size: .88rem; color: var(--color-faint); }
.eitem--past .edate { color: var(--color-slate); }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 3px; white-space: nowrap;
  background: rgba(196,151,58,.15); color: var(--gold-text);
}
.pill--past { background: #ECE8DF; color: var(--color-slate); }

/* ── Event / announcement detail ───────────────────────── */
.factbar {
  display: flex; flex-wrap: wrap; gap: var(--s6);
  margin: 0 0 var(--s6); padding: var(--s4) 0;
  border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule);
}
.factbar dt {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-slate); margin-bottom: .2rem;
}
.factbar dd { margin: 0; font-weight: 600; color: var(--color-structure); font-size: .98rem; }
.ebanner { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--s6); }
.eactions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: var(--s6); }
.eactions .btn + .btn { margin-left: 0; }
.ameta { color: var(--gold-light); font-size: .92rem; margin-top: var(--s3); }

/* Body content stored from the admin editor. */
.prose h2 { font-size: 1.4rem; margin: var(--s6) 0 var(--s3); }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 var(--s4); }
.prose li { margin-bottom: .3rem; }
.prose blockquote {
  margin: var(--s5) 0; padding-left: var(--s5);
  border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-size: 1.08rem;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: var(--s6); }
.pagination a, .pagination span {
  padding: .45rem .8rem; border: 1px solid var(--color-rule);
  border-radius: var(--radius); font-size: .9rem;
  text-decoration: none; color: var(--color-structure); background: #fff;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-text); }
.pagination .cur { background: var(--color-structure); color: #fff; border-color: var(--color-structure); }

/* ── Contact profile cards ─────────────────────────────── */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pcards { grid-template-columns: 1fr; } }
.pcard {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid rgba(196,151,58,.18);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg); padding: var(--s5);
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.07);
}
.pcard-mark { width: 56px; height: 56px; margin-bottom: var(--s4); }
.pcard-mark img,
.pcard-mark svg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pcard-mono {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  color: #fff; letter-spacing: .02em;
}
.pcard-name { font-size: 1.05rem; margin-bottom: .25rem; }
.pcard-role { font-size: .88rem; color: var(--color-slate); margin-bottom: var(--s4); flex: 1; }
.pcard-email {
  font-size: .9rem; font-weight: 600; word-break: break-word;
  text-decoration: none; text-underline-offset: 3px;
}
.pcard-email:hover { text-decoration: underline; }
.postal { font-style: normal; line-height: 1.8; }

/* Core value names are set in caps on the client's site; letterspacing keeps
   them legible at that treatment rather than cramped. */
.value-name { font-size: 1rem; letter-spacing: .08em; }

/* ── Site-wide flash banner (public forms) ───────────────── */
.flash {
  border-radius: var(--radius); padding: .8rem 1.1rem; font-size: .94rem; font-weight: 500;
  margin-block: var(--s5) 0; border-left: 3px solid;
}
.flash-success { background: #E8F5ED; border-color: var(--color-success); color: #125634; }
.flash-danger  { background: #FCEBEA; border-color: var(--color-danger);  color: #7E1B15; }

/* ── Consultation request form ───────────────────────────── */
.inquiry-form .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.inquiry-form .f { display: flex; flex-direction: column; gap: .35rem; }
.inquiry-form .f.full { grid-column: 1 / -1; }
.inquiry-form .f label { font-size: .9rem; font-weight: 600; color: var(--color-structure); }
.inquiry-form .req { color: var(--color-danger); }
.inquiry-form .opt { font-weight: 400; color: var(--color-slate); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font: inherit; font-size: .95rem; padding: .65rem .8rem; border: 1px solid var(--color-rule);
  border-radius: var(--radius); background: #fff; width: 100%; color: var(--ink-warm);
}
.inquiry-form textarea { min-height: 130px; resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.inquiry-form .invalid { border-color: var(--color-danger); background: #FFFBFB; }
.inquiry-form .ferr { font-size: .84rem; color: var(--color-danger); font-weight: 600; margin: 0; }
.inquiry-form .radios { display: flex; gap: .6rem; flex-wrap: wrap; }
.inquiry-form .radios label {
  display: flex; gap: .4rem; align-items: center; font-weight: 400; font-size: .93rem;
  border: 1px solid var(--color-rule); border-radius: var(--radius); padding: .5rem .85rem;
  background: #fff; cursor: pointer;
}
.inquiry-form .radios input { width: auto; }
@media (max-width: 700px) { .inquiry-form .fgrid { grid-template-columns: 1fr; } }

/* Honeypot: off-screen, not display:none, so it stays reachable to the bots
   that skip hidden fields but is invisible and unreachable for everyone else. */
.inquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
