/* ============================================================
   JEROME MATTHEWS — Criminal Defense · Appeals · Writs
   "The Ivory Docket" design system — v3, July 2026
   Bright warm ivory · oxblood ink · antique gold
   ============================================================ */

:root {
  /* Palette */
  --ivory:       #F6F0E1;
  --ivory-2:     #EFE6D0;
  --paper:       #FCF9F1;
  --ox:          #3B0D12;
  --ox-deep:     #210507;
  --ox-mid:      #5A1A21;
  --gold:        #D4AF37;
  --gold-bright: #E9C654;
  --gold-deep:   #A8821F;
  --gold-ink:    #7E6212;
  --ivory-on-dark: #F3EFE6;
  --dim-on-dark:  #CDB9A2;

  /* Lines */
  --line:        rgba(59, 13, 18, 0.16);
  --line-strong: rgba(59, 13, 18, 0.45);
  --line-gold:   rgba(168, 130, 31, 0.45);
  --line-dark:   rgba(212, 175, 55, 0.28);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* Rhythm */
  --shell: min(1200px, 92vw);
  --shell-wide: min(1400px, 94vw);
  --sec-pad: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.5, 1.4, 0.4, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ivory);
  color: var(--ox);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over everything, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>");
  pointer-events: none;
  z-index: 3000;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }

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

::selection { background: var(--ox); color: var(--gold-bright); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

strong { font-weight: 650; }

.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ox); color: var(--ivory-on-dark);
  padding: 0.8rem 1.4rem; z-index: 5000; font-weight: 600;
}
.skip:focus { left: 0; }

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

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

/* ---------- Kickers, docket labels, rules ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kicker::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: var(--gold-deep);
  flex: none;
}
.kicker.bare::before { display: none; }
.on-dark .kicker { color: var(--gold); }
.on-dark .kicker::before { background: var(--gold); }

.rule-double {
  border: 0;
  border-top: 3px double var(--line-strong);
  margin: 0;
}

/* Giant ghost word behind sections */
.ghost {
  position: absolute;
  inset-inline: 0;
  top: 0.5rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: 1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 13, 18, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.on-dark .ghost, .page-hero-dark .ghost, .cta-band .ghost { -webkit-text-stroke-color: rgba(212, 175, 55, 0.09); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-snap), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-ox {
  background: var(--ox);
  color: var(--ivory-on-dark);
}
.btn-ox:hover {
  background: var(--ox-deep);
  box-shadow: 0 10px 24px -10px rgba(59, 13, 18, 0.55), 0 0 0 1.5px var(--gold-deep);
  color: var(--gold-bright);
}

.btn-gold {
  background: var(--gold);
  color: var(--ox-deep);
}
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 10px 24px -10px rgba(168, 130, 31, 0.6); }

.btn-line {
  border-color: var(--line-strong);
  color: var(--ox);
  background: transparent;
}
.btn-line:hover { border-color: var(--ox); background: var(--ox); color: var(--ivory-on-dark); }

.on-dark .btn-line,
.cta-band .btn-line,
.page-hero-dark .btn-line,
.bg-oxdeep .btn-line,
.quote-band .btn-line {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--ivory-on-dark);
}
.on-dark .btn-line:hover,
.cta-band .btn-line:hover,
.page-hero-dark .btn-line:hover,
.bg-oxdeep .btn-line:hover,
.quote-band .btn-line:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ox-deep);
}
.page-hero-dark .kicker { color: var(--gold); }
.page-hero-dark .kicker::before { background: var(--gold); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--ox);
  border-bottom: 1.5px solid var(--gold-deep);
  padding-bottom: 0.15rem;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.text-link .arr { transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--gold-ink); }
.text-link:hover .arr { transform: translateX(4px); }
.on-dark .text-link { color: var(--ivory-on-dark); border-color: var(--gold); }
.on-dark .text-link:hover { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(59, 13, 18, 0.35); }

.nav-shell {
  width: var(--shell-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-chip {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ox);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s var(--ease-snap);
}
.brand:hover .brand-chip { transform: rotate(-4deg) scale(1.04); }
.brand-chip img { width: 30px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 550;
  position: relative;
  padding-block: 0.4rem;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-deep);
  transition: right 0.3s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { right: 0; }

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

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ox);
  color: var(--ivory-on-dark);
  border-radius: 999px;
  padding: 0.62rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-snap);
}
.header-phone:hover {
  color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(59, 13, 18, 0.6);
}
.header-phone .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); }
}
.header-phone .call-short { display: none; }

