/* ==========================================================================
   Sultan Muhammad Al Qasimi — Official Profile
   Design system: "Manuscript & Mineral"
   Parchment ground · deep mineral green · bronze accent · editorial serif
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #F5F1E9;
  --paper-2:      #EEE8DC;
  --paper-3:      #E4DCCC;
  --paper-4:      #D8CDB8;

  /* Ink */
  --ink:          #16211F;
  --ink-2:        #22302C;
  --ink-3:        #2E3D38;
  --body:         #3C4844;
  --muted:        #5A6662;

  /* Accents */
  --mineral:      #0E4A46;
  --mineral-2:    #17635C;
  --mineral-3:    #3E8880;
  --bronze:       #A96B34;
  --bronze-2:     #C4894F;
  --bronze-text:  #8A5626;
  --sand:         #CDBB9C;

  /* Lines */
  --line:           rgba(22, 33, 31, .17);
  --line-soft:      rgba(22, 33, 31, .085);
  --line-dark:      rgba(245, 241, 233, .17);
  --line-dark-soft: rgba(245, 241, 233, .09);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --shell:   1340px;
  --shell-n: 1080px;
  --gutter:  clamp(20px, 5vw, 72px);
  --section: clamp(68px, 8.5vw, 132px);
  --radius:  2px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html[data-auth="pending"] body { visibility: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p, ul, ol, figure, blockquote, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible, .page-hero :focus-visible, .hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--bronze-2); }

::selection { background: var(--mineral); color: var(--paper); }

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, .d1, .d2, .d3, .d4, .d5, .lede, .pullquote { overflow-wrap: break-word; }

.d1, .d2, .d3, .d4, .d5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.06;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.15rem, 7.4vw, 5.6rem); line-height: 1.02; }
.d2 { font-size: clamp(1.8rem, 4.8vw, 3.6rem); line-height: 1.08; }
.d3 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); line-height: 1.14; }
.d4 { font-size: clamp(1.3rem, 2.1vw, 1.72rem); line-height: 1.22; letter-spacing: -.005em; }
.d5 { font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.3; letter-spacing: 0; }

.on-dark .d1, .on-dark .d2, .on-dark .d3, .on-dark .d4, .on-dark .d5,
.page-hero .d1, .page-hero .d2, .page-hero .d3, .page-hero .d4, .page-hero .d5 { color: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-text);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--bronze);
  flex: none;
}
.on-dark .eyebrow, .page-hero .eyebrow { color: var(--bronze-2); }
.on-dark .eyebrow::before, .page-hero .eyebrow::before { background: var(--bronze-2); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.9vw, 1.48rem);
  line-height: 1.56;
  font-weight: 300;
  color: var(--ink-3);
  letter-spacing: -.003em;
}
.on-dark .lede, .page-hero .lede { color: rgba(245, 241, 233, .88); }

.prose > * + * { margin-top: 1.15em; }
.prose p { max-width: 68ch; }
.prose strong { font-weight: 600; color: var(--ink-2); }
.on-dark .prose strong, .page-hero .prose strong { color: var(--paper); }
.prose em { font-style: italic; }
.prose a:not(.btn):not(.arrow-link) {
  color: var(--mineral);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(14, 74, 70, .35);
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.prose a:not(.btn):not(.arrow-link):hover { color: var(--bronze-text); text-decoration-color: var(--bronze); }
.on-dark .prose a:not(.btn):not(.arrow-link) { color: var(--bronze-2); text-decoration-color: rgba(196, 137, 79, .5); }
.on-dark .prose a:not(.btn):not(.arrow-link):hover { color: var(--paper); text-decoration-color: var(--paper); }

.prose h3 {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  color: var(--ink);
  line-height: 1.24;
  margin-top: 1.9em;
}
.on-dark .prose h3 { color: var(--paper); }
.prose .sublabel {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-top: 1.9em;
}
.on-dark .prose .sublabel { color: var(--bronze-2); }

.small { font-size: .875rem; line-height: 1.65; }
.tiny  { font-size: .78rem; line-height: 1.6; letter-spacing: .01em; }

.tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mineral);
  border: 1px solid rgba(14, 74, 70, .3);
  padding: 5px 11px 4px;
  border-radius: 999px;
}
.on-dark .tag, .page-hero .tag { color: var(--bronze-2); border-color: rgba(196, 137, 79, .4); }

