/* ==========================================================================
   chiragkoradia.com — core stylesheet
   Palette : limestone paper / deep pine-ink / sienna
   Type    : Fraunces (editorial display) + Archivo (grotesque text & UI)
   Method  : hairline-ruled editorial composition, mounted image plates,
             asymmetric measures. No drop-shadow cards, no gradients.
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */

:root {
  /* surfaces */
  --paper:        #F5F2EC;
  --paper-2:      #EBE6DA;
  --paper-3:      #E1DACB;
  --ink:          #18201C;
  --ink-2:        #222C27;

  /* text */
  --text:         #1B211D;
  --text-2:       #5C645E;
  --text-3:       #5E665F;
  --on-ink:       #F1EEE6;
  --on-ink-2:     #A9B2AB;

  /* accent */
  --accent:       #AA4526;
  --accent-deep:  #8E3A21;
  --accent-light: #E08A5E;

  /* structure */
  --line:         #D5CEBE;
  --line-strong:  #BCB3A0;
  --line-ink:     #35403A;

  /* metrics */
  --shell:        1320px;
  --gut:          clamp(1.25rem, 4vw, 4.5rem);
  --sect-y:       clamp(4.5rem, 9vw, 9.5rem);
  --rule:         1px;

  /* type */
  --serif:  "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:   "Archivo", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- 2. reset */

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

/* NOTE: do NOT put overflow-x: hidden on html or body. A non-visible overflow
   on one axis forces the other axis to compute to auto, which turns the element
   into a scroll container — the sticky masthead would then stick to a scrollport
   that never scrolls, and window scroll offsets would read as 0. Horizontal
   overflow is prevented at source instead (min-width:0 on grid tracks, wrapping
   long strings), and body uses overflow-x: clip, which clips without creating a
   scroll container and so leaves position: sticky intact. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--accent); color: #FFF6F1; }

/* ------------------------------------------------------- 3. type hierarchy */

.display,
.h1, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.85rem, 1.1rem + 7.4vw, 8.25rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
  font-weight: 450;
}

.h1 {
  font-size: clamp(2.4rem, 1.35rem + 4.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.024em;
  font-weight: 450;
}

.h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 450;
}