.menu-btn {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 0;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.menu-btn i {
  display: block;
  width: 20px; height: 2px;
  background: var(--ox);
  margin-block: 2.5px;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.menu-btn:hover { background: var(--ox); border-color: var(--ox); }
.menu-btn:hover i { background: var(--gold-bright); }

/* ---------- Full menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ox-deep);
  color: var(--ivory-on-dark);
  display: flex;
  flex-direction: column;
  padding-block: 1rem 2.5rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0.6s;
  overflow-y: auto;
}
.menu-overlay.open { clip-path: inset(0 0 0% 0); visibility: visible; }

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.4rem;
}
.menu-top .brand-text strong { color: var(--ivory-on-dark); }
.menu-top .brand-text span { color: var(--gold); }
.menu-top .brand-chip { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }

.close-btn {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line-dark);
  background: transparent;
  color: var(--ivory-on-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s;
}
.close-btn:hover { background: var(--gold); color: var(--ox-deep); border-color: var(--gold); transform: rotate(90deg); }

.menu-links {
  display: flex;
  flex-direction: column;
  margin-block: auto;
  padding-block: 2rem;
}
.menu-links a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  font-weight: 470;
  line-height: 1.28;
  padding-block: 0.32rem;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  color: var(--ivory-on-dark);
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.25s, font-style 0.25s;
}
.menu-overlay.open .menu-links a {
  animation: menuIn 0.55s var(--ease) forwards;
  animation-delay: calc(0.08s + var(--d, 0) * 0.05s);
}
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu-links a small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  width: 2.4rem;
  flex: none;
}
.menu-links a:hover { color: var(--gold-bright); font-style: italic; }

.menu-foot { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.menu-overlay .btn-line { border-color: rgba(212, 175, 55, 0.55); color: var(--ivory-on-dark); }
.menu-overlay .btn-line:hover { background: var(--gold); border-color: var(--gold); color: var(--ox-deep); }

/* ---------- HOME HERO ---------- */
.hero-home {
  position: relative;
  padding-top: clamp(7.5rem, 13vh, 10rem);
  padding-bottom: 0;
  overflow: hidden;
}
.hero-grid {
  width: var(--shell-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-copy { padding-bottom: clamp(3rem, 6vw, 5.5rem); }

.hero-copy .kicker { margin-bottom: 1.6rem; }

.display-xl {
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 470;
  line-height: 1.03;
  letter-spacing: -0.015em;
}
.display-xl em, .gold-italic {
  font-style: italic;
  font-weight: 520;
  color: var(--gold-ink);
}

.hero-copy .lede {
  max-width: 34rem;
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ox-mid);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px double var(--line-strong);
  margin-top: 3rem;
}
.hero-meta > div {
  padding: 1.1rem 1rem 0.2rem 0;
  border-right: 1px solid var(--line);
}
.hero-meta > div:last-child { border-right: 0; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 540;
}
.hero-meta span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Arch portrait */
.hero-figure { position: relative; }
.arch {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--ivory-2);
  box-shadow: 0 30px 60px -30px rgba(59, 13, 18, 0.4);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(246, 240, 225, 0.65);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero-figure .arch { aspect-ratio: 4 / 5.1; }

.seal-badge {
  position: absolute;
  z-index: 5;
  left: -3.2rem;
  bottom: 2.8rem;
  width: clamp(7rem, 10vw, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ox);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -18px rgba(33, 5, 7, 0.7), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
}
.seal-badge img { width: 62%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 1rem;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
  transform: translateX(2.2rem);
}

/* ---------- Marquee ---------- */
.ribbon {
  background: var(--gold);
  color: var(--ox-deep);
  overflow: hidden;
  border-block: 1px solid var(--gold-deep);
  padding-block: 0.78rem;
  position: relative;
  z-index: 4;
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 36s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon-set { display: flex; flex: none; }
.ribbon-set span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 1.6rem;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}
.ribbon-set span::after { content: "✦"; font-size: 0.7rem; color: var(--ox); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); position: relative; }
.section.tight { padding-block: calc(var(--sec-pad) * 0.55); }
.bg-soft { background: var(--ivory-2); }
.bg-paper { background: var(--paper); }
.bg-ox, .on-dark {
  background: var(--ox);
  color: var(--ivory-on-dark);
}
.bg-oxdeep { background: var(--ox-deep); color: var(--ivory-on-dark); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .kicker { margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-head .lede { margin-top: 1.2rem; font-size: 1.1rem; color: var(--ox-mid); }
.on-dark .section-head .lede, .on-dark .prose p { color: var(--dim-on-dark); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.prose p { margin-bottom: 1.1rem; color: var(--ox-mid); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ox); }
.on-dark .prose strong { color: var(--ivory-on-dark); }
.prose a { border-bottom: 1px solid var(--gold-deep); font-weight: 600; color: var(--ox); }
.prose a:hover { color: var(--gold-ink); }

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split-copy .kicker { margin-bottom: 1.2rem; }
.split-copy h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); margin-bottom: 1.4rem; }

.frame { position: relative; }
.frame.arch { aspect-ratio: 4 / 5; }
.frame-tag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: var(--ox);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(33, 5, 7, 0.6);
}

.sig { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; }
.sig .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 510;
}
.sig .role {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border-left: 1px solid var(--line-strong);
  padding-left: 1.2rem;
  line-height: 1.7;
}

