/* ==========================================================================
   Manchester Business Services — main.css
   Single source of truth for design tokens and components. Hand-written.
   Art direction: "The Register" — editorial luxury, navy grounds, gold
   hairlines, Cormorant Garamond display over Jost body.
   ========================================================================== */

/* ---- Fonts (self-hosted variable fonts, latin subset) ------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */

:root {
  /* Colour */
  --navy: #0C1B2A;
  --navy-deep: #081420;
  --navy-soft: #16283C;
  --gold: #C9A227;
  --gold-light: #E3C567;
  --gold-deep: #A8871D;          /* pressed states only */
  --ivory: #F4F2EC;
  --surface: #FBFAF6;
  --ink: #22303F;
  --muted: #6B7887;

  /* Hairlines */
  --hairline-gold: rgba(201, 162, 39, 0.35);   /* on navy */
  --hairline-navy: rgba(12, 27, 42, 0.14);     /* on ivory */

  /* Type scale (rem) */
  --fs-2xs: 0.64rem;
  --fs-xs: 0.7rem;
  --fs-sm: 0.82rem;
  --fs-base: 1rem;
  --fs-md: 1.2rem;
  --fs-lg: 1.5rem;
  --fs-xl: 1.9rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: 3.2rem;
  --fs-display: clamp(2.8rem, 1.4rem + 4.4vw, 5.6rem);  /* 4.5–5.6 fluid */

  /* Spacing — 4px base, steps 1–24 */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 24px; --s-7: 28px;  --s-8: 32px;  --s-9: 36px;  --s-10: 40px;
  --s-11: 44px; --s-12: 48px; --s-13: 52px; --s-14: 56px; --s-15: 60px;
  --s-16: 64px; --s-17: 68px; --s-18: 72px; --s-19: 76px; --s-20: 80px;
  --s-21: 84px; --s-22: 88px; --s-23: 92px; --s-24: 96px;

  /* Type families */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --measure: 66ch;
  --container: 1200px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast: 160ms;
  --t-med: 260ms;
}

/* ---- Reset & base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }

a {
  color: inherit;
  text-decoration-color: var(--hairline-navy);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease),
              text-decoration-color var(--t-fast) var(--ease);
}
a:hover { color: var(--navy); text-decoration-color: var(--gold); }

::selection { background: var(--gold-light); color: var(--navy-deep); }

hr {
  border: 0;
  border-top: 1px solid var(--hairline-navy);
  margin: var(--s-8) 0;
}

/* Dark (navy) contexts — set once on a section */
.on-navy {
  background: var(--navy);
  color: var(--ivory);
}
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--ivory); }
.on-navy a:hover { color: var(--gold-light); text-decoration-color: var(--gold); }
.on-navy hr { border-top-color: var(--hairline-gold); }

/* ---- Accessibility ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--navy);
  color: var(--ivory);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-navy :focus-visible { outline-color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Layout ------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
}

/* ---- Typographic utilities ---------------------------------------------- */

/* Tracked small-caps label — eyebrows, meta, register numbers */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); }

/* True small-caps for mixed-case sources (names in running text) */
.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--navy);
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* Entry number — "Nº 014" */
.entry-no {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

/* ---- Hairline rules ------------------------------------------------------ */

.rule { border: 0; border-top: 1px solid var(--hairline-navy); margin: 0; }
.rule--gold { border-top-color: var(--hairline-gold); }

/* Numbered rule-list (services etc.) */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rule-list;
}
.rule-list li {
  counter-increment: rule-list;
  display: flex;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline-navy);
}
.rule-list li::before {
  content: counter(rule-list, decimal-leading-zero);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  flex: 0 0 2.2em;
}

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

