/* ==========================================================================
   THE UPPER COURT — Concept Folio
   Design system: "The Elevation Line"
   Two serifs (Cinzel ≈ Perpetua Titling MT · EB Garamond ≈ Garamond).
   Ivory paper, navy ink, gold line-weight. No boxes, no shadows, no radius.
   ========================================================================== */

:root {
  --ivory:      #F7F3EC;
  --ivory-2:    #F1EAE0;
  --ink:        #14212F;
  --ink-soft:   rgba(20, 33, 47, .68);
  --navy:       #0D1B2A;
  --navy-deep:  #0A1522;
  --gold:       #C7A65A;
  --gold-ink:   #7A6230;
  --line:       rgba(20, 33, 47, .18);
  --line-soft:  rgba(20, 33, 47, .10);
  --line-lt:    rgba(247, 243, 236, .22);
  --line-lt-soft: rgba(247, 243, 236, .10);

  --titling: "Marcellus", "Perpetua Titling MT", "Trajan Pro", serif;
  --serif:   "Crimson Pro", "Garamond", "Times New Roman", serif;
  --sans:    "Carlito", "Calibri", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(20px, 2.2vw, 36px);
  --margin: clamp(24px, 5vw, 84px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.folio-dark {
  background: var(--navy);
  color: rgba(247, 243, 236, .88);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--navy); }

h1, h2, h3, .display, .hero-title { text-wrap: balance; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -60px; left: var(--margin);
  z-index: 300;
  background: var(--navy);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 12px 22px;
  transition: top .3s;
}

.skip-link:focus { top: 12px; }

/* ---------- type utilities ---------- */

.titling {
  font-family: var(--titling);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: .04em;
}

.folio-dark .titling { color: var(--ivory); }

.caps {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.gold { color: var(--gold-ink); }
.folio-dark .gold, .on-dark .gold { color: var(--gold); }

/* subhead: a true secondary heading in the titling face.
   No eyebrows, no dashes, no whispering labels above headlines. */
.subhead {
  font-family: var(--titling);
  font-size: clamp(18px, 1.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-ink);
  line-height: 1.3;
}

.folio-dark .subhead, .on-dark .subhead { color: var(--gold); }

/* the hero carries the crest itself, like a letterhead stamp */
.hero-crest {
  height: clamp(56px, 6vw, 76px);
  width: auto;
  margin-bottom: 30px;
  filter: invert(96%) sepia(6%) saturate(300%) hue-rotate(340deg) brightness(104%);
  opacity: .95;
}

.ital { font-style: italic; font-weight: 400; }

h1, h2, h3 { font-weight: 500; }

.lede {
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
}

.folio-dark .lede, .on-dark .lede { color: rgba(247, 243, 236, .72); }

.smallnote {
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-soft);
  opacity: .8;
  line-height: 1.6;
}

.folio-dark .smallnote, .on-dark .smallnote { color: rgba(247, 243, 236, .55); }

/* ---------- masthead ---------- */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin);
  height: 104px;
  transition: background .5s var(--ease-out), border-color .5s, height .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.masthead.solid {
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  height: 84px;
}

.folio-dark .masthead.solid {
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  border-bottom-color: var(--line-lt-soft);
}

.mast-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mast-brand img { height: 74px; width: auto; transition: height .5s var(--ease-out); }
.masthead.solid .mast-brand img { height: 62px; }

/* wordmark: a tight, vertically-centred two-line lock-up */
.mast-brand > span {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.mast-brand .mb-name {
  font-family: var(--titling);
  font-size: 30px;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.mast-brand .mb-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 3px;
}

.on-dark-mast .mast-brand .mb-name,
.folio-dark .mast-brand .mb-name { color: var(--ivory); }
.on-dark-mast .mast-brand .mb-sub,
.folio-dark .mast-brand .mb-sub { color: var(--gold); }
.on-dark-mast .mast-brand img { filter: invert(96%) sepia(6%) saturate(300%) hue-rotate(340deg) brightness(104%); }
.folio-dark .mast-brand img { filter: invert(96%) sepia(6%) saturate(300%) hue-rotate(340deg) brightness(104%); }

/* left cluster: brand + primary CTA */
.mast-left {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

/* folio switcher — I · II · III */
.mast-right {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 56px);
}

.mast-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 12px 24px;
  white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s;
}

.mast-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.on-dark-mast .mast-cta, .folio-dark .mast-cta {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}
.on-dark-mast .mast-cta:hover, .folio-dark .mast-cta:hover { background: var(--ivory); border-color: var(--ivory); }