.h3 {
  font-size: clamp(1.3rem, 1.08rem + 0.95vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  font-weight: 500;
}

.h4 {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 0.97rem + 0.24vw, 1.18rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.006em;
}

.lede {
  font-size: clamp(1.14rem, 1.02rem + 0.62vw, 1.5rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34ch;
  font-weight: 400;
}

.lede--wide { max-width: 46ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.eyebrow--muted { color: var(--text-3); }
.eyebrow--ink   { color: var(--accent-light); }

.meta {
  font-family: var(--sans);
  font-size: 0.775rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.numeral {
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
}

.prose p {
  max-width: 68ch;
  margin-bottom: 1.35em;
  color: var(--text-2);
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.prose--tight p { margin-bottom: 1.05em; }

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.1em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
  font-weight: 450;
}

/* ------------------------------------------------------------ 4. structure */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell--narrow { max-width: 980px; }

.sect { padding-block: var(--sect-y); position: relative; }
.sect--tight  { padding-block: clamp(3rem, 6vw, 6rem); }
.sect--flush-top { padding-top: 0; }

.sect--paper2 { background: var(--paper-2); }
.sect--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.sect--ink .h1, .sect--ink .h2, .sect--ink .h3, .sect--ink .h4, .sect--ink .display { color: var(--on-ink); }
.sect--ink .lede, .sect--ink .prose p { color: var(--on-ink-2); }
.sect--ink .prose strong { color: var(--on-ink); }
.sect--ink .meta { color: var(--on-ink-2); }
.sect--ink .rule { background: var(--line-ink); }

.rule {
  height: var(--rule);
  background: var(--line);
  border: 0;
  width: 100%;
  transform-origin: left center;
}
.rule--strong { background: var(--line-strong); }

.sect-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
  padding-top: clamp(1.1rem, 2vw, 1.9rem);
}

.sect-head__index {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------- 5. mounted image plate */

/* Images are mounted, never cropped: the frame supplies a mat of colour and the
   picture keeps its own aspect ratio (width:100%; height:auto). No fixed-height
   container is ever placed around a photograph on this site. */

.plate {
  display: block;
  background: var(--paper-2);
  border: var(--rule) solid var(--line-strong);
  padding: clamp(0.7rem, 1.6vw, 1.4rem);
  position: relative;
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.plate--ink { background: var(--ink-2); border-color: var(--line-ink); }

.plate-caption {
  display: flex;
  width: 100%;
  gap: 0.85rem;
  align-items: baseline;
  margin-top: 0.95rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-3);
}
.plate-caption__no {
  font-family: var(--serif);
  color: var(--accent);
  flex: none;
  letter-spacing: 0.04em;
}
.sect--ink .plate-caption { color: var(--on-ink-2); }
.sect--ink .plate-caption__no { color: var(--accent-light); }

/* ------------------------------------------------------------- 6. controls */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.795rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 1.05rem 1.6rem;
  border: var(--rule) solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); flex: none; }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #FFF6F1; }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.sect--ink .btn--ghost { color: var(--on-ink); border-color: var(--line-ink); }
.sect--ink .btn--ghost:hover, .sect--ink .btn--ghost:focus-visible {
  background: var(--accent-light); border-color: var(--accent-light); color: var(--ink);
}

.textlink {
  color: var(--accent);
  border-bottom: var(--rule) solid rgba(170, 69, 38, 0.38);
  padding-bottom: 0.08em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.textlink:hover, .textlink:focus-visible { border-color: var(--accent); color: var(--accent-deep); }
.sect--ink .textlink { color: var(--accent-light); border-bottom-color: rgba(224, 138, 94, 0.4); }
.sect--ink .textlink:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* -------------------------------------------------------- 7. accessibility */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sect--ink :focus-visible,
.site-foot :focus-visible,
.masthead--ink :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ------------------------------------------------------------- 8. masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(245, 242, 236, 0.94);
  border-bottom: var(--rule) solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .masthead {
    background: rgba(245, 242, 236, 0.78);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
  .masthead.is-stuck { background: rgba(245, 242, 236, 0.92); }
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(0.85rem, 1.5vw, 1.35rem) var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding 0.3s var(--ease);
}
.masthead.is-stuck .masthead__inner { padding-block: 0.7rem; }

.wordmark { display: flex; align-items: center; gap: 0.85rem; flex: none; }

.wordmark__mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.35s var(--ease);
}
.wordmark:hover .wordmark__mark { background: var(--accent); }

.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark__role {
  font-size: 0.615rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  font-style: normal;
  margin-top: 0.18rem;
}

.nav__list { display: flex; align-items: center; gap: clamp(0.4rem, 1.5vw, 1.5rem); }

.nav__link {
  display: block;
  position: relative;
  font-size: 0.755rem;
  font-weight: 500;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.55rem 0.15rem;
  transition: color 0.28s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: var(--rule);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.masthead__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.masthead__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left center;
}

/* mobile trigger + panel */

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 210;
}
.nav-toggle__bars { display: block; width: 24px; height: 12px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--rule);
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 6px; transform: rotate(45deg); background: var(--on-ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 6px; transform: rotate(-45deg); background: var(--on-ink); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(5.5rem, 14vw, 7rem) var(--gut) clamp(2rem, 6vw, 3rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__item { border-top: var(--rule) solid var(--line-ink); }
.mobile-nav__item:last-child { border-bottom: var(--rule) solid var(--line-ink); }

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.85rem, 2.4vw, 1.15rem) 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  line-height: 1.05;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.mobile-nav__link:hover, .mobile-nav__link:focus-visible { color: var(--accent-light); padding-left: 0.6rem; }
.mobile-nav__link[aria-current="page"] { color: var(--accent-light); }
.mobile-nav__no {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--on-ink-2);
  flex: none;
  font-weight: 500;
}
.mobile-nav__foot {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: var(--rule) solid var(--line-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.8rem;
  color: var(--on-ink-2);
}
.mobile-nav__foot a { color: var(--on-ink); border-bottom: var(--rule) solid var(--line-ink); }
.mobile-nav__foot a:hover { color: var(--accent-light); border-color: var(--accent-light); }

body.nav-open,
body.scroll-locked { overflow: hidden; }

/* while the mobile panel is open the masthead rises above it so the toggle
   stays reachable, and its marks invert onto the ink panel */
body.nav-open .masthead {
  z-index: 240;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.nav-open .masthead__progress { display: none; }
body.nav-open .wordmark__name { color: var(--on-ink); }
body.nav-open .wordmark__role { color: var(--on-ink-2); }
body.nav-open .wordmark__mark { background: var(--accent); color: var(--on-ink); }
body.nav-open .nav-toggle:focus-visible { outline-color: var(--accent-light); }

/* --------------------------------------------------------- 9. index list */
/* A numbered, hairline-ruled index used instead of card grids. */

.index-list { border-top: var(--rule) solid var(--line); }

.index-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr) 2.5rem;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.35rem, 2.6vw, 2.15rem) 0;
  border-bottom: var(--rule) solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
a.index-row:hover, a.index-row:focus-visible { padding-left: clamp(0.5rem, 1.4vw, 1.25rem); }
a.index-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: -1px;
  background: var(--paper-2);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
}
a.index-row:hover::before, a.index-row:focus-visible::before { opacity: 1; }

