/* ========== Susannah Walton — Design System ========== */
:root {
  /* Palette: Slate & Sage (light), the scheme chosen in the design.
     ink-60, gold and gold-dk nudged darker/lighter to clear WCAG AA text contrast. */
  --stone-50:  #ECECE8;
  --stone-100: #DFE0DB;
  --stone-200: #C7C9C2;
  --stone-300: #A9ACA4;
  --ink:       #242826;
  --ink-80:    #363B38;
  --ink-60:    #575E5A;   /* 5.6:1 on stone-50, 5.0:1 on stone-100 */
  --ink-40:    #8A918D;
  --gold:      #8A9E8A;   /* sage accent; 5.2:1 on ink */
  --gold-dk:   #506250;   /* 5.5:1 on stone-50 */
  --sage:      #363B38;
  --accent:    #363B38;
  /* the same colours as r, g, b for translucent rules and overlays */
  --paper-rgb: 236, 236, 232;   /* stone-50 */
  --ink-rgb:   36, 40, 38;
  --gold-rgb:  138, 158, 138;
  --deep-rgb:  10, 16, 12;      /* deepest shade, behind photo overlays */

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Inter Tight', 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Review builds can swap the display serif (tools/fonts.json); --serif-adjust then scales the
     other face so its x-height sits near Cormorant's and headings keep their drawn size. */
  --serif-adjust: none;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Navy: the alternative palette on the review switch (data-palette="navy"; launch fixes it
   from config.json "palette"). Same roles and contrast as sage: ink-60 5.9:1 on stone-50,
   5.3:1 on stone-100; gold 6.4:1 on ink; gold-dk 6.2:1 on stone-50. The imagery tones for
   each palette are in tools/palettes.json: keep the two in step. */
html[data-palette="navy"] {
  --stone-50:  #ECEDEE;
  --stone-100: #DEE1E6;
  --stone-200: #C4CAD3;
  --stone-300: #A6AEBC;
  --ink:       #1B2538;
  --ink-80:    #2C3852;
  --ink-60:    #4D5A74;
  --ink-40:    #8791A6;
  --gold:      #93A9CF;
  --gold-dk:   #3D5688;
  --sage:      #2C3852;
  --accent:    #2C3852;
  --paper-rgb: 236, 237, 238;
  --ink-rgb:   27, 37, 56;
  --gold-rgb:  147, 169, 207;
  --deep-rgb:  8, 12, 22;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--sans); font-size-adjust: none;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-weight: 400;
  font-style: italic;
  line-height: .92;
  letter-spacing: -0.02em;
  font-size: clamp(56px, 11vw, 180px);
}
.h-display .roman { font-style: normal; letter-spacing: -0.04em; }

.h1 {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 400;
}
.lede {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-80);
  font-weight: 400;
}
.body { font-size: 16px; line-height: 1.65; color: var(--ink-80); }
.small { font-size: 13px; line-height: 1.5; color: var(--ink-60); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.row { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); }
.divider { height: 1px; background: var(--ink); opacity: .15; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .3s var(--ease);
  mix-blend-mode: normal;
}
.nav .mark { margin-right: auto; }
.nav.scrolled {
  background: rgba(var(--paper-rgb), 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
}
.nav.on-dark { color: var(--stone-50); }
.nav.on-dark.scrolled { color: var(--ink); }

.mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  letter-spacing: -0.01em;
}
.mark .mark-name {
  font-size: 22px;
  font-style: italic;
}
/* The logo (tools/brand.mjs), cut in Cormorant's own stroke weights. It stands on the name's
   baseline. Review builds carry every option and show the one picked (data-logo). */
