@charset "UTF-8";
/* ==========================================================================
   anilcurrimjee.com — Core design system
   Identity: Indian Ocean blue · mineral graphite · soft ivory · muted copper
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ocean / ink */
  --ink-950: #03121F;
  --ink-900: #05192A;
  --ink-800: #08243A;
  --ink-700: #0D3350;
  --ink-600: #14486B;
  --ink-500: #1D5C86;

  /* Mineral graphite */
  --graphite-800: #232E37;
  --graphite-700: #333F49;
  --slate-600: #3D4C57;
  --slate-500: #4A5A66;
  --slate-400: #6E7F8C;
  --mineral-300: #9EAEB8;
  --mineral-200: #C7D1D7;
  --mineral-100: #E1E7EA;

  /* Ivory */
  --ivory-50: #FAF7F1;
  --ivory-100: #F4EFE6;
  --ivory-200: #EAE3D6;
  --ivory-300: #DCD3C2;

  /* Copper */
  --copper-700: #6F4126;
  --copper-600: #9C5F3A;
  --copper-500: #B5734A;
  --copper-400: #C8895D;
  --copper-300: #DCA97F;
  --copper-100: #F0DEC9;

  /* Semantic */
  --bg: var(--ivory-50);
  --bg-alt: var(--ivory-100);
  --bg-deep: var(--ink-900);
  --text: var(--graphite-700);
  --text-strong: var(--ink-800);
  --text-muted: var(--slate-500);
  --text-on-dark: var(--ivory-100);
  --text-on-dark-muted: var(--mineral-200);
  --accent: var(--copper-600);
  --accent-on-dark: var(--copper-400);
  --rule: rgba(35, 46, 55, 0.14);
  --rule-strong: rgba(35, 46, 55, 0.26);
  --rule-dark: rgba(199, 209, 215, 0.18);
  --rule-dark-strong: rgba(199, 209, 215, 0.32);

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* Fluid scale (min 320px → max 1600px) */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.8rem, 0.769rem + 0.156vw, 0.875rem);
  --step-0:  clamp(0.975rem, 0.938rem + 0.188vw, 1.075rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.325vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.23rem + 0.6vw, 1.7rem);
  --step-3:  clamp(1.6rem, 1.38rem + 1.1vw, 2.25rem);
  --step-4:  clamp(1.95rem, 1.55rem + 2vw, 3rem);
  --step-5:  clamp(2.3rem, 1.68rem + 3.1vw, 4rem);
  --step-6:  clamp(2.7rem, 1.7rem + 5vw, 5.3rem);

  /* Space */
  --sp-3xs: clamp(0.25rem, 0.24rem + 0.05vw, 0.3rem);
  --sp-2xs: clamp(0.5rem, 0.48rem + 0.1vw, 0.6rem);
  --sp-xs:  clamp(0.75rem, 0.71rem + 0.2vw, 0.9rem);
  --sp-s:   clamp(1rem, 0.94rem + 0.3vw, 1.25rem);
  --sp-m:   clamp(1.5rem, 1.38rem + 0.6vw, 2rem);
  --sp-l:   clamp(2.25rem, 1.98rem + 1.35vw, 3.25rem);
  --sp-xl:  clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  --sp-2xl: clamp(4.5rem, 3.5rem + 5vw, 8rem);
  --sp-3xl: clamp(6rem, 4.4rem + 8vw, 11rem);

  /* Layout */
  --shell: 1400px;
  --measure: 68ch;
  --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 4.5rem);
  --radius-s: 2px;
  --radius-m: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  --header-h: 78px;
  color-scheme: light;
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Access gate: hide document until the guard confirms authorisation.
   The no-script notice stays visible so a JavaScript-disabled browser is told
   why the page is blank rather than being shown nothing at all. */
html.gate-pending body { visibility: hidden; }
html.gate-pending noscript,
html.gate-pending .noscript-warning { visibility: visible; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.5em; }
li::marker { color: var(--accent); }

