/* ==========================================================================
   JOSEPH DARRAGH, CFE - GLOBAL STYLES
   Base + layout + component library. Tokens live in tokens.css.
   Contents:
     01 Base & reset          06 Buttons
     02 Typography            07 Pills & badges
     03 Layout primitives     08 Cards (service / case / credential)
     04 Header & nav          09 Stats, pull quote, accordion
     05 Footer                10 Forms
                              11 Case pages & hub
                              12 Utilities, motion, print
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* keeps a keyboard-focused element from landing under the sticky header
     (WCAG 2.2 SC 2.4.11 Focus Not Obscured) */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain. barely-there texture that signals record, not web */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2147483000;
}

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

/* the hidden attribute must always win, even over display rules on classes */
[hidden] { display: none !important; }

::selection { background: var(--maroon); color: var(--cream); }

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

a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--maroon); }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

/* --------------------------------------------------------------------------
   02 TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, .u-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

h1 em, h2 em, h3 em, .u-display em {
  font-style: italic;
  color: var(--maroon);
}

.t-display-1 { font-size: var(--fs-display-1); line-height: var(--lh-tight); }
.t-display-2 { font-size: var(--fs-display-2); line-height: 1.12; }
.t-display-3 { font-size: var(--fs-display-3); }

h3 { font-size: var(--fs-h3); }

h4, h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--ink);
}

p { max-width: 65ch; }
p + p { margin-top: var(--s-4); }

.t-lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--text-light);
  max-width: 38em;
}

.t-small { font-size: var(--fs-small); color: var(--text-light); }

.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--label);
}

/* mono eyebrow with leading rule. section opener */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--maroon);
  flex: none;
  align-self: center;
}

.eyebrow--plain { color: var(--label); }
.eyebrow--plain::before { background: var(--label); }

/* on-dark variants */
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--gold-soft); }
.on-dark p { color: var(--dark-text); }
.on-dark .eyebrow { color: var(--gold-soft); }
.on-dark .eyebrow::before { background: var(--gold-soft); }

/* centered mono callout line on dark bands */
.mono-note {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--dark-text);
}

/* --------------------------------------------------------------------------
   03 LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--text { max-width: var(--container-text); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: var(--section-pad-tight); }

.section--band { background: var(--cream-deep); }
.section--panel { background: var(--cream-bright); }
.section--ink { background: var(--ink); }
.section--rule-top { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(var(--s-6), 5vw, var(--s-7)); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-6), 5vw, var(--s-8)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }

@media (max-width: 56rem) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   04 HEADER & NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-wordmark);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--ink); }

/* narrow phones: the wordmark steps down so the header never forces the page wider */
@media (max-width: 23.75rem) {
  .brand { font-size: 0.9375rem; letter-spacing: 0.08em; }
  .site-header__inner { gap: var(--s-3); }
}

.site-nav { display: flex; align-items: center; gap: clamp(var(--s-4), 2.5vw, var(--s-6)); }

.site-nav a:not(.btn) {
  min-width: 24px;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  padding-block: var(--s-2);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.site-nav a:not(.btn):hover { color: var(--maroon); }

.site-nav a[aria-current="page"] {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-bright);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--container-pad) var(--s-6);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-body);
  }
  .site-nav .btn { margin-top: var(--s-4); justify-content: center; }
}

/* --------------------------------------------------------------------------
   05 FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--dark-text);
  padding-block: var(--s-8) var(--s-6);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--dark-line);
}

.site-footer .brand { color: var(--cream); font-size: 1.125rem; }

/* LinkedIn profile icon under the footer tagline. the padding keeps the tap target at least 24px square */
.site-footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  margin: var(--s-4) 0 0 -5px; padding: 5px;
  color: var(--white); opacity: 0.85; border-radius: var(--radius);
  transition: opacity var(--t-fast) var(--ease);
}
.site-footer__social:hover { opacity: 1; }
.site-footer__social svg { display: block; width: 22px; height: 22px; }

.site-footer__tag {
  margin-top: var(--s-3);
  font-size: var(--fs-small);
  color: var(--dark-label);
  max-width: 30ch;
}

.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s-4);
}

.site-footer__col a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer__col a {
  display: block;
  color: var(--dark-text);
  font-size: var(--fs-small);
  text-decoration: none;
  padding-block: var(--s-1);
}

.site-footer__col a:hover { color: var(--cream); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--dark-label);
}

.site-footer__legal a { color: var(--dark-label); display: inline-flex; align-items: center; min-height: 24px; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.site-footer__legal a:hover { color: var(--cream); }

@media (max-width: 56rem) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* --------------------------------------------------------------------------
   06 BUTTONS
   per kit: radius 4px, padding 13/22, ink bg, maroon hover
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--maroon); color: var(--cream); }

.btn--accent { background: var(--maroon); color: var(--cream); box-shadow: var(--shadow-btn); }
.btn--accent:hover { background: var(--maroon-deep); color: var(--cream); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.on-dark .btn--outline { color: var(--cream); border-color: var(--cream); }
.on-dark .btn--outline:hover { background: var(--cream); color: var(--ink); }

.btn--ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: 0.06em;
}
.btn--ghost:hover { color: var(--maroon); border-color: var(--maroon); }