.logo-mark { fill: currentColor; flex: none; width: auto; }
.logo-mark[data-logo-opt] { display: none !important; }
html[data-logo="peaks"] .logo-mark[data-logo-opt="peaks"],
html[data-logo="columns"] .logo-mark[data-logo-opt="columns"],
html[data-logo="reflection"] .logo-mark[data-logo-opt="reflection"],
html[data-logo="portico"] .logo-mark[data-logo-opt="portico"] { display: block !important; }
.mark .logo-mark { height: 21px; margin-right: 2px; }
.mark :is(.logo-reflection, .logo-portico) { height: 30px; }
.mark .mark-kind {
  font-family: var(--mono); font-size-adjust: none;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: inherit;
  opacity: .7;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--stone-50); border-color: var(--ink); }
.nav.on-dark .nav-cta:hover { background: var(--stone-50); color: var(--ink); }

.nav-links { display: none !important; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--mono); font-size-adjust: none;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .9;
  transition: opacity .25s var(--ease), background .3s, color .3s;
  margin-left: 6px;
}
.burger:hover { opacity: 1; background: currentColor; }
.burger:hover .burger-icon span,
.burger:hover .burger-label { filter: invert(1); }
.burger-icon {
  position: relative;
  width: 18px; height: 12px;
  display: inline-block;
}
.burger-icon span {
  position: absolute; left: 0; right: 0;
  height: 1px; background: currentColor;
  transition: transform .35s var(--ease), top .3s var(--ease), opacity .2s;
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 50%; }
.burger-icon span:nth-child(3) { top: 100%; }
.burger-label { letter-spacing: 0.22em; }

body.menu-open .burger-icon span:nth-child(1) { top: 50%; transform: rotate(45deg); }
body.menu-open .burger-icon span:nth-child(2) { opacity: 0; }
body.menu-open .burger-icon span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .burger-label { display: none; }
  .burger { padding: 10px 12px; }
}
@media (max-width: 540px) {
  .nav-cta { display: none; }
}

/* Side drawer menu */
.menu-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
  z-index: 140;
}
.menu-scrim.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 88vw);
  background: var(--ink);
  color: var(--stone-50);
  z-index: 150;
  padding: 120px 44px 60px;
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  box-shadow: -40px 0 80px rgba(0,0,0,.4);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-size: clamp(28px, 4.2vw, 42px);
  font-style: italic;
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb),.1);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.mobile-menu a::before {
  content: attr(data-num);
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: .7;
  font-style: normal;
}
.mobile-menu a:hover { color: var(--gold); padding-left: 14px; }
.mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu a[aria-current="page"]::before { opacity: 1; }

.mobile-menu .mm-head {
  font-family: var(--mono); font-size-adjust: none;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb),.55);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--paper-rgb),.1);
}
.mobile-menu .mm-foot {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(var(--paper-rgb),.5);
  line-height: 1.8;
  border: none;
  display: block;
}
.mobile-menu .mm-foot a {
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px;
  padding: 0;
  border: none;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-style: normal;
  display: inline;
}
.mobile-menu .mm-foot a::before { content: none; }
.mobile-menu .mm-foot a:hover { padding-left: 0; color: var(--stone-50); }
.mobile-menu .close {
  position: absolute; top: 28px; right: 32px;
  background: transparent; border: 1px solid rgba(var(--paper-rgb),.25);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--stone-50); cursor: pointer;
  font-family: var(--mono); font-size-adjust: none; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.mobile-menu .close:hover { background: var(--stone-50); color: var(--ink); }
.mobile-menu .close--legacy {
  font-family: var(--mono); font-size-adjust: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 70;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .1s linear;
}

