/* ==========================================================================
   Soundarya Rajinikanth — Official Website
   base.css — design tokens, reset, typography, layout, shared components
   Design system: "Ink, Bone & Vermilion"
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Ink family — warm blue-black, used for cinematic full-bleed bands */
  --ink:        #14141a;
  --ink-2:      #1c1c24;
  --ink-3:      #262630;
  --ink-4:      #34343f;

  /* Paper family — warm bone, the primary editorial canvas */
  --paper:      #f5f1e9;
  --paper-2:    #efe9dd;
  --paper-3:    #e5dcca;
  --paper-4:    #d8cdb7;

  /* Vermilion — the single loud accent (title-ink red) */
  --vermilion:    #dc3b1e;
  --vermilion-d:  #b32f17;   /* AA on paper for small text */
  --vermilion-l:  #f2724f;   /* AA on ink for small text */

  /* Jade — the quiet counterpoint */
  --jade:       #17544b;
  --jade-l:     #5fb3a3;

  /* Brass — restrained metallic for numerals */
  --brass:      #7d5e28;   /* AA on paper */
  --brass-l:    #c9a15c;

  /* Neutrals */
  --stone:      #5f5b54;   /* AA on paper */
  --stone-2:    #837d73;
  --stone-ink:  #a5a096;   /* AA on ink */

  /* Semantics */
  --bg:            var(--paper);
  --fg:            var(--ink);
  --fg-soft:       var(--stone);
  --line:          rgba(20, 20, 26, .14);
  --line-strong:   rgba(20, 20, 26, .28);
  --line-ink:      rgba(245, 241, 233, .16);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-hero:    clamp(2.9rem, 10.2vw, 8.6rem);
  --fs-d1:      clamp(2.35rem, 6.4vw, 5.1rem);
  --fs-d2:      clamp(1.85rem, 4.1vw, 3.15rem);
  --fs-d3:      clamp(1.35rem, 2.3vw, 1.95rem);
  --fs-lead:    clamp(1.08rem, 1.55vw, 1.42rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.6875rem;

  /* Space */
  --gutter:   clamp(20px, 5vw, 72px);
  --sp-sec:   clamp(72px, 9.5vw, 152px);
  --sp-sec-s: clamp(48px, 6vw, 96px);
  --gap:      clamp(18px, 2.3vw, 34px);

  --maxw:     1440px;
  --maxw-txt: 68ch;

  --r-sm: 2px;
  --r-md: 3px;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .5s;

  --head-h: 74px;
}

@media (min-width: 1140px) { :root { --head-h: 86px; } }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--vermilion); color: var(--paper); }

/* ---------- 3. Accessibility --------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: var(--fs-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--vermilion-d);
  outline-offset: 3px;
}
.on-ink :focus-visible, .site-foot :focus-visible, .nav-overlay :focus-visible {
  outline-color: var(--vermilion-l);
}

.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;
}

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1720px; }
.wrap-mid  { max-width: 1080px; }
.wrap-txt  { max-width: 820px; }

.section { padding-block: var(--sp-sec); position: relative; }
.section-s { padding-block: var(--sp-sec-s); }

.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}
.band-ink a { color: var(--paper); }
.band-paper-2 { background: var(--paper-2); }
.band-jade { background: var(--jade); color: var(--paper); }

/* ---------- 5. Type primitives ------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.display-lite { font-weight: 300; }

.h-hero { font-size: var(--fs-hero); line-height: .94; letter-spacing: -0.035em; }
.h1     { font-size: var(--fs-d1);  line-height: 1.02; letter-spacing: -0.028em; }
.h2     { font-size: var(--fs-d2);  line-height: 1.08; letter-spacing: -0.022em; }
.h3     { font-size: var(--fs-d3);  line-height: 1.22; letter-spacing: -0.012em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.56;
  color: var(--fg);
  font-weight: 400;
}
.band-ink .lead { color: #ded8cc; }

.prose { max-width: var(--maxw-txt); }
.prose p { color: var(--stone); }
.prose p strong { color: var(--ink); font-weight: 600; }
.band-ink .prose p { color: #cdc7bb; }
.band-ink .prose p strong { color: var(--paper); }

.muted { color: var(--stone); }
.band-ink .muted { color: var(--stone-ink); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  line-height: 1.4;
}
.band-ink .label { color: var(--stone-ink); }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 38px);
}
.eyebrow::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .12em;
  color: var(--vermilion-d);
  font-weight: 500;
}
.band-ink .eyebrow::before { color: var(--vermilion-l); }
.eyebrow > span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}
.band-ink .eyebrow > span { color: var(--stone-ink); }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}
.band-ink .eyebrow::after { background: var(--line-ink); }

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: .82;
  float: left;
  padding: .06em .12em 0 0;
  color: var(--vermilion-d);
  font-weight: 400;
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.018em;
  font-weight: 300;
}

.accent { color: var(--vermilion-d); }
.band-ink .accent { color: var(--vermilion-l); }
.ital { font-style: italic; }

/* ---------- 6. Buttons & links ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arw { transition: transform .35s var(--ease-out); }
.btn:hover, .btn:focus-visible { background: var(--vermilion-d); border-color: var(--vermilion-d); color: #fff; }
.btn:hover .arw { transform: translateX(5px); }

/* Solid buttons invert on any ink band so they never sit ink-on-ink. */
.band-ink .btn:not(.btn-ghost) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.band-ink .btn:not(.btn-ghost):hover,
.band-ink .btn:not(.btn-ghost):focus-visible {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #fff;
}

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