@media (max-width: 600px) { .mast-cta { display: none; } }

/* ---------- menu button + overlay ---------- */

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  padding: 13px 22px;
  transition: border-color .35s, color .35s;
}

.menu-btn:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

.on-dark-mast .menu-btn, .folio-dark .menu-btn { color: var(--ivory); border-color: var(--line-lt); }
.folio-dark .menu-btn:hover, .on-dark-mast .menu-btn:hover { border-color: var(--gold); color: var(--gold); }

.menu-btn-icon { display: inline-flex; flex-direction: column; gap: 6px; width: 26px; }
.menu-btn-icon i { display: block; height: 2px; width: 100%; background: currentColor; transition: background .3s; }

html.menu-open { overflow: hidden; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-panel {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(88px, 12vh, 130px) var(--margin) clamp(40px, 8vh, 70px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-close {
  position: fixed;
  top: 22px;
  right: var(--margin);
  width: 48px; height: 48px;
  border: none; background: none; cursor: pointer;
  font-family: var(--serif);
  font-size: 36px; line-height: 1;
  color: var(--ink-soft);
  transition: color .3s;
}
.menu-close:hover { color: var(--ink); }

.menu-list { display: flex; flex-direction: column; }

.menu-item {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(16px, 2.3vh, 26px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
}
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item:hover { padding-left: 14px; }

.mi-no { font-family: var(--titling); font-size: 15px; color: var(--gold-ink); white-space: nowrap; }

.mi-title {
  font-family: var(--titling);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(24px, 3.6vw, 42px);
  color: var(--ink);
  display: block;
  line-height: 1.04;
  transition: color .3s;
}
.menu-item:hover .mi-title { color: var(--gold-ink); }

.mi-desc { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); display: block; margin-top: 7px; }

.menu-item.current .mi-title { color: var(--gold-ink); }

.menu-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(34px, 6vh, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.menu-crest { height: 50px; width: auto; }
.menu-foot p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); letter-spacing: .03em; }

/* ---------- feasibility (build) page helpers ---------- */
.build-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--margin);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.build-bar .bb-title {
  font-family: var(--titling); text-transform: uppercase; letter-spacing: .16em;
  font-size: 15px; color: var(--ink);
}
.build-bar .bb-meta { display: flex; align-items: center; gap: 22px; }
.build-bar .bb-ref {
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.build-bar .bb-return {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-ink); text-decoration: none;
  white-space: nowrap; transition: color .2s ease;
}
.build-bar .bb-return:hover { color: var(--ink); }
.build-bar .bb-return[hidden] { display: none; }
@media (max-width: 640px) { .build-bar .bb-ref { display: none; } }
.render-ph {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line);
}

/* ===== Build page: audience-adaptive chrome =====
   Default (contractor / 0101): neutral build-bar, no brand, no menu.
   html.insider (Tesco / 3359): full site masthead + menu + branded footer. */
