/* ==========================================================================
   OZTENAY LAW FIRM — DESIGN SYSTEM
   Static, dependency-free. Dark editorial identity: obsidian + antique gold.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm-shifted rather than neutral black. A pure #080808 reads
     as a switched-off screen; a trace of red/yellow reads as ink on stock. */
  --bg:           #080807;
  --surface:      #0D0C0A;
  --surface-2:    #14120F;
  --surface-3:    #1C1913;

  /* Ink — all tested >= 4.5:1 on --bg */
  --text:         #F2EEE6;   /* 18.5:1 */
  --text-muted:   #A79F94;   /* 7.6:1  */
  --text-dim:     #8A8378;   /* 5.1:1 on --surface — meta / small caps */

  /* Accent */
  --gold:         #C9A84C;   /* 8.7:1  */
  --gold-light:   #E8C97A;
  --gold-pale:    #F0DFAE;   /* highlight on the seal and display italics */
  --gold-deep:    #8A7130;
  --bronze:       #6B5526;   /* mid-tone that stops gold/ink reading as two flat steps */
  --gold-a10:     rgba(201,168,76,0.10);
  --gold-a20:     rgba(201,168,76,0.20);
  --gold-a40:     rgba(201,168,76,0.40);

  /* Lines */
  --line:         rgba(242,238,230,0.09);
  --line-strong:  rgba(242,238,230,0.16);

  /* Type */
  --serif:  'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  /* Cormorant ships old-style numerals by default; anything numeric that has
     to read as data uses this instead. */
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(2.75rem, 7vw, 6rem);
  --fs-h1:      clamp(2.25rem, 5.2vw, 4rem);
  --fs-h2:      clamp(1.85rem, 3.6vw, 2.9rem);
  --fs-h3:      clamp(1.3rem, 2.1vw, 1.7rem);
  --fs-h4:      clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body:    clamp(1rem, 1.05vw, 1.0625rem);
  --fs-lead:    clamp(1.1rem, 1.5vw, 1.3125rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.6875rem;

  /* Space */
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section-y:  clamp(4.5rem, 10vw, 9rem);
  --maxw:       1240px;
  --maxw-prose: 46rem;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.30, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Fine grain over the whole page. Without it large dark fields band and look
   like flat fill; with it they read as printed stock. Non-interactive. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::before { display: none; } }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--gold-a40); color: var(--text); }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 4000;
  background: var(--gold); color: #080808;
  padding: 0.75rem 1.25rem; font-size: var(--fs-small); font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY PRIMITIVES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow--muted { color: var(--text-dim); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-muted);
  font-weight: 300;
}

.rule { width: 56px; height: 1px; background: var(--gold); margin: 1.75rem 0; }
.rule--center { margin-left: auto; margin-right: auto; }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }

/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding-block: 1.4rem;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
              padding 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8,8,8,0.90);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding-block: 0.9rem;
  border-bottom-color: var(--gold-a20);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand__name {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.22em; color: var(--gold);
}
.brand__sub {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 0.35rem;
}

.nav { display: none; }
@media (min-width: 1040px) { .nav { display: flex; align-items: center; gap: 2.25rem; } }

