@charset "UTF-8";
/* ==========================================================================
   bhupeshpatel.com — core design system
   Palette : deep pine / parchment / brass  (heritage-institutional)
   Type    : Newsreader (editorial serif) + Archivo (grotesque)
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */
:root {
  /* ink & ground */
  --ink:          #0E1B17;
  --pine-900:     #12261F;
  --pine-800:     #16302A;
  --pine-700:     #1D3F36;
  --pine-600:     #275045;
  --pine-500:     #35695B;
  --pine-400:     #4E7A6C;
  --pine-300:     #8FA79C;
  --pine-200:     #A9BCB2;
  --pine-100:     #CBD8D1;

  /* metal */
  --brass-800:    #5B3F12;
  --brass-700:    #6E4E18;
  --brass-600:    #8A6524;
  --brass-500:    #B4843C;
  --brass-400:    #C79A52;
  --brass-300:    #DCBB80;
  --brass-100:    #EFE0C4;

  /* accent, used sparingly */
  --terra-700:    #7E3E24;
  --terra-600:    #9C4F31;

  /* paper */
  --parchment:    #F3EEE4;
  --parchment-2:  #EAE3D5;
  --parchment-3:  #E2D9C7;
  --ivory:        #FBF8F1;
  --line:         #DAD0BC;
  --line-soft:    #E6DECE;

  /* text */
  --text:         #33403A;
  --text-strong:  #14231E;
  --text-mute:    #5A6560;
  --text-on-dark: #F1EDE3;
  --text-on-dark-mute: #A9BCB2;

  /* metrics */
  --shell-max:    1360px;
  --shell-pad:    clamp(20px, 5vw, 72px);
  --head-h:       78px;
  --radius:       2px;
  --plate-pad:    clamp(10px, 1.1vw, 16px);

  /* type scale */
  --fs-display:   clamp(2.55rem, 1.35rem + 4.4vw, 5.1rem);
  --fs-title:     clamp(2.05rem, 1.35rem + 2.6vw, 3.45rem);
  --fs-section:   clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem);
  --fs-sub:       clamp(1.28rem, 1.1rem + 0.7vw, 1.65rem);
  --fs-h4:        clamp(1.06rem, 1rem + 0.28vw, 1.22rem);
  --fs-lead:      clamp(1.1rem, 1.02rem + 0.42vw, 1.36rem);
  --fs-body:      clamp(1rem, 0.965rem + 0.16vw, 1.1rem);
  --fs-small:     0.875rem;
  --fs-eyebrow:   0.7rem;

  --serif: "Newsreader", Georgia, "Times New Roman", "Nimbus Roman", serif;
  --sans:  "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

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

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

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

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

:focus-visible {
  outline: 2px solid var(--brass-600);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible,
.band--dark :focus-visible { outline-color: var(--brass-300); }

::selection { background: var(--brass-300); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(calc(-100% - 20px));
  opacity: 0;
  pointer-events: none;
  background: var(--pine-800);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* shown only when scripting is unavailable and the gate cannot be enforced */
.nojs {
  max-width: 460px;
  margin: clamp(60px, 18vh, 180px) auto;
  padding: 0 24px;
  text-align: center;
  color: var(--text-on-dark);
  font-family: var(--sans);
}
.nojs__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 16px;
}
.nojs__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--pine-200);
  margin-bottom: 24px;
}
.nojs__link {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--brass-400);
  color: var(--brass-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* ----------------------------------------------------------- 3. typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text-strong);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.title    { font-size: var(--fs-title);   line-height: 1.04; letter-spacing: -0.022em; }
.section-title { font-size: var(--fs-section); line-height: 1.1; letter-spacing: -0.018em; }
.subtitle { font-size: var(--fs-sub);     line-height: 1.24; letter-spacing: -0.012em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-700);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass-500);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow, .band--dark .eyebrow { color: var(--brass-300); }
.on-dark .eyebrow::before, .band--dark .eyebrow::before { background: var(--brass-400); }

.serif-italic { font-style: italic; font-weight: 300; }