.index-row__no {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.index-row__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.15rem);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
a.index-row:hover .index-row__title { color: var(--accent); }
.index-row__note { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.index-row__arrow { color: var(--text-3); justify-self: end; transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
a.index-row:hover .index-row__arrow { transform: translateX(6px); color: var(--accent); }

/* ------------------------------------------------------------ 10. fact rail */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule) solid var(--line);
}
.fact {
  padding: clamp(1.35rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.75rem) clamp(1.35rem, 2.4vw, 2rem) 0;
  border-bottom: var(--rule) solid var(--line);
  border-right: var(--rule) solid var(--line);
}
.fact:not(:first-child) { padding-left: clamp(1rem, 1.8vw, 1.75rem); }
.fact:last-child { border-right: 0; }
.fact__key {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.fact__val {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.28;
  color: var(--text);
  font-weight: 450;
}
.sect--ink .facts { border-color: var(--line-ink); }
.sect--ink .fact { border-color: var(--line-ink); }
.sect--ink .fact__key { color: var(--on-ink-2); }
.sect--ink .fact__val { color: var(--on-ink); }

/* -------------------------------------------------------- 11. site footer */

.site-foot {
  background: var(--ink);
  color: var(--on-ink);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.foot-brand__name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  font-weight: 450;
  color: var(--on-ink);
}
.foot-brand__role {
  margin-top: 0.85rem;
  color: var(--on-ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34ch;
}

.foot-col__head {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  padding-bottom: 0.95rem;
  margin-bottom: 1.15rem;
  border-bottom: var(--rule) solid var(--line-ink);
}

.foot-nav li + li { margin-top: 0.6rem; }
.foot-nav a {
  color: var(--on-ink-2);
  font-size: 0.92rem;
  transition: color 0.28s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
}
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--on-ink); padding-left: 0.35rem; }

.foot-contact dt {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-2);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.foot-contact dd {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--on-ink);
  margin-bottom: 1.15rem;
  line-height: 1.35;
}
.foot-contact dd:last-child { margin-bottom: 0; }
.foot-contact a { transition: color 0.28s var(--ease); }
.foot-contact a:hover, .foot-contact a:focus-visible { color: var(--accent-light); }