/* ---------- Side dot nav ---------- */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column; gap: 14px;
  mix-blend-mode: difference;
  color: var(--stone-50);
}
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size-adjust: none; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: .4;
  transition: opacity .3s var(--ease);
}
.side-nav a .dot {
  width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor;
  transition: background .3s var(--ease);
}
.side-nav a.active { opacity: 1; }
.side-nav a.active .dot { background: currentColor; }
.side-nav a .lbl { opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.side-nav a:hover .lbl, .side-nav a.active .lbl { opacity: 1; transform: translateX(0); }
@media (max-width: 1100px) { .side-nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--stone-50);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease);
  position: relative;
  will-change: transform;
}
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover { background: var(--ink-80); }
.btn:hover .arrow { transform: translateX(6px); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--stone-50); border-color: var(--ink); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-dk); color: var(--stone-50); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--stone-100);
  padding: 100px var(--pad) 40px;
  margin-top: 120px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 860px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono); font-size-adjust: none;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px 0; font-weight: 400;
}
.footer a { display: block; padding: 6px 0; opacity: .8; transition: opacity .2s; font-size: 14px; }
.footer a:hover { opacity: 1; }
.footer .sig {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-style: italic; font-size: 48px; line-height: 1;
  margin: 0 0 20px;
}
.footer .foot-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--paper-rgb), .15);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size-adjust: none; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-300);
}

/* ---------- Utility ---------- */
.split-reveal { overflow: hidden; display: inline-block; }
.split-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s var(--ease) forwards;
}
@keyframes rise { to { transform: translateY(0); } }
.delay-1 > span { animation-delay: .08s; }
.delay-2 > span { animation-delay: .16s; }
.delay-3 > span { animation-delay: .24s; }
.delay-4 > span { animation-delay: .32s; }
.delay-5 > span { animation-delay: .40s; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.fade-in.in { opacity: 1; transform: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size-adjust: none; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-60); }
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-40);
  padding: 10px 0;
  font-family: var(--sans); font-size-adjust: none; font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-dk); }
.field textarea { resize: vertical; min-height: 80px; }

/* ---------- Magnetic cursor ---------- */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: normal;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cursor.big { width: 56px; height: 56px; background: rgba(var(--gold-rgb),0.35); }
@media (max-width: 900px), (hover: none) { .cursor { display: none; } }

/* ---------- Practice cards reveal ---------- */
.practice-card {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.18);
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 40px;
  gap: 32px;
  align-items: start;
  cursor: pointer;
  transition: padding .5s var(--ease);
  overflow: hidden;
}
.practice-card:last-child { border-bottom: 1px solid rgba(var(--ink-rgb), 0.18); }
.practice-card .num {
  font-family: var(--mono); font-size-adjust: none; font-size: 12px; color: var(--ink-60); padding-top: 8px;
}
.practice-card .title {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.02em;
  transition: transform .6s var(--ease), color .4s var(--ease);
}
.practice-card .title em { font-style: italic; color: var(--ink-80); }
.practice-card .desc {
  color: var(--ink-60); font-size: 15px; line-height: 1.6;
  max-height: 0;
  opacity: 0;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .5s var(--ease);
  overflow: hidden;
}
.practice-card .plus {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 32px; color: var(--ink-60);
  transition: transform .5s var(--ease), color .3s var(--ease);
}
.practice-card:hover { padding: 48px 0; }
.practice-card:hover .title { transform: translateX(16px); }
.practice-card:hover .plus { transform: rotate(45deg); color: var(--gold-dk); }
.practice-card:hover .desc { max-height: 200px; opacity: 1; margin-top: 18px; }

/* Image placeholders */
.ph {
  background: var(--stone-200);
  background-image:
    repeating-linear-gradient(45deg, rgba(var(--ink-rgb),.05) 0 1px, transparent 1px 10px);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size-adjust: none; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-60);
}