.prose p + p { margin-top: 1.25em; }
.prose p { max-width: 68ch; }
.prose--wide p { max-width: 74ch; }
.prose a {
  color: var(--brass-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brass-300);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.prose a:hover { color: var(--brass-800); text-decoration-color: var(--brass-600); }
.on-dark .prose a, .band--dark .prose a { color: var(--brass-300); text-decoration-color: var(--brass-600); }
.on-dark .prose a:hover, .band--dark .prose a:hover { color: var(--brass-100); text-decoration-color: var(--brass-400); }

.on-dark, .band--dark { color: var(--text-on-dark-mute); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: var(--text-on-dark); }
.on-dark .lead, .band--dark .lead { color: var(--pine-100); }

.drop-first::first-letter {
  float: left;
  font-size: 3.9em;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
  font-weight: 300;
  color: var(--brass-600);
}

/* ---------------------------------------------------------------- 4. layout */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.shell--tight { max-width: 1080px; }
.shell--text  { max-width: 820px; }

.band { position: relative; padding-block: clamp(64px, 8.5vw, 132px); }
.band--tight { padding-block: clamp(48px, 6vw, 88px); }
.band--dark { background: var(--pine-900); color: var(--text-on-dark-mute); }
.band--deep { background: var(--ink); color: var(--text-on-dark-mute); }
.band--pine { background: var(--pine-800); color: var(--text-on-dark-mute); }
.band--ivory { background: var(--ivory); }
.band--paper2 { background: var(--parchment-2); }

.band--dark + .band--dark { padding-top: 0; }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.hairline--dark { background: rgba(199, 154, 82, 0.28); }

.section-head {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin-bottom: clamp(38px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1fr);
}
.section-head__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-index {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}
.band--dark .section-index, .on-dark .section-index { color: var(--pine-300); }

/* ------------------------------------------------------------ 5. components */

/* buttons ---------------------------------------------------------------- */
.btn {
  --btn-fg: var(--ivory);
  --btn-bg: var(--pine-800);
  --btn-bd: var(--pine-800);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 17px 30px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--brass-500); }

.btn--ghost {
  --btn-fg: var(--text-strong);
  --btn-bg: transparent;
  --btn-bd: var(--line);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }

.btn--onDark {
  --btn-fg: var(--text-on-dark);
  --btn-bg: transparent;
  --btn-bd: rgba(199, 154, 82, 0.55);
}
.btn--onDark:hover, .btn--onDark:focus-visible { color: var(--ink); }

.btn__arrow { width: 16px; height: 8px; flex: none; }

/* text link with animated rule ------------------------------------------- */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-700);
  padding-top: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--brass-300);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), gap 0.24s var(--ease);
}
.tlink:hover, .tlink:focus-visible { color: var(--brass-800); border-color: var(--brass-600); gap: 16px; }
.on-dark .tlink, .band--dark .tlink { color: var(--brass-300); border-color: rgba(199, 154, 82, 0.4); }
.on-dark .tlink:hover, .band--dark .tlink:hover { color: var(--brass-100); border-color: var(--brass-400); }
.tlink svg { width: 16px; height: 8px; flex: none; }

/* image plate — never crops a face; the frame adapts to the picture ------- */
.plate {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: var(--plate-pad);
  box-shadow: 0 24px 48px -34px rgba(14, 27, 23, 0.5);
  /* --plate-max carries the photograph's true pixel width, so a picture is
     never blown up past the resolution it actually has. */
  max-width: calc(var(--plate-max, 2000px) + (2 * var(--plate-pad)) + 2px);
}
.plate__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--parchment-2);
}
.plate__cap {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.5;
  padding-top: 14px;
}
.plate--dark { background: var(--pine-800); border-color: rgba(199, 154, 82, 0.3); }
.plate--dark .plate__img { background: var(--pine-700); }
.plate--dark .plate__cap { color: var(--pine-200); }
.plate--brass { border-color: var(--brass-400); }