.insider-mast, .insider-menu, .insider-foot, .insider-next { display: none; }
html.insider .insider-mast { display: flex; }
html.insider .insider-menu { display: flex; }
html.insider .insider-foot { display: block; }
html.insider .insider-next { display: block; }
html.insider .build-bar { display: none; }
html.insider #neutralFoot { display: none; }
html.insider #main { padding-top: 84px; }
/* keep the build-page masthead solid even at the top (no dark hero behind it) */
.masthead.mast-static {
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  height: 84px;
}
.masthead.mast-static .mast-brand img { height: 62px; }
/* cost figures are insider-only: contractors (0101) must never see the price band */
.tm { font-size: 0.5em; vertical-align: super; letter-spacing: 0; font-weight: 400; margin-left: 0.06em; opacity: 0.85; }
.cost-col, .cost-note, .cost-jump { display: none; }
html.insider .cost-col { display: table-cell; }
html.insider .cost-note { display: block; }
html.insider .cost-jump { display: block; }
.cost-jump a {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: color .2s ease;
}
.cost-jump a:hover { color: var(--ink); }
.build-cta {
  display: flex; align-items: baseline; gap: 24px; padding: 28px 32px;
  border: 1px solid var(--line); text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.build-cta:hover { background: var(--ivory-2); border-color: var(--gold); }
.build-cta .bc-label {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink); white-space: nowrap;
}
.build-cta .bc-title { font-family: var(--serif); font-size: clamp(18px,1.9vw,23px); color: var(--ink); flex: 1; line-height: 1.35; }
.build-cta .bc-arrow { font-family: var(--serif); font-size: 24px; color: var(--gold-ink); }
@media (max-width: 640px) {
  .build-cta { flex-direction: column; gap: 12px; align-items: flex-start; }
}
.render-ph span {
  font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.folio-dark .render-ph { border-color: var(--line-lt); }
.folio-dark .render-ph span { color: rgba(247,243,236,.6); }

/* ---------- confidentiality line on the gate ---------- */

.gate-confidential {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: .9;
  margin-top: 30px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- founder cards (Who We Are) ---------- */

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.founder { display: flex; flex-direction: column; }

.founder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.founder-photo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ivory-2);
  box-shadow: 0 16px 38px -18px rgba(13, 27, 42, .5);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.founder-name {
  font-family: var(--titling);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(24px, 2.6vw, 33px);
  color: var(--ink);
  line-height: 1.05;
}
.founder-role {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 10px;
}
.founder-bio { margin-top: 28px; flex: 1; }
.founder-bio p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.founder-bio p + p { margin-top: 18px; }
.founder-link { margin-top: 26px; align-self: flex-start; }

@media (min-width: 821px) {
  .founder:first-child { padding-right: clamp(32px, 4vw, 64px); }
  .founder:last-child { padding-left: clamp(32px, 4vw, 64px); border-left: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .founders { grid-template-columns: 1fr; }
  .founder + .founder { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
}

/* ecosystem outcomes (Why Upper Court) */
.eco {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 42px);
  border-top: 1px solid var(--line);
  padding-top: 42px;
}
.eco-item .eco-n {
  font-family: var(--titling);
  font-size: 15px;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 14px;
}
.eco-item b {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.eco-item p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 760px) { .eco { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* courts slider (Why Upper Court) */
.courts-model { max-width: 540px; }
.courts-model .cm-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.courts-model label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.courts-model output {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-ink);
  font-variant-numeric: oldstyle-nums;
}
.courts-model input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--line);
  outline: none;
}
.courts-model input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 5px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
  transition: transform .2s;
}
.courts-model input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.courts-model input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
}
.courts-model .cm-note {
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* big statement stats (Why Upper Court) */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 60px); }
.bignum { border-top: 1px solid var(--line); padding-top: 28px; }
.bignum .n {
  font-family: var(--serif);
  font-size: clamp(46px, 4.6vw, 74px);
  line-height: 1;
  color: var(--gold-ink);
  font-variant-numeric: oldstyle-nums;
}
.bignum .t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 16px;
}
.bignum p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 760px) { .bignums { grid-template-columns: 1fr; gap: 34px; } }

.folio-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 44px);
}

.folio-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
  transition: opacity .35s;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
}

.on-dark-mast .folio-nav a, .folio-dark .folio-nav a { color: var(--ivory); }

.folio-nav a .rn {
  font-family: var(--titling);
  font-size: 15px;
  color: var(--gold-ink);
}

.on-dark-mast .folio-nav a .rn, .folio-dark .folio-nav a .rn { color: var(--gold); }

.folio-nav a:hover { opacity: 1; }

.folio-nav a.current {
  opacity: 1;
  border-bottom: 1px solid var(--gold);
}

.folio-nav .hide-s { display: inline; }

/* ---------- elevation gauge ---------- */

.gauge {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: 38vh;
  width: 1px;
  background: var(--line);
  z-index: 90;
}

.folio-dark .gauge { background: var(--line-lt); }

.gauge .tick {
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 34px;
  background: var(--gold);
  transform: translateY(0);
}

.gauge .g-label {
  position: absolute;
  right: 10px;
  bottom: -10px;
  transform-origin: right bottom;
  transform: rotate(90deg) translateX(100%);
  font-size: 9px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .5;
  white-space: nowrap;
}

.folio-dark .gauge .g-label { color: rgba(247,243,236,.5); }

@media (max-width: 1100px) { .gauge { display: none; } }

/* scroll-driven tick */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .gauge .tick {
      animation: gauge-rise linear both;
      animation-timeline: scroll(root);
    }
    @keyframes gauge-rise {
      from { transform: translateY(0); }
      to   { transform: translateY(calc(38vh - 34px)); }
    }
  }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(88px + 4vh) var(--margin) 0;
}

.hero-plate {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 62svh;
  background: var(--navy);
}

.hero-plate > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .96;
}