.btn {
  display: inline-block;
  padding: var(--s-3) var(--s-7);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

/* Primary — gold plate, navy text (AA on gold) */
.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover:not([disabled]):not(.is-disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}
.btn--primary:active:not([disabled]):not(.is-disabled) {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* Ghost — hairline frame; fills navy on hover (ivory grounds) */
.btn--ghost {
  border-color: rgba(12, 27, 42, 0.35);
  color: var(--navy);
}
.btn--ghost:hover:not([disabled]):not(.is-disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

/* Ghost on navy grounds — hairline gold; fills gold on hover */
.on-navy .btn--ghost, .btn--ghost-light {
  border-color: var(--hairline-gold);
  color: var(--ivory);
}
.on-navy .btn--ghost:hover:not([disabled]):not(.is-disabled),
.btn--ghost-light:hover:not([disabled]):not(.is-disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

/* ---- Register card ------------------------------------------------------- */

.register-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--hairline-navy);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.register-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 27, 42, 0.32);
  box-shadow: 0 18px 40px -24px rgba(12, 27, 42, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .register-card:hover { transform: none; }
}

.register-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Typographic monogram drop-cap (initial in a hairline frame) —
   replaced by the validated logo when one exists */
.register-card__initial {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline-navy);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  background: var(--ivory);
}
.register-card__logo {
  width: 56px;
  height: 56px;
  border: 1px solid var(--hairline-navy);
  background: #fff;
  padding: 6px;
  object-fit: contain;
}

.register-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
}
.register-card:hover h3 { color: var(--navy-deep); }

.register-card__meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.register-card__meta .sep { color: var(--gold); padding-inline: 0.45em; }

.register-card__summary {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.register-card__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.register-card__foot .arrow {
  color: var(--gold);
  transition: transform var(--t-fast) var(--ease);
}
.register-card:hover .register-card__foot .arrow { transform: translateX(4px); }

/* ---- Badges (tiers) ------------------------------------------------------ */

.badge {
  display: inline-block;
  padding: 3px 10px 2px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-gold);
  color: var(--gold-deep);
}
.badge--verified { border-color: var(--gold); }
.badge--ai-ready {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
  color: var(--gold-deep);
}
.on-navy .badge { color: var(--gold-light); }
.on-navy .badge--ai-ready { color: var(--gold-light); }

/* ---- Motion -------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 640ms var(--ease) both; }
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 140ms; }
.rise-3 { animation-delay: 220ms; }

/* ==========================================================================
   Site chrome
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.capitalize { text-transform: capitalize; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline-navy);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding-block: var(--s-4);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.site-header__word { display: flex; flex-direction: column; gap: 2px; }
.site-header__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header__descriptor {
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__list a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  padding-block: var(--s-2);
  border-bottom: 1px solid transparent;
}
.site-nav__list a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav__list a.is-current { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav__cta { flex-shrink: 0; padding: var(--s-2) var(--s-5); }

@media (max-width: 1080px) {
  .site-header__word { display: none; }
}
@media (max-width: 640px) {
  .site-nav__cta { display: none; }
}

/* ---- Directory hero ------------------------------------------------------- */

.dir-hero { padding-block: var(--s-20) var(--s-16); }
.dir-hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  margin: var(--s-4) 0 var(--s-5);
  color: var(--ivory);
}
.dir-hero__standfirst {
  font-size: var(--fs-md);
  color: var(--ivory);
  max-width: 46ch;
  margin: 0;
}
.dir-hero__standfirst .display-italic { color: var(--gold-light); }

/* ---- Filter band ----------------------------------------------------------- */

.filter-band {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline-navy);
}
.filter-band__row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-3);
  flex-wrap: wrap;
}
.filter-band__search { flex: 1 1 220px; }
.filter-band input[type="search"],
.filter-band select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--hairline-navy);
  padding: var(--s-2) var(--s-4);
  border-radius: 0;
}
.filter-band select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C9A227' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  max-width: 220px;
}
.filter-band input[type="search"]:focus,
.filter-band select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.filter-band__count {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Register grid ---------------------------------------------------------- */

.dir-body { padding-block: var(--s-12) var(--s-20); }
.register-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.register-grid > li { display: grid; }
@media (max-width: 980px) { .register-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .register-grid { grid-template-columns: 1fr; } }

.register-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}
.register-card--compact { padding: var(--s-5); gap: var(--s-3); }
.register-card--compact .register-card__name { font-size: var(--fs-md); }

.filter-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-20) var(--s-6);
}
.filter-empty .display-italic { font-size: var(--fs-xl); }

/* ---- Pagination --------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-6);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline-navy);
}
.pagination__link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.pagination__link:hover { color: var(--gold-deep); }
.pagination__link.is-disabled { color: var(--muted); opacity: 0.5; }
.pagination__state {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Listing page ----------------------------------------------------------------- */

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-8);
  padding: 0;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.breadcrumb li { color: rgba(244, 242, 236, 0.64); }
