/* ==========================================================================
   LAVI TYAGI — ADVOCATE  ·  Design System
   Foundations, tokens and shared components. Page-specific blocks: pages.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ink -------------------------------------------------------------- */
  --navy-900: #0A1421;
  --navy-800: #0F1C2E;
  --navy-700: #16293F;
  --navy-600: #21384f;
  --charcoal: #1A1D21;

  /* Accent — structural only. See contrast note below. --------------- */
  --gold-500: #C9A227;
  --gold-300: #E3C766;
  --gold-700: #8A6D0B;

  /* Ground ----------------------------------------------------------- */
  --white:    #FFFFFF;
  --bone:     #FAF8F5;
  --bone-200: #F2EEE7;
  --line:     #E5E1DA;
  --line-dark: rgba(237, 234, 228, 0.14);

  /* Type ------------------------------------------------------------- */
  --ink:     #1A1D21;
  --body:    #3D4450;
  --muted:   #6B7280;
  --on-dark: #EDEAE4;
  --on-dark-muted: rgba(237, 234, 228, 0.66);

  /* Families --------------------------------------------------------- */
  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale ------------------------------------------------- */
  --fs-display: clamp(2.5rem, 5.2vw, 4.75rem);
  --fs-h1:      clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-h2:      clamp(1.75rem, 3vw,   2.75rem);
  --fs-h3:      clamp(1.25rem, 2vw,   1.5rem);
  --fs-lead:    clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing — 8pt ---------------------------------------------------- */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 40px;  --s6: 48px;  --s7: 64px;  --s8: 80px;
  --s9: 96px;  --s10: 120px; --s11: 140px; --s12: 160px;
  --section-y: clamp(96px, 12vw, 176px);

  /* Structure -------------------------------------------------------- */
  --container: 1280px;
  --container-narrow: 900px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 68ch;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  --shadow-sm: 0 2px 8px -2px rgba(10, 20, 33, 0.08);
  --shadow-md: 0 12px 32px -16px rgba(10, 20, 33, 0.14);
  --shadow-lg: 0 24px 64px -32px rgba(10, 20, 33, 0.18);
  --shadow-xl: 0 40px 96px -40px rgba(10, 20, 33, 0.24);

  /* Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 650ms;

  --header-h: 84px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* Accessible focus — visible on both grounds */
:focus-visible {
  outline: 2px solid var(--gold-700);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.section--dark :focus-visible,
.site-header--solid :focus-visible { outline-color: var(--gold-300); }

::selection { background: var(--navy-800); color: var(--bone); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; }

p { max-width: var(--measure); text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--body);
  font-weight: 400;
}

/* Eyebrow — the gold appears here, at small caps, never as body text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);           /* 5.1:1 on white — AA compliant */
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold-500);
  flex: none;
}
.section--dark .eyebrow { color: var(--gold-300); }

.text-muted { color: var(--muted); }
.serif { font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* overflow-x: clip contains the horizontal reveal transform (elements animate in
   from ±24px) without clipping vertically the way overflow: hidden would. */
.section {
  padding-block: var(--section-y);
  position: relative;
  overflow-x: clip;
}
.section--bone { background: var(--bone); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }

.section--dark {
  background: var(--navy-800);
  color: var(--on-dark-muted);
}
.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-muted); }

.section-header { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .eyebrow { justify-content: center; }
.section-header--center p { margin-inline: auto; }
.section-header h2 + p { margin-top: var(--s3); }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Editorial split — asymmetric, never 50/50 */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse { grid-template-columns: 7fr 5fr; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--s6);
}
.rule--gold {
  width: 64px;
  height: 2px;
  background: var(--gold-500);
  margin-block: var(--s4);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 18px 34px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-sm);
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
/* Gold wipe from the left on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover, .btn:focus-visible {
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--navy-800);
}
.section--dark .btn--ghost,
.hero .btn--ghost { --btn-fg: var(--on-dark); border-color: rgba(237,234,228,0.42); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.btn--gold::after { background: var(--white); }

/* Text link with travelling arrow */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-800);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-text svg { transition: transform var(--dur) var(--ease); flex: none; }
.btn-text:hover { border-color: var(--gold-500); color: var(--gold-700); }
.btn-text:hover svg { transform: translateX(5px); }
.section--dark .btn-text,
.hero .btn-text,
.cta-band .btn-text { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .btn-text:hover,
.hero .btn-text:hover,
.cta-band .btn-text:hover { color: var(--gold-300); border-color: var(--gold-500); }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              height var(--dur) var(--ease);
}
.site-header--solid {
  background: rgba(10, 20, 33, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line-dark);
  height: 72px;
}
/* Interior pages start solid — no transparent-over-white failure */
.site-header--static {
  position: sticky;
  background: rgba(10, 20, 33, 0.96);
  border-bottom-color: var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
  white-space: nowrap;
}
.brand span {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }

.nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(237, 234, 228, 0.82);
  padding-block: 6px;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--bone); }
.nav a[aria-current='page']::after { transform: scaleX(1); }

.header-cta { padding: 13px 26px; font-size: var(--fs-xs); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--bone);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) var(--s6);
  background: var(--navy-900);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.nav-drawer.is-open { transform: translateY(0); visibility: visible; }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  color: var(--bone);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.nav-drawer a:hover { color: var(--gold-300); padding-left: var(--s2); }
.nav-drawer .btn { margin-top: var(--s6); }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HERO — editorial. Type leads; photography supports.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: center;
  background: var(--navy-900);
  color: var(--on-dark);
  padding-top: var(--header-h);
  padding-bottom: 120px;      /* clearance for the scroll cue */
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 { color: var(--bone); margin-bottom: var(--s4); }
.hero .lead { color: var(--on-dark-muted); max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
}

/* Carousel frame. Photographs run in full colour — only a bottom scrim is
   applied, and solely so the caption stays legible over the image. */
.hero-media {
  position: relative;
  /* Every child is absolutely positioned, so the box has no intrinsic size —
     width must be explicit or the grid item collapses to zero. */
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;          /* keeps the fold intact on short viewports */
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--navy-700);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease), visibility 900ms;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Scrim confined to the lower third — the photograph itself stays untouched. */
.hero-slide::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 33, 0.86) 100%);
  pointer-events: none;
}

.hero-media__caption {
  position: absolute;
  left: var(--s3); bottom: var(--s3);
  max-width: 60%;
  z-index: 3;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: rgba(237, 234, 228, 0.92);
  border-left: 2px solid var(--gold-500);
  padding-left: var(--s2);
}

.carousel-dots {
  position: absolute;
  right: var(--s3); bottom: var(--s3);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(237, 234, 228, 0.42);
  transition: all var(--dur) var(--ease);
}
.carousel-dot:hover { background: rgba(237, 234, 228, 0.75); }
.carousel-dot.is-active { background: var(--gold-500); width: 22px; }

/* Ambient wash */
.hero::before {
  content: '';
  position: absolute;
  top: -18%; right: -12%;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(201,162,39,0.11) 0%, transparent 62%);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: var(--s5);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 234, 228, 0.5);
}
.scroll-cue__line {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line { animation: cue 2.4s var(--ease-inout) infinite; transform-origin: top; }
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. STAT BAR
   -------------------------------------------------------------------------- */
.stat-bar { border-block: 1px solid var(--line); background: var(--white); }
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(40px, 5vw, 64px) var(--s4);
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  color: var(--navy-800);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num sup { font-size: 0.5em; color: var(--gold-700); top: -0.7em; }
.stat__label {
  margin-top: var(--s2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease);
}
/* Gold rule wipes across the top edge on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }

.card__icon {
  width: 44px; height: 44px;
  margin-bottom: var(--s4);
  color: var(--gold-700);
}
.card__icon svg { width: 100%; height: 100%; stroke-width: 1.25; }
.card h3 { margin-bottom: var(--s2); }
.card p { font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.card__link { margin-top: var(--s4); align-self: flex-start; }

/* Full-card click target without nesting interactive elements */
.card__stretch::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--dark {
  background: var(--navy-700);
  border-color: transparent;
}
.card--dark h3 { color: var(--on-dark); }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .card__icon { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   10. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy-800);
  color: var(--on-dark);
  padding-block: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 82% 12%, rgba(201,162,39,0.14), transparent 58%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--bone); max-width: 18ch; }