.hero-plate .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(76deg, rgba(10, 21, 34, .84) 0%, rgba(10, 21, 34, .44) 42%, rgba(10, 21, 34, .06) 72%),
    linear-gradient(0deg, rgba(10, 21, 34, .55) 0%, rgba(10, 21, 34, .08) 40%, rgba(10, 21, 34, 0) 60%);
}

.hero-head {
  position: absolute;
  left: clamp(26px, 4vw, 64px);
  bottom: clamp(26px, 5vh, 64px);
  right: clamp(26px, 4vw, 64px);
  color: var(--ivory);
}

/* variant: content sits top-left, over sky, leaving the building clear */
.hero-head.at-top {
  bottom: auto;
  top: clamp(14px, 3.5vh, 64px);
}

.hero-head.at-top .hero-crest { height: clamp(44px, 4.6vw, 60px); margin-bottom: 20px; }
.hero-head.at-top .hero-title { font-size: clamp(36px, 5.4vw, 80px); }
.hero-head.at-top .hero-sub { margin-top: 22px; }
.hero-head.at-top .hero-acts { margin-top: 28px; }

.veil.veil-top {
  background:
    linear-gradient(105deg, rgba(10, 21, 34, .88) 0%, rgba(10, 21, 34, .62) 38%, rgba(10, 21, 34, .1) 68%),
    linear-gradient(188deg, rgba(10, 21, 34, .55) 0%, rgba(10, 21, 34, .18) 60%) !important;
}


.hero-title {
  font-family: var(--titling);
  font-size: clamp(40px, 6.4vw, 96px);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.04;
}

.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }

.hero-title .ital-line {
  color: var(--gold);
}

.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.65;
  color: rgba(247, 243, 236, .88);
}

.hero-acts { display: flex; gap: clamp(28px, 4vw, 60px); margin-top: 36px; flex-wrap: wrap; }

/* hero footline under the plate */
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.folio-dark .hero-foot { color: rgba(247,243,236,.6); }

.hero-foot .dot { color: var(--gold-ink); padding: 0 10px; }
.folio-dark .hero-foot .dot { color: var(--gold); }

/* hero load choreography */
@media (prefers-reduced-motion: no-preference) {
  .hero-plate { clip-path: inset(0 0 0 0); }
  .hero-plate > img { animation: hero-settle 2.4s var(--ease-out) both; }
  @keyframes hero-settle {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
  }
  .hero-title .line > span {
    transform: translateY(115%);
    animation: line-rise 1.1s var(--ease-out) forwards;
  }
  .hero-title .line:nth-child(1) > span { animation-delay: .25s; }
  .hero-title .line:nth-child(2) > span { animation-delay: .40s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .55s; }
  @keyframes line-rise { to { transform: translateY(0); } }
  .hero-crest, .hero-sub, .hero-acts { opacity: 0; animation: soft-in 1.2s var(--ease-out) .85s forwards; }
  .hero-crest { animation-delay: .15s; }
  @keyframes soft-in { to { opacity: 1; } }
}

/* ---------- buttons ---------- */

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: inherit;
  padding: 17px 34px;
  cursor: pointer;
  background: none;
  border: 1px solid currentColor;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap;
}

.act:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* primary: solid gold */
.act.gold-text {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.act.gold-text:hover {
  background: var(--gold-soft, #D9BE83);
  border-color: var(--gold-soft, #D9BE83);
  color: var(--navy);
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  background: var(--ivory);
}

.folio-dark .ticker { background: transparent; border-color: var(--line-lt); }

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  white-space: nowrap;
}

.ticker-track > span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-right: 18px;
}

.folio-dark .ticker-track > span { color: rgba(247,243,236,.6); }

.ticker-track .sep { color: var(--gold-ink); padding: 0 18px 0 0; }
.folio-dark .ticker-track .sep { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker-run 48s linear infinite; }
  @keyframes ticker-run { to { transform: translateX(-50%); } }
}

.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3F9C6B;
  vertical-align: 2px;
  margin-right: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.4s infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(63,156,107,.45); }
    70% { box-shadow: 0 0 0 8px rgba(63,156,107,0); }
    100% { box-shadow: 0 0 0 0 rgba(63,156,107,0); }
  }
}

/* ---------- folio grid & plates ---------- */

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

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

.plate {
  position: relative;
  padding: clamp(96px, 13vh, 170px) 0;
}

.plate-rule {
  border-top: 1px solid var(--line);
}

.folio-dark .plate-rule { border-color: var(--line-lt); }

/* plate header: No. + title on one hairline */
.plate-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: clamp(48px, 7vh, 90px);
}