.breadcrumb li + li::before { content: "/"; color: var(--gold); margin-right: var(--s-2); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

.listing-hero { padding-block: var(--s-14) var(--s-12); }
.listing-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0 0 var(--s-4);
}
.listing-hero__listed {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.56);
}
.listing-hero__name {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  line-height: 1.05;
  color: var(--ivory);
  margin: 0 0 var(--s-5);
  max-width: 22ch;
}
.listing-hero__meta {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.72);
}
.listing-hero__meta .sep, .register-card__meta .sep { color: var(--gold); padding-inline: 0.5em; }

.listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: var(--s-16);
  padding-block: var(--s-14) var(--s-20);
  align-items: start;
}
@media (max-width: 1024px) {
  .listing-body { grid-template-columns: 1fr; gap: var(--s-10); }
}

.listing-figure {
  margin: 0 0 var(--s-12);
  background: var(--navy);
  border: 1px solid var(--hairline-navy);
}
.listing-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.94;
}

.listing-section { margin-bottom: var(--s-14); }
.listing-section h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline-navy);
}
.listing-section .lede { margin-bottom: var(--s-4); }

.faq { margin: 0; }
.faq__item { padding: var(--s-5) 0; border-top: 1px solid var(--hairline-navy); }
.faq__item:first-child { border-top: 0; padding-top: 0; }
.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--navy);
  margin-bottom: var(--s-2);
}
.faq dd { margin: 0; max-width: var(--measure); }

.listing-source {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--hairline-navy);
  padding-top: var(--s-5);
  margin-bottom: var(--s-14);
}

.listing-related h2 .listing-related__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ---- At-a-glance fact panel -------------------------------------------------------- */

.listing-aside { position: sticky; top: var(--s-6); }
@media (max-width: 1024px) { .listing-aside { position: static; } }

.fact-panel { padding: var(--s-8); }
.fact-panel__title {
  font-size: var(--fs-lg);
  color: var(--ivory);
  margin: 0 0 var(--s-2);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline-gold);
}
.fact-panel__list { margin: 0; }
.fact-panel__list > div {
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}
.fact-panel__list > div:last-child { border-bottom: 0; }
.fact-panel dt {
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--s-1);
}
.fact-panel dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ivory);
  overflow-wrap: anywhere;
}
.fact-panel dd a { color: var(--ivory); text-decoration-color: var(--hairline-gold); }
.fact-panel dd a:hover { color: var(--gold-light); }
.fact-panel__ctas {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

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

.site-footer { background: var(--navy-deep); margin-top: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: var(--s-12);
  padding-block: var(--s-16) var(--s-12);
}
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { width: 200px; height: auto; }
.site-footer__tagline { margin-top: var(--s-4); font-size: var(--fs-md); color: var(--gold-light); }
.site-footer__col ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.site-footer__col li { padding: var(--s-1) 0; }
.site-footer__col a {
  font-size: var(--fs-sm);
  color: rgba(244, 242, 236, 0.82);
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--gold-light); }
.site-footer__note p {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: rgba(244, 242, 236, 0.55);
  letter-spacing: 0.04em;
}
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  padding-block: var(--s-5);
}
.site-footer__legal p {
  margin: 0;
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.5);
}
.site-footer__legal-descriptor { color: var(--gold) !important; }

/* ---- Notices (expired events, closed grants) ------------------------------ */

.notice-band {
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline-navy);
}
.notice-band p {
  margin: 0;
  padding-block: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--ink);
  max-width: none;
}
.notice-band strong { color: var(--navy); }

/* ---- News article layout ---------------------------------------------------- */

.article-measure { max-width: 860px; }
.listing-article-body { padding-block: var(--s-14) var(--s-20); }

.in-brief {
  border: 1px solid var(--hairline-navy);
  border-left: 2px solid var(--gold);
  background: var(--ivory);
  padding: var(--s-6) var(--s-7);
  margin-bottom: var(--s-10);
}
.in-brief__label { margin: 0 0 var(--s-2); }
.in-brief__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--navy);
  max-width: none;
}

.article-cta { margin: var(--s-8) 0 var(--s-3); }
.article-attribution {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--s-12);
}