.list-mark li { position: relative; padding-left: 26px; margin-top: .7em; }
.list-mark li::before {
  content: "";
  position: absolute;
  left: 2px; top: .72em;
  width: 9px; height: 1px;
  background: var(--bronze);
}
.on-dark .list-mark li::before { background: var(--bronze-2); }

.deflist { border-top: 1px solid var(--line); }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(120px, .38fr) 1fr;
  gap: 8px 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.deflist dt {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.deflist dd { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.on-dark .deflist, .page-hero .deflist { border-color: var(--line-dark); }
.on-dark .deflist > div, .page-hero .deflist > div { border-color: var(--line-dark-soft); }
.on-dark .deflist dt, .page-hero .deflist dt { color: rgba(245, 241, 233, .62); }
.on-dark .deflist dd, .page-hero .deflist dd { color: var(--paper); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-n { max-width: var(--shell-n); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 5.5vw, 84px); }

.on-dark { background: var(--ink); color: rgba(245, 241, 233, .82); }
.band-2 { background: var(--paper-2); }
.band-3 { background: var(--paper-3); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-double { border: 0; height: 5px; background: none; position: relative; margin: 0; }
.rule-double::before, .rule-double::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
}
.rule-double::before { top: 0; }
.rule-double::after  { bottom: 0; opacity: .45; }
.on-dark .rule-double::before, .on-dark .rule-double::after { background: var(--line-dark); }

.grid { display: grid; gap: clamp(26px, 3.6vw, 58px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }

.sticky-col { position: sticky; top: 112px; }

/* --------------------------------------------------------------------------
   5. Motif — mashrabiya lattice
   -------------------------------------------------------------------------- */
.motif {
  --motif-c: rgba(22, 33, 31, .085);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
}
.motif--dark { --motif-c: rgba(205, 187, 156, .13); }
.motif--bronze { --motif-c: rgba(169, 107, 52, .17); }

.motif-panel {
  position: absolute;
  inset: 0;
  --motif-c: rgba(205, 187, 156, .09);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  border-radius: var(--radius);
  text-align: center;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--paper); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--mineral); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--paper); border-color: var(--mineral); }

.btn--light { border-color: rgba(245, 241, 233, .45); color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); border-color: var(--paper); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mineral);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(14, 74, 70, .3);
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link svg { transition: transform .35s var(--ease); flex: none; }
.arrow-link:hover, .arrow-link:focus-visible { color: var(--bronze-text); border-color: var(--bronze); gap: 16px; }
.arrow-link:hover svg { transform: translateX(3px); }
.on-dark .arrow-link, .page-hero .arrow-link { color: var(--bronze-2); border-color: rgba(196, 137, 79, .4); }
.on-dark .arrow-link:hover, .page-hero .arrow-link:hover { color: var(--paper); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(22, 33, 31, .6), transparent);
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.site-header.is-solid {
  background: rgba(245, 241, 233, .95);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-102%); }

.nav-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
  transition: height .4s var(--ease);
}
.site-header.is-solid .nav-inner { height: 72px; }

.wordmark { display: flex; align-items: center; gap: 13px; flex: none; }
.wordmark .glyph { width: 32px; height: 32px; flex: none; transition: transform .55s var(--ease); }
.wordmark:hover .glyph { transform: rotate(45deg); }
.wordmark .wm-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: .015em;
  color: var(--paper);
  transition: color .4s var(--ease);
  white-space: nowrap;
}
.wordmark .wm-sub {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .62);
  margin-top: 5px;
  transition: color .4s var(--ease);
  white-space: nowrap;
}
.site-header.is-solid .wm-name { color: var(--ink); }
.site-header.is-solid .wm-sub  { color: var(--muted); }
.glyph .g-stroke { stroke: var(--sand); transition: stroke .4s var(--ease); }
.glyph .g-dot { fill: var(--bronze-2); transition: fill .4s var(--ease); }
.site-header.is-solid .glyph .g-stroke { stroke: var(--mineral); }
.site-header.is-solid .glyph .g-dot { fill: var(--bronze); }