.plate-no {
  font-family: var(--titling);
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--gold-ink);
  white-space: nowrap;
}

.folio-dark .plate-no, .on-dark .plate-no { color: var(--gold); }

.plate-head .ph-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

.folio-dark .plate-head .ph-rule, .on-dark .plate-head .ph-rule { background: var(--line-lt); }

.plate-head .ph-hint {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .7;
  white-space: nowrap;
}

.folio-dark .plate-head .ph-hint, .on-dark .plate-head .ph-hint { color: rgba(247,243,236,.5); }

/* display heading inside plates */
.display {
  font-family: var(--titling);
  font-size: clamp(30px, 3.6vw, 54px);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.12;
  color: var(--ink);
}

.folio-dark .display, .on-dark .display { color: var(--ivory); }

.display .amp {
  color: var(--gold-ink);
}

.folio-dark .display .amp, .on-dark .display .amp { color: var(--gold); }

/* ghost numerals */
.ghost {
  position: absolute;
  top: clamp(20px, 4vh, 60px);
  right: -1vw;
  font-family: var(--titling);
  font-size: clamp(160px, 24vw, 380px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 33, 47, .09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.folio-dark .ghost, .on-dark .ghost { -webkit-text-stroke-color: rgba(247, 243, 236, .07); }

.plate > .grid, .plate > * { position: relative; z-index: 1; }
.plate .ghost { z-index: 0; }

/* ---------- image plates ---------- */

.img-plate {
  position: relative;
  overflow: hidden;
  background: var(--ivory-2);
}

.img-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-plate.r-45 { aspect-ratio: 4 / 5; }
.img-plate.r-32 { aspect-ratio: 3 / 2; }
.img-plate.r-43 { aspect-ratio: 4 / 3; }
.img-plate.r-169 { aspect-ratio: 16 / 9; }
.img-plate.r-11 { aspect-ratio: 1 / 1; }

/* vertical caption on the image edge */
.v-cap {
  position: absolute;
  top: 0;
  right: -32px;
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .7;
  white-space: nowrap;
}

.folio-dark .v-cap, .on-dark .v-cap { color: rgba(247,243,236,.55); }

@media (max-width: 900px) { .v-cap { display: none; } }

/* slow drift inside frame — compositor-thread scroll animation */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .img-plate img {
      scale: 1.1;
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes drift {
      from { translate: 0 -3.5%; }
      to   { translate: 0 3.5%; }
    }
  }
}

/* ---------- full-bleed band ---------- */

.band {
  position: relative;
  overflow: hidden;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
}

.band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,21,34,.88) 0%, rgba(10,21,34,.6) 40%, rgba(10,21,34,.16) 70%, rgba(10,21,34,.04) 100%),
    linear-gradient(0deg, rgba(10,21,34,.66) 0%, rgba(10,21,34,.12) 46%, rgba(10,21,34,0) 70%);
}

.band-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(60px, 9vh, 110px) 0;
  color: var(--ivory);
}

.band .display { color: var(--ivory); }
.band .lede { color: rgba(247,243,236,.8); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band > img {
      scale: 1.12;
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* ---------- clause list (numbered hairline rows) ---------- */

.clauses { list-style: none; }

.clauses li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.clauses li:last-child { border-bottom: 1px solid var(--line); }

.folio-dark .clauses li, .on-dark .clauses li { border-color: var(--line-lt); }

.clauses .cl-no {
  font-family: var(--titling);
  font-size: 15px;
  color: var(--gold-ink);
  padding-top: 3px;
}

.folio-dark .clauses .cl-no, .on-dark .clauses .cl-no { color: var(--gold); }

.clauses b {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ink);
}

.folio-dark .clauses b, .on-dark .clauses b { color: var(--ivory); }

.clauses p { font-family: var(--sans); font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }

.folio-dark .clauses p, .on-dark .clauses p { color: rgba(247,243,236,.65); }

/* ---------- menu with dot leaders ---------- */

.menu-block { border-top: 1px solid var(--line); padding-top: 40px; }
.folio-dark .menu-block { border-color: var(--line-lt); }

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  font-size: 19.5px;
}

.menu-row .m-name { font-style: italic; }

.menu-row .m-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

.folio-dark .menu-row .m-dots { border-color: var(--line-lt); }

.menu-row .m-fig {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.folio-dark .menu-row .m-fig { color: rgba(247,243,236,.6); }

/* ---------- menu accordion (The Table) ---------- */

.menu-accordion { border-top: 1px solid var(--line); }

.menu-drop { border-bottom: 1px solid var(--line); }

.menu-drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
}
.menu-drop > summary::-webkit-details-marker { display: none; }