strong, b { font-weight: 600; color: var(--text-strong); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-l) 0; }

::selection { background: var(--ink-700); color: var(--ivory-50); }

:focus-visible {
  outline: 2px solid var(--copper-600);
  outline-offset: 3px;
  border-radius: 1px;
}

.on-dark :focus-visible,
.sec--ink :focus-visible { outline-color: var(--copper-300); }

.skip-link {
  position: absolute;
  left: var(--sp-s);
  top: -100px;
  z-index: 999;
  background: var(--ink-900);
  color: var(--ivory-50);
  padding: 0.7rem 1.2rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--sp-s); }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 1020px; }
.shell--wide { max-width: 1680px; }

.sec { padding-block: var(--sp-2xl); position: relative; }
.sec--tight { padding-block: var(--sp-xl); }
.sec--tall { padding-block: var(--sp-3xl); }

.sec--ivory { background: var(--ivory-50); }
.sec--sand { background: var(--ivory-100); }
.sec--sand-deep { background: var(--ivory-200); }

.sec--ink {
  background: var(--ink-900);
  color: var(--text-on-dark);
}
.sec--ink h1, .sec--ink h2, .sec--ink h3, .sec--ink h4 { color: var(--ivory-50); }
.sec--ink p { color: var(--text-on-dark-muted); }
.sec--ink strong { color: var(--ivory-50); }

.sec--ink-deep { background: var(--ink-950); color: var(--text-on-dark); }
.sec--ink-deep h1, .sec--ink-deep h2, .sec--ink-deep h3, .sec--ink-deep h4 { color: var(--ivory-50); }
.sec--ink-deep p { color: var(--text-on-dark-muted); }

.measure { max-width: var(--measure); }
.measure-s { max-width: 54ch; }
.measure-l { max-width: 78ch; }