.nav-desktop { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(13px, 1.75vw, 28px); }
.nav-list a {
  position: relative;
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .145em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .78);
  padding: 9px 0;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--bronze-2);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--paper); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.nav-list a[aria-current="page"] { color: var(--paper); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.site-header.is-solid .nav-list a { color: var(--muted); }
.site-header.is-solid .nav-list a:hover,
.site-header.is-solid .nav-list a:focus-visible,
.site-header.is-solid .nav-list a[aria-current="page"] { color: var(--ink); }
.site-header.is-solid .nav-list a::after { background: var(--bronze); }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  flex: none;
  margin-right: -8px;
}
.burger i {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--paper);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .4s var(--ease), width .4s var(--ease);
}
.burger i:last-child { width: 15px; }
.site-header.is-solid .burger i { background: var(--ink); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .62s var(--ease), visibility .62s;
  overflow-y: auto;
  visibility: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile::after {
  content: "";
  position: absolute; inset: 0;
  --motif-c: rgba(205, 187, 156, .1);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  pointer-events: none;
}
body.nav-open .nav-mobile { transform: translateY(0); visibility: visible; }
body.nav-open { overflow: hidden; }
body.nav-open .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
body.nav-open .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 24px; }
body.nav-open .burger i { background: var(--paper) !important; }

.nav-mobile ul { position: relative; z-index: 1; }
.nav-mobile li { border-bottom: 1px solid var(--line-dark-soft); }
.nav-mobile li:first-child { border-top: 1px solid var(--line-dark-soft); }
.nav-mobile a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 2px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  color: rgba(245, 241, 233, .9);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.nav-mobile a .idx {
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--bronze-2);
  flex: none;
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { color: var(--paper); padding-left: 10px; }
.nav-mobile a[aria-current="page"] .idx { color: var(--paper); }
.nav-mobile-foot {
  position: relative; z-index: 1;
  margin-top: 30px;
  color: rgba(245, 241, 233, .55);
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.8;
}
.nav-mobile-foot a { color: var(--paper); }

/* --------------------------------------------------------------------------
   8. Page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(132px, 15vw, 196px);
  padding-bottom: clamp(52px, 6.5vw, 92px);
  background: var(--ink);
  color: rgba(245, 241, 233, .82);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  --motif-c: rgba(205, 187, 156, .09);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .prose p { color: rgba(245, 241, 233, .8); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .55);
  margin-bottom: 28px;
}
.breadcrumb a { transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--bronze-2); }
.breadcrumb .sep { color: rgba(245, 241, 233, .32); }
.breadcrumb [aria-current] { color: var(--bronze-2); }

/* --------------------------------------------------------------------------
   9. Media / figures
   -------------------------------------------------------------------------- */
.figure { margin: 0; position: relative; }
.figure img { width: 100%; }
.figure figcaption {
  margin-top: 14px;
  font-size: .76rem;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--bronze);
  max-width: 48ch;
}
.on-dark .figure figcaption, .page-hero .figure figcaption {
  color: rgba(245, 241, 233, .62); border-left-color: var(--bronze-2);
}

/* Portrait frame — contains the image, never crops the face */
.portrait {
  position: relative;
  background: var(--paper-3);
  padding: clamp(11px, 1.5vw, 18px);
  border: 1px solid var(--line);
}
.portrait img { width: 100%; display: block; object-fit: contain; object-position: center; }
.portrait::after {
  content: "";
  position: absolute;
  right: clamp(11px, 1.5vw, 18px); bottom: clamp(11px, 1.5vw, 18px);
  width: 32px; height: 32px;
  border-right: 1px solid var(--bronze);
  border-bottom: 1px solid var(--bronze);
  opacity: .55;
  pointer-events: none;
}
.on-dark .portrait, .page-hero .portrait {
  background: rgba(245, 241, 233, .05);
  border-color: var(--line-dark);
}

/* Cropped photo — only where the composition tolerates it */
.photo { overflow: hidden; background: var(--paper-3); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.4s var(--ease); }
.photo--face img { object-position: center 14%; }
.photo:hover img { transform: scale(1.035); }

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

/* --------------------------------------------------------------------------
   10. Content modules
   -------------------------------------------------------------------------- */