.foot-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.foot-social__item {
  width: 2.6rem; height: 2.6rem;
  display: grid;
  place-items: center;
  border: var(--rule) solid var(--line-ink);
  color: var(--on-ink-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
a.foot-social__item:hover, a.foot-social__item:focus-visible {
  color: var(--ink);
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.foot-social__item[aria-disabled="true"] {
  opacity: 0.42;
  cursor: default;
}
.foot-social__note {
  margin-top: 0.95rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--on-ink-2);
  max-width: 42ch;
}

.foot-bottom {
  border-top: var(--rule) solid var(--line-ink);
  padding-block: 1.6rem 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.815rem;
  color: var(--on-ink-2);
}
.foot-bottom a { color: var(--on-ink); border-bottom: var(--rule) solid var(--line-ink); transition: color 0.28s var(--ease), border-color 0.28s var(--ease); }
.foot-bottom a:hover, .foot-bottom a:focus-visible { color: var(--accent-light); border-color: var(--accent-light); }

/* ------------------------------------------------ 12. entry gate (index) */

.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--ink);
  color: var(--on-ink);
}

.gate__aside {
  border-right: var(--rule) solid var(--line-ink);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.gate__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(241, 238, 230, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 238, 230, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
}
.gate__tag {
  position: relative;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding-bottom: 0.9rem;
  border-bottom: var(--rule) solid var(--line-ink);
  display: inline-block;
}
.gate__rule { position: relative; }
.gate__seal {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  max-width: 14ch;
}
.gate__seal em { font-style: normal; color: var(--accent-light); }

.gate__main {
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.gate-form { width: 100%; max-width: 25rem; }

.gate-form__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.gate-form__field { position: relative; }

.gate-form__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: var(--rule) solid var(--line-ink);
  color: var(--on-ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  letter-spacing: 0.28em;
  padding: 0.65rem 3rem 0.85rem 0;
  border-radius: 0;
  transition: border-color 0.32s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.gate-form__input::placeholder { color: #8A938C; letter-spacing: 0.2em; font-size: 0.72em; }
.gate-form__input:focus { outline: none; border-bottom-color: var(--accent-light); }
.gate-form__input:focus-visible { outline: none; }

.gate-form__reveal {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-60%);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  color: var(--on-ink-2);
  transition: color 0.28s var(--ease);
}
.gate-form__reveal:hover, .gate-form__reveal:focus-visible { color: var(--accent-light); }

.gate-form__submit {
  margin-top: 2rem;
  width: 100%;
  justify-content: space-between;
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF6F1;
}
.gate-form__submit:hover, .gate-form__submit:focus-visible {
  background: var(--on-ink); border-color: var(--on-ink); color: var(--ink);
}

.gate-form__status {
  margin-top: 1.15rem;
  min-height: 1.35rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--on-ink-2);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.gate-form__status[data-state="error"] { color: #F0A28B; }
.gate-form__status[data-state="ok"] { color: var(--accent-light); }
.gate-form__status svg { flex: none; margin-top: 0.22rem; }

.gate-form__input[aria-invalid="true"] { border-bottom-color: #F0A28B; }

.gate__hint {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: var(--rule) solid var(--line-ink);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8A938C;
  max-width: 34ch;
}

/* ===================================================== 13. HOME — hero */

.hero {
  padding-top: clamp(2.75rem, 6vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6.7fr) minmax(0, 5.3fr);
  gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.6rem);
}
.hero__eyebrow-row .rule { flex: 1; min-width: 2rem; }

.hero__title { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.hero__title span { display: block; }
.hero__title-2 { padding-left: clamp(1.5rem, 8vw, 7.5rem); }
.hero__title-2 .hero__ampersand { color: var(--accent); }

.hero__lede { margin-bottom: clamp(1.75rem, 3.5vw, 2.6rem); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__aside { padding-top: clamp(0.5rem, 3.5vw, 3.5rem); }

.hero__standfirst {
  margin-top: clamp(1.5rem, 2.6vw, 2.1rem);
  border-left: 2px solid var(--accent);
  padding-left: clamp(1rem, 1.6vw, 1.5rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-2);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule) solid var(--line);
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
}
.hero__stat { background: var(--paper); padding: clamp(0.9rem, 1.6vw, 1.25rem); }
.hero__stat dt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.hero__stat dd {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.15rem);
  line-height: 1.25;
  color: var(--text);
}

/* editorial two-column narrative block */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split__aside { position: relative; }

/* theme columns (not cards — hairline-ruled editorial blocks) */

.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule) solid var(--line-ink);
}
.theme {
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.25rem, 2.4vw, 2.2rem) clamp(1.6rem, 3vw, 2.6rem) 0;
  border-right: var(--rule) solid var(--line-ink);
  border-bottom: var(--rule) solid var(--line-ink);
}
.theme:not(:first-child) { padding-left: clamp(1.1rem, 2vw, 2rem); }
.theme:last-child { border-right: 0; }
.theme__no {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  display: block;
  margin-bottom: 1.1rem;
}
.theme__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.02rem + 0.75vw, 1.6rem);
  line-height: 1.18;
  font-weight: 450;
  letter-spacing: -0.014em;
  color: var(--on-ink);
  margin-bottom: 0.85rem;
}
.theme__body { color: var(--on-ink-2); font-size: 0.94rem; line-height: 1.68; }