.btn--block { width: 100%; }

/* quiet email link inside dark CTA bands */
.cta-mail {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--dark-text);
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 5px;
}
.cta-mail:hover { color: var(--cream); }

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

/* --------------------------------------------------------------------------
   07 PILLS & BADGES
   verifiable facts only. gold = earned honors, maroon = case categories
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream-bright);
  color: var(--text-light);
  white-space: nowrap;
}

.pill--scheme {
  background: var(--maroon-tint);
  border-color: var(--maroon);
  color: var(--maroon);
}

.pill--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream-bright);
}

.pill--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --------------------------------------------------------------------------
   08 CARDS
   -------------------------------------------------------------------------- */
/* numbered service card. inverts on hover */
.service-card {
  text-decoration: none;
  color: inherit;
  background: var(--cream-bright);
  border-top: 2px solid var(--ink);
  padding: var(--s-6) var(--s-5);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.service-card:hover {
  background: var(--ink);
  border-top-color: var(--maroon);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--maroon);
  margin-bottom: var(--s-5);
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.service-card__icon svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.5; }

.service-card h3 { margin-bottom: var(--s-3); transition: color var(--t-med) var(--ease); }

.service-card p {
  font-size: var(--fs-small);
  color: var(--text-light);
  transition: color var(--t-med) var(--ease);
}

.service-card:hover h3 { color: var(--cream); }
.service-card:hover p { color: var(--dark-text); }
.service-card:hover .service-card__icon { color: var(--gold-soft); border-color: rgba(195, 165, 96, 0.4); }

/* credential callout card */
.cred-card {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

/* home credential trio: a thin rule under the hero, thin dividers, no cards */
.cred-section { border-top: 1px solid var(--maroon); }
.cred-trio { gap: 0; }
.cred-trio .cred-card { padding: 0 var(--s-6); border-left: 1px solid var(--line); }
.cred-trio .cred-card:first-child { padding-left: 0; border-left: none; }
.cred-trio .cred-card:last-child { padding-right: 0; }
@media (max-width: 56rem) {
  .cred-trio { gap: var(--s-6); }
  .cred-trio .cred-card { padding: 0; border-left: none; }
}

.cred-card__icon {
  flex: none;
  margin-top: 2px;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--maroon);
}

.cred-card__icon svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.5; }

.cred-card h2, .cred-card h3 { font-size: 1.25rem; font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin-bottom: var(--s-1); }
.cred-card p { font-size: var(--fs-small); color: var(--text-light); }

/* --------------------------------------------------------------------------
   09 STATS, PULL QUOTE, ACCORDION
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: var(--s-6);
  background: var(--ink);
  padding: clamp(var(--s-6), 5vw, var(--s-7)) clamp(var(--s-5), 5vw, var(--s-7));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--maroon);
}

/* inline variant: no card, hairline frame + vertical dividers, centered.
   for stats sitting directly on an ink band */
.stats--inline {
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  padding: var(--s-6) 0;
  gap: 0;
}

.stats--inline::before { display: none; }

.stats--inline > div { text-align: center; padding: 0 var(--s-5); }

.stats--inline > div + div { border-left: 1px solid var(--dark-line); }

.stats--inline .stat__label {
  border-top: none;
  padding-top: 0;
  margin-top: var(--s-3);
  max-width: none;
  text-transform: none;
  letter-spacing: 0.08em;
}

@media (max-width: 40rem) {
  .stats--inline { padding: var(--s-5) 0; }
  .stats--inline > div + div {
    border-left: none;
    padding-top: var(--s-5);
    margin-top: var(--s-5);
    position: relative;
  }
  /* short centered hairline between stacked stats, quieter than a full rule */
  .stats--inline > div + div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1px;
    background: var(--dark-line);
  }
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-soft);
}

.stats--inline .stat__num { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }

.stat__num em { font-style: italic; }

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-label);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--dark-line);
  max-width: 14rem;
}

.pull-quote {
  border-left: 3px solid var(--maroon);
  background: var(--cream-bright);
  padding: clamp(var(--s-6), 5vw, var(--s-7));
  position: relative;
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 46ch;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: var(--s-5);
}

/* accordion (native details/summary) */
.accordion { border-top: 1px solid var(--line); }

.accordion details { border-bottom: 1px solid var(--line); }

.accordion summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink);
  letter-spacing: var(--ls-heading);
  transition: color var(--t-fast) var(--ease);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary:hover { color: var(--maroon); }

.accordion summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--label);
  transition: transform var(--t-fast) var(--ease);
}

.accordion details[open] summary::after { content: '−'; color: var(--maroon); }

.accordion__body { padding: 0 0 var(--s-6); max-width: 62ch; }
.accordion__body p, .accordion__body li { font-size: var(--fs-small); color: var(--text-light); }
.accordion__body ul { padding-left: 1.1rem; display: grid; gap: var(--s-2); }
.accordion__body h4 { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--ink); }
/* recognition/experience ledger: darker year anchors and firmer dividers so
   two awards sharing a year read as clearly separate entries */