.idx-card { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.idx-card .num {
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--bronze-text);
  display: block;
  margin-bottom: 15px;
}
.idx-card h3 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.24; color: var(--ink); margin-bottom: 12px; }
.idx-card p { font-size: .93rem; line-height: 1.7; color: var(--body); }
.idx-card p + p { margin-top: .9em; }
.on-dark .idx-card { border-color: var(--line-dark); }
.on-dark .idx-card .num { color: var(--bronze-2); }
.on-dark .idx-card h3 { color: var(--paper); }
.on-dark .idx-card p { color: rgba(245, 241, 233, .74); }

.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat .figure-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1;
  color: var(--mineral);
  letter-spacing: -.02em;
  display: block;
}
.stat .figure-label {
  margin-top: 12px;
  font-size: .79rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26ch;
}
.on-dark .stat { border-color: var(--line-dark); }
.on-dark .stat .figure-num { color: var(--bronze-2); }
.on-dark .stat .figure-label { color: rgba(245, 241, 233, .68); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 2.8vw, 40px);
  position: relative;
  transition: border-color .4s var(--ease);
}
.panel:hover { border-color: rgba(14, 74, 70, .38); }
.panel h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.25; margin-bottom: 13px; }
.panel p { font-size: .93rem; line-height: 1.72; }
.panel p + p { margin-top: .9em; }
.on-dark .panel { background: rgba(245, 241, 233, .035); border-color: var(--line-dark); }
.on-dark .panel:hover { border-color: rgba(196, 137, 79, .45); }
.on-dark .panel h3 { color: var(--paper); }
.on-dark .panel p { color: rgba(245, 241, 233, .74); }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  line-height: 1.34;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -.01em;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 2px solid var(--bronze);
  text-wrap: pretty;
}
.on-dark .pullquote { color: var(--paper); border-left-color: var(--bronze-2); }
.pullquote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.on-dark .pullquote cite { color: rgba(245, 241, 233, .62); }

.note {
  font-size: .74rem;
  line-height: 1.62;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  max-width: 74ch;
}
.on-dark .note { color: rgba(245, 241, 233, .56); border-color: var(--line-dark-soft); }

.sec-head { max-width: 60ch; margin-bottom: clamp(36px, 4.2vw, 60px); }
.sec-head--wide { max-width: 78ch; }
.sec-head p { margin-top: 20px; }

.cols-2 { columns: 2; column-gap: clamp(28px, 3.5vw, 58px); }
.cols-2 p { break-inside: avoid; margin-bottom: 1.1em; max-width: none; }

/* Governance diagram (leadership.html) */
.gov-chart { display: grid; gap: 0; }
.gov-tier {
  border: 1px solid var(--line-dark);
  background: rgba(245, 241, 233, .04);
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px);
  position: relative;
}
.gov-tier + .gov-tier { margin-top: 34px; }
.gov-tier + .gov-tier::before {
  content: "";
  position: absolute;
  left: 50%; top: -34px;
  width: 1px; height: 34px;
  background: var(--line-dark);
}
.gov-tier + .gov-tier::after {
  content: "";
  position: absolute;
  left: 50%; top: -8px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  background: var(--bronze-2);
  transform: rotate(45deg);
}
.gov-tier .gt-rank {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-2);
  display: block;
  margin-bottom: 9px;
}
.gov-tier h3 { font-family: var(--serif); font-size: clamp(1.12rem, 1.7vw, 1.38rem); color: var(--paper); line-height: 1.24; }
.gov-tier p { margin-top: 9px; font-size: .87rem; line-height: 1.65; color: rgba(245, 241, 233, .72); }
.gov-tier--lead { background: rgba(196, 137, 79, .1); border-color: rgba(196, 137, 79, .45); }

/* Flex rather than grid so the final row always fills — no empty cells */
.seat-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.seat-grid li {
  flex: 1 1 190px;
  background: var(--ink);
  padding: 18px 16px;
  font-size: .84rem;
  color: rgba(245, 241, 233, .74);
  line-height: 1.4;
}
.seat-grid li b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--paper); font-weight: 400; margin-bottom: 5px; }
.seat-grid li.is-seat { background: rgba(196, 137, 79, .14); }
.seat-grid li.is-seat b { color: var(--bronze-2); }
.seat-grid li.is-seat span { color: var(--paper); }