.link-u {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vermilion-d);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease-out), color .3s var(--ease);
}
.link-u:hover, .link-u:focus-visible { gap: 16px; color: var(--ink); }
.band-ink .link-u { color: var(--vermilion-l); }
.band-ink .link-u:hover, .band-ink .link-u:focus-visible { color: var(--paper); }

.link-inline {
  color: var(--vermilion-d);
  border-bottom: 1px solid rgba(179, 47, 23, .38);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-inline:hover, .link-inline:focus-visible { border-color: var(--vermilion-d); color: var(--ink); }
.band-ink .link-inline { color: var(--vermilion-l); border-bottom-color: rgba(242, 114, 79, .4); }
.band-ink .link-inline:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ---------- 7. Media / figures -------------------------------------------
   Image policy: photographs are shown at their natural aspect ratio
   (width:100%; height:auto) so nothing is ever cropped. Where a grid needs
   uniform cells, a "mat" is used: a fixed-ratio frame with object-fit:contain
   over a tinted ground, so the whole frame — and the whole face — stays visible.
   -------------------------------------------------------------------------- */
.fig { position: relative; }
.fig img { width: 100%; height: auto; }
.fig figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--stone);
  letter-spacing: .01em;
  max-width: 46ch;
}
.band-ink .fig figcaption { color: var(--stone-ink); }

.mat {
  position: relative;
  display: block;
  width: 100%;
  background: var(--paper-3);
  overflow: hidden;
}
.band-ink .mat { background: var(--ink-3); }
.mat::before { content: ""; display: block; padding-top: var(--ratio, 125%); }
.mat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.mat-cover img { object-fit: cover; }

.tint { position: relative; overflow: hidden; }
.tint::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,26,0) 40%, rgba(20,20,26,.78) 100%);
  pointer-events: none;
}

/* ---------- 8. Header ---------------------------------------------------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Safety scrim: keeps the light header text legible over any background even
   if the solid state has not engaged yet. Invisible against the ink heroes. */
.site-head.on-dark:not(.is-solid)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Opaque enough through the whole text band to hold AA contrast on its own,
     then faded out at the very bottom so there is no hard edge over the hero. */
  background: linear-gradient(180deg,
    rgba(20, 20, 26, .90) 0%,
    rgba(20, 20, 26, .88) 66%,
    rgba(20, 20, 26, .40) 88%,
    rgba(20, 20, 26, 0) 100%);
  pointer-events: none;
}