/* a plate that sits over an offset brass rule frame */
.plate-frame {
  position: relative;
  --frame-offset: clamp(11px, 1.8vw, 22px);
  max-width: calc(var(--plate-max, 2000px) + (2 * var(--plate-pad)) + 2px);
}
.plate-frame::before {
  content: "";
  position: absolute;
  top: var(--frame-offset);
  left: var(--frame-offset);
  right: calc(-1 * var(--frame-offset));
  bottom: calc(-1 * var(--frame-offset));
  border: 1px solid var(--brass-400);
  pointer-events: none;
}
.plate-frame > .plate { position: relative; }

/* figures / statistics ---------------------------------------------------- */
.stat { display: grid; gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: lining-nums;
}
.band--dark .stat__num, .on-dark .stat__num { color: var(--brass-300); }
.stat__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 27ch;
}
.band--dark .stat__label, .on-dark .stat__label { color: var(--pine-200); }
.stat__note {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  text-transform: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(28px, 3.4vw, 54px);
}
.stat-row > .stat { padding-top: 26px; border-top: 1px solid var(--line); }
.band--dark .stat-row > .stat, .on-dark .stat-row > .stat { border-top-color: rgba(199, 154, 82, 0.26); }

/* index numeral used to letter sections ----------------------------------- */
.numeral {
  font-family: var(--serif);
  font-weight: 200;
  line-height: 0.8;
  font-size: clamp(3.2rem, 2rem + 4vw, 6rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-400);
  user-select: none;
}
.band--dark .numeral, .on-dark .numeral { -webkit-text-stroke-color: var(--brass-600); }
.numeral--solid { color: var(--brass-500); -webkit-text-stroke: 0; }

/* pull quote / statement -------------------------------------------------- */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--text-strong);
  max-width: 22ch;
}
.band--dark .statement, .on-dark .statement { color: var(--text-on-dark); }
.statement--wide { max-width: 30ch; }

.attrib {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.6;
}
.band--dark .attrib, .on-dark .attrib { color: var(--pine-300); }

/* definition rows --------------------------------------------------------- */
.deflist { display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.deflist__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(20px, 2.2vw, 30px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.deflist__row:last-child { border-bottom: 1px solid var(--line); }
.band--dark .deflist__row, .on-dark .deflist__row { border-color: rgba(199, 154, 82, 0.22); }
.deflist__term {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  color: var(--text-strong);
  line-height: 1.35;
}
.band--dark .deflist__term, .on-dark .deflist__term { color: var(--text-on-dark); }
.deflist__desc { font-size: 0.985rem; line-height: 1.7; }
@media (max-width: 640px) {
  .deflist__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* source citation panel --------------------------------------------------- */
.sources {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-mute);
}
.sources__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: 12px;
}
.sources ul { display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1fr);
}
.sources a {
  color: var(--text-mute);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  word-break: break-word;
}
.sources a:hover { color: var(--brass-700); text-decoration-color: var(--brass-400); }
.band--dark .sources, .on-dark .sources { color: var(--pine-200); border-top-color: rgba(199, 154, 82, 0.24); }
.band--dark .sources a, .on-dark .sources a { color: var(--pine-200); text-decoration-color: rgba(199,154,82,.4); }
.band--dark .sources a:hover, .on-dark .sources a:hover { color: var(--brass-300); }
.band--dark .sources__title, .on-dark .sources__title { color: var(--brass-300); }

/* decorative arch motif --------------------------------------------------- */
.arch-motif {
  position: absolute;
  pointer-events: none;
  color: var(--brass-400);
  opacity: 0.3;
}