/* --------------------------------------------------------------------------
   4. TYPE COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin: 0 0 var(--sp-s);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: clamp(18px, 3vw, 34px);
  height: 1px;
  background: var(--copper-500);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.sec--ink .eyebrow,
.sec--ink-deep .eyebrow,
.on-dark .eyebrow { color: var(--copper-300); }
.sec--ink .eyebrow::before,
.sec--ink-deep .eyebrow::before,
.on-dark .eyebrow::before { background: var(--copper-400); }

.display {
  font-family: var(--font-serif);
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.024em;
  font-weight: 300;
}

.h-lead {
  font-size: var(--step-4);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 300;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--slate-500);
  font-weight: 400;
}
.sec--ink .lede, .sec--ink-deep .lede, .on-dark .lede { color: var(--mineral-200); }

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

.rich > p + h3,
.rich > p + h4 { margin-top: 1.9em; }
.rich h3 { font-size: var(--step-2); }
.rich h4 {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.rich p { max-width: var(--measure); }
.rich ul { max-width: var(--measure); }

.dropcap::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.07em 0.12em 0 0;
  color: var(--ink-700);
  font-weight: 400;
}

.pull {
  margin: var(--sp-l) 0;
  padding: var(--sp-m) 0 var(--sp-m) var(--sp-m);
  border-left: 2px solid var(--copper-500);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.42;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-800);
  max-width: 60ch;
}
.pull cite {
  display: block;
  margin-top: var(--sp-s);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
}
.sec--ink .pull, .sec--ink-deep .pull, .on-dark .pull { color: var(--ivory-50); border-left-color: var(--copper-400); }
.sec--ink .pull cite, .sec--ink-deep .pull cite, .on-dark .pull cite { color: var(--mineral-300); }

.note {
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--slate-500);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-s);
  max-width: 70ch;
}
.sec--ink .note, .sec--ink-deep .note, .on-dark .note {
  color: var(--mineral-300);
  border-top-color: var(--rule-dark);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-800);
  --btn-fg: var(--ivory-50);
  --btn-bd: var(--ink-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.85rem 1.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.25s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.btn:hover { --btn-bg: var(--copper-600); --btn-bd: var(--copper-600); transform: translateY(-2px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-800); --btn-bd: var(--rule-strong); }
.btn--ghost:hover { --btn-bg: var(--ink-800); --btn-fg: var(--ivory-50); --btn-bd: var(--ink-800); }

.btn--light { --btn-bg: var(--ivory-50); --btn-fg: var(--ink-900); --btn-bd: var(--ivory-50); }
.btn--light:hover { --btn-bg: var(--copper-400); --btn-fg: var(--ink-950); --btn-bd: var(--copper-400); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--ivory-50); --btn-bd: rgba(244,239,230,0.4); }
.btn--outline-light:hover { --btn-bg: var(--ivory-50); --btn-fg: var(--ink-900); --btn-bd: var(--ivory-50); }

.btn .btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper-700);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(156, 95, 58, 0.35);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.txt-link:hover { color: var(--ink-800); border-bottom-color: var(--ink-800); gap: 0.85rem; }
.sec--ink .txt-link, .sec--ink-deep .txt-link, .on-dark .txt-link {
  color: var(--copper-300);
  border-bottom-color: rgba(220, 169, 127, 0.4);
}
.sec--ink .txt-link:hover, .sec--ink-deep .txt-link:hover, .on-dark .txt-link:hover {
  color: var(--ivory-50);
  border-bottom-color: var(--ivory-50);
}

.inline-link {
  color: var(--copper-700);
  border-bottom: 1px solid rgba(156, 95, 58, 0.3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.inline-link:hover { color: var(--ink-800); border-bottom-color: var(--ink-800); }
.sec--ink .inline-link, .on-dark .inline-link { color: var(--copper-300); border-bottom-color: rgba(220,169,127,0.4); }
.sec--ink .inline-link:hover, .on-dark .inline-link:hover { color: var(--ivory-50); border-bottom-color: var(--ivory-50); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  align-items: center;
  margin-top: var(--sp-m);
}

/* --------------------------------------------------------------------------
   6. IMAGE FRAMES — face-safe (never crop the subject)
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  overflow: hidden;
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.frame--light { background: linear-gradient(158deg, var(--ivory-200) 0%, var(--ivory-100) 100%); }
.frame--mineral { background: linear-gradient(158deg, #16344B 0%, #0A2237 100%); }
.frame--sand { background: linear-gradient(160deg, var(--ivory-100), var(--ivory-300)); }

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  border-radius: inherit;
}
.frame--light::after, .frame--sand::after { box-shadow: inset 0 0 0 1px rgba(35, 46, 55, 0.09); }

.frame-cap {
  margin-top: var(--sp-xs);
  font-size: var(--step--2);
  letter-spacing: 0.05em;
  color: var(--slate-500);
  line-height: 1.55;
  max-width: 46ch;
}
.sec--ink .frame-cap, .sec--ink-deep .frame-cap, .on-dark .frame-cap { color: var(--mineral-300); }

/* --------------------------------------------------------------------------
   7. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 241, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease), height 0.35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 18, 31, 0.62), rgba(3, 18, 31, 0));
  opacity: 1;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.site-header.is-solid {
  background: rgba(250, 247, 241, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}
.site-header.is-solid::before { opacity: 0; }

/* Pages that begin on an ivory background need the solid treatment immediately */
.site-header.is-light-start {
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}
.site-header.is-light-start::before { opacity: 0; }

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 2rem);
  position: relative;
  z-index: 2;
  min-width: 0;
}
.brand { min-width: 0; }
.brand__text { min-width: 0; }
.nav-desktop { min-width: 0; }

.brand { display: flex; align-items: center; gap: 0.8rem; flex: 0 1 auto; }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__name {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.22rem);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.28rem;
  white-space: nowrap;
  font-weight: 500;
}