.accordion__body .ledger__row { border-bottom-color: rgba(90, 85, 75, 0.3); }
.accordion__body .ledger__row dt { color: var(--text); }
/* the gold middot cleanly separates two case links under one award */
.case-sep { color: var(--gold); font-weight: 700; padding: 0 0.4em; }

/* --------------------------------------------------------------------------
   10 FORMS
   the intake should feel like filing a matter, not submitting a lead
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

@media (max-width: 40rem) { .form__row { grid-template-columns: 1fr; } }

.form__group { display: grid; gap: var(--s-2); }

.form__label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form__label small { color: var(--label); text-transform: none; letter-spacing: 0.04em; }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: var(--s-3) 0;
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}

.form__input::placeholder,
.form__textarea::placeholder {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--label);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-bottom-color: var(--maroon); }

/* selects get a filled, padded field so the control never sits flush
   against its border; text inputs keep the underline signature */
.form__select {
  appearance: none;
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.75rem 2.75rem 0.75rem 0.875rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A554B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.form__select:hover { background-color: var(--cream-bright); border-color: var(--label); border-bottom-color: var(--ink); }

.form__select:focus { border-bottom-color: var(--maroon); }

.form__select option {
  background: var(--cream-bright);
  color: var(--text);
  padding: 0.5rem 0.875rem;
}

.form__textarea { resize: vertical; min-height: 5rem; }

/* honeypot. hidden from humans, present for bots */
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* thank-you page. the wordmark, the message, and a thin legal footer, always exactly one screen tall.
   dvh follows the visible area on phones, where browser toolbars change the height. */
.page-thanks .thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.thanks__brand { display: flex; justify-content: center; padding: var(--s-6) var(--container-pad) 0; }
.thanks__main { flex: 1; display: grid; place-items: center; padding-block: var(--s-6); }
.page-thanks .thanks__footer { padding-block: var(--s-3); }
.page-thanks .thanks__footer .site-footer__legal { padding-top: 0; align-items: center; }
@media (max-width: 40rem) {
  /* two short centered rows on phones: the copyright, then the links */
  .page-thanks .thanks__footer .site-footer__legal {
    justify-content: center; text-align: center; column-gap: var(--s-3); row-gap: var(--s-1); font-size: 0.6875rem;
  }
  .page-thanks .thanks__footer .site-footer__legal > span:first-child { flex-basis: 100%; }
  .page-thanks .thanks__footer .site-footer__legal-links { gap: var(--s-3); }
}

/* a field the visitor needs to fix. the status message names it in words, so color is not the only signal */
.form__input[aria-invalid="true"],
.form__select[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-bottom-color: var(--maroon);
  box-shadow: 0 1px 0 var(--maroon);
}

.form__status {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  padding: var(--s-4);
  border-radius: var(--radius);
  display: none;
}

.form__status.is-error { display: block; background: var(--maroon-tint); color: var(--maroon); border: 1px solid var(--maroon); }
.form__status.is-success { display: block; background: rgba(0, 102, 51, 0.08); color: var(--green); border: 1px solid var(--green); }

/* --------------------------------------------------------------------------
   11 CASE PAGES & HUB
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--label);
  padding-block: var(--s-4);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }

.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: var(--s-2); color: var(--line); }

.breadcrumb a { color: var(--label); text-decoration: none; }
.breadcrumb a:hover { color: var(--maroon); }

.breadcrumb [aria-current="page"] { color: var(--text-light); }

/* service pages: the breadcrumb sits inside the hero where the eyebrow was */
.hero .breadcrumb { padding-block: 0; margin-bottom: var(--s-4); }

/* hub filter bar: slim inline row on desktop, dropdown on mobile */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  border-block: 1px solid var(--line);
  padding-block: var(--s-3);
  margin-bottom: var(--s-6);
}

.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--label);
  margin-right: var(--s-2);
  flex: none;
}

.filter-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  flex: 1;
  min-width: 0;
}

.filter-chip span { color: var(--label); }
.filter-chip[aria-pressed="true"] span { color: var(--gold-soft); }

.filter-bar__select { display: none; }

@media (max-width: 48rem) {
  .filter-bar__chips { display: none; }
  .filter-bar__select {
    display: block;
    flex: 1;
    font-size: var(--fs-small);
    padding-block: var(--s-2);
  }
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.375rem 0.5625rem;
  background: var(--cream-bright);
  color: var(--text-light);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.filter-chip:hover { border-color: var(--maroon); color: var(--maroon); }

.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--label);
  margin-bottom: var(--s-4);
}

/* case card on the hub */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: var(--s-5);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--cream-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.case-card:hover {
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--text);
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  min-height: 1.875rem;
}

.case-card__court {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--gold-text);
  white-space: nowrap;
}

.case-card__docket {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-mono);
  color: var(--label);
  white-space: nowrap;
}

/* compact meta type inside cards so pill + court always share one line */
.case-card .pill {
  font-size: 0.6875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* exactly one line per title: short "SEC v. Name, et al." captions, ellipsis as backstop */
.case-card h2, .case-card h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: initial;
  transition: color var(--t-fast) var(--ease);
}

.case-card:hover h3 { color: var(--maroon); }

/* uniform four-line slot: clamped and reserved, so every card reads identically */
/* summaries are written to sit around four lines; no clamp, so text stays
   whole when a reader increases spacing or text size (WCAG 1.4.12) */