/* Ledger rows (career.html) */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, .26fr) minmax(0, 1fr);
  gap: 10px clamp(24px, 4vw, 66px);
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
}
.ledger-row:hover { background: rgba(14, 74, 70, .035); }
.ledger-year {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  line-height: 1;
  color: var(--mineral);
  letter-spacing: -.02em;
}
.ledger-year small {
  display: block;
  font-family: var(--sans);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.ledger-body h3 { font-family: var(--serif); font-size: clamp(1.24rem, 2vw, 1.6rem); color: var(--ink); line-height: 1.24; margin-bottom: 14px; }
.ledger-body p { font-size: .95rem; line-height: 1.74; max-width: 68ch; }
.ledger-body p + p { margin-top: .9em; }
.ledger-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

/* Case study block (contributions.html) */
.case { position: relative; padding-top: clamp(30px, 3.4vw, 46px); }
.case + .case { margin-top: clamp(44px, 5vw, 80px); }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.case-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: .9;
  color: var(--paper-4);
  display: block;
  letter-spacing: -.03em;
}
.on-dark .case::before { background: var(--line-dark); }
.on-dark .case-num { color: rgba(205, 187, 156, .32); }

/* Drop cap (legacy.html) */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: .82;
  float: left;
  padding: .07em .12em 0 0;
  color: var(--mineral);
  font-weight: 400;
}
.on-dark .dropcap::first-letter { color: var(--bronze-2); }

/* --------------------------------------------------------------------------
   11. Timelines
   -------------------------------------------------------------------------- */
.tl { position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 5%, var(--line) 95%, transparent);
}
.tl-item {
  position: relative;
  padding-left: clamp(26px, 3.6vw, 52px);
  padding-bottom: clamp(34px, 4.2vw, 58px);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -4px; top: 10px;
  width: 9px; height: 9px;
  background: var(--paper);
  border: 1px solid var(--bronze);
  transform: rotate(45deg);
  transition: background .4s var(--ease);
}
.tl-item:hover::before { background: var(--bronze); }
.tl-year {
  font-family: var(--sans);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--bronze-text);
  display: block;
  margin-bottom: 9px;
}
.tl-item h3 { font-family: var(--serif); font-size: clamp(1.18rem, 1.9vw, 1.46rem); line-height: 1.26; color: var(--ink); margin-bottom: 11px; }
.tl-item p { font-size: .93rem; line-height: 1.72; max-width: 64ch; }
.on-dark .tl::before { background: linear-gradient(to bottom, transparent, var(--line-dark) 5%, var(--line-dark) 95%, transparent); }
.on-dark .tl-item::before { background: var(--ink); }
.on-dark .tl-year { color: var(--bronze-2); }
.on-dark .tl-item h3 { color: var(--paper); }
.on-dark .tl-item p { color: rgba(245, 241, 233, .74); }
.band-2 .tl-item::before, .band-3 .tl-item::before { background: var(--paper-2); }

/* Alternating timeline */
.tl-alt { position: relative; }
.tl-alt::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.tl-alt-row {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: start;
  margin-bottom: clamp(26px, 3.4vw, 48px);
}
.tl-alt-node {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  padding-top: 24px;
  position: relative;
  z-index: 2;
}
.tl-alt-node span {
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1px solid var(--bronze);
  transform: rotate(45deg);
  display: block;
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.tl-alt-row.is-in .tl-alt-node span { background: var(--bronze); transform: rotate(45deg) scale(1.15); }
.tl-alt-card {
  grid-row: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.5vw, 34px);
}
.tl-alt-row:nth-of-type(odd)  .tl-alt-card { grid-column: 1; margin-right: clamp(12px, 1.8vw, 26px); }
.tl-alt-row:nth-of-type(even) .tl-alt-card { grid-column: 3; margin-left: clamp(12px, 1.8vw, 26px); }
.tl-alt-card .tl-year { margin-bottom: 8px; }
.tl-alt-card h3 { font-family: var(--serif); font-size: clamp(1.12rem, 1.75vw, 1.4rem); color: var(--ink); line-height: 1.26; margin-bottom: 11px; }
.tl-alt-card p { font-size: .91rem; line-height: 1.7; }
.tl-alt-card p + p { margin-top: .85em; }
.tl-alt-card .figure { margin-top: 18px; }