.mention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.mention-list li {
  border: 1px solid var(--hairline-navy);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
}
.mention-list a { text-decoration-color: var(--gold); }

/* ---- Gallery ------------------------------------------------------------------ */

.listing-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-14);
}
@media (max-width: 700px) { .listing-gallery { grid-template-columns: 1fr 1fr; } }
.listing-figure--thumb { margin: 0; }
.listing-figure--thumb img { aspect-ratio: 4 / 3; }

/* ---- Empty directories & footnotes ---------------------------------------------- */

.dir-empty {
  text-align: center;
  padding: var(--s-24) var(--s-6);
  border: 1px solid var(--hairline-navy);
}
.dir-empty__display {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-5);
}
.dir-empty__body {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink);
  margin-bottom: var(--s-8);
}

.dir-footnote {
  margin-top: var(--s-8);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  max-width: none;
}

/* Expired entries, when they appear in related grids */
.register-card.is-expired .register-card__name { color: var(--muted); }

/* ==========================================================================
   Home & static pages
   ========================================================================== */

/* ---- Media heroes (Manchester photography / ambient video) --------------- */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03) brightness(0.92);
}
.hero-media video { position: absolute; inset: 0; }
.hero-media--kenburns img {
  animation: kenburns 28s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07) translateY(-1.6%); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 20, 32, 0.62) 0%,
      rgba(8, 20, 32, 0.30) 42%,
      rgba(8, 20, 32, 0.55) 70%,
      rgba(8, 20, 32, 0.94) 100%),
    rgba(12, 27, 42, 0.22);
}
.hero-scrim::after {                    /* gold hairline above the content */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--hairline-gold);
}
@media (prefers-reduced-motion: reduce) {
  .hero-media--kenburns img { animation: none; }
  .hero-media video { display: none; }
}

.home-hero--media,
.dir-hero--media {
  position: relative;
  isolation: isolate;
}
.home-hero--media > .container,
.dir-hero--media > .container {
  position: relative;
  z-index: 1;
}

.home-hero--media {
  min-height: min(88vh, 900px);
  display: grid;
  align-items: end;
  padding-block: var(--s-24) var(--s-20);
}
.dir-hero--media { padding-block: var(--s-24) var(--s-16); }
.dir-hero--media .dir-hero__standfirst,
.home-hero--media .home-hero__sub { text-shadow: 0 1px 24px rgba(8, 20, 32, 0.55); }

.home-hero { padding-block: var(--s-24) var(--s-20); }
.home-hero__title {
  font-size: var(--fs-display);
  line-height: 1.04;
  color: var(--ivory);
  margin: var(--s-5) 0 var(--s-6);
  max-width: 17ch;
}
.home-hero__sub {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: rgba(244, 242, 236, 0.88);
  max-width: 58ch;
  margin-bottom: var(--s-8);
}
.home-hero__ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; margin: 0; }

.home-band { padding-block: var(--s-20); }
.home-band--rule { border-top: 1px solid var(--hairline-navy); }
.home-band__title {
  font-size: var(--fs-2xl);
  max-width: 22ch;
  margin: var(--s-3) 0 var(--s-6);
}
.home-band__split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 900px) { .home-band__split { grid-template-columns: 1fr; gap: var(--s-6); } }
.home-band__body p { max-width: 58ch; }
.on-navy .home-band__body p { color: rgba(244, 242, 236, 0.88); }
.home-pullquote {
  font-size: var(--fs-xl);
  color: var(--gold-light);
  margin-top: var(--s-8);
}

/* ---- The wire ticker (hero bottom band) ----------------------------------- */

.home-hero__inner { width: 100%; }
.home-hero--media { padding-bottom: calc(var(--s-20) + 52px); }

.wire-ticker {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  background: rgba(8, 20, 32, 0.92);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--hairline-gold);
  height: 52px;
}
.wire-ticker__label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-inline: var(--s-6);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-right: 1px solid var(--hairline-gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.wire-ticker__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: wire-pulse 2.2s ease-in-out infinite;
}
@keyframes wire-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.wire-ticker__viewport { overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; }
.wire-ticker__track {
  display: flex;
  gap: var(--s-16);
  padding-inline: var(--s-8);
  white-space: nowrap;
  width: max-content;
  animation: wire-scroll 90s linear infinite;
}
.wire-ticker:hover .wire-ticker__track { animation-play-state: paused; }
@keyframes wire-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wire-ticker__item {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: rgba(244, 242, 236, 0.88);
  text-decoration: none;
}
.wire-ticker__item::after { content: "·"; color: var(--gold); margin-left: var(--s-16); }
.wire-ticker__item:hover { color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) {
  .wire-ticker__track { animation: none; }
  .wire-ticker__viewport { overflow-x: auto; }
  .wire-ticker__label::before { animation: none; }
}
@media (max-width: 640px) { .wire-ticker__label { display: none; } }