/* Media aspect */
.media {
  position: relative;
  overflow: hidden;
  background: var(--stone-200);
}
.media img, .media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.media:hover img, .media:hover video { transform: scale(1.04); }

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  gap: 48px;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.15);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee span {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-style: italic;
  font-size: 32px;
  color: var(--ink-80);
}
.marquee .dot { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero utility ---------- */
.page-hero {
  padding: 180px var(--pad) 80px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
}
.page-hero .eyebrow { margin-bottom: 18px; display: block; }
.page-hero h1 { margin: 0; }

.quote {
  font-family: var(--serif); font-size-adjust: var(--serif-adjust);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote em { color: var(--ink-80); }

/* =========================================================
   ACCESSIBILITY LAYER — WCAG 2.1 AAA
   ========================================================= */

/* Skip to main content — visually hidden until focused */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  background: var(--ink);
  color: var(--stone-50);
  padding: 14px 22px;
  border: 2px solid var(--gold);
  border-radius: 0 0 6px 6px;
  font-family: var(--mono); font-size-adjust: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
  transition: transform .25s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus for EVERY interactive element — 3px solid + 3px offset.
   Uses two-tone ring so it is visible on any background. */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid #F3C46B !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.55) !important;
  border-radius: 4px;
}

/* Ensure form fields have strong, AAA-compliant focus */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid #F3C46B !important;
  outline-offset: 2px !important;
  border-bottom-color: var(--ink) !important;
  border-bottom-width: 2px !important;
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track,
  .scroll-progress,
  .side-nav { animation: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .split-reveal span { transform: none !important; }
}

/* --- Contrast upgrades ------------------------------------
   Tokens above were bumped so default rules already clear AAA.
   We do NOT force text color on .body/.eyebrow/etc here — those
   classes appear inside both light AND dark sections, so any
   blanket override would break the dark ones. Dark-section
   colours live in the .dark-band, mobile-menu and footer
   blocks, where context is known.
-------------------------------------------------------------- */

/* Mono/eyebrow labels must be at least 12px for legibility */
.eyebrow { font-size: 12px; }
.mark .mark-kind { font-size: 11px; letter-spacing: 0.24em; }
.burger { font-size: 11px; padding: 11px 16px; }
.burger-label { font-size: 11px; }
/* Dark-surface chrome (mobile menu, footer) — keep AAA on dark bg */
.mm-head { font-size: 11px; color: rgba(var(--paper-rgb),.9); }
.mm-foot { color: rgba(var(--paper-rgb),.85); font-size: 12px; }
.mobile-menu a::before { opacity: 1; color: var(--gold); font-size: 12px; }
.footer a { opacity: 1; color: var(--stone-100); font-size: 15px; }
.footer h4 { color: var(--gold); font-size: 12px; }
.foot-bottom { color: var(--stone-100); font-size: 12px; }

/* Side dot nav was .4 opacity — not readable. Strengthen. */
.side-nav a { opacity: .7 !important; }
.side-nav a.active,
.side-nav a:hover,
.side-nav a:focus-visible { opacity: 1 !important; }

/* Body links inside prose must be underlined (WCAG 1.4.1 / 2.4.9) */
p a,
.body a,
.lede a,
.mm-foot a,
footer a[href^="mailto:"],
footer a[href^="tel:"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
p a:hover, .body a:hover, .lede a:hover { text-decoration-thickness: 2.5px; }

/* Strengthen hero overlays so text reads over any imagery.
   We add a secondary solid-ish ink layer via ::after on hero sections. */
section[style*="var(--ink)"]::after,
section[style*="var(--ink-80)"]::after { content: none; }

/* Increase the existing gradient overlays to ensure 7:1 on text */
.hero-overlay-strong {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--deep-rgb),.75) 0%, rgba(var(--deep-rgb),.55) 45%, rgba(var(--deep-rgb),.92) 100%);
  z-index: 1;
}

/* Hero legibility is handled structurally:
   - hero images use reduced opacity (~0.28) and a darkening filter
   - hero overlays use a darker gradient (>=0.6 alpha minimum)
   No text-shadow is applied — contrast is earned by the scrim, not faked. */

/* Body line-height bump (WCAG AAA 1.4.8) */
.body, p { line-height: 1.7 !important; }
.lede { line-height: 1.55 !important; }

/* Reading width ≤ 80 characters (WCAG 1.4.8) */
.body, p.body, .lede { max-width: 75ch; }

/* Respect user text-spacing overrides (WCAG 1.4.12) */
body {
  word-spacing: 0.02em;
}

/* Form errors / required indicators must not rely on color alone */
.field label .req {
  color: var(--ink) !important;
  font-weight: 600;
  margin-left: 4px;
}
.field label .req::before { content: "(required)"; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }

/* Minimum target size 44×44 (WCAG 2.5.5 AAA) */
.nav-cta,
.burger,
.nav .mark,
.mobile-menu .close {
  min-height: 44px;
  align-items: center;   /* display stays with each component, so the phone rule can hide .nav-cta */
}

/* High-contrast mode support */
@media (prefers-contrast: more) {
  :root {
    --ink-80: #000 !important;
    --ink-60: #1a1a1a !important;
    --stone-50: #ffffff !important;
    --stone-100: #f5f5f5 !important;
  }
  .nav, .footer { border-color: currentColor !important; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 720px) {
  .practice-card { grid-template-columns: 40px 1fr 32px; gap: 16px; }
  .practice-card .desc-col { grid-column: 2 / 4; }
}


/* =========================================================
   LAUNCH BUILD (2026-11)
   Components moved out of the per-page <style> blocks, the
   phone layout the export lacked, and review fixes.
   ========================================================= */

/* Without JS nothing waits for a scroll reveal */
.no-js .fade-in { opacity: 1; transform: none; }

/* Arrows are inline SVG: a text "→" draws blank on macOS (Arial claims the glyph) */
.arrow { display: inline-block; }
.i-arrow { display: block; width: .7em; height: .7em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dark bands ---------- */
.dark-band { background: var(--ink); color: var(--stone-50); position: relative; overflow: hidden; }
.dark-band .eyebrow { color: var(--stone-200); }
.dark-band .eyebrow.accent, .dark-band .accent { color: var(--gold); }
.dark-band .lede, .dark-band .body { color: var(--stone-200); }
.dark-band .h1, .dark-band .h2, .dark-band .quote { color: var(--stone-50); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 85% 8%, rgba(var(--gold-rgb), .16), transparent 65%),
    radial-gradient(70% 60% at 0% 100%, rgba(0, 0, 0, .32), transparent 70%);
}

/* ---------- Home hero ---------- */
.hero, .hero-inner { min-height: 100vh; min-height: 100svh; }
.hero-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-top: 40px; gap: 24px; flex-wrap: wrap; }
.hero-creds { text-align: right; max-width: 320px; line-height: 1.9; }
.hero .h-display, .practice-hero .h-display { color: var(--stone-50); margin: 0; }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-top: 80px; align-items: end; border-top: 1px solid rgba(var(--paper-rgb), .2); padding-top: 32px; }
.hero-foot .eyebrow { margin-bottom: 14px; }
.hero-list { font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 22px; line-height: 1.4; }
.hero-approach { margin: 0; max-width: 320px; }
.hero-cta { display: flex; justify-content: flex-end; }
.scroll-hint { position: absolute; left: var(--pad); bottom: 24px; z-index: 3; font-family: var(--mono); font-size-adjust: none; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-300); display: flex; align-items: center; gap: 10px; }
.scroll-hint span { width: 24px; height: 1px; background: var(--gold); }

/* ---------- Practice-page hero ---------- */
.practice-hero, .practice-hero-inner { min-height: 86vh; min-height: 86svh; }
.practice-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 160px; padding-bottom: 80px; }

/* ---------- Shared pieces ---------- */
.btn-row { margin-top: 48px; display: flex; gap: 24px; flex-wrap: wrap; }
.btn-lg { font-size: 13px; padding: 22px 36px; }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.footer .sig-dot { color: var(--gold); }
.footer .sig-mark .logo-mark { display: block; height: 40px; fill: var(--gold); margin: 0 0 28px; }
.footer .sig-mark :is(.logo-reflection, .logo-portico) { height: 64px; }
.footer .small { color: var(--stone-300); max-width: 280px; }
.footer-grid > div > .small { margin-top: 12px; }
.foot-h { font-family: var(--mono); font-size-adjust: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; font-weight: 400; }