.tl-era {
  text-align: center;
  margin: clamp(20px, 2.6vw, 38px) 0 clamp(26px, 3.2vw, 44px);
  position: relative;
  z-index: 2;
}
.tl-era span {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mineral);
}

/* --------------------------------------------------------------------------
   12. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 86px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  --motif-c: rgba(205, 187, 156, .085);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  inset: auto -10% -30% 30%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(14, 74, 70, .55), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 4vw, 68px);
  align-items: center;
  min-height: min(84vh, 820px);
  padding-block: clamp(52px, 6.5vw, 92px);
}
.hero-eyebrow {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze-2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--bronze-2); flex: none; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 8.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  color: var(--paper);
  text-wrap: balance;
}
.hero h1 .hl { font-style: italic; color: var(--sand); }
.hero-role {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: clamp(.85rem, 1.1vw, .96rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.62;
  color: rgba(245, 241, 233, .88);
  max-width: 42ch;
}
.hero-role b {
  display: block;
  color: var(--bronze-2);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }

.hero-portrait { position: relative; }
.hero-portrait .frame {
  position: relative;
  padding: clamp(9px, 1.2vw, 15px);
  border: 1px solid rgba(205, 187, 156, .3);
  background: linear-gradient(160deg, rgba(205, 187, 156, .1), rgba(14, 74, 70, .16));
}
.hero-portrait img { width: 100%; display: block; object-fit: contain; }
.hero-portrait .plaque {
  position: absolute;
  left: clamp(-16px, -1.5vw, -8px);
  bottom: clamp(20px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 19px;
  max-width: 76%;
  border-left: 2px solid var(--bronze);
  box-shadow: 0 10px 34px rgba(8, 14, 13, .3);
}
.hero-portrait .pl-title { font-family: var(--serif); font-size: .98rem; line-height: 1.25; display: block; }
.hero-portrait .pl-sub {
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

.hero-ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-ticker > div {
  padding: 22px clamp(12px, 1.8vw, 28px) 26px;
  border-right: 1px solid var(--line-dark-soft);
}
.hero-ticker > div:last-child { border-right: 0; }
.hero-ticker dt {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  color: var(--paper);
  line-height: 1;
  letter-spacing: -.015em;
}
.hero-ticker dd {
  margin: 10px 0 0;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .58);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. Media gallery
   -------------------------------------------------------------------------- */