/* Header colour states */
.site-header { color: var(--ivory-50); }
.site-header.is-solid,
.site-header.is-light-start { color: var(--ink-800); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.9vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-link {
  position: relative;
  display: block;
  padding: 0.55rem 0.15rem;
  font-size: clamp(0.72rem, 0.62rem + 0.2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--copper-400); height: 2px; }
.site-header.is-solid .nav-link[aria-current="page"]::after,
.site-header.is-light-start .nav-link[aria-current="page"]::after { background: var(--copper-600); }

.nav-cta { margin-left: clamp(0.4rem, 1vw, 1rem); }
.nav-cta .btn {
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
}
.site-header .nav-cta .btn { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; opacity: 0.85; }
.site-header .nav-cta .btn:hover { opacity: 1; --btn-bg: var(--copper-600); --btn-fg: var(--ivory-50); --btn-bd: var(--copper-600); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.7rem 0.25rem;
  min-height: 46px;
}
.nav-toggle__bars { display: block; width: 26px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: var(--ink-950);
  color: var(--ivory-50);
  padding: calc(var(--header-h) + var(--sp-m)) var(--gutter) var(--sp-l);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}
.nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-panel__list { list-style: none; margin: 0; padding: 0; }
.nav-panel__list li { margin: 0; border-bottom: 1px solid var(--rule-dark); }
.nav-panel__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: clamp(0.7rem, 1.9vw, 1rem) 0;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 1.05rem + 1.5vw, 1.9rem);
  font-weight: 300;
  color: var(--ivory-50);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.nav-panel__link:hover, .nav-panel__link:focus-visible { color: var(--copper-300); padding-left: 0.5rem; }
.nav-panel__link[aria-current="page"] { color: var(--copper-300); }
.nav-panel__num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--mineral-300);
  flex: none;
  min-width: 2.1em;
}
.nav-panel__foot {
  margin-top: auto;
  padding-top: var(--sp-l);
  display: grid;
  gap: var(--sp-xs);
  font-size: var(--step--1);
  color: var(--mineral-300);
}
.nav-panel__foot a { color: var(--ivory-100); border-bottom: 1px solid var(--rule-dark-strong); padding-bottom: 2px; }
.nav-panel__foot a:hover { color: var(--copper-300); border-bottom-color: var(--copper-300); }

body.nav-open { overflow: hidden; }

/* Below 1400px the nine-item nav cannot fit alongside the brand, so the
   full-screen drawer takes over. Between 1400 and 1699 the nav shows in a
   compact form: no CTA button, no brand sub-line, tighter tracking. */
/* The header CTA is dropped at every size: nine nav items plus the brand fill
   the 1400px shell, and Contact is already the ninth nav item. */
.nav-cta { display: none; }

@media (max-width: 1399px) {
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 1400px) {
  .nav-panel { display: none !important; }
  .nav-list { gap: clamp(0.5rem, 0.75vw, 0.95rem); }
  .nav-link { font-size: 0.735rem; letter-spacing: 0.055em; }
}

/* Phones: the letterspaced brand sub-line is wider than the viewport allows */
@media (max-width: 559px) {
  .brand__sub { display: none; }
  .brand { gap: 0.6rem; }
  .brand__mark { width: 34px; height: 34px; font-size: 0.9rem; }
}
@media (max-width: 359px) {
  .brand__name { font-size: 0.95rem; }
  .nav-toggle__label { display: none; }
}