.menu-drop > summary .md-title {
  flex: 1;
  font-family: var(--titling);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: clamp(17px, 1.9vw, 22px);
  color: var(--ink);
}

.menu-drop > summary .md-hint {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.menu-drop > summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 28px;
  line-height: .8;
  color: var(--gold-ink);
  width: 20px;
  text-align: center;
}
.menu-drop[open] > summary::after { content: "\2013"; }

.menu-drop > summary:hover .md-title { color: var(--gold-ink); }

.menu-drop-body { padding: 2px 0 26px; }

.menu-drop-body .menu-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.drink-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 10px 0;
}
.drink-row .dr-name { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.drink-row .dr-desc { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .menu-drop-body { animation: drop-in .35s var(--ease-out); }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- figures (stats as typography) ---------- */

.figures { border-top: 1px solid var(--line); }
.folio-dark .figures, .on-dark .figures { border-color: var(--line-lt); }

.figure-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  gap: var(--gutter);
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.folio-dark .figure-row, .on-dark .figure-row { border-color: var(--line-lt); }

.figure-row .f-num {
  font-family: var(--serif);
  font-size: clamp(42px, 4.6vw, 76px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums;
}

.folio-dark .figure-row .f-num, .on-dark .figure-row .f-num { color: var(--ivory); }

.figure-row .f-num small { font-size: .5em; color: var(--gold-ink); }
.folio-dark .figure-row .f-num small, .on-dark .figure-row .f-num small { color: var(--gold); }

.figure-row .f-label {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
}

.figure-row .f-note {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  text-align: right;
}

.folio-dark .figure-row .f-note, .on-dark .figure-row .f-note { color: rgba(247,243,236,.6); }

@media (max-width: 900px) {
  .figure-row { grid-template-columns: 1fr; gap: 8px; }
  .figure-row .f-note { text-align: left; }
}

/* ---------- member timeline ---------- */

.timeline {
  position: relative;
  margin-top: clamp(50px, 8vh, 90px);
  padding-top: 46px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: var(--line-lt);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.tl-item { position: relative; }

.tl-item::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
}

.tl-item.filled::before { background: var(--gold); }

.tl-item .tl-date {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.tl-item .tl-name { font-family: var(--sans); font-size: 16.5px; color: rgba(247,243,236,.9); }

@media (max-width: 900px) {
  .timeline::before { display: none; }
  .timeline { padding-top: 0; }
  .timeline-track { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tl-item::before { display: none; }
}

/* ---------- tier columns (membership) ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-lt);
  border-bottom: 1px solid var(--line-lt);
}

.tier {
  padding: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 52px);
  border-left: 1px solid var(--line-lt);
  position: relative;
}

.tier:first-child { border-left: none; }

.tier .t-name {
  font-family: var(--titling);
  font-size: 27px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory);
}

.tier .t-sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin: 10px 0 30px;
}

.tier ul { list-style: none; }

.tier li {
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(247, 243, 236, .82);
  border-top: 1px solid var(--line-lt-soft);
}

.tier li:first-child { border-top: none; }

.tier .act { margin-top: 34px; color: var(--ivory); }

.tier.featured .t-flag {
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.tier.featured .t-flag::after {
  content: "Founding";
  position: absolute;
  top: 14px;
  right: clamp(28px, 3vw, 52px);
  font-family: var(--titling);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: .18em;
}

@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: none; border-top: 1px solid var(--line-lt); }
  .tier:first-child { border-top: none; }
}

/* ---------- pullquote ---------- */

.pull {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pull blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.4;
  color: var(--ink);
}

.folio-dark .pull blockquote, .on-dark .pull blockquote { color: var(--ivory); }

.pull blockquote::before { content: "“"; color: var(--gold-ink); }
.pull blockquote::after  { content: "”"; color: var(--gold-ink); }
.folio-dark .pull blockquote::before, .folio-dark .pull blockquote::after,
.on-dark .pull blockquote::before, .on-dark .pull blockquote::after { color: var(--gold); }

.pull cite {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 600;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.folio-dark .pull cite, .on-dark .pull cite { color: rgba(247,243,236,.55); }

/* ---------- next folio ---------- */

/* a deliberately standout dark bar between the ivory folios */
.next-folio {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

/* slow gold sheen sweeping across, so the band reads as "live" / clickable */
@media (prefers-reduced-motion: no-preference) {
  .next-folio::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    left: -50%;
    background: linear-gradient(100deg, transparent, rgba(199,166,90,.10), transparent);
    animation: nf-sheen 5.5s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes nf-sheen {
    0% { left: -50%; }
    60%, 100% { left: 130%; }
  }
}

.next-folio a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(58px, 9vh, 96px) 0;
  position: relative;
  z-index: 1;
}

.next-folio .nf-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.next-folio h2 {
  font-family: var(--titling);
  font-size: clamp(28px, 3.6vw, 52px);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ivory);
  transition: color .4s;
  line-height: 1.15;
}

.next-folio a:hover h2 { color: var(--gold); }

.next-folio .nf-arrow {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 74px);
  color: var(--gold);
  flex-shrink: 0;
}

/* the arrow keeps nudging so it clearly reads as "click to continue" */
@media (prefers-reduced-motion: no-preference) {
  .next-folio .nf-arrow { animation: nf-nudge 1.8s ease-in-out infinite; }
  @keyframes nf-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
  }
}

.next-folio a:hover .nf-arrow { animation-play-state: paused; transform: translateX(20px); transition: transform .4s var(--ease-out); }

/* ---------- colophon (footer) ---------- */

.colophon {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vh, 100px) 0 44px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.folio-dark .colophon { border-color: var(--line-lt); color: rgba(247,243,236,.6); }

.colophon .grid {
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  align-items: start;
  row-gap: 48px;
  column-gap: clamp(24px, 4vw, 60px);
}

.colophon .col-brand,
.colophon .col-a,
.colophon .col-b,
.colophon .col-c { grid-column: auto; }

.colophon .col-brand { text-align: left; }
.colophon .col-brand p { margin: 0; max-width: 34ch; }
.colophon img.crest { height: 128px; width: auto; margin: 0 0 30px; opacity: .95; }
.folio-dark .colophon img.crest { filter: invert(96%) sepia(6%) saturate(300%) hue-rotate(340deg) brightness(104%); }

.colophon h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
  margin-bottom: 18px;
}

.folio-dark .colophon h4 { color: var(--gold); }

.colophon ul { list-style: none; }
.colophon li { padding: 6px 0; font-family: var(--sans); font-size: 16px; }
.colophon li a:hover { color: var(--ink); }
.folio-dark .colophon li a:hover { color: var(--ivory); }

.colophon .base {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .06em;
}

.folio-dark .colophon .base { border-color: var(--line-lt-soft); }

.colophon .base .note { font-style: italic; color: var(--gold-ink); }
.colophon .base .note a { text-decoration: underline; text-underline-offset: 3px; }
.colophon .base .note a:hover { color: var(--ink); }
.folio-dark .colophon .base .note a:hover { color: var(--ivory); }
.folio-dark .colophon .base .note { color: var(--gold); }

@media (max-width: 980px) {
  .colophon .col-brand, .colophon .col-a, .colophon .col-b, .colophon .col-c { grid-column: 1 / -1; }
}

/* ---------- interactive model (Folio III) ---------- */

.model { row-gap: 60px; }

.model .m-controls { grid-column: 1 / span 6; }
.model .m-output { grid-column: 8 / span 5; align-self: start; position: sticky; top: 110px; }

.control { margin-bottom: 34px; }

.control .c-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.control label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .75);
}