/* Archival plate grid: every tile is the same size and each photograph is
   contained within it, so rows align and no image is ever cropped. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}
.mosaic > figure { margin: 0; }
.plate-note { display: flex; flex-direction: column; justify-content: center; }
.gal-item { position: relative; display: block; width: 100%; text-align: left; padding: 0; }
.gal-item .shot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px);
  background-color: var(--paper-3);
  border: 1px solid var(--line);
  --motif-c: rgba(22, 33, 31, .07);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
}
.gal-item .shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 1.1s var(--ease);
  box-shadow: 0 5px 24px rgba(22, 33, 31, .16);
}
.gal-item:hover .shot img { transform: scale(1.025); }
.gal-item .shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 33, 31, .55), transparent 58%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.gal-item:hover .shot::after, .gal-item:focus-visible .shot::after { opacity: 1; }
.gal-item .zoom {
  position: absolute;
  right: 15px; bottom: 15px;
  width: 40px; height: 40px;
  border: 1px solid rgba(245, 241, 233, .65);
  display: grid;
  place-items: center;
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gal-item:hover .zoom, .gal-item:focus-visible .zoom { opacity: 1; transform: translateY(0); }
.mosaic figcaption {
  margin-top: 13px;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.mosaic .cap-idx { color: var(--bronze-text); font-weight: 600; letter-spacing: .12em; flex: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 17, 16, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 8vw, 96px) clamp(60px, 8vw, 100px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1080px, 100%); display: flex; flex-direction: column; }
.lightbox img { max-width: 100%; max-height: 72vh; width: auto; object-fit: contain; margin-inline: auto; }
.lightbox figcaption {
  margin-top: 18px;
  color: rgba(245, 241, 233, .8);
  font-size: .84rem;
  line-height: 1.6;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.lb-btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border: 1px solid rgba(245, 241, 233, .32);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb-btn:hover { background: rgba(245, 241, 233, .13); border-color: rgba(245, 241, 233, .65); }
.lb-close { top: clamp(14px, 3vw, 32px); right: clamp(14px, 3vw, 32px); }
.lb-prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  left: 50%; bottom: clamp(14px, 2.6vw, 28px);
  transform: translateX(-50%);
  font-size: .69rem;
  letter-spacing: .2em;
  color: rgba(245, 241, 233, .6);
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-card { border: 1px solid var(--line); background: var(--paper); padding: clamp(26px, 3.2vw, 46px); }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-row .ic {
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--mineral);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.contact-row .ic svg { width: 17px; height: 17px; }
.contact-row .lbl {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.contact-row .val {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink);
  line-height: 1.3;
  transition: color .3s var(--ease);
  overflow-wrap: anywhere;
}
a.contact-row:hover .val { color: var(--mineral); }
a.contact-row:hover .ic { border-color: var(--mineral); background: var(--mineral); color: var(--paper); }

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.socials a:hover, .socials a:focus-visible {
  background: var(--mineral);
  border-color: var(--mineral);
  color: var(--paper);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.on-dark .socials a { border-color: var(--line-dark); color: rgba(245, 241, 233, .82); }
.on-dark .socials a:hover, .on-dark .socials a:focus-visible {
  background: var(--bronze); border-color: var(--bronze); color: var(--paper);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(245, 241, 233, .72); position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  --motif-c: rgba(205, 187, 156, .07);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-top { padding-block: clamp(50px, 6vw, 88px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(32px, 4.2vw, 66px);
}
.footer-brand .fb-lock { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand .fb-lock svg { width: 34px; height: 34px; flex: none; }
.footer-brand .fb-name {
  font-family: var(--serif);
  font-size: clamp(1.42rem, 2.2vw, 1.9rem);
  color: var(--paper);
  line-height: 1.16;
  letter-spacing: -.01em;
}
.footer-brand .fb-role {
  margin-top: 14px;
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(245, 241, 233, .68);
  max-width: 36ch;
}
.footer-h {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-2);
  margin-bottom: 18px;
}
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: .84rem;
  color: rgba(245, 241, 233, .74);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--paper); transform: translateX(3px); }

.footer-contact li { margin-bottom: 15px; }
.footer-contact li:last-child { margin-bottom: 0; }
.footer-contact .fc-lbl {
  display: block;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .5);
  margin-bottom: 5px;
}
.footer-contact a, .footer-contact .fc-val {
  font-size: .93rem;
  color: var(--paper);
  transition: color .3s var(--ease);
  overflow-wrap: anywhere;
}
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--bronze-2); }
.footer-social { margin-top: 26px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark-soft);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: .77rem;
  color: rgba(245, 241, 233, .62);
}
.footer-bottom a { color: rgba(245, 241, 233, .8); transition: color .3s var(--ease); }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--bronze-2); }

/* --------------------------------------------------------------------------
   16. Access gate (index.html)
   -------------------------------------------------------------------------- */