/* ---- The morning wire ------------------------------------------------------ */

.wire { padding-top: var(--s-16); }
.wire__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4) var(--s-8);
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline-navy);
}
.wire__updated {
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}
.wire__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 980px) { .wire__grid { grid-template-columns: 1fr; } }

.wire-lead { margin-bottom: var(--s-8); }
.wire-lead__eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--s-3);
}
.wire-lead__headline {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: var(--s-4);
  max-width: 24ch;
}
.wire-lead__headline a { text-decoration: none; color: var(--navy); }
.wire-lead__headline a:hover { color: var(--gold-deep); }
.wire-lead__brief {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}
.wire-lead__meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.wire-lead__meta .sep { color: var(--gold); padding-inline: 0.5em; }

.wire-list { list-style: none; margin: 0; padding: 0; }
.wire-list__item a {
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-2);
  border-top: 1px solid var(--hairline-navy);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease);
}
.wire-list__item a:hover { background: var(--ivory); }
.wire-list__no {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  flex-shrink: 0;
}
.wire-list__body { flex: 1; min-width: 0; }
.wire-list__headline {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.25;
  color: var(--navy);
}
.wire-list__item a:hover .wire-list__headline { color: var(--gold-deep); }
.wire-list__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.wire-list__item .arrow { color: var(--gold); flex-shrink: 0; }
.wire__more { margin-top: var(--s-5); }
.wire__more a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.wire__more a:hover { color: var(--gold-deep); }

/* The datebook */
.wire__datebook {
  border: 1px solid var(--hairline-navy);
  background: var(--ivory);
  padding: var(--s-7);
}
.datebook__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline-navy);
}
.datebook { list-style: none; margin: 0; padding: 0; }
.datebook__row {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline-navy);
  text-decoration: none;
  color: inherit;
}
.datebook li:last-child .datebook__row { border-bottom: 0; }
.datebook__date {
  flex: 0 0 58px;
  text-align: center;
  border: 1px solid var(--hairline-navy);
  background: var(--surface);
  padding: var(--s-2) 0 var(--s-1);
}
.datebook__day {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--navy);
}
.datebook__month {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
}
.datebook__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.25;
  color: var(--navy);
}
.datebook__row:hover .datebook__name { color: var(--gold-deep); }
.datebook__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.datebook__empty { color: var(--muted); font-size: var(--fs-sm); }

/* ---- Register in numbers (colophon) ---------------------------------------- */

.colophon { padding-block: var(--s-16); }
.colophon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
}
@media (max-width: 900px) { .colophon__grid { grid-template-columns: 1fr 1fr; } }
.colophon__cell {
  border-left: 1px solid var(--hairline-gold);
  padding-left: var(--s-6);
}
.colophon__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem);
  line-height: 1;
  color: var(--ivory);
  margin: 0 0 var(--s-2);
}
.colophon__label {
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
}

/* Chapter list — the six directories as a register contents page */
.chapter-list { list-style: none; margin: var(--s-10) 0 0; padding: 0; }
.chapter-row {
  display: grid;
  grid-template-columns: 72px 1fr auto 32px;
  gap: var(--s-6);
  align-items: baseline;
  padding: var(--s-6) var(--s-2);
  border-top: 1px solid var(--hairline-navy);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease);
}
.chapter-list li:last-child .chapter-row { border-bottom: 1px solid var(--hairline-navy); }
.chapter-row:hover { background: var(--ivory); }
.chapter-row__numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--gold);
}
.chapter-row__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--navy);
}
.chapter-row__line {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 56ch;
}
.chapter-row__count {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}
.chapter-row__arrow { color: var(--gold); transition: transform var(--t-fast) var(--ease); }
.chapter-row:hover .chapter-row__arrow { transform: translateX(4px); }