/* Portrait (placeholder until her photo arrives; swap for an <img>) */
.portrait { aspect-ratio: 4 / 5; }
.portrait img { object-position: center top; }
.portrait-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--stone-200);
  background-image: repeating-linear-gradient(45deg, rgba(var(--ink-rgb), .06) 0 1px, transparent 1px 10px);
}
.portrait-ph span { font-family: var(--mono); font-size-adjust: none; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); }

/* Home: education summary */
.edu-mini { border-top: 1px solid rgba(var(--ink-rgb), .15); padding-top: 24px; }
.edu-mini-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .1); }
.edu-mini-row:last-child { border-bottom: 0; }
.edu-mini strong { font-weight: 500; }

/* ---------- About ---------- */
.exp { border-top: 1px solid rgba(var(--ink-rgb), .18); }
.exp-row { display: grid; grid-template-columns: 200px 1.2fr 1.6fr 1fr; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .14); transition: padding .4s var(--ease), background .4s var(--ease); }
.exp-row:hover { padding: 36px 8px; background: rgba(var(--gold-rgb), .08); }
.exp-years, .exp-dur, .edu-years { font-family: var(--mono); font-size-adjust: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }
.exp-role, .edu-name { font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 26px; letter-spacing: -0.01em; }
.exp-org { font-size: 15px; color: var(--ink-80); }
.exp-loc { display: block; font-size: 12px; color: var(--ink-60); margin-top: 4px; font-family: var(--mono); font-size-adjust: none; letter-spacing: .12em; text-transform: uppercase; }
.exp-dur { text-align: right; }
.edu-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid rgba(var(--ink-rgb), .15); }
.edu-row:last-child { border-bottom: 1px solid rgba(var(--ink-rgb), .15); }
.edu-years { padding-top: 4px; }
.edu-org { font-size: 15px; color: var(--ink-80); margin-top: 4px; }
.edu-focus { font-size: 13px; color: var(--ink-60); margin-top: 10px; font-style: italic; }
.members { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.member { padding: 24px 0; font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 28px; letter-spacing: -0.01em; border-bottom: 1px solid rgba(var(--paper-rgb), .15); }

/* ---------- Services ---------- */
.hr-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(var(--ink-rgb), .15); }
.hr-list li { border-bottom: 1px solid rgba(var(--ink-rgb), .15); padding: 20px 0; font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 20px; line-height: 1.35; display: flex; gap: 16px; align-items: baseline; }
.hr-list li::before {
  content: ""; flex: none; width: 12px; height: 12px; background: var(--gold-dk);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h11.5M8 2.5 12.5 7 8 11.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h11.5M8 2.5 12.5 7 8 11.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-sec { padding: 140px 0; border-top: 1px solid rgba(var(--ink-rgb), .15); scroll-margin-top: 40px; }
.svc-sec.alt { background: var(--stone-100); }
.svc-num { font-family: var(--mono); font-size-adjust: none; font-size: 12px; letter-spacing: .16em; color: var(--gold-dk); margin-bottom: 20px; }
.svc-jump { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(var(--paper-rgb), .2); }
.svc-jump a { font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 24px; color: var(--stone-50); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.svc-jump a:hover { border-color: var(--gold); }
.svc-jump span { font-family: var(--mono); font-size-adjust: none; font-size: 11px; letter-spacing: .16em; color: var(--gold); margin-right: 8px; vertical-align: middle; }

/* ---------- Picture bands (imagery comes from imagery.css) ---------- */
.dark-band > .wrap { position: relative; z-index: 2; }
.img-band { padding: 180px 0; }
.img-band .lede { color: var(--stone-50); }

/* Outbound links (schools, professional bodies) */
.ext { border-bottom: 1px solid rgba(var(--ink-rgb), .35); transition: border-color .3s var(--ease), color .3s var(--ease); }
.ext:hover { color: var(--gold-dk); border-color: currentColor; }
.dark-band .ext { border-color: rgba(var(--paper-rgb), .35); }
.dark-band .ext:hover { color: var(--gold); }
.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; }

/* ---------- Contact ---------- */
.contact-grid { gap: 64px; }
.contact-block { margin-top: 20px; }
.contact-line { font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: 22px; line-height: 1.5; letter-spacing: -0.005em; }
.contact-link { font-family: var(--serif); font-size-adjust: var(--serif-adjust); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.01em; display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; border-bottom: 1px solid currentColor; transition: color .3s var(--ease); }
.contact-link:hover { color: var(--gold-dk); }
.form-card { padding: 48px; background: var(--stone-100); border: 1px solid rgba(var(--ink-rgb), .1); }
.form-card .field label { text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size-adjust: none; font-size: 13px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23363B38' stroke-width='1.3'/%3E%3C/svg%3E") right 2px center / 12px no-repeat; border-radius: 0; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; line-height: 1.5 !important; color: var(--ink-60); margin: 8px 0 16px; }
.form-status { margin-top: 16px; font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { color: #7A2323; }
.form-status.is-error a { color: inherit; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Privacy prose ---------- */
.prose p { font-size: 17px; color: var(--ink-80); margin: 0 0 18px; max-width: 68ch; }
.prose h2 { margin: 48px 0 16px; }
.prose a { color: var(--ink); }

/* ---------- Behaviour fixes ---------- */
/* Off-canvas menu: unreachable by Tab or screen reader while closed */
.mobile-menu { visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
.mobile-menu.open { visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
body.menu-open { overflow: hidden; }

/* Touch screens can't hover, so practice summaries show without it */
@media (hover: none) {
  .practice-card .desc { max-height: none; opacity: 1; margin-top: 14px; }
  .practice-card .plus { display: none; }
  .media:hover img { transform: none; }
}

/* ---------- Phone and small-tablet layout ---------- */
@media (max-width: 860px) {
  /* The design places blocks with inline 12-column spans; on small screens collapse to
     two equal tracks (gaps stay small) and stack everything full width. */
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 28px; }
  .grid-12 > * { grid-column: 1 / -1 !important; min-width: 0; }
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer a { overflow-wrap: anywhere; }
  .hero-inner { padding-top: 120px; padding-bottom: 72px; }
  .hero-top { padding-top: 8px; padding-bottom: 36px; }
  .hero-creds { text-align: left; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .hero-cta { justify-content: flex-start; }
  .practice-hero-inner { padding-top: 130px; padding-bottom: 56px; }
  .page-hero { padding: 130px var(--pad) 56px; }
  .exp-row { grid-template-columns: 1fr; gap: 6px; }
  .exp-dur { text-align: left; }
  .edu-row { grid-template-columns: 1fr; gap: 6px; }
  .edu-mini-row { grid-template-columns: 112px 1fr; gap: 12px; }
  .member { font-size: 22px; padding: 18px 0; }
  .svc-sec { padding: 88px 0; }
  .svc-jump { gap: 10px 28px; margin-top: 40px; }
  .svc-jump a { font-size: 20px; }
  .img-band { padding: 120px 0; }
  .contact-grid { gap: 48px; }
  .form-card { padding: 28px 22px; }
  .marquee span { font-size: 24px; }
}

@media (max-width: 540px) {
  .nav .mark { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: start; }
  .nav .mark .logo-mark { grid-row: 1 / span 2; height: 26px; }
  .nav .mark :is(.logo-reflection, .logo-portico) { height: 36px; }
  .nav .mark .mark-name, .nav .mark .mark-kind { grid-column: 2; line-height: 1.2; }
  .footer .footer-grid { grid-template-columns: 1fr; }
  .footer .sig { font-size: 40px; }
}

/* Phones: practice summaries are always open (no hover to reveal them) */
@media (max-width: 720px) {
  .practice-card { grid-template-columns: 40px minmax(0, 1fr); }
  .practice-card .desc-col { grid-column: 2 / 3; }
  .practice-card .desc { max-height: none; opacity: 1; margin-top: 12px; }
  .practice-card .plus { display: none; }
}
/* The Nations' names are written in lowercase; never transform them */
.foot-names { text-transform: none; letter-spacing: .04em; }