/* ---------- Practice grid ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.6rem;
  min-height: 15.5rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px double var(--line-strong);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ox);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.practice-card:hover::before { transform: scaleY(1); transform-origin: top; }
.practice-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(59, 13, 18, 0.5); }
.practice-card > * { position: relative; z-index: 1; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold-ink);
  transition: color 0.3s;
}
.pc-arrow {
  font-size: 1.15rem;
  transition: transform 0.35s var(--ease), color 0.3s;
  color: var(--gold-deep);
}
.practice-card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  margin-top: 0.9rem;
  transition: color 0.3s;
}
.practice-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ox-mid);
  margin-top: 0.55rem;
  transition: color 0.3s;
}
.pc-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  transition: color 0.3s, border-color 0.3s;
}
.practice-card:hover h3 { color: var(--gold-bright); }
.practice-card:hover p { color: var(--dim-on-dark); }
.practice-card:hover .pc-num, .practice-card:hover .pc-tag { color: var(--gold); }
.practice-card:hover .pc-tag { border-color: var(--line-dark); }
.practice-card:hover .pc-arrow { transform: translateX(5px); color: var(--gold-bright); }

/* ---------- Roman ticks ---------- */
.ticks { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2.4rem; }
.tick { display: flex; gap: 1.4rem; align-items: flex-start; }
.tick .rn {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-ink);
  width: 2.6rem;
  flex: none;
  border-top: 3px double var(--line-strong);
  padding-top: 0.4rem;
}
.on-dark .tick .rn { color: var(--gold); border-color: var(--line-dark); }
.tick h3 { font-size: 1.2rem; font-weight: 550; margin-bottom: 0.3rem; }
.tick p { font-size: 0.95rem; color: var(--ox-mid); }
.on-dark .tick p { color: var(--dim-on-dark); }

/* ---------- Writ clock strip ---------- */
.clock-strip { position: relative; }
.days {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  margin-top: 2.4rem;
  height: 62px;
}
.days i {
  flex: 1;
  background: var(--line);
  height: 34%;
  border-radius: 2px 2px 0 0;
  transition: background 0.3s, height 0.5s var(--ease);
}
.days i.lit { background: var(--gold); height: 100%; }
.days i.last { background: var(--ox); height: 100%; position: relative; }
.days-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 0.7rem;
}

/* ---------- Triage ---------- */
.triage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.triage-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px double var(--line-strong);
  padding: 1.8rem 1.7rem 2rem;
  position: sticky;
  top: 6.5rem;
}
.triage-panel h3 { font-size: 1.5rem; font-weight: 520; }
.triage-panel > p { color: var(--ox-mid); font-size: 0.95rem; margin-top: 0.4rem; }
.triage-opts { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.4rem; }
.triage-opts button {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 570;
  padding: 0.85rem 1.1rem;
  background: transparent;
  color: var(--ox);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.triage-opts button::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  flex: none;
  transition: background 0.25s;
}
.triage-opts button:hover { border-color: var(--ox); transform: translateX(3px); }
.triage-opts button.active {
  background: var(--ox);
  color: var(--ivory-on-dark);
  border-color: var(--ox);
}
.triage-opts button.active::before { background: var(--gold); border-color: var(--gold); }
.triage-result {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  min-height: 11rem;
}
.triage-result strong {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 0.6rem;
}
.triage-result p { font-size: 0.96rem; color: var(--ox-mid); margin-bottom: 0.9rem; }