.control output {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 1px;
  background: var(--line-lt);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .3s;
}

input[type="range"]::-webkit-slider-thumb:hover { background: var(--gold); }

input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  cursor: pointer;
}

.m-output .mo-rows { border-top: 1px solid var(--line-lt); }

.m-output .mo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-lt-soft);
  font-family: var(--sans);
  font-size: 16.5px;
  color: rgba(247,243,236,.78);
}

.m-output .mo-row span:last-child {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory);
  font-variant-numeric: oldstyle-nums;
}

.m-output .mo-total { margin-top: 34px; }

.m-output .mo-total .lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.m-output .mo-total .val {
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 84px);
  line-height: 1.05;
  color: var(--ivory);
  font-variant-numeric: oldstyle-nums;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
  padding-bottom: 8px;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .model .m-controls, .model .m-output { grid-column: 1 / -1; position: static; }
}

/* ---------- fin table ---------- */

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17.5px;
}

.fin-table th {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line-lt);
}

.fin-table td {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line-lt-soft);
  color: rgba(247,243,236,.85);
  font-variant-numeric: oldstyle-nums;
}

.fin-table td:first-child { font-style: italic; }
.fin-table td:last-child, .fin-table th:last-child { text-align: right; padding-right: 0; }

.fin-table .muted { font-family: var(--sans); color: rgba(247,243,236,.55); font-size: 15px; }