.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 0.5rem;
  transition: color 0.3s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible, .nav__item:hover > .nav__link { color: var(--gold); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
}
.nav__caret { width: 8px; height: 8px; opacity: 0.6; transition: transform 0.3s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__panel {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  min-width: 19rem;
  background: rgba(14,14,13,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  padding: 0.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel a {
  display: block; padding: 0.7rem 0.9rem;
  font-size: 0.8125rem; color: var(--text-muted);
  border-left: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__panel a:hover { color: var(--gold); background: var(--gold-a10); border-left-color: var(--gold); }
.nav__panel a span { display: block; font-size: 0.6875rem; color: var(--text-dim); margin-top: 0.15rem; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

/* Header CTA appears only where there is room for it.
   Scoped to .header-actions so it outranks the later `.btn { display }` rule. */
.header-actions .header-cta { display: none; }
@media (min-width: 1180px) { .header-actions .header-cta { display: inline-flex; } }

.lang-switch { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-micro); letter-spacing: 0.12em; }
.lang-switch a { color: var(--text-dim); transition: color 0.25s var(--ease); }
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch [aria-current="true"] { color: var(--gold); font-weight: 500; }
.lang-switch__sep { color: var(--line-strong); }

/* 44x44 minimum tap target (WCAG 2.5.5) — the bars are smaller than the
   hit area, which extends past them to the right edge of the header. */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: flex-end;
  margin-right: -4px;
}
@media (min-width: 1040px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; height: 1px; background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { width: 24px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { width: 24px; transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { width: 24px; transform: translateY(-3px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  padding: 7rem var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1040px) { .drawer { display: none; } }
.drawer__group { border-top: 1px solid var(--line); padding-block: 1.35rem; }
.drawer__group:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 2.25rem; }
.drawer__label {
  font-size: var(--fs-micro); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.drawer a.drawer__main {
  font-family: var(--serif); font-size: 1.7rem; color: var(--text);
  display: block; padding-block: 0.3rem;
}
.drawer__sub { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.drawer__sub a { font-size: 0.875rem; color: var(--text-muted); }
.drawer__sub a:hover { color: var(--gold); }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  font-family: var(--sans);
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--gold-a40);
  color: var(--gold);
  background: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  text-align: center;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}
.btn:hover, .btn:focus-visible { color: #080808; border-color: var(--gold); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }

.btn--solid { background: var(--gold); color: #080808; border-color: var(--gold); }
.btn--solid::before { background: var(--gold-light); }
.btn--solid:hover, .btn--solid:focus-visible { color: #080808; }

.btn--ghost { border-color: var(--line-strong); color: var(--text-muted); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #080808; border-color: var(--text); }

.btn--sm { padding: 0.8rem 1.5rem; }
.btn--block { width: 100%; }

/* WhatsApp glyph inside a button. Kept in the gold brand button rather than
   WhatsApp green — the action reads instantly from the icon, and the page
   keeps one accent colour. */
.btn__wa { width: 1.45em; height: 1.45em; fill: currentColor; flex-shrink: 0; }
.btn--sm .btn__wa { width: 1.3em; height: 1.3em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.link-arrow::after { content: '\2192'; transition: transform 0.35s var(--ease); font-size: 0.95rem; }
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 9rem 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute; z-index: -2;
  top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: min(150vw, 1500px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,168,76,0.14) 0%, rgba(201,168,76,0.05) 32%, transparent 68%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 20%, transparent 78%);
  opacity: 0.65;
}
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 2rem;
}
.hero__eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__lead { max-width: 42ch; margin-top: 2rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__meta > div { display: flex; flex-direction: column; gap: 0.3rem; }
.hero__meta .k {
  font-size: var(--fs-micro); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
}
.hero__meta .v {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.scroll-cue {
  position: absolute; bottom: 2.25rem; right: var(--gutter); left: auto;
  display: none; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
/* Only shown where the hero is tall enough that it cannot overlap the meta
   row along the bottom edge. */
@media (min-height: 800px) and (min-width: 900px) { .scroll-cue { display: flex; } }

@keyframes cue {
  0%,100% { opacity: 0.25; transform: scaleY(0.4); transform-origin: top; }
  50%     { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative; isolation: isolate;
  padding-block: clamp(9rem, 16vw, 12.5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 100% at 15% 0%, rgba(201,168,76,0.10), transparent 65%);
}
.page-hero__title { max-width: 20ch; }
.page-hero .lead { max-width: 56ch; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   7b. THE SEAL
   Engraved-plate device. Inherits colour from currentColor so one SVG serves
   the hero watermark, the footer mark and any future use.
   -------------------------------------------------------------------------- */
.seal { width: 100%; height: auto; color: var(--gold); overflow: visible; }
.seal__ring   { opacity: 0.9; }
.seal__ticks  { opacity: 0.55; }
.seal__type   { opacity: 0.95; }

.seal__name, .seal__sub, .seal__mono, .seal__year {
  font-family: var(--sans);
  font-weight: 500;
}
.seal__name { font-size: 11px; letter-spacing: 3.1px; }
.seal__sub  { font-size: 7.6px; letter-spacing: 3px; opacity: 0.7; }
.seal__mono {
  font-family: var(--serif); font-weight: 400;
  font-size: 34px; letter-spacing: 1px;
}
.seal__year { font-size: 6.5px; letter-spacing: 2.6px; opacity: 0.8; }
.seal__rule { opacity: 0.7; }

/* Hero watermark — anchors the empty right-hand side of the composition */
.hero__seal {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(var(--gutter), 4vw);
  top: 50%; transform: translateY(-50%);
  width: clamp(260px, 30vw, 430px);
  opacity: 0.19;
  display: none;
}
@media (min-width: 1100px) { .hero__seal { display: block; } }
.hero__seal .seal { color: var(--gold); }

/* Footer mark — at this size the arc text and tick ring turn to mud, so the
   small variant keeps only the rings, the monogram and the rule. */
.footer-brand { position: relative; }
.footer-brand .seal--footer {
  width: 76px; margin-bottom: 1.5rem; opacity: 0.9;
}
.seal--footer .seal__type,
.seal--footer .seal__ticks,
.seal--footer .seal__year { display: none; }
.seal--footer .seal__mono { font-size: 46px; }
.seal--footer .seal__rule line { transform: translateY(14px); }

/* --------------------------------------------------------------------------
   8. BREADCRUMBS
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.crumbs li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
}
.crumbs li:not(:last-child)::after { content: '/'; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); transition: color 0.25s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease), transform 0.45s var(--ease);
  height: 100%;
}
.card::after {
  content: ''; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-expo);
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.card:hover::after { transform: scaleX(1); }

.card__num {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.28em; margin-bottom: 1.4rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.card__title { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
/* Below ~1.25rem a light serif on dark goes muddy — use the sans instead. */
.card__title--sm {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1.4; color: var(--text);
  margin-bottom: 0.75rem;
}
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card__text { color: var(--text-muted); font-size: 0.9375rem; flex-grow: 1; }
.card__foot { margin-top: 1.75rem; }

.card__list { margin-top: 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; }
.card__list li { font-size: 0.8125rem; color: var(--text-dim); padding-left: 1.1rem; position: relative; }
.card__list li::before {
  content: ''; position: absolute; left: 1px; top: 0.66em;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0.75;
}

/* Stat block */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 760px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.5rem, 3vw, 2.25rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__n {
  display: block; font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 300;
  color: var(--gold); line-height: 1;
}
.stat__l {
  display: block; margin-top: 0.85rem;
  font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); line-height: 1.6;
}

/* Person card
   Portrait sits beside the text at a fixed, modest width rather than filling
   the column. A full-width 4:5 block is a 540px void until real photographs
   exist, and it dominates the page. */
.person {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
@media (min-width: 560px) { .person { grid-template-columns: 148px 1fr; } }

.person__portrait {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(201,168,76,0.10), transparent 62%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
/* Hairline inner frame — makes the plate read as a deliberate device */
.person__portrait::after {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid var(--gold-a20);
  pointer-events: none;
}
.person__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.8s var(--ease-expo);
}
.person__portrait:has(img)::after { display: none; }
.person:hover .person__portrait img { transform: scale(1.04); }

.person__initials {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
}
.person__role { font-size: var(--fs-micro); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.person__name { font-size: var(--fs-h3); margin-bottom: 0.85rem; }
.person__bio { color: var(--text-muted); font-size: 0.9375rem; }

/* Standalone plate used in the profile-page sidebar */
.person__portrait--plate { max-width: 200px; aspect-ratio: 3/4; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line); padding: 0.45rem 0.8rem;
}

/* Testimonial */
.quote {
  position: relative; padding: clamp(2rem, 3.5vw, 2.75rem);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100%;
}
.quote__mark { font-family: var(--serif); font-size: 4.5rem; line-height: 0.6; color: var(--gold-deep); opacity: 0.5; margin-bottom: 0.85rem; }
.quote__text { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.55; color: var(--text); flex-grow: 1; }
.quote__cite { margin-top: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--line); font-style: normal; }
.quote__name { display: block; font-size: 0.875rem; color: var(--text); font-weight: 400; }
.quote__org { display: block; font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.35rem; }

/* Featured reference — the long one leads the section */
.quote--featured {
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  border-color: var(--gold-a20);
  background: linear-gradient(140deg, var(--surface-2), var(--surface) 60%);
}
.quote--featured .quote__mark { font-size: 6rem; }
.quote--featured .quote__text { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.6; }
@media (min-width: 900px) {
  .quote--featured .quote__text { column-count: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
}
.quote--featured .quote__cite { border-top-color: var(--gold-a20); }
.quote--featured .quote__name { font-size: 1rem; color: var(--gold-light); }

/* Placeholder marker for content awaiting real data */
.pending { border: 1px dashed var(--gold-a40); background: rgba(201,168,76,0.04); padding: clamp(1.5rem, 3vw, 2.25rem); }
.pending__flag {
  display: inline-block; font-size: 0.625rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-a40); padding: 0.3rem 0.65rem; margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   10. PROSE (guides / articles)
   -------------------------------------------------------------------------- */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: 1.5rem; }
/* Guides run to 2,500+ words. Light-on-dark at long length is tiring, so body
   copy in prose gets more contrast and more leading than elsewhere. */
.prose p, .prose li {
  color: #C6BEB2;
  line-height: 1.82;
  font-size: 1.0625rem;
}
.prose h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  margin-top: 3.75rem; padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}
.prose h3 { font-size: var(--fs-h3); margin-top: 2.5rem; color: var(--text); scroll-margin-top: 6.5rem; }
.prose h4 { margin-top: 2rem; color: var(--gold-light); font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--gold-light); }
.prose a:not(.btn):not(.link-arrow) {
  color: var(--gold); border-bottom: 1px solid var(--gold-a40);
  transition: border-color 0.25s var(--ease);
}
.prose a:not(.btn):not(.link-arrow):hover { border-bottom-color: var(--gold); }

.prose ul, .prose ol { display: flex; flex-direction: column; gap: 0.85rem; padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.75rem; color: var(--text-muted); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--gold); }
.prose ol { counter-reset: pl; }
.prose ol li { counter-increment: pl; }
.prose ol li::before {
  content: counter(pl, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 0.8125rem; color: var(--gold-deep);
}

.prose blockquote {
  border-left: 1px solid var(--gold);
  padding: 0.35rem 0 0.35rem 1.75rem;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--text);
}

.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.5rem; }
.prose th, .prose td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  border-bottom-color: var(--gold-a40); white-space: nowrap;
}
.prose td { color: var(--text-muted); }
.prose tbody tr:hover td { background: var(--surface); }

/* Callout */
.callout {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
  background: var(--surface);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}
.callout__title {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.85rem;
}
.callout p { font-size: 0.9375rem; margin-top: 0; }
.callout p + p { margin-top: 0.85rem; }
.callout--warn { border-left-color: #C97A4C; }
.callout--warn .callout__title { color: #E8A47A; }

/* Article meta + TOC */
.article-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 15rem 1fr; } }

.toc { position: sticky; top: 7.5rem; display: none; }
@media (min-width: 1040px) { .toc { display: block; } }
.toc__title {
  font-size: var(--fs-micro); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.toc ol { display: flex; flex-direction: column; gap: 0.1rem; }
.toc a {
  display: block; font-size: 0.8125rem; line-height: 1.45;
  color: var(--text-dim); padding: 0.5rem 0 0.5rem 0.9rem;
  border-left: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.toc a:hover { color: var(--text-muted); }
.toc a.is-active { color: var(--gold); border-left-color: var(--gold); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  padding-block: 1.35rem; margin-block: 2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
}
.article-meta strong { color: var(--text-muted); font-weight: 400; }

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem;
  width: 100%; text-align: left;
  padding: 1.65rem 0;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--gold); }
.faq__icon { flex-shrink: 0; position: relative; width: 14px; height: 14px; margin-top: 0.4em; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1px; background: var(--gold);
  transition: transform 0.4s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
/* Answers are expanded by default. JS collapses them on load and animates the
   height in pixels — so with no JS, a stalled transition, or a print/reader
   view, the text is still there. Never hide answer content behind an
   animation that has to succeed. */
.faq__a { height: auto; overflow: hidden; transition: height 0.45s var(--ease); }
.faq__a p { color: var(--text-muted); font-size: 0.9375rem; padding-bottom: 1.65rem; max-width: 62ch; }
.faq__a p + p { padding-top: 0.9rem; }

/* --------------------------------------------------------------------------
   12. CONTACT
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field label { font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.9375rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); opacity: 0.7; }
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field--row { display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 0.75rem; color: var(--text-dim); line-height: 1.6; }

.contact-detail { display: flex; flex-direction: column; gap: 2rem; }
.contact-detail__k { font-size: var(--fs-micro); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.contact-detail__v { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.75; }
.contact-detail__v a { color: var(--text-muted); transition: color 0.25s var(--ease); }
.contact-detail__v a:hover { color: var(--gold); }

/* Floating contact */
.float-contact {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: flex; align-items: center; gap: 0.7rem;
  background: #1E9E52;
  color: #06210F;
  padding: 0.9rem 1.35rem;
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  transform: translateY(150%);
  transition: transform 0.6s var(--ease-expo), background 0.3s var(--ease);
}
.float-contact.is-visible { transform: none; }
.float-contact:hover { background: #25C05F; }
.float-contact svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 620px) {
  .float-contact__label { display: none; }
  .float-contact { padding: 1rem; border-radius: 50%; }
}

/* --------------------------------------------------------------------------
   13. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 65% 130% at 50% 100%, rgba(201,168,76,0.16), transparent 62%);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin: 1.75rem auto 0; }
.cta-band .btn-row { justify-content: center; }
.cta-band__alt {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.cta-band__alt a { color: var(--text-muted); border-bottom: 1px solid var(--line-strong); }
.cta-band__alt a:hover { color: var(--gold); border-bottom-color: var(--gold-a40); }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid {
  display: grid; gap: clamp(2.25rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand__name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.2em; color: var(--gold); display: block; }
.footer-brand__sub { font-size: 0.5625rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-dim); display: block; margin-top: 0.5rem; }
.footer-blurb { color: var(--text-dim); font-size: 0.8125rem; margin-top: 1.5rem; max-width: 30ch; line-height: 1.8; }
.footer-col__h { font-size: var(--fs-micro); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); margin-bottom: 1.35rem; }
.footer-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-list a { font-size: 0.8125rem; color: var(--text-dim); transition: color 0.25s var(--ease); }
.footer-list a:hover { color: var(--gold); }
.footer-addr { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.85; }
.footer-addr + .footer-addr { margin-top: 1rem; }
.footer-addr a { color: var(--text-dim); }
.footer-addr a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: 0.6875rem; color: var(--text-dim); letter-spacing: 0.05em;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.6875rem; color: var(--text-dim); opacity: 0.75;
  line-height: 1.75; padding-bottom: 1.75rem; max-width: 78ch;
}

/* --------------------------------------------------------------------------
   15. MOTION
   -------------------------------------------------------------------------- */
/* Reveal-on-scroll is an enhancement, never a precondition for reading.
   The hidden state is gated on .js, which is set by an inline script in
   <head>, so a visitor without JavaScript sees the full page immediately.
   site.js also runs a failsafe that reveals anything still hidden. */
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.d1.is-in { transition-delay: 0.08s; }
.reveal.d2.is-in { transition-delay: 0.16s; }
.reveal.d3.is-in { transition-delay: 0.24s; }
.reveal.d4.is-in { transition-delay: 0.32s; }

.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 1100;
  height: 2px; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  .float-contact { transform: none; }
}

/* --------------------------------------------------------------------------
   16. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .drawer, .float-contact, .toc, .scroll-cue, .cta-band, .progress-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose li, h1, h2, h3 { color: #000 !important; }
  a { text-decoration: underline; }
}