.case-card__summary {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-light);
  flex: 1;
  min-height: 6.2em;
}

.case-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  border-top-color: rgba(196, 186, 160, 0.5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--ls-mono);
  color: var(--label);
  white-space: nowrap;
}

.case-card__decl { color: var(--gold-text); font-weight: 600; }

/* case detail page */
.case-hero { padding-block: var(--s-5) var(--section-pad-tight); }

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
}

@media (max-width: 56rem) { .case-layout { grid-template-columns: 1fr; } }

.case-title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; margin-block: var(--s-4) var(--s-3); }

.case-docket {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--text-light);
  margin-bottom: var(--s-5);
}

.case-section { margin-bottom: var(--s-5); }

.case-section > h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: var(--s-2);
}

.case-section p { font-size: var(--fs-small); line-height: 1.65; max-width: 62ch; }

.case-section ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: var(--s-1) var(--s-4);
  font-size: var(--fs-small);
  color: var(--text-light);
}

.case-section ul li { padding-left: var(--s-4); position: relative; }

.case-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--maroon);
}

.case-issuers {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  line-height: 1.8;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}

.case-issuers b { font-weight: 600; }

/* right column: the document card */
.doc-card {
  background: var(--cream-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
}

.doc-card__img {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.doc-card hr { margin: 0; }

.doc-meta { display: grid; gap: var(--s-1); }

.doc-meta__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: var(--s-2);
}

.doc-meta p {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--text-light);
  line-height: 1.7;
}

.doc-meta b { color: var(--text); font-weight: 600; }

/* prev / next case pager */
.case-pager {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  border-top: 1px solid var(--line);
  padding-block: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
}

.case-pager a { text-decoration: none; color: var(--text-light); display: inline-flex; align-items: center; min-height: 24px; }
.case-pager a:hover { color: var(--maroon); }

@media (max-width: 40rem) {
  .case-pager { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}

/* --------------------------------------------------------------------------
   11b PAGE PATTERNS (hero, figures, badges, timeline)
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}

@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }

.hero-figure {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.hero-figure img { width: 100%; object-fit: cover; }
/* homepage hero photo: trimmed a little off the top and bottom */
.hero-portrait { display: block; aspect-ratio: 1080 / 1089; object-position: 50% 53%; }

/* framed portrait with offset rule, for feature sections */
.figure-framed {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.figure-framed img { width: 100%; object-fit: cover; }
/* small profile photo above the disciplines text on the about page */
.about-profile { max-width: 8.5rem; margin-bottom: var(--s-5); }
/* the photo leads the left column; drop the right paragraph to start level
   with the heading, so the two text blocks align below the photo. the
   offset equals the photo's footprint (its 8.5rem height + margin) */
@media (min-width: 56.0625rem) {
  .about-disc > div:nth-child(2) { margin-top: calc(8.5rem + var(--s-5)); }
}

.figure-framed figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-4);
  background: linear-gradient(transparent, rgba(21, 19, 14, 0.82));
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* callout: emphasized aside in a tinted box with a maroon rule */
.callout {
  background: var(--cream-deep);
  border-left: 3px solid var(--maroon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s-5);
}

.callout p { max-width: none; }

/* credential badge chip: small bordered card with logo + mono label */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-bright);
  padding: var(--s-3) var(--s-4);
}

.badge-chip__logo { width: 2.3rem; height: 2.3rem; object-fit: contain; flex: none; }
.badge-chip__text { display: flex; flex-direction: column; line-height: 1.25; }
.badge-chip__title { font-size: 0.8125rem; font-weight: 500; color: var(--text); letter-spacing: 0.01em; }
.badge-chip__sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin-top: 2px; }

/* definition rows (experience, recognition lists) */
.ledger { border-top: 1px solid var(--line); }

.ledger__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.ledger__row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  padding-top: 0.2em;
}

.ledger__row dd { font-size: var(--fs-small); color: var(--text); max-width: 60ch; }
.ledger__row dd .t-small { display: block; margin-top: 2px; }