.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--ink);
  position: relative;
}
.gate::before {
  content: "";
  position: absolute; inset: 0;
  --motif-c: rgba(205, 187, 156, .08);
  background-image:
    repeating-linear-gradient(45deg,  var(--motif-c) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--motif-c) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
}
.gate::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(14, 74, 70, .45), transparent 70%);
  pointer-events: none;
}
.gate-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: rgba(245, 241, 233, .045);
  border: 1px solid rgba(205, 187, 156, .22);
  padding: clamp(30px, 6vw, 46px) clamp(22px, 5vw, 40px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gate-title {
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .85);
  text-align: center;
}
.gate-hint {
  margin-top: 12px;
  font-size: .79rem;
  line-height: 1.6;
  color: rgba(245, 241, 233, .6);
  text-align: center;
}
.gate-form { margin-top: 28px; }
.gate-label {
  display: block;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, .62);
  margin-bottom: 10px;
}
.gate-field { position: relative; }
.gate-input {
  width: 100%;
  background: rgba(11, 17, 16, .5);
  border: 1px solid rgba(205, 187, 156, .28);
  color: var(--paper);
  padding: 15px 52px 15px 16px;
  font-size: 1rem;
  letter-spacing: .16em;
  border-radius: 2px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.gate-input::placeholder { color: rgba(245, 241, 233, .32); letter-spacing: .1em; }
.gate-input:focus { outline: none; border-color: var(--bronze-2); background: rgba(11, 17, 16, .74); }
.gate-input:focus-visible { outline: 2px solid var(--bronze-2); outline-offset: 2px; }
.gate-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: rgba(245, 241, 233, .58);
  transition: color .3s var(--ease);
}
.gate-toggle:hover { color: var(--paper); }
.gate-submit {
  margin-top: 18px;
  width: 100%;
  border-color: var(--sand);
  color: var(--ink);
  background: var(--sand);
}
.gate-submit::before { background: var(--paper); }
.gate-submit:hover, .gate-submit:focus-visible { color: var(--ink); border-color: var(--paper); }
.gate-msg {
  margin-top: 16px;
  min-height: 22px;
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(245, 241, 233, .6);
}
.gate-msg[data-state="error"] { color: #EDA88F; }
.gate-msg[data-state="ok"] { color: var(--sand); }
.gate-box.is-shake { animation: gshake .45s var(--ease); }
@keyframes gshake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* --------------------------------------------------------------------------
   17. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }
[data-reveal-delay="4"] { transition-delay: .36s; }
[data-reveal-delay="5"] { transition-delay: .45s; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--bronze);
  width: 0;
  z-index: 101;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-list { gap: 15px; }
  .nav-list a { font-size: .655rem; letter-spacing: .1em; }
  .wordmark .wm-sub { display: none; }
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .nav-inner, .site-header.is-solid .nav-inner { height: 72px; }
  .wordmark .wm-sub { display: block; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; min-height: 0; align-items: start; }
  .hero-portrait { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-portrait .plaque { left: -6px; max-width: 84%; }
  .split, .split--rev, .split--even { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-2 { columns: 1; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .tl-alt::before { left: 5px; transform: none; }
  .tl-alt-row { grid-template-columns: minmax(0, 1fr); }
  .tl-alt-node { grid-column: 1; grid-row: 1; justify-content: flex-start; padding-top: 22px; margin-left: -1px; }
  .tl-alt-row:nth-of-type(odd) .tl-alt-card,
  .tl-alt-row:nth-of-type(even) .tl-alt-card { grid-column: 1; grid-row: 1; margin: 0 0 0 36px; }
  .tl-era { text-align: left; padding-left: 36px; }
  .hero-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ticker > div:nth-child(2n) { border-right: 0; }
  .hero-ticker > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark-soft); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ledger-year small { margin-top: 6px; margin-bottom: 12px; }
  .deflist > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .deflist dt { padding-top: 0; }
  .lightbox { padding: 68px 14px 60px; }
  .lightbox img { max-height: 60vh; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-btn { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .contact-row { gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pullquote { padding-left: 18px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .burger { margin-right: 0; width: 42px; }
  .nav-inner { gap: 12px; }
  .wordmark { gap: 10px; min-width: 0; flex: 0 1 auto; }
  .wordmark .wm-text { min-width: 0; }
  .wordmark .wm-name { font-size: .84rem; }
  .wordmark .wm-sub { font-size: .43rem; letter-spacing: .14em; }
  .wordmark .glyph { width: 26px; height: 26px; }
  .hero-ticker { grid-template-columns: 1fr; }
  .hero-ticker > div { border-right: 0; border-bottom: 1px solid var(--line-dark-soft); }
  .hero-ticker > div:last-child { border-bottom: 0; }
  .btn { padding: 14px 20px; font-size: .68rem; letter-spacing: .13em; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Preferences
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  .wordmark .wm-sub { display: none; }
  .wordmark .wm-name { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .photo:hover img, .gal-item:hover .shot img { transform: none; }
}

@media print {
  .site-header, .nav-mobile, .lightbox, .scroll-progress, .btn, .arrow-link, .burger { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-dark, .page-hero, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .on-dark .d1, .on-dark .d2, .on-dark .d3, .page-hero .d1, .hero h1 { color: #000 !important; }
  .page-hero::after, .hero::after, .site-footer::before { display: none; }
}