.focus-list { display: flex; flex-direction: column; }
.focus-item {
  display: flex;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.focus-item:first-child { padding-top: 0.4rem; }
.focus-item .fi-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-ink);
  width: 2.8rem;
  flex: none;
}
.focus-item h3 { font-size: 1.32rem; font-weight: 540; margin-bottom: 0.35rem; }
.focus-item p { font-size: 0.97rem; color: var(--ox-mid); }

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
  color: var(--ivory-on-dark);
}
.quote-band .band-media,
.page-hero-dark .band-media {
  position: absolute;
  inset: 0;
}
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(33, 5, 7, 0.92) 20%, rgba(59, 13, 18, 0.72) 60%, rgba(59, 13, 18, 0.55));
}
.quote-band blockquote { position: relative; max-width: 52rem; }
.quote-band blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 470;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quote-band blockquote p::before { content: "“"; color: var(--gold); }
.quote-band blockquote p::after { content: "”"; color: var(--gold); }
.quote-band cite {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-band cite::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }

/* ---------- Stats / numbers band ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.numbers > div {
  background: var(--ox);
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.numbers strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 520;
  color: var(--gold-bright);
}
.numbers span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim-on-dark);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-item summary .faq-x {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  flex: none;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--ox); font-style: italic; }
.faq-body { padding: 0 0 1.6rem; max-width: 44rem; }
.faq-body p { color: var(--ox-mid); font-size: 0.99rem; margin-bottom: 0.8rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Insights / cards ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px double var(--line-strong);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(59, 13, 18, 0.45); }
.insight-card .meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.insight-card h3 { font-size: 1.38rem; font-weight: 520; line-height: 1.2; }
.insight-card:hover h3 { font-style: italic; }
.insight-card p { font-size: 0.93rem; color: var(--ox-mid); flex: 1; }
.insight-card .text-link { align-self: flex-start; }

/* ---------- Article ---------- */
.article-shell { max-width: 44rem; margin-inline: auto; }
.article-shell .prose h2 {
  font-size: 1.75rem;
  margin: 2.4rem 0 0.9rem;
}
.article-shell .prose ul { margin: 0 0 1.1rem 1.2rem; color: var(--ox-mid); }
.article-shell .prose li { margin-bottom: 0.45rem; }
.article-note {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-deep);
  background: var(--paper);
  padding: 1.2rem 1.4rem;
  font-size: 0.9rem;
  color: var(--ox-mid);
}

/* ---------- Results / testimonials ---------- */
.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px double var(--line-strong);
  padding: 1.7rem 1.6rem;
}
.result-card .meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.7rem;
  display: block;
}
.result-card h3 { font-size: 1.4rem; font-weight: 520; margin-bottom: 0.5rem; }
.result-card p { font-size: 0.95rem; color: var(--ox-mid); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.quote-card {
  background: var(--ox);
  color: var(--ivory-on-dark);
  padding: 1.8rem 1.7rem;
  border-radius: 2px;
  position: relative;
}
.quote-card::before {
  content: "“";
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--gold);
  line-height: 0.6;
  display: block;
  margin-bottom: 0.9rem;
}
.quote-card p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.quote-card cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ox-deep);
  color: var(--ivory-on-dark);
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 120%, rgba(212, 175, 55, 0.16), transparent 55%);
  pointer-events: none;
}
.cta-band .kicker { justify-content: center; margin-bottom: 1.4rem; color: var(--gold); }
.cta-band .kicker::before { background: var(--gold); }
.cta-band h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 46rem;
  margin-inline: auto;
}
.cta-band > .shell > p {
  max-width: 38rem;
  margin: 1.3rem auto 0;
  color: var(--dim-on-dark);
}
.cta-band .hero-actions { justify-content: center; margin-top: 2.4rem; }
.cta-phone {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 490;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  border-bottom: 3px double var(--line-dark);
  transition: color 0.25s, letter-spacing 0.4s var(--ease);
}
.cta-phone:hover { color: var(--ivory-on-dark); letter-spacing: 0.04em; }
.cta-band .seal-mini { width: 74px; margin: 3rem auto 0; opacity: 0.85; }
.cta-band .seal-mini img { animation: spin 30s linear infinite; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ox-deep);
  color: var(--dim-on-dark);
  padding: 4.5rem 0 2.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.footer-brand img.fw { width: min(300px, 80%); margin-bottom: 1.2rem; }