@media (max-width: 40rem) { .ledger__row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* CV: dates ride the label rail (aligned under the section heading) so the
   entry body gets the full remaining column width */
.ledger--rail { margin-top: var(--s-5); }
.ledger--rail .ledger__row {
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
}
.ledger--rail .ledger__row dt { color: var(--text); }
.ledger--rail .ledger__row dd { max-width: none; }
@media (max-width: 56rem) {
  .ledger--rail .ledger__row { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* --------------------------------------------------------------------------
   12 UTILITIES, MOTION, PRINT
   -------------------------------------------------------------------------- */
/* tabular figures wherever numbers line up against each other */
.t-mono, .case-docket, .doc-meta p, .breadcrumb, .pill,
.filter-chip, .stat__label, .case-card__foot, .ledger__row dt {
  font-variant-numeric: tabular-nums;
}

.u-center { text-align: center; }
.u-center p { margin-inline: auto; }
.u-measure { max-width: 65ch; }
.u-mt-2 { margin-top: var(--s-2); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-5 { margin-top: var(--s-5); }
/* homepage guide paragraphs: even out line lengths on phones so the
   paragraph doesn't end on two half-width lines */
@media (max-width: 40rem) { .guide-copy, .guide-callout p { text-wrap: balance; } }
/* homepage portrait: trimmed a little off the top and bottom so it sits shorter */
.guide-portrait { display: block; aspect-ratio: 1080 / 1155; object-fit: cover; object-position: 50% 39%; }
/* homepage guide callout: box stops just past its longest line in the
   two-column layout, without changing how the text wraps */
@media (min-width: 56.0625rem) { .guide-callout { max-width: 30.3rem; } }
/* homepage guide heading: break at the natural phrase ("...have to know /
   where to start.") instead of evening out the two lines */
.t-display-2.guide-heading { text-wrap: wrap; }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-gap-links { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
/* service-page hero: a little more room between the CTA and the CV link */
.hero > .container > .u-gap-links { column-gap: var(--s-6); }

@media (max-width: 40rem) {
  .u-gap-links { flex-direction: column; align-items: stretch; }
  .u-gap-links .cta-mail { text-align: center; }
}

/* for text that only screen readers need, such as the case filter result count */
.u-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
}

.skip-link:focus { left: var(--s-2); color: var(--cream); }

/* reveal on scroll. JS adds .is-visible; motion-reduced users see content instantly */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .filter-bar, .case-pager, .a11y-panel, .a11y-trigger { display: none !important; }
  body::before { display: none; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   13 ACCESSIBILITY
   quiet footer trigger + compact settings panel; settings persist and apply
   as data attributes on <html>
   -------------------------------------------------------------------------- */
.a11y-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-mono);
  color: var(--dark-label);
}

.a11y-trigger:hover, .a11y-trigger:focus-visible { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.a11y-panel {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 400;
  width: min(21rem, calc(100vw - 2rem));
  background: var(--cream-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(21, 19, 14, 0.20);
  padding: var(--s-5) var(--s-5) var(--s-4);
}

.a11y-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-3);
}

.a11y-panel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.a11y-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--label);
  padding: var(--s-1);
}

.a11y-close:hover { color: var(--maroon); }

.a11y-panel__head { border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); }
.a11y-row {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
}

.a11y-row__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.a11y-row__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.a11y-reset { margin-top: var(--s-3); }

/* the same controls, rendered inline on the accessibility page */
.a11y-inline {
  margin-top: var(--s-4);
  max-width: 32rem;
  background: var(--cream-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-2) var(--s-5) var(--s-5);
}

.a11y-inline .a11y-row:first-child { border-top: none; }

/* setting: text size */
html[data-a11y-fontsize="lg"] { font-size: 112.5%; }
html[data-a11y-fontsize="xl"] { font-size: 125%; }

/* setting: high contrast */
html[data-a11y-contrast="high"] {
  --text: #000000;
  --text-light: #232019;
  --label: #453F35;
  --cream: #FFFFFF;
  --cream-deep: #EFEBE1;
  --cream-bright: #FFFFFF;
  --fill: #EFEBE1;
  --line: #8B8578;
  --maroon: #5C1010;
  --gold: #6E5620;
  --dark-text: #FFFFFF;
  --dark-label: #D6CEBE;
  --dark-line: #453F35;
}

html[data-a11y-contrast="high"] body::before { display: none; }

/* setting: reduced motion */
html[data-a11y-motion="reduce"] *,
html[data-a11y-motion="reduce"] *::before,
html[data-a11y-motion="reduce"] *::after {
  transition: none !important;
  animation: none !important;
}

html[data-a11y-motion="reduce"] { scroll-behavior: auto; }

html[data-a11y-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }

/* setting: underlined links */
html[data-a11y-links="underline"] a { text-decoration: underline !important; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   14 TOOLTIPS
   one floating tip element; site.js moves titles into data-tip and
   positions this near the hovered or focused element
   -------------------------------------------------------------------------- */
.tip {
  position: fixed;
  z-index: 500;
  max-width: 17rem;
  text-wrap: balance;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(195, 165, 96, 0.35);
  border-radius: var(--radius);
  padding: 0.4375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(21, 19, 14, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.tip.is-visible { opacity: 1; transform: none; }

/* pretty wrapping: balance short display text and ledes to avoid orphan words */
.t-display-1, .t-display-2, .t-display-3, .t-lede { text-wrap: balance; }

/* floating one-page PDF download, bottom-right on service pages */
/* floating download: a quiet glass circle, arrow only; the tooltip and
   screen-reader label carry the words */
.pdf-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 300;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(251, 249, 243, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--maroon);
  border: 1px solid rgba(154, 123, 47, 0.35);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(21, 19, 14, 0.14);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.pdf-fab:hover { background: var(--cream-bright); border-color: var(--maroon); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 19, 14, 0.18); }
.pdf-fab:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.pdf-fab__icon { width: 1.15rem; height: 1.15rem; flex: none; }
.pdf-fab__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print { .pdf-fab { display: none !important; } }

/* service-page section: a label column beside a content column */
.svc-row { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: start; }
@media (max-width: 56rem) { .svc-row { grid-template-columns: 1fr; gap: var(--s-4); } }

/* youtube click-to-play facade (about page) */
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 1px solid var(--line); align-self: center; }
.video-embed__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-embed__btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.video-embed__btn:hover img, .video-embed__btn:focus-visible img { transform: scale(1.02); }
.video-embed__play { position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; transition: background var(--t-med) var(--ease); pointer-events: none; }
.video-embed__play svg { width: 1.1rem; height: 1.1rem; margin-left: 0.15rem; }
.video-embed__btn:hover .video-embed__play, .video-embed__btn:focus-visible .video-embed__play { background: var(--gold); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.conf-logo { display: block; width: min(9.5rem, 45%); height: auto; margin-top: var(--s-6); background: var(--ink); padding: 0.875rem 1.125rem; border-radius: var(--radius-md); }
@media (prefers-reduced-motion: reduce) { .video-embed__btn img { transition: none; } }

/* underlined text link with arrow (replaces ghost buttons on busy backgrounds) */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color var(--t-med) var(--ease), text-decoration-color var(--t-med) var(--ease);
}
.link-more:hover, .link-more:focus-visible { color: var(--maroon); text-decoration-color: var(--maroon); }
.link-more__arrow { transition: transform var(--t-med) var(--ease); }
.link-more:hover .link-more__arrow { transform: translateX(3px); }

/* serif statement line under a section heading */
.statement {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--maroon);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  margin-top: var(--s-4);
  max-width: 26ch;
}