/* ------------------------------------------------------------- 6. masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 14px 34px -28px rgba(14, 27, 23, 0.6); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 44px);
  min-height: var(--head-h);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-block: 6px;
}
.brandmark__glyph {
  width: 26px;
  height: 30px;
  flex: none;
  color: var(--brass-600);
  transition: color 0.3s var(--ease);
}
.brandmark:hover .brandmark__glyph { color: var(--pine-700); }
.brandmark__text { display: grid; gap: 3px;
  grid-template-columns: minmax(0, 1fr);
}
.brandmark__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
  color: var(--text-strong);
  white-space: nowrap;
}
.brandmark__role {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-mute);
  white-space: nowrap;
}

.primary-nav { display: none; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
}
.primary-nav a {
  position: relative;
  display: block;
  font-family: var(--sans);
  font-size: 0.665rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  padding-block: 10px;
  white-space: nowrap;
  transition: color 0.24s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--brass-500);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--brass-800); }
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.primary-nav a[aria-current="page"] { color: var(--brass-800); }
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.masthead__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass-600), var(--brass-400));
  transition: width 0.1s linear;
}

/* hamburger --------------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  padding: 12px 4px 12px 12px;
  flex: none;
}
.nav-toggle__bars {
  position: relative;
  width: 26px;
  height: 12px;
  flex: none;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: var(--text-strong);
  transition: transform 0.34s var(--ease), width 0.34s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { bottom: 0; width: 70%; }
.nav-toggle:hover .nav-toggle__bars i:nth-child(2) { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { background: var(--text-on-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(38deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { width: 100%; transform: translateY(-5px) rotate(-38deg); }
.nav-toggle[aria-expanded="true"] { color: var(--text-on-dark); position: relative; z-index: 120; }

/* overlay menu ------------------------------------------------------------ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--pine-900);
  display: grid;
  grid-template-rows: var(--head-h) 1fr auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  /* visibility flips instantly on open so focus() lands inside the panel, and
     only after the fade on close so the overlay still animates out */
  transition: opacity 0.36s var(--ease), visibility 0s linear 0.36s;
  grid-template-columns: minmax(0, 1fr);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.36s var(--ease), visibility 0s linear 0s;
}
.mobile-nav__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) var(--shell-pad);
  max-width: var(--shell-max);
  width: 100%;
  margin-inline: auto;
}
.mobile-nav__list { display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.mobile-nav__list li {
  border-top: 1px solid rgba(199, 154, 82, 0.2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-nav__list li:last-child { border-bottom: 1px solid rgba(199, 154, 82, 0.2); }
.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: none; }
.mobile-nav__list a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 30px);
  padding-block: clamp(11px, 1.6vw, 18px);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 0.9rem + 2.2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-on-dark);
  transition: color 0.24s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible { color: var(--brass-300); padding-left: 10px; }
.mobile-nav__list a[aria-current="page"] { color: var(--brass-400); }
.mobile-nav__num {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--pine-300);
  flex: none;
  width: 2.4em;
}
.mobile-nav__foot {
  padding: clamp(20px, 3vw, 34px) var(--shell-pad) clamp(28px, 4vw, 44px);
  max-width: var(--shell-max);
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(199, 154, 82, 0.2);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--pine-200);
}
.mobile-nav__foot a { color: var(--brass-300); }
.mobile-nav__foot a:hover { color: var(--brass-100); }

body.nav-open { overflow: hidden; }

/* While the overlay is open the masthead must sit above it, otherwise its own
   stacking context buries the close button. It goes transparent so only the
   mark and the toggle float over the panel. */
body.nav-open .masthead {
  z-index: 120;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.nav-open .brandmark__name  { color: var(--text-on-dark); }
body.nav-open .brandmark__role  { color: var(--pine-300); }
body.nav-open .brandmark__glyph { color: var(--brass-400); }
body.nav-open .masthead__progress span { opacity: 0; }

@media (min-width: 1180px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (max-width: 1400px) and (min-width: 1180px) {
  .brandmark__role { display: none; }
}
@media (max-width: 420px) {
  :root { --head-h: 66px; }
  .brandmark__glyph { width: 22px; height: 26px; }
  .brandmark__name { font-size: 0.95rem; }
  .brandmark__role { display: none; }
  .nav-toggle__label { display: none; }
}

/* --------------------------------------------------------------- 7. footer */
.colophon {
  background: var(--ink);
  color: var(--text-on-dark-mute);
  padding-top: clamp(56px, 6vw, 92px);
}
.colophon__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(44px, 5vw, 68px);
}
@media (max-width: 980px) {
  .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .colophon__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

.colophon__mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.colophon__mark svg { width: 28px; height: 32px; color: var(--brass-500); flex: none; }
.colophon__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  line-height: 1.2;
}
.colophon__blurb {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--pine-200);
  max-width: 38ch;
}