/* The chapter stage: a fixed photograph frame beside the contents list.
   The first directory's image shows by default; hovering a row swaps the
   stage to that directory's photograph (pure CSS via :has()). */
.chapter-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-16);
  align-items: start;
}
.chapter-stage {
  position: sticky;
  top: var(--s-10);
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: visible;
}
.chapter-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 480ms var(--ease);
  filter: saturate(0.82) contrast(1.04);
}
.chapter-stage__img:first-child { opacity: 1; }
.chapter-split:has(.chapter-list a:hover) .chapter-stage__img { opacity: 0; }
.chapter-split:has(.chapter-list li:nth-child(1) a:hover) .chapter-stage__img:nth-of-type(1),
.chapter-split:has(.chapter-list li:nth-child(2) a:hover) .chapter-stage__img:nth-of-type(2),
.chapter-split:has(.chapter-list li:nth-child(3) a:hover) .chapter-stage__img:nth-of-type(3),
.chapter-split:has(.chapter-list li:nth-child(4) a:hover) .chapter-stage__img:nth-of-type(4),
.chapter-split:has(.chapter-list li:nth-child(5) a:hover) .chapter-stage__img:nth-of-type(5),
.chapter-split:has(.chapter-list li:nth-child(6) a:hover) .chapter-stage__img:nth-of-type(6) {
  opacity: 1;
}
.chapter-stage__caption { z-index: 2; }
@media (max-width: 1080px) {
  .chapter-split { grid-template-columns: 1fr; }
  .chapter-stage { display: none; }
}

/* ---- Register-mark frames (crop-mark corners on photographs) --------------- */

.frame-marks { position: relative; }
.frame-marks::before,
.frame-marks::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}
.frame-marks::before {
  top: -8px; left: -8px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}
.frame-marks::after {
  bottom: -8px; right: -8px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}
.frame-marks__caption {
  position: absolute;
  left: 0;
  bottom: -1.9em;
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- The primer (what this is · how to use it) ------------------------------ */

.home-primer { padding-block: var(--s-20) var(--s-24); }
.home-primer__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-20);
  align-items: start;
}
@media (max-width: 980px) {
  .home-primer__grid { grid-template-columns: 1fr; gap: var(--s-12); }
}
.home-primer__lede {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  max-width: 54ch;
  margin-bottom: var(--s-10);
}
.primer-uses { list-style: none; margin: 0; padding: 0; }
.primer-use {
  display: flex;
  gap: var(--s-6);
  padding: var(--s-6) var(--s-2);
  border-top: 1px solid var(--hairline-navy);
}
.primer-use__no {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.5em;
  flex-shrink: 0;
}
.primer-use__name {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
}
.primer-use__name a { text-decoration: none; color: var(--navy); }
.primer-use__name a::after { content: " →"; color: var(--gold); font-family: var(--font-body); font-size: 0.7em; }
.primer-use__name a:hover { color: var(--gold-deep); }
.primer-use p { margin: 0; font-size: var(--fs-sm); max-width: 46ch; }

.home-primer__figure {
  margin: var(--s-6) 0 0;
  aspect-ratio: 4 / 5;
  background: var(--navy);
}
.home-primer__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: saturate(0.82) contrast(1.04);
}

/* ---- Full-bleed interludes ---------------------------------------------------- */

.interlude {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: end;
  background-image: var(--bg-sm);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
@media (min-width: 1000px) { .interlude { background-image: var(--bg); } }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .interlude { background-attachment: fixed; }
}
.interlude__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 32, 0.55) 0%, rgba(8, 20, 32, 0.18) 45%, rgba(8, 20, 32, 0.78) 100%),
    rgba(12, 27, 42, 0.22);
}
.interlude__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--s-16);
}
.interlude__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem);
  line-height: 1.18;
  color: var(--ivory);
  max-width: 24ch;
  margin: var(--s-3) 0 0;
  text-wrap: balance;
}

/* ---- Colophon over photography -------------------------------------------------- */