/* competency list (expertise page) */
.svc-list { list-style: none; display: grid; gap: var(--s-3); max-width: 64ch; }
.svc-list li { position: relative; padding-left: var(--s-4); color: var(--text-light); line-height: 1.6; }
.svc-list li::before { content: '\25C6'; position: absolute; left: 0; top: 0.4em; font-size: 0.55em; color: var(--gold); }

/* compact cv-style page head (expertise) */
.page-head { padding: clamp(var(--s-7), 6vh, var(--s-8)) 0 0; }
.page-head__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; margin-top: var(--s-3); letter-spacing: 0.01em; }
.page-head__lede { max-width: 62ch; margin-top: var(--s-4); color: var(--text-light); font-size: 1.0625rem; line-height: 1.65; }
.page-head .container::after { content: ""; display: block; width: 88%; height: 1px; background: var(--line); opacity: 0.55; margin-top: var(--s-7); }
.page-head__specialties { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.875rem; row-gap: 0.5rem; margin-top: var(--s-6); font-size: 1.0625rem; color: var(--text); max-width: none; }
.page-head__specialties-label { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-light); margin-right: 0.25rem; }
.page-head__specialties-sep { color: var(--gold); font-size: 0.5em; }
/* small screens: the specialties stack as a short list with leading diamonds */
@media (max-width: 40rem) {
  .page-head__specialties { display: block; }
  .page-head__specialties-label { display: block; margin: 0 0 var(--s-2); }
  .page-head__specialties-sep { display: none; }
  .page-head__specialties > span:not(.page-head__specialties-label):not(.page-head__specialties-sep) {
    display: block;
    position: relative;
    padding-left: 1rem;
    margin-top: 0.375rem;
  }
  .page-head__specialties > span:not(.page-head__specialties-label):not(.page-head__specialties-sep)::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    top: 0.45em;
    font-size: 0.5em;
    color: var(--gold);
  }
}

/* expertise page: section dividers span the text column, not the viewport, and sit fainter */
.page-expertise .section--rule-top { border-top: 0; }
.page-expertise .section--rule-top > .container { position: relative; }
.page-expertise .section--rule-top > .container::before { content: ""; position: absolute; top: calc(-1 * var(--section-pad)); left: var(--container-pad); width: calc(88% - var(--container-pad)); height: 1px; background: var(--line); opacity: 0.55; }

/* expertise page: whisper-quiet head; the labeled side rail is the menu,
   so the substance of the first section lands in the initial viewport */
.page-map .page-head { padding-top: var(--s-5); }
.page-map .page-head__title { margin-top: 0; }
.page-map .page-head__lede { max-width: none; margin-top: var(--s-2); font-size: 1rem; }
.page-map .page-head .container::after { margin-top: var(--s-4); }
.page-map .section:not(.section--ink) { padding-block: var(--section-pad-tight); }
.page-map .section--rule-top > .container::before { top: calc(-1 * var(--section-pad-tight)); }

/* small screens: the rail is hidden, a compact jump dropdown takes over.
   trigger and panel mirror the header services dropdown */
.jump-menu { position: relative; display: none; }
@media (max-width: 64rem) { .page-map .jump-menu { display: inline-block; margin-top: var(--s-5); } }
.jump-menu__trigger {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: var(--cream-bright); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5625rem 1rem; cursor: pointer;
}
.jump-menu__trigger:hover, .jump-menu.is-open .jump-menu__trigger { border-color: var(--maroon); color: var(--maroon); }
.jump-menu__caret { font-size: 0.625rem; }
.jump-menu__list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 130;
  min-width: 16.5rem; max-height: 60vh; overflow-y: auto;
  background: var(--cream-bright); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--s-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.jump-menu.is-open .jump-menu__list { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s; }
.jump-menu__list a { display: block; padding: var(--s-2) var(--s-3); font-size: var(--fs-small); border-radius: var(--radius); color: var(--text); text-decoration: none; white-space: nowrap; }
.jump-menu__list a:hover { background: var(--maroon-tint); color: var(--maroon); }