/* --------------------------------------------------------------------------
   8. PAGE MASTHEAD (interior pages)
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  background: var(--ink-950);
  color: var(--ivory-50);
  padding-block: calc(var(--header-h) + var(--sp-xl)) var(--sp-xl);
  overflow: hidden;
  isolation: isolate;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(105% 78% at 82% 6%, rgba(29, 92, 134, 0.42) 0%, rgba(5, 25, 42, 0) 62%),
    radial-gradient(70% 60% at 4% 100%, rgba(156, 95, 58, 0.24) 0%, rgba(5, 25, 42, 0) 68%);
  z-index: -1;
}
.masthead__grid {
  display: grid;
  gap: var(--sp-l);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 900px) {
  .masthead__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-xl); }
}
.masthead h1 { color: var(--ivory-50); margin-bottom: var(--sp-s); }
.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-m);
  margin-top: var(--sp-m);
  padding-top: var(--sp-m);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mineral-300);
  font-weight: 500;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--sp-m);
  padding: 0;
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mineral-300);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--mineral-300); }
.crumbs a { color: var(--mineral-200); transition: color 0.25s var(--ease); }
.crumbs a:hover { color: var(--copper-300); }
.crumbs [aria-current] { color: var(--copper-300); }

/* --------------------------------------------------------------------------
   9. SHARED COMPONENTS
   -------------------------------------------------------------------------- */
/* Section head with rule */
.sec-head {
  display: grid;
  gap: var(--sp-m);
  margin-bottom: var(--sp-xl);
}
@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--sp-xl);
    align-items: end;
  }
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.sec--ink .stat-strip, .sec--ink-deep .stat-strip, .on-dark .stat-strip {
  background: var(--rule-dark);
  border-color: var(--rule-dark);
}
.stat {
  background: var(--bg);
  padding: var(--sp-m) var(--sp-s);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sec--sand .stat { background: var(--ivory-100); }
.sec--sand-deep .stat { background: var(--ivory-200); }
.sec--ink .stat { background: var(--ink-900); }
.sec--ink-deep .stat { background: var(--ink-950); }
.stat__num {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--ink-700);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.sec--ink .stat__num, .sec--ink-deep .stat__num, .on-dark .stat__num { color: var(--copper-300); }
.stat__label {
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  line-height: 1.5;
}
.sec--ink .stat__label, .sec--ink-deep .stat__label, .on-dark .stat__label { color: var(--mineral-300); }
.stat__note { font-size: var(--step--2); color: var(--slate-500); line-height: 1.5; }
.sec--ink .stat__note, .sec--ink-deep .stat__note, .on-dark .stat__note { color: var(--mineral-300); }

/* Fact / definition rows */
.fact-rows { border-top: 1px solid var(--rule); }
.fact-row {
  display: grid;
  gap: 0.35rem var(--sp-m);
  padding: var(--sp-s) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .fact-row { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); align-items: baseline; }
}
.fact-row dt {
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  line-height: 1.6;
}
.fact-row dd { margin: 0; color: var(--text); }
.sec--ink .fact-rows, .on-dark .fact-rows { border-top-color: var(--rule-dark); }
.sec--ink .fact-row, .on-dark .fact-row { border-bottom-color: var(--rule-dark); }
.sec--ink .fact-row dt, .on-dark .fact-row dt { color: var(--mineral-300); }
.sec--ink .fact-row dd, .on-dark .fact-row dd { color: var(--ivory-100); }

/* Numbered thesis blocks */
.thesis-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.thesis {
  display: grid;
  gap: var(--sp-xs) var(--sp-l);
  padding-block: var(--sp-l);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .thesis { grid-template-columns: auto minmax(0, 0.85fr) minmax(0, 1.35fr); align-items: start; }
}
.thesis__num {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--copper-600);
  line-height: 1;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.thesis__title { margin: 0; font-size: var(--step-2); line-height: 1.18; }
.thesis__body { color: var(--text); }
.thesis__body p { max-width: 62ch; }