.cta-band__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s7);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding-block: clamp(64px, 7vw, 96px) var(--s6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: var(--s8);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--s3);
}
.site-footer .brand { margin-bottom: var(--s3); }
.site-footer p { font-size: var(--fs-sm); max-width: 34ch; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--gold-300); }

.socials { display: flex; gap: var(--s2); margin-top: var(--s4); }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  color: var(--on-dark-muted);
  transition: all var(--dur) var(--ease);
}
.socials a:hover {
  color: var(--navy-900);
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: rgba(237, 234, 228, 0.5);
}
.footer-bottom nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold-300); }

/* Bar Council disclosure — required context for an advocate's site */
.disclosure {
  margin-top: var(--s4);
  padding: var(--s3);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(237, 234, 228, 0.44);
  max-width: none;
}

/* --------------------------------------------------------------------------
   12. UTILITIES
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px; left: var(--s2);
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s2); }

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

.media-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }

/* Gold corner bracket — quiet luxury detail */
.media-frame--bracket::before {
  content: '';
  position: absolute;
  left: -14px; bottom: -14px;
  width: 45%; height: 45%;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  border-radius: 0 0 0 var(--r-md);
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12a. APPOINTMENTS — current offices held. Factual standing, given weight.
   -------------------------------------------------------------------------- */
.appointments {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  margin-block: clamp(28px, 3.5vw, 40px);
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 34px);
  background: var(--bone);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-500);
  border-radius: var(--r-md);
}
.section--bone .appointments { background: var(--white); }

.appointment__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.appointment__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  flex: none;
}
.appointment h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.3;
  margin-top: 8px;
}
.appointment p {
  margin-top: 5px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.section--dark .appointments {
  background: var(--navy-700);
  border-color: transparent;
  border-left-color: var(--gold-500);
}
.section--dark .appointment__status { color: var(--gold-300); }
.section--dark .appointment h3 { color: var(--on-dark); }
.section--dark .appointment p { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   12b. IMAGE BAND — full-bleed documentary photograph, navy-graded
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-900);
}
.band__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06) brightness(0.6);
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,33,0.35) 0%, rgba(10,20,33,0.9) 100%);
}
.band .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 72px);
}
.band h2 { color: var(--bone); max-width: 20ch; }
.band p { color: var(--on-dark-muted); margin-top: var(--s3); max-width: 56ch; }

/* --------------------------------------------------------------------------
   12c. TEAM
   -------------------------------------------------------------------------- */
.team-card { position: relative; }
.team-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bone-200);
  margin-bottom: var(--s3);
}
.team-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%) contrast(1.04);
  transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.team-card:hover .team-card__media img { filter: grayscale(0%); transform: scale(1.03); }
.team-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,20,33,0.42) 100%);
}
.team-card h3 { font-size: 1.1875rem; margin-bottom: 2px; }
.team-card__role {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.section--dark .team-card__role { color: var(--gold-300); }
.section--dark .team-card h3 { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   12d. GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s2);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bone-200);
  cursor: zoom-in;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.94);
  transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
.gallery-item--wide { aspect-ratio: 16 / 9; grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: var(--s4);
  background: rgba(10, 20, 33, 0.96);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__close {
  position: absolute;
  top: var(--s3); right: var(--s3);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--bone);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.lightbox__close:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: var(--s5);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-media { aspect-ratio: 16 / 11; max-height: 46vh; }
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 56px) var(--s9); }
  .scroll-cue { display: none; }

  .split, .split--reverse { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Touch targets — WCAG 2.5.5 minimum of 44px */
  .btn-text { padding-top: 9px; padding-bottom: 10px; }
  .socials a { width: 44px; height: 44px; }

  .stat-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { max-width: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand span { display: none; }
  .media-frame--bracket::before { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s1); }
  .gallery-item--wide { grid-column: span 2; }
  .band { min-height: 340px; }
}

/* --------------------------------------------------------------------------
   14. MOTION PREFERENCES  —  every animation is opt-out
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Guarantee JS-hidden reveal targets are visible */
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   15. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-drawer, .scroll-cue, .cta-band, .socials { display: none; }
  body { color: #000; background: #fff; }
  .section { padding-block: 24px; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.75em; }
}