/* the side rail carries permanent labels on wide screens */
.page-map .dot-nav { justify-items: end; gap: 0.6875rem; }
.page-map .dot-nav a { display: flex; align-items: center; min-height: 24px; gap: 0.5rem; width: auto; height: auto; border: 0; border-radius: 0; background: none; opacity: 1; transform: none; }
.page-map .dot-nav a.is-active { background: none; }
.page-map .dot-nav a:hover, .page-map .dot-nav a:focus-visible { transform: none; opacity: 1; }
.page-map .dot-nav a::after { content: ""; flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid var(--maroon); opacity: 0.4; transition: opacity var(--t-med) var(--ease), background var(--t-med) var(--ease); }
.page-map .dot-nav a:hover::after, .page-map .dot-nav a:focus-visible::after { opacity: 1; }
.page-map .dot-nav a.is-active::after { background: var(--maroon); opacity: 1; }
.dot-nav__label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; white-space: nowrap; color: var(--text-light); transition: opacity var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.page-map .dot-nav a:hover .dot-nav__label, .page-map .dot-nav a.is-active .dot-nav__label { opacity: 1; color: var(--ink); }
@media (max-width: 87.9375rem) { .dot-nav__label { display: none; } }

/* cv page: one continuous document, tighter rhythm between sections */
.page-cv .section:not(.section--ink) { padding-block: var(--section-pad-tight); }
.page-cv .section--rule-top > .container::before { top: calc(-1 * var(--section-pad-tight)); }
.page-cv .ledger--rail .ledger__row:last-child { border-bottom: 0; }

/* cv experience: serif date rail, role-heading presence, air before the first bullet */
.page-cv .ledger--rail .ledger__row dt { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.02em; text-transform: none; color: var(--text); }
.page-cv .ledger--rail dd > strong { display: block; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.page-cv .ledger--rail dd > .t-small { font-style: italic; margin-top: 0.3125rem; }

/* section jump chips (page head) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: var(--s-6); }
.chip-nav a { display: inline-block; padding: 0.375rem 0.875rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-light); text-decoration: none; transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease); }
.chip-nav a:hover, .chip-nav a:focus-visible { color: var(--maroon); border-color: var(--maroon); background: rgba(110, 26, 26, 0.04); }

/* fixed section dot nav (expertise), pinned at vertical center */
.dot-nav { position: fixed; right: clamp(0.75rem, 2vw, 1.75rem); top: 50%; transform: translateY(-50%); display: grid; gap: 0.8125rem; z-index: 80; transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.dot-nav--hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--t-med) var(--ease), visibility 0s; }
.dot-nav a { display: block; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid var(--maroon); background: transparent; opacity: 0.4; transition: opacity var(--t-med) var(--ease), background var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.dot-nav a:hover, .dot-nav a:focus-visible { opacity: 1; transform: scale(1.3); }
.dot-nav a.is-active { background: var(--maroon); opacity: 1; }
main section[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 64rem) { .dot-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .dot-nav a { transition: none; } }

/* declarations, grouped by matter */
.decl-matter { padding-block: var(--s-6); border-top: 1px solid var(--line); }
.decl-matter:first-child { padding-top: 0; border-top: none; }
.decl-matter__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3) var(--s-4); flex-wrap: wrap; }
.decl-matter__name { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.15; color: var(--ink); }
/* the matter name links to the full case page; give it a clear, leading
   affordance so it reads as the primary click, above the PDF declarations */
.decl-matter__name a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.decl-matter__name a::after {
  content: '\2192';
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--maroon);
  font-size: 0.85em;
  transition: transform var(--t-fast) var(--ease);
}
.decl-matter__name a:hover,
.decl-matter__name a:focus-visible {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.decl-matter__name a:hover::after,
.decl-matter__name a:focus-visible::after { transform: translateX(4px); }
.decl-matter__court { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.decl-item { margin-top: var(--s-4); padding-left: var(--s-4); border-left: 1px solid var(--line); }
.decl-item + .decl-item { margin-top: var(--s-5); }
.decl-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); }
.decl-item__head a { font-weight: 600; color: var(--maroon); text-decoration: none; }
.decl-item__head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.decl-item__doc { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.04em; color: var(--label); }
.decl-item__desc { font-size: var(--fs-small); color: var(--text-light); line-height: 1.6; max-width: 62ch; margin-top: var(--s-2); }

/* nav services dropdown: opens on hover/focus, the label itself is not a link */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop__label {
  font-family: inherit; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
  color: var(--text); background: none; border: 0; text-align: left; cursor: pointer;
  padding: var(--s-2) 0; display: inline-flex; align-items: center; gap: 5px;
}
.nav-drop__label::after { content: none; }
.nav-drop__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 13.5rem; background: var(--cream-bright); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--s-2);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 130;
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.nav-drop.is-closed .nav-drop__menu { opacity: 0; visibility: hidden; transition: none; }
/* hover forgiveness: an invisible bridge over the gap and a short close delay,
   so the menu survives the cursor crossing from label to menu */