.colophon__h {
  font-family: var(--sans);
  font-size: 0.665rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-400);
  margin-bottom: 20px;
}
.colophon__links { display: grid; gap: 2px;
  grid-template-columns: minmax(0, 1fr);
}
.colophon__links a {
  display: block;
  padding-block: 7px;
  font-family: var(--sans);
  font-size: 0.83rem;
  letter-spacing: 0.045em;
  color: var(--pine-200);
  transition: color 0.22s var(--ease), padding-left 0.28s var(--ease);
}
.colophon__links a:hover,
.colophon__links a:focus-visible { color: var(--brass-300); padding-left: 6px; }

.colophon__contact { display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
.colophon__contact dt {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine-300);
  margin-bottom: 5px;
}
.colophon__contact dd {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--text-on-dark);
  line-height: 1.5;
}
.colophon__contact a {
  display: inline-block;
  border-bottom: 1px solid rgba(199, 154, 82, 0.34);
  padding-block: 5px 4px;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.colophon__contact a:hover { color: var(--brass-300); border-color: var(--brass-400); }

/* social row -------------------------------------------------------------- */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.social__item {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 154, 82, 0.3);
  border-radius: 50%;
  color: var(--pine-200);
  transition: color 0.26s var(--ease), border-color 0.26s var(--ease), background-color 0.26s var(--ease), transform 0.26s var(--ease);
  grid-template-columns: minmax(0, 1fr);
}
.social__item svg { width: 16px; height: 16px; }
a.social__item:hover,
a.social__item:focus-visible {
  color: var(--ink);
  background: var(--brass-400);
  border-color: var(--brass-400);
  transform: translateY(-2px);
}
span.social__item { opacity: 0.55; cursor: default; }
.social__note {
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--pine-300);
  margin-top: 14px;
  max-width: 34ch;
}

.colophon__bar {
  border-top: 1px solid rgba(199, 154, 82, 0.2);
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--pine-300);
}
.colophon__bar a { display: inline-block; padding-block: 6px; color: var(--pine-200); border-bottom: 1px solid transparent; transition: color 0.22s var(--ease), border-color 0.22s var(--ease); }
.colophon__bar a:hover { color: var(--brass-300); border-bottom-color: var(--brass-500); }
.colophon__credit strong { font-weight: 500; }
.colophon__exit {
  padding-block: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- 8. page opener */
.pagehead { position: relative; overflow: hidden; }
.pagehead__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.pagehead__crumb a { display: inline-block; padding-block: 6px; color: var(--text-mute); transition: color 0.2s var(--ease); }
.pagehead__crumb a:hover { color: var(--brass-700); }
.pagehead__crumb span[aria-current] { color: var(--brass-700); }
.on-dark .pagehead__crumb, .band--dark .pagehead__crumb { color: var(--pine-300); }
.on-dark .pagehead__crumb a, .band--dark .pagehead__crumb a { color: var(--pine-300); }
.on-dark .pagehead__crumb a:hover, .band--dark .pagehead__crumb a:hover { color: var(--brass-300); }
.on-dark .pagehead__crumb span[aria-current], .band--dark .pagehead__crumb span[aria-current] { color: var(--brass-300); }

/* ------------------------------------------------------- 9. reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- 10. lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(9, 18, 15, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  grid-template-columns: minmax(0, 1fr);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 40px);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-200);
}
.lightbox__stage {
  display: grid;
  place-items: center;
  padding: 0 clamp(12px, 4vw, 40px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}
.lightbox__img {
  max-width: min(100%, 760px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(199, 154, 82, 0.35);
  background: var(--pine-800);
}
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  text-align: center;
}
.lightbox__cap {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--pine-200);
  max-width: 60ch;
  line-height: 1.6;
}
.lb-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 154, 82, 0.32);
  border-radius: 50%;
  color: var(--pine-100);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), background-color 0.24s var(--ease);
  flex: none;
  grid-template-columns: minmax(0, 1fr);
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--ink); background: var(--brass-400); border-color: var(--brass-400); }
.lb-btn svg { width: 15px; height: 15px; }
.lightbox__nav { display: flex; gap: 12px; }

/* --------------------------------------------------------- 11. print */
@media print {
  .masthead, .mobile-nav, .lightbox, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 24px; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