.footer-brand p { max-width: 26rem; line-height: 1.65; }
.footer h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.55rem; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--gold-bright); }
.footer .bar-line {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(205, 185, 162, 0.75);
}
.disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(205, 185, 162, 0.62);
  padding-block: 1.6rem 1.2rem;
  max-width: 72rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(205, 185, 162, 0.7);
}
.footer-bottom .wink { color: rgba(205, 185, 162, 0.55); }
.footer-bottom .wink a { border-bottom: 1px dotted rgba(212, 175, 55, 0.5); }
.footer-bottom .wink a:hover { color: var(--gold-bright); }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 800;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--ox-deep);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.sticky-call.show { transform: translateY(0); }
.sticky-call a {
  text-align: center;
  padding: 0.95rem 0.5rem;
  color: var(--ivory-on-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(212, 175, 55, 0.18);
}
.sticky-call a:last-child { border-right: 0; }
.sticky-call a.call { color: var(--gold-bright); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vh, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .crumbs {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.6rem;
  display: flex;
  gap: 0.7rem;
}
.page-hero .crumbs a:hover { color: var(--ox); }
.page-hero .crumbs .sep { color: var(--line-strong); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 480;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.page-hero .lede {
  max-width: 33rem;
  margin-top: 1.5rem;
  font-size: 1.12rem;
  color: var(--ox-mid);
}
.page-hero .hero-actions { margin-top: 2rem; }
.page-hero .frame.arch { aspect-ratio: 4 / 4.6; }

/* Dark page hero (verdict) */
.page-hero-dark {
  position: relative;
  overflow: hidden;
  background: var(--ox-deep);
  color: var(--ivory-on-dark);
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.page-hero-dark h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 480; }
.page-hero-dark .lede { color: var(--dim-on-dark); max-width: 38rem; margin-top: 1.5rem; font-size: 1.15rem; }

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C24435;
  border: 2px solid #C24435;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transform: rotate(-3deg);
  opacity: 0.9;
  margin-bottom: 1.8rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px double var(--line-strong);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(59, 13, 18, 0.45); }
.contact-card .meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.contact-card strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 520; word-break: break-word; }
.contact-card p { font-size: 0.92rem; color: var(--ox-mid); }

.checklist { max-width: 46rem; counter-reset: check; }
.checklist li {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ox-mid);
}
.checklist li::before {
  content: counter(check, upper-roman);
  counter-increment: check;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-ink);
  min-width: 2.2rem;
}
.checklist strong { color: var(--ox); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 6rem;
}
.notfound .code {
  font-family: var(--serif);
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 500;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-deep);
}
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 1rem; }
.notfound p { color: var(--ox-mid); margin-top: 0.8rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-l { transform: translateX(-30px) translateY(0); }
.reveal-r { transform: translateX(30px) translateY(0); }
.reveal-l.in, .reveal-r.in { transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 30rem; }
  .seal-badge { left: auto; right: -1.2rem; bottom: 2rem; }
  .hero-caption { display: none; }
  .practice-grid, .insight-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split, .split.rev, .triage, .page-hero-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media .frame { max-width: 26rem; margin-inline: auto; }
  .page-hero-grid .hero-figure { display: none; }
  .triage-panel { position: static; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta > div { border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
  .hero-meta > div:nth-child(even) { border-right: 0; }
  .numbers { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .practice-grid, .insight-grid, .contact-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: auto; gap: 1.8rem; }
  .header-phone .num { display: none; }
  .header-phone .call-short { display: inline; }
  .sticky-call { display: grid; }
  body { padding-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .days { gap: 2px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}