@media (hover: hover) {
  .nav-drop__menu { transition: opacity var(--t-fast) var(--ease) 0.25s, transform var(--t-fast) var(--ease) 0.25s, visibility 0s linear 0.4s; }
  .nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s; }
  .nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}
.nav-drop__menu a, .nav-drop__menu .nav-drop__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-2) var(--s-3); font-size: var(--fs-small); border-radius: var(--radius);
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.nav-drop__menu a:hover { background: var(--maroon-tint); color: var(--maroon); }
.nav-drop__menu a[aria-current="page"] { color: var(--maroon); font-weight: 600; }
.nav-drop__item.is-disabled { color: var(--label); cursor: default; }
.nav-drop__soon {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--label); border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px;
}

/* topic frames: the types of matters Joe opines on */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); }
@media (max-width: 40rem) { .topic-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.topic { padding-top: var(--s-3); border-top: 2px solid var(--maroon); }
.topic h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.15; color: var(--ink); }
.topic p { font-size: var(--fs-small); color: var(--text-light); line-height: 1.6; margin-top: var(--s-2); max-width: none; }

/* premium expandable accordion: skills / expertise outline */
.accord { border-top: 1px solid var(--line); }
.accord__item { border-bottom: 1px solid var(--line); }
.accord__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  background: none; border: none; cursor: pointer; text-align: left; color: var(--ink);
  padding: var(--s-5) 2px var(--s-5) 0;
  transition: color var(--t-fast) var(--ease);
}
.accord__trigger:hover, .accord__item.is-open .accord__trigger { color: var(--maroon); }
.accord__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; }
.accord__icon { position: relative; flex: none; width: 1.125rem; height: 1.125rem; }
.accord__icon::before, .accord__icon::after {
  content: ''; position: absolute; background: var(--maroon); border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.accord__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accord__icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.accord__item.is-open .accord__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accord__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.accord__item.is-open .accord__panel { grid-template-rows: 1fr; }
/* collapsed panels are clipped to zero height, so they must also be hidden from
   screen readers. visibility flips only after the panel has finished closing. */
.accord__inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--t-med); }
.accord__item.is-open .accord__inner { visibility: visible; transition: visibility 0s; }
.accord__body { padding: 0 0 var(--s-6); max-width: 64ch; }
.accord__body p { color: var(--text-light); font-size: var(--fs-small); line-height: 1.6; }
.accord__list { list-style: none; margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.accord__list li { position: relative; padding-left: var(--s-4); font-size: var(--fs-small); color: var(--text-light); line-height: 1.5; }
.accord__list li::before { content: '\25C6'; position: absolute; left: 0; top: 0.35em; font-size: 0.6em; color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .accord__panel, .accord__icon::before, .accord__icon::after { transition: none; }
  .accord__inner { transition: none; }
}
@media (max-width: 56rem) {
  .nav-drop { display: block; width: 100%; }
  .nav-drop__label { display: flex; width: 100%; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
  .nav-drop__label::after { margin-left: auto; }
  .nav-drop__menu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; background: transparent; padding: var(--s-2) 0 var(--s-3) var(--s-4); min-width: 0;
    transition: none;
  }
  /* in the stacked mobile menu the submenu is always visible and never moves;
     these match the desktop hover/focus rules' specificity so nothing slides */
  .nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { transform: none; transition: none; }
  .nav-drop.is-closed .nav-drop__menu { opacity: 1; visibility: visible; }
  .nav-drop__menu::before { display: none; }
  .nav-drop__menu a, .nav-drop__menu .nav-drop__item { padding: var(--s-3) 0; }
}

/* --------------------------------------------------------------------------
   14 USER PREFERENCES FROM THE OPERATING SYSTEM
   the accessible path is to honor what a reader has already set for
   themselves, not to ask them to configure this site separately
   -------------------------------------------------------------------------- */

/* Windows Contrast Themes / forced colors. The browser replaces our palette,
   and it also drops box-shadow, so anything that relied on a shadow for its
   edge needs a real border to stay visible. */
@media (forced-colors: active) {
  .case-card,
  .doc-card,
  .cred-card,
  .service-card,
  .section--panel,
  .a11y-panel,
  .jump-menu__list,
  .nav-drop__menu { border: 1px solid CanvasText; }

  .pdf-fab { border: 1px solid CanvasText; background: Canvas; color: LinkText; }
  .pdf-fab__icon { forced-color-adjust: auto; }

  :focus-visible { outline: 3px solid CanvasText; outline-offset: 2px; }

  .btn--primary,
  .btn--outline,
  .btn--ghost { border: 1px solid ButtonText; }

  /* gold diamonds and hairlines carry meaning in lists, so keep them drawn */
  .svc-list li::before,
  .accord__list li::before { color: CanvasText; }

  .skip-link:focus { border: 2px solid CanvasText; }
}

/* readers who asked their OS for more contrast get firmer lines and
   full-strength secondary text */
@media (prefers-contrast: more) {
  :root {
    --text-light: #3D3931;
    --label: #4A463E;
    --line: #B3AB96;
  }
  .dot-nav__label { color: var(--text); }
  .page-expertise .section--rule-top > .container::before,
  .page-head .container::after { opacity: 1; }
  :focus-visible { outline-width: 3px; }
}