.site-head.is-solid {
  background: rgba(245, 241, 233, .9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.site-head.on-dark:not(.is-solid) { color: var(--paper); }
.site-head.on-dark:not(.is-solid) .mark-glyph { background: var(--vermilion); color: #fff; }
.site-head.on-dark:not(.is-solid) .nav-desk a { color: rgba(245,241,233,.82); }
.site-head.on-dark:not(.is-solid) .nav-desk a:hover { color: #fff; }
.site-head.on-dark:not(.is-solid) .nav-toggle { color: var(--paper); border-color: rgba(245,241,233,.34); }
.site-head.on-dark:not(.is-solid) .mark-word { color: var(--paper); }

.head-inner {
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark { display: inline-flex; align-items: center; gap: 13px; }
.mark-glyph {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--vermilion-d);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s var(--ease);
}
.mark:hover .mark-glyph { transform: rotate(-6deg); }
.mark-word {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.14rem);
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.nav-desk { display: none; }
.nav-desk ul { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 26px); }
.nav-desk a {
  position: relative;
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-desk a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--vermilion-d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-desk a:hover { color: var(--ink); }
.nav-desk a:hover::after,
.nav-desk a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desk a[aria-current="page"] { color: var(--vermilion-d); }
.site-head.on-dark:not(.is-solid) .nav-desk a[aria-current="page"] { color: var(--vermilion-l); }
.site-head.on-dark:not(.is-solid) .nav-desk a::after { background: var(--vermilion-l); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle .bars { display: grid; gap: 4px; width: 15px; }
.nav-toggle .bars i { display: block; height: 1px; background: currentColor; }
.nav-toggle .bars i:last-child { width: 9px; margin-left: auto; }

@media (min-width: 1140px) {
  .nav-desk { display: block; }
  .nav-toggle { display: none; }
}

/* Very small phones: drop back to the monogram so the header never overflows. */
@media (max-width: 359px) {
  .head-inner { gap: 14px; }
  .mark-word { display: none; }
  .nav-toggle { padding: 10px 13px; letter-spacing: .12em; }
}

/* ---------- 9. Index overlay (mobile / tablet nav) ----------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s var(--ease), visibility .42s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-ov-head {
  height: var(--head-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-ink);
}
.nav-close {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 15px;
  border: 1px solid var(--line-ink);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-close:hover { background: var(--paper); color: var(--ink); }

.nav-ov-body {
  flex: 1 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-content: start;
}
@media (min-width: 900px) {
  .nav-ov-body { grid-template-columns: 1.35fr .65fr; align-items: start; }
}

.nav-list li { border-bottom: 1px solid var(--line-ink); }
.nav-list li:first-child { border-top: 1px solid var(--line-ink); }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(12px, 1.6vw, 19px) 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: rgba(245,241,233,.9);
  transition: color .3s var(--ease), padding-left .45s var(--ease-out);
}
.nav-list a .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--stone-ink);
  transition: color .3s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--vermilion-l); padding-left: 14px; }
.nav-list a:hover .n { color: var(--vermilion-l); }
.nav-list a[aria-current="page"] { color: var(--vermilion-l); }

.nav-ov-aside { display: grid; gap: 26px; align-content: start; }
.nav-ov-aside .label { color: var(--stone-ink); margin-bottom: 9px; }
.nav-ov-aside a.big {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  letter-spacing: -0.01em;
  color: var(--paper);
  border-bottom: 1px solid var(--line-ink);
  padding-bottom: 4px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.nav-ov-aside a.big:hover { color: var(--vermilion-l); border-color: var(--vermilion-l); }

body.nav-open { overflow: hidden; }

/* ---------- 10. Socials -------------------------------------------------- */
.socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--stone);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out);
}
.socials a svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover, .socials a:focus-visible {
  background: var(--vermilion-d); color: #fff; border-color: var(--vermilion-d);
  transform: translateY(-3px);
}
.band-ink .socials a, .site-foot .socials a, .nav-overlay .socials a {
  border-color: var(--line-ink); color: var(--stone-ink);
}
.band-ink .socials a:hover, .site-foot .socials a:hover, .nav-overlay .socials a:hover {
  background: var(--vermilion); color: #fff; border-color: var(--vermilion);
}

/* ---------- 11. Footer --------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 118px);
}
.foot-lead {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  padding-bottom: clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--line-ink);
}
@media (min-width: 900px) {
  .foot-lead { grid-template-columns: 1.4fr auto; align-items: end; }
}
.foot-lead h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.foot-grid {
  display: grid;
  gap: clamp(30px, 3.4vw, 48px);
  padding-block: clamp(44px, 5.4vw, 76px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px)  { .foot-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1060px) { .foot-grid { grid-template-columns: 1.25fr 1fr 1fr 1.15fr; } }

.foot-col .label { color: var(--stone-ink); margin-bottom: 18px; }
.foot-col ul { display: grid; gap: 11px; }
.foot-col ul a, .foot-col .fcontact a {
  font-size: var(--fs-sm);
  color: rgba(245, 241, 233, .74);
  transition: color .28s var(--ease);
}
.foot-col ul a:hover, .foot-col ul a:focus-visible { color: var(--vermilion-l); }
.foot-col .fcontact { display: grid; gap: 14px; }
.foot-col .fcontact a {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  letter-spacing: -0.01em;
  color: var(--paper);
  border-bottom: 1px solid var(--line-ink);
  padding-bottom: 5px;
  display: inline-block;
  word-break: break-word;
}
.foot-col .fcontact a:hover { color: var(--vermilion-l); border-color: var(--vermilion-l); }
.foot-col .fname {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 4px;
}

.foot-base {
  border-top: 1px solid var(--line-ink);
  padding-block: 26px 30px;
  display: grid;
  gap: 14px;
  align-items: center;
}
@media (min-width: 860px) {
  .foot-base { grid-template-columns: 1fr auto auto; gap: 30px; }
}
.foot-base p, .foot-base a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--stone-ink);
  margin: 0;
}
.foot-base .credit a { color: rgba(245,241,233,.82); border-bottom: 1px solid var(--line-ink); padding-bottom: 2px; }
.foot-base .credit a:hover { color: var(--vermilion-l); border-color: var(--vermilion-l); }
.lock-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone-ink);
  border: 1px solid var(--line-ink);
  padding: 8px 14px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  justify-self: start;
}
.lock-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- 12. Page masthead (interior pages) --------------------------- */
.masthead {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-top: calc(var(--head-h) + clamp(52px, 7vw, 108px));
  padding-bottom: clamp(52px, 7vw, 104px);
  overflow: hidden;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -14%;
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(220,59,30,.20), rgba(220,59,30,0) 68%);
  pointer-events: none;
}
.masthead-inner { position: relative; display: grid; gap: clamp(26px, 3.4vw, 46px); }
@media (min-width: 1000px) {
  .masthead-inner { grid-template-columns: 1.55fr 1fr; align-items: end; }
}
.masthead h1 { font-family: var(--font-display); font-weight: 300; }
.masthead .crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone-ink); margin-bottom: clamp(20px, 2.6vw, 32px);
}
.masthead .crumbs a:hover { color: var(--vermilion-l); }
.masthead .crumbs span[aria-hidden] { color: var(--vermilion-l); }
.masthead .mh-note { color: #cdc7bb; font-size: var(--fs-sm); line-height: 1.7; }
.masthead .mh-note p { color: inherit; }

/* ---------- 13. Reveal animations ---------------------------------------- */
/* Content is visible by default. The hidden starting state is only applied
   when scripting is available (the <html> element is given a "js" class in
   the head), so nothing can be left invisible if JS never runs. */
.rv { transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.js .rv {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
.js .rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; }
.rv-d2 { transition-delay: .18s; }
.rv-d3 { transition-delay: .27s; }
.rv-d4 { transition-delay: .36s; }
.rv-d5 { transition-delay: .45s; }

.rv-mask { overflow: hidden; display: block; }
.rv-mask > * { display: block; transition: transform 1s var(--ease-out); }
.js .rv-mask > * { transform: translateY(102%); }
.js .rv-mask.in > * { transform: none; }

.rv-img { overflow: hidden; }
.rv-img img, .rv-img .mat { transition: transform 1.5s var(--ease-out); }
.js .rv-img img, .js .rv-img .mat { transform: scale(1.09); }
.js .rv-img.in img, .js .rv-img.in .mat { transform: none; }

.rv-line { transform-origin: left; transition: transform 1s var(--ease-out); }
.js .rv-line { transform: scaleX(0); }
.js .rv-line.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv, .js .rv, .rv-mask > *, .js .rv-mask > *, .rv-img img, .js .rv-img img,
  .rv-img .mat, .js .rv-img .mat, .rv-line, .js .rv-line {
    opacity: 1 !important; transform: none !important;
  }
  .marquee-track { animation: none !important; }
}

/* ---------- 14. Small shared blocks -------------------------------------- */
.rule-v { width: 1px; background: var(--line); }
.hair { height: 1px; background: var(--line); }
.band-ink .hair { background: var(--line-ink); }

.stat-row {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 820px) { .stat-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.band-ink .stat { border-top-color: var(--line-ink); }
.stat .n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 10px;
}
.stat .t { font-size: var(--fs-sm); color: var(--stone); line-height: 1.5; }
.band-ink .stat .t { color: var(--stone-ink); }

.marquee {
  overflow: hidden;
  position: relative;
  padding-block: clamp(18px, 2.4vw, 30px);
  border-block: 1px solid var(--line-ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: mq 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  letter-spacing: -0.02em;
  padding-inline: clamp(18px, 2.4vw, 34px);
  color: rgba(245,241,233,.5);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
}
.marquee-track span::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--vermilion);
  border-radius: 50%;
  display: inline-block;
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Notice / disclosure block */
.note {
  border-left: 2px solid var(--vermilion-d);
  padding: 4px 0 4px 22px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--stone);
  max-width: 62ch;
}
.band-ink .note { border-left-color: var(--vermilion-l); color: var(--stone-ink); }

/* Table-style listing used on several pages */
.tlist { border-top: 1px solid var(--line); }
.band-ink .tlist { border-top-color: var(--line-ink); }
.tlist-row {
  display: grid;
  gap: 6px 22px;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.band-ink .tlist-row { border-bottom-color: var(--line-ink); }
@media (min-width: 780px) {
  .tlist-row { grid-template-columns: 100px minmax(0, 1.5fr) minmax(0, 1.6fr); }
}
.tlist-row .yr {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--vermilion-d);
}
.band-ink .tlist-row .yr { color: var(--vermilion-l); }
.tlist-row .ti {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.016em;
  line-height: 1.22;
}
.tlist-row .de { font-size: var(--fs-sm); color: var(--stone); line-height: 1.62; }
.band-ink .tlist-row .de { color: var(--stone-ink); }

/* Cards used sparingly, each page restyles them */
.cardish { position: relative; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