/* closing invitation band */

.invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: var(--rule) solid var(--line);
}

/* ==================================================== 14. ABOUT — profile */

.about-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-head__plate { max-width: 26rem; margin-left: auto; width: 100%; }

.bio {
  display: grid;
  grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.bio__rail {
  border-top: 2px solid var(--ink);
  padding-top: 1.35rem;
}
.bio__rail-head {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 1.3rem;
}
.bio__rail dl { display: grid; }
.bio__rail dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.bio__rail dd {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: var(--rule) solid var(--line);
}
.bio__rail dd:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.bio__body h2 { margin-top: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 1.1rem; }
.bio__body h2:first-of-type { margin-top: 0; }

.values { border-top: var(--rule) solid var(--line); margin-top: clamp(2rem, 4vw, 3rem); }
.value {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.3rem, 2.4vw, 1.9rem);
  border-bottom: var(--rule) solid var(--line);
}
.value__term {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.42rem);
  line-height: 1.2;
  color: var(--text);
  font-weight: 450;
  letter-spacing: -0.012em;
}
.value__def { color: var(--text-2); font-size: 0.97rem; line-height: 1.7; }

/* ================================================== 15. JOURNEY — chapters */

.journey { position: relative; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(1.25rem, 4vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-top: var(--rule) solid var(--line);
  position: relative;
}
.chapter:last-child { border-bottom: var(--rule) solid var(--line); }

.chapter__marker { position: relative; }
.chapter__label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: block;
}
.chapter__year {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 1.6rem + 6vw, 6.6rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--text);
  display: block;
}
.chapter__year em { font-style: normal; color: var(--accent); }
.chapter__place {
  margin-top: 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.5;
}

.chapter__body { padding-top: clamp(0.25rem, 1.5vw, 1.35rem); }
.chapter__title { margin-bottom: 1rem; }
.chapter__note {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: var(--rule) solid var(--line);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-3);
  max-width: 60ch;
}

.journey-motif {
  border: var(--rule) solid var(--line-strong);
  background: var(--paper-2);
  padding: clamp(0.75rem, 1.6vw, 1.35rem);
}

/* ============================================== 16. EXPERIENCE — record */

.statement {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.1rem + 3.1vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 400;
  color: var(--text);
  max-width: 20ch;
}
.statement em { font-style: normal; color: var(--accent); }
.sect--ink .statement { color: var(--on-ink); }
.sect--ink .statement em { color: var(--accent-light); }