/* Callout panel */
.callout {
  background: var(--ivory-100);
  border-left: 3px solid var(--copper-500);
  padding: var(--sp-m) var(--sp-m);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.callout h4,
.callout .callout__h {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin-bottom: 0.7em;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.5;
  margin-top: 0;
}
.callout p { font-size: var(--step--1); line-height: 1.7; color: var(--slate-500); }
.sec--ink .callout, .sec--ink-deep .callout, .on-dark .callout {
  background: rgba(199, 209, 215, 0.06);
  border-left-color: var(--copper-400);
}
.sec--ink .callout h4, .sec--ink .callout .callout__h,
.on-dark .callout h4, .on-dark .callout .callout__h { color: var(--copper-300); }
.sec--ink .callout p, .on-dark .callout p { color: var(--mineral-200); }

/* Source line */
.sources {
  font-size: var(--step--2);
  color: var(--slate-500);
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-top: var(--sp-s);
}
.sources a { border-bottom: 1px solid currentColor; }
.sec--ink .sources, .on-dark .sources { color: var(--mineral-300); }

/* --------------------------------------------------------------------------
   10. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink-800);
  color: var(--ivory-50);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 92% 12%, rgba(184, 115, 74, 0.3) 0%, rgba(8, 36, 58, 0) 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(29, 92, 134, 0.45) 0%, rgba(8, 36, 58, 0) 70%);
  z-index: -1;
}
.cta-band__inner {
  display: grid;
  gap: var(--sp-m);
  align-items: center;
}
@media (min-width: 880px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1.35fr) auto; gap: var(--sp-xl); }
}
.cta-band h2 { color: var(--ivory-50); font-size: var(--step-4); margin-bottom: var(--sp-s); }
.cta-band p { color: var(--mineral-200); max-width: 56ch; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: var(--mineral-200);
  padding-block: var(--sp-2xl) var(--sp-m);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  gap: var(--sp-l);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--sp-l);
  border-bottom: 1px solid var(--rule-dark);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-l) var(--sp-m); }
}
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-xl); }
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--ivory-50);
  line-height: 1.15;
  margin-bottom: var(--sp-2xs);
  font-weight: 300;
}
.footer-brand__role {
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin-bottom: var(--sp-s);
  font-weight: 600;
  line-height: 1.6;
}
.footer-brand p { color: var(--mineral-300); max-width: 42ch; font-size: var(--step--1); line-height: 1.7; }

.footer-title {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-50);
  margin-bottom: var(--sp-s);
  font-weight: 600;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.footer-list li { margin: 0; }
.footer-list a {
  color: var(--mineral-300);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
  line-height: 1.5;
}
.footer-list a:hover, .footer-list a:focus-visible { color: var(--copper-300); padding-left: 0.28rem; }

.footer-contact { display: grid; gap: var(--sp-s); }
.footer-contact__item { display: grid; gap: 0.2rem; }
.footer-contact__k {
  font-size: 0.705rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mineral-300);
  font-weight: 600;
}
.footer-contact__v { color: var(--ivory-100); word-break: break-word; }
a.footer-contact__v { border-bottom: 1px solid var(--rule-dark-strong); padding-bottom: 2px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
a.footer-contact__v:hover { color: var(--copper-300); border-bottom-color: var(--copper-300); }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: var(--sp-s) 0 0;
  padding: 0;
}
.social li { margin: 0; }
.social__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-dark-strong);
  border-radius: 50%;
  color: var(--mineral-200);
  background: transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.social__btn svg { width: 17px; height: 17px; fill: currentColor; display: block; }
a.social__btn:hover, a.social__btn:focus-visible {
  color: var(--ink-950);
  background: var(--copper-300);
  border-color: var(--copper-300);
  transform: translateY(-2px);
}
.social__btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.social-note {
  font-size: 0.73rem;
  color: var(--mineral-300);
  line-height: 1.6;
  margin-top: var(--sp-xs);
  max-width: 34ch;
}

.footer-base {
  display: grid;
  gap: var(--sp-s);
  padding-top: var(--sp-m);
  font-size: var(--step--2);
  color: var(--mineral-300);
  letter-spacing: 0.02em;
}
@media (min-width: 880px) {
  .footer-base { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-m); }
  .footer-base__right { text-align: right; }
}
.footer-base a { color: var(--mineral-300); border-bottom: 1px solid rgba(158, 174, 184, 0.32); padding-bottom: 1px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.footer-base a:hover { color: var(--copper-300); border-bottom-color: var(--copper-300); }
.footer-disclaimer {
  margin-top: var(--sp-m);
  padding-top: var(--sp-s);
  border-top: 1px solid var(--rule-dark);
  font-size: 0.73rem;
  line-height: 1.7;
  color: var(--mineral-300);
  max-width: 96ch;
}

/* --------------------------------------------------------------------------
   12. SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease-out), transform 1.05s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.5s; }

.js-off [data-reveal] { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   13. UTILITIES
   -------------------------------------------------------------------------- */
.vh {
  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;
}
.nowrap { white-space: nowrap; }
.mt-s { margin-top: var(--sp-s); }
.mt-m { margin-top: var(--sp-m); }
.mt-l { margin-top: var(--sp-l); }
.mt-xl { margin-top: var(--sp-xl); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.noscript-warning {
  background: var(--ink-950);
  color: var(--ivory-50);
  padding: var(--sp-m) var(--gutter);
  text-align: center;
  font-size: var(--step--1);
  position: relative;
  z-index: 200;
}
.noscript-warning a { color: var(--copper-300); border-bottom: 1px solid currentColor; }

/* --------------------------------------------------------------------------
   DARK SURFACES THAT ARE NOT .sec--ink
   .hero, .masthead, .article-hero, .cta-band and .split-panel__body all paint
   an ink background, so shared components inside them must use the on-dark
   palette or they fall back to light-background colours and lose contrast.
   -------------------------------------------------------------------------- */
.hero .eyebrow,
.masthead .eyebrow,
.article-hero .eyebrow,
.cta-band .eyebrow,
.split-panel__body .eyebrow { color: var(--copper-300); }

.hero .eyebrow::before,
.masthead .eyebrow::before,
.article-hero .eyebrow::before,
.cta-band .eyebrow::before,
.split-panel__body .eyebrow::before { background: var(--copper-400); }

.hero .lede,
.masthead .lede,
.article-hero .lede,
.cta-band .lede,
.split-panel__body .lede { color: var(--mineral-200); }

.masthead .frame-cap,
.article-hero .frame-cap,
.split-panel__body .frame-cap { color: var(--mineral-300); }

.masthead .note,
.article-hero .note,
.split-panel__body .note {
  color: var(--mineral-300);
  border-top-color: var(--rule-dark);
}

.split-panel__body .txt-link {
  color: var(--copper-300);
  border-bottom-color: rgba(220, 169, 127, 0.4);
}
.split-panel__body .txt-link:hover { color: var(--ivory-50); border-bottom-color: var(--ivory-50); }

.split-panel__body .inline-link { color: var(--copper-300); border-bottom-color: rgba(220,169,127,0.4); }
.split-panel__body .inline-link:hover { color: var(--ivory-50); border-bottom-color: var(--ivory-50); }

.hero :focus-visible,
.masthead :focus-visible,
.article-hero :focus-visible,
.cta-band :focus-visible,
.split-panel__body :focus-visible { outline-color: var(--copper-300); }


/* .rich h4 sets an ink colour; restore legibility on dark surfaces */
.on-dark .rich h4,
.sec--ink .rich h4,
.sec--ink-deep .rich h4 { color: var(--ivory-50); }

/* .sec--ink-deep parity for callout and inline-link */
.sec--ink-deep .callout h4,
.sec--ink-deep .callout .callout__h { color: var(--copper-300); }
.sec--ink-deep .callout p { color: var(--mineral-200); }
.sec--ink-deep .inline-link { color: var(--copper-300); border-bottom-color: rgba(220,169,127,0.4); }
.sec--ink-deep .inline-link:hover { color: var(--ivory-50); border-bottom-color: var(--ivory-50); }
.sec--ink-deep .txt-link { color: var(--copper-300); border-bottom-color: rgba(220,169,127,0.4); }
.sec--ink-deep .txt-link:hover { color: var(--ivory-50); border-bottom-color: var(--ivory-50); }
.sec--ink-deep :focus-visible { outline-color: var(--copper-300); }