.fin-table tr.total td {
  border-top: 1px solid var(--gold);
  border-bottom: none;
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  color: var(--ivory);
  padding-top: 22px;
}

/* ---------- access gate ---------- */

/* instant hide of all page content while locked (class set by inline head script) */
html.gate-locked body > *:not(.gate) { display: none !important; }
html.gate-locked, html.gate-locked body { overflow: hidden; height: 100%; }

.gate { display: none; }
html.gate-locked .gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ivory);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-inner {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.gate-crest {
  height: 118px;
  width: auto;
  margin: 0 auto 28px;
}

.gate-name {
  font-family: var(--titling);
  font-size: 16px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
}

.gate-msg {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 26px;
}

.gate form { display: flex; flex-direction: column; gap: 14px; }

.gate input {
  width: 100%;
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: .5em;
  text-align: center;
  color: var(--ink);
  background: #FDFCF8;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.gate input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.gate .act { width: 100%; justify-content: center; }

.gate-err {
  font-family: var(--sans);
  font-size: 14px;
  color: #9A3B3B;
  margin-top: 16px;
  min-height: 20px;
  opacity: 0;
  transition: opacity .25s;
}

.gate-err.show { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .gate-inner.shake { animation: gate-shake .4s; }
  @keyframes gate-shake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-9px); }
    40%,80% { transform: translateX(9px); }
  }
}

/* ---------- register interest modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 21, 34, .74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--ivory);
  color: var(--ink);
  width: min(580px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  padding: clamp(34px, 5vw, 56px);
  position: relative;
  border-top: 3px solid var(--gold);
  transform: translateY(18px);
  transition: transform .45s var(--ease-out);
}

.modal-overlay.open .modal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; }
}

.modal h3 {
  font-family: var(--titling);
  font-size: clamp(24px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 10px;
  padding-right: 40px;
}

.modal .m-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  transition: color .3s;
}

.modal-close:hover { color: var(--ink); }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.field label .opt {
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .1em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  background: #FDFCF8;
  border: 1px solid var(--line);
  padding: 14px 15px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-ink) 50%),
                    linear-gradient(135deg, var(--gold-ink) 50%, transparent 50%);
  background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.modal .act { width: 100%; margin-top: 8px; }

.modal .m-note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 18px;
  text-align: center;
  line-height: 1.55;
}

.modal-success { display: none; text-align: center; padding: 20px 0 10px; }

.modal.done .modal-form { display: none; }
.modal.done .modal-success { display: block; }

.modal-success .crest { height: 60px; margin: 0 auto 24px; }

.modal-success h3 { padding-right: 0; margin-bottom: 14px; }

.modal-success p { font-size: 17.5px; color: var(--ink-soft); max-width: 38ch; margin: 0 auto; line-height: 1.65; }

/* welcome / orientation modal */
.welcome-modal { text-align: center; }
.welcome-crest { height: 84px; width: auto; margin: 0 auto 20px; display: block; }
.welcome-modal h3 { padding-right: 0; }
.welcome-modal .m-sub { text-align: center; margin-bottom: 18px; }
.welcome-modal .m-sub b { color: var(--ink); font-weight: 700; }
.welcome-modal .act { width: 100%; margin-top: 10px; }

/* ---------- reveal (IO fallback, transition-based) ---------- */

.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.r.in { opacity: 1; transform: none; }

.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .folio-nav .hide-s { display: none; }
}

/* the asymmetric 12-col compositions collapse to a single column */
@media (max-width: 900px) {
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .grid > [style*="margin-top"] { margin-top: clamp(28px, 6vw, 44px) !important; }
}

@media (max-width: 760px) {
  body { font-size: 17.5px; }
  .masthead { height: 84px; }
  .mast-brand .mb-sub { display: none; }
  .mast-brand img { height: 54px; }
  .mast-brand .mb-name { font-size: 22px; }
  .folio-nav { gap: 18px; }
  .folio-nav a { font-size: 12px; letter-spacing: .16em; }
  .hero { padding-top: calc(84px + 2vh); }
  .hero-acts { gap: 22px; }
  .plate { padding: 72px 0; }
  .ghost { display: none; }
  .hero-foot { flex-direction: column; gap: 6px; }
  .next-folio a { flex-direction: column; align-items: flex-start; gap: 24px; }
}