.record { border-top: 2px solid var(--ink); }
.record__row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 4.4fr) minmax(0, 5fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.25rem, 2.3vw, 1.85rem);
  border-bottom: var(--rule) solid var(--line);
  align-items: baseline;
}
.record__period {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.94rem + 0.4vw, 1.25rem);
  color: var(--accent);
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.record__post {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 0.98rem + 0.55vw, 1.42rem);
  line-height: 1.24;
  color: var(--text);
  font-weight: 450;
  letter-spacing: -0.012em;
}
.record__where { display: block; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.record__note { color: var(--text-2); font-size: 0.94rem; line-height: 1.68; }

.practice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  border-top: var(--rule) solid var(--line);
}
.practice__item {
  padding-block: clamp(1.35rem, 2.5vw, 2rem);
  border-bottom: var(--rule) solid var(--line);
}
.practice__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.65vw, 1.5rem);
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -0.014em;
  margin-bottom: 0.7rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.practice__title span { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--accent); font-weight: 600; flex: none; }
.practice__body { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }

/* ================================================== 17. IMPACT — dossiers */

.dossier {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: var(--rule) solid var(--line);
}
.dossier:last-of-type { border-bottom: var(--rule) solid var(--line); }

.dossier__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.dossier__no {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 1.1rem;
}
.dossier__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.dossier__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule) solid var(--line-strong);
}
.step {
  padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.1rem, 2.2vw, 2rem) clamp(1.35rem, 2.5vw, 2rem) 0;
  border-right: var(--rule) solid var(--line);
}
.step:not(:first-child) { padding-left: clamp(1.1rem, 2vw, 2rem); }
.step:last-child { border-right: 0; padding-right: 0; }
.step__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.step__head b { color: var(--text-3); font-weight: 600; }
.step__body { color: var(--text-2); font-size: 0.94rem; line-height: 1.7; }

.dossier__media { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 44rem; }

.caveat {
  border: var(--rule) solid var(--line-strong);
  background: var(--paper-2);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}
.caveat strong { color: var(--text); }

/* =================================================== 18. GALLERY — plates */

.plates {
  column-count: 3;
  column-gap: clamp(1rem, 2.2vw, 2rem);
}
.plates__figure {
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin-bottom: clamp(1.25rem, 2.6vw, 2.4rem);
}
.plates__item {
  display: block;
  width: 100%;
  text-align: left;
}
button.plates__item { cursor: zoom-in; }
button.plates__item .plate { transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease); }
button.plates__item:hover .plate,
button.plates__item:focus-visible .plate { border-color: var(--accent); background: var(--paper-3); }

.plate-feature {
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0E1310;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--on-ink);
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox__count { font-family: var(--serif); font-size: 0.95rem; color: var(--on-ink-2); letter-spacing: 0.06em; }
.lightbox__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin-block: clamp(0.5rem, 2vw, 1.5rem);
}
/* The enlarged plate is letterboxed, never cropped. Absolute positioning gives
   the picture a definite box (the free height between the bar and the caption),
   which is what lets object-fit: contain do its job. */
.lightbox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
}
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: var(--rule) solid var(--line-ink);
}
.lightbox__caption { font-size: 0.85rem; line-height: 1.55; color: var(--on-ink-2); max-width: 60ch; }
.lightbox__nav { display: flex; gap: 0.5rem; flex: none; }
.lb-btn {
  width: 2.85rem; height: 2.85rem;
  display: grid; place-items: center;
  border: var(--rule) solid var(--line-ink);
  color: var(--on-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }

/* =================================================== 19. CONTACT — details */

.contact-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.contact-head__motif { max-width: 21rem; margin-left: auto; width: 100%; }

.contact-rows { border-top: 2px solid var(--ink); }
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.35rem);
  border-bottom: var(--rule) solid var(--line);
  align-items: baseline;
}
.contact-row__key {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.contact-row__val {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 450;
  overflow-wrap: anywhere;
}
a.contact-row__val {
  display: inline-block;
  border-bottom: var(--rule) solid var(--line-strong);
  padding-bottom: 0.1em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.contact-row__val:hover, a.contact-row__val:focus-visible { color: var(--accent); border-color: var(--accent); }
.contact-row__note {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--text-2);
  max-width: 52ch;
}

.contact-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