.colophon {
  position: relative;
  padding-block: var(--s-16);
  background: var(--navy);
  isolation: isolate;
}
.colophon--image {
  background-image: var(--bg-sm);
  background-size: cover;
  background-position: center 38%;
  padding-block: var(--s-24);
}
@media (min-width: 1000px) { .colophon--image { background-image: var(--bg); } }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .colophon--image { background-attachment: fixed; }
}
.colophon__scrim { position: absolute; inset: 0; z-index: 0; background: rgba(8, 20, 32, 0.66); }
.colophon:not(.colophon--image) .colophon__scrim { display: none; }
.colophon__inner { position: relative; z-index: 1; }

/* ---- Closing over photography ----------------------------------------------------- */

.home-close {
  position: relative;
  padding-block: var(--s-24);
  text-align: center;
  background: var(--navy-deep);
  isolation: isolate;
}
.home-close--image {
  background-image: var(--bg-sm);
  background-size: cover;
  background-position: center 30%;
}
@media (min-width: 1000px) { .home-close--image { background-image: var(--bg); } }
.home-close__scrim { position: absolute; inset: 0; z-index: 0; background: rgba(8, 20, 32, 0.72); }
.home-close:not(.home-close--image) .home-close__scrim { display: none; }
.home-close__inner { position: relative; z-index: 1; text-align: center; }
.home-close__inner .eyebrow { color: var(--gold); }
.home-close__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

/* ---- Scroll reveal (JS adds .in-view; safe without JS) ----------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .js .reveal.in-view { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .chapter-row { grid-template-columns: 44px 1fr; }
  .chapter-row__count, .chapter-row__arrow { display: none; }
}

/* Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-10);
  margin-top: var(--s-10);
}
@media (max-width: 800px) { .step-grid { grid-template-columns: 1fr; } }
.step__no {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold);
  border-top: 1px solid var(--hairline-navy);
  padding-top: var(--s-4);
  margin: 0 0 var(--s-2);
}
.step__name { margin-bottom: var(--s-2); }
.step p:last-child { font-size: var(--fs-sm); color: var(--ink); }

/* Latest from the register */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  margin-top: var(--s-8);
}
@media (max-width: 900px) { .latest-grid { grid-template-columns: 1fr; } }
.latest-grid__title { font-size: var(--fs-lg); margin-bottom: var(--s-5); }
.latest-stack { display: grid; gap: var(--s-4); }
.latest-grid__more { margin-top: var(--s-4); }
.latest-grid__more a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.latest-grid__more a:hover { color: var(--gold-deep); }

/* Tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1000px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--hairline-navy);
  padding: var(--s-7);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.tier--featured { background: var(--navy); border-color: var(--navy); }
.tier--featured .tier__name, .tier--featured .tier__price { color: var(--ivory); }
.tier--featured .tier__line, .tier--featured .tier__list { color: rgba(244, 242, 236, 0.82); }
.tier--featured .tier__list li { border-top-color: var(--hairline-gold); }
.tier__name {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
}
.tier--featured .tier__name { color: var(--gold-light); }
.tier__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  color: var(--navy);
  margin: 0;
  line-height: 1;
}
.tier__price span { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.tier__line { font-size: var(--fs-sm); margin: 0; }
.tier__list { list-style: none; margin: var(--s-2) 0 0; padding: 0; font-size: var(--fs-sm); }
.tier__list li { padding: var(--s-2) 0; border-top: 1px solid var(--hairline-navy); }

/* Closing band */
.home-close { padding-block: var(--s-24); text-align: center; background: var(--navy-deep); }
.home-close__title {
  font-size: var(--fs-3xl);
  color: var(--ivory);
  max-width: 24ch;
  margin: var(--s-4) auto var(--s-8);
}
.home-close .home-hero__ctas { justify-content: center; }

/* Submission form */
.submit-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 900px) { .submit-grid { grid-template-columns: 1fr; } }
.submit-form { display: grid; gap: var(--s-5); }
.submit-form label {
  display: grid;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.submit-form input, .submit-form select, .submit-form textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--hairline-navy);
  padding: var(--s-3) var(--s-4);
  border-radius: 0;
}
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.submit-form button { justify-self: start; }
.submit-form__note { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.04em; }
.submit-aside { padding: var(--s-8); }
.submit-steps { margin: var(--s-5) 0 0; padding-left: 1.2em; }
.submit-steps li { padding: var(--s-2) 0; color: rgba(244, 242, 236, 0.88); font-size: var(--fs-sm); }
.note { font-size: var(--fs-sm); color: var(--muted); }
