/* Wehliye Law Firm — stylesheet
   Palette: brand blue #0367A3, brand grey #A8A9AD, ink navy #0B2436
   Type: Newsreader (display serif) + Public Sans (body/UI)
   ------------------------------------------------------------------ */

:root {
  --brand: #0367A3;
  --brand-deep: #024E7C;
  --brand-soft: #EAF3F9;
  --brand-on-dark: #7CC0E8;
  --ink: #0B2436;
  --ink-2: #163449;
  --body: #3E5567;
  --muted: #6B8194;
  --page: #FBFCFD;
  --surface: #FFFFFF;
  --surface-2: #F3F6F8;
  --line: rgba(11, 36, 54, 0.14);
  --line-soft: rgba(11, 36, 54, 0.08);
  --footer: #08202F;
  --footer-body: #A9C0D0;
  --footer-line: rgba(255, 255, 255, 0.16);
  --focus: #0367A3;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: 24px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(11, 36, 54, 0.05), 0 12px 28px -18px rgba(11, 36, 54, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4EA6DC;
    --brand-deep: #7CC0E8;
    --brand-soft: rgba(78, 166, 220, 0.12);
    --brand-on-dark: #7CC0E8;
    --ink: #E7EFF5;
    --ink-2: #C9DAE6;
    --body: #A9BFCE;
    --muted: #8299AA;
    --page: #0A1721;
    --surface: #10222F;
    --surface-2: #14293700;
    --line: rgba(233, 243, 249, 0.16);
    --line-soft: rgba(233, 243, 249, 0.09);
    --footer: #061722;
    --footer-body: #97AEBE;
    --footer-line: rgba(255, 255, 255, 0.14);
    --focus: #7CC0E8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
  }
  :root:not([data-theme="light"]) .surface-2 { background: #142937; }
}

:root[data-theme="dark"] {
  --brand: #4EA6DC;
  --brand-deep: #7CC0E8;
  --brand-soft: rgba(78, 166, 220, 0.12);
  --brand-on-dark: #7CC0E8;
  --ink: #E7EFF5;
  --ink-2: #C9DAE6;
  --body: #A9BFCE;
  --muted: #8299AA;
  --page: #0A1721;
  --surface: #10222F;
  --surface-2: #142937;
  --line: rgba(233, 243, 249, 0.16);
  --line-soft: rgba(233, 243, 249, 0.09);
  --footer: #061722;
  --footer-body: #97AEBE;
  --footer-line: rgba(255, 255, 255, 0.14);
  --focus: #7CC0E8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}
.eyebrow.on-dark { color: var(--brand-on-dark); }

.lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 62ch;
}

.measure { max-width: 66ch; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 14px -6px rgba(11, 36, 54, 0.35); border-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 76px;
}
.main-nav { margin-left: auto; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img, .brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a { white-space: nowrap; }
.main-nav a:hover { color: var(--brand); }
.main-nav .btn { flex: none; }
.brand { flex: none; }
.main-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--footer); }
.btn-light:hover { background: var(--brand-soft); color: var(--footer); }
.btn-outline-light { border-color: var(--footer-line); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.93rem;
}
.text-link::after { content: "→"; transition: transform 0.18s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section.tinted { background: var(--surface-2); border-top: 1px solid var(--line-soft); }
.section.ink { background: var(--footer); border-top: none; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink p { color: var(--footer-body); }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 42px; max-width: 62ch; }
.section-head h2 { margin-top: 2px; }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 { margin: 16px 0 20px; }
.hero .lede { font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-panel {
  border-left: 2px solid var(--brand);
  padding: 4px 0 4px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-panel dl { margin: 0; display: grid; gap: 14px; }
.hero-panel .row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.hero-panel dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-panel dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--page);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat .figure {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 0.82rem; color: var(--muted); }

/* ---------- practice index ---------- */

.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  transition: background 0.18s ease, padding 0.18s ease;
}
.index-row:hover { background: var(--brand-soft); padding-left: 12px; padding-right: 12px; color: inherit; }
.index-row .num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--brand);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.index-row h3 { margin-bottom: 6px; font-size: 1.22rem; }
.index-row p { font-size: 0.95rem; max-width: 68ch; }
.index-row .go { color: var(--brand); font-weight: 600; font-size: 0.9rem; padding-top: 6px; white-space: nowrap; }

/* ---------- generic panels ---------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel h3 { font-size: 1.15rem; }
.panel p { font-size: 0.96rem; }
.panel ul { margin: 0; padding-left: 20px; font-size: 0.96rem; }
.panel li { margin-bottom: 7px; }
.panel li:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.facts > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.facts dd { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- process (a real sequence) ---------- */

.process { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.process-step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.process-step .step-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.process-step p { font-size: 0.96rem; }

/* ---------- people ---------- */

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.person {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
}
.person .portrait {
  width: 132px;
  height: 158px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  background: var(--surface-2);
}
.person .monogram {
  width: 132px;
  height: 158px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--display);
  font-size: 2rem;
  border-radius: 2px;
}
.person .role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.person h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.person p { font-size: 0.94rem; }
.person ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--muted); }
.person li { margin-bottom: 4px; }

/* ---------- matters / cases ---------- */

.matter {
  border-top: 3px solid var(--brand);
  background: var(--surface);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 10px;
  border-radius: 2px;
}
.matter h3 { font-size: 1.12rem; }
.matter p { font-size: 0.95rem; }
.matter .outcome {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 2px;
}

/* ---------- articles ---------- */

.article-list { border-top: 1px solid var(--line); }
.article-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  transition: background 0.18s ease, padding 0.18s ease;
}
.article-row:hover { background: var(--brand-soft); padding-left: 12px; padding-right: 12px; color: inherit; }
.article-meta { font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.article-meta .cat { color: var(--brand); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; }
.article-row h3 { font-size: 1.28rem; margin-bottom: 8px; }
.article-row p { font-size: 0.96rem; max-width: 70ch; }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.55rem; margin: 38px 0 12px; }
.prose h3 { font-size: 1.18rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--brand);
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 1.12rem;
}

/* ---------- page header (interior) ---------- */

.page-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(44px, 6vw, 76px) 0;
}
.page-header .inner { display: flex; flex-direction: column; gap: 16px; max-width: 66ch; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- callout ---------- */

.callout {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 22px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callout h3 { font-size: 1.05rem; }
.callout p { font-size: 0.94rem; }

.note {
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--footer); color: #fff; padding: clamp(48px, 6vw, 76px) 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.cta-inner h2 { color: #fff; max-width: 22ch; }
.cta-inner p { color: var(--footer-body); max-width: 46ch; margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- form ---------- */

.form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}
.form h3 { font-size: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 13px 16px; border-radius: var(--radius); font-size: 0.92rem; }
.notice.success { background: #E7F5EC; color: #1C5B33; border: 1px solid #B7DFC5; }
.notice.error { background: #FBEBEB; color: #8C2A2A; border: 1px solid #EFC5C5; }

/* ---------- gallery ---------- */

.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-frame {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gallery-controls .count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-controls .btns { display: flex; gap: 8px; }
.gallery-controls button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  width: 38px;
  height: 38px;
  cursor: pointer;
}
.gallery-controls button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- footer ---------- */

.site-footer { background: var(--footer); color: var(--footer-body); padding: 62px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-line);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer a { color: var(--footer-body); font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer-brand .brand-name { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.footer-brand p { font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.84rem;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- motion ---------- */

[data-animate] { opacity: 1; }
.js [data-animate] { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js [data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-animate] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .article-meta { flex-direction: row; gap: 12px; align-items: center; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .main-nav .btn { margin-top: 12px; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .index-row { grid-template-columns: 40px minmax(0, 1fr); }
  .index-row .go { display: none; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person .portrait, .person .monogram { width: 118px; height: 142px; }
  .facts > div, .hero-panel .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .form { padding: 22px; }
}

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ==================================================================
   CINEMATIC LAYER — scenes, depth, motion timing
   ================================================================== */

:root {
  /* movement timing: slow start, long settle — reads as camera, not UI */
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-lens: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 320ms;
  --dur-mid: 640ms;
  --dur-slow: 980ms;
  --scene-ink: #061B28;
}

/* ---------- scene: photo band with depth ---------- */

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--scene-ink);
  color: #fff;
}

.scene__media {
  position: absolute;
  inset: -8% 0 -8% 0;          /* overscan, so parallax never shows an edge */
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, var(--parallax, 0px), 0);
}
.scene__media img,
.scene__media .stand-in {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* duotone: photo reduced to luminance, brand blue multiplied back in */
.scene__media img { filter: grayscale(1) contrast(1.08) brightness(0.92); }
.scene__tint {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: 1;
  background: linear-gradient(140deg, #0367A3 0%, #06283D 70%);
  mix-blend-mode: multiply;
  opacity: 0.86;
  pointer-events: none;
}
.scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(4, 20, 30, 0.92) 0%, rgba(4, 20, 30, 0.72) 42%, rgba(4, 20, 30, 0.35) 100%),
    linear-gradient(to bottom, rgba(4, 20, 30, 0.55) 0%, rgba(4, 20, 30, 0) 40%, rgba(4, 20, 30, 0.65) 100%);
  pointer-events: none;
}
/* the band melts into the page instead of stopping at a hard edge */
.scene--feathered { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%); }

.scene__content { position: relative; z-index: 3; }
.scene h1, .scene h2, .scene h3 { color: #fff; }
.scene p { color: #C9DCE8; }
.scene .eyebrow { color: var(--brand-on-dark); }
.scene .lede { color: #D4E3EC; }

/* slow drift — the camera never sits still */
@keyframes kenburns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.13) translate3d(-1.6%, -1.2%, 0); }
}
.scene__media img.kb,
.scene__media .stand-in.kb {
  animation: kenburns 34s var(--ease-soft) infinite alternate;
}

/* ---------- hero scene ---------- */

.hero-scene { padding: clamp(78px, 11vw, 150px) 0 clamp(58px, 8vw, 104px); }
.hero-scene .hero-grid { align-items: center; }
.hero-scene .hero-panel {
  border-left-color: var(--brand-on-dark);
  background: rgba(6, 27, 40, 0.42);
  backdrop-filter: blur(3px);
  padding: 22px 0 22px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  will-change: transform;
  transform: translate3d(0, var(--parallax, 0px), 0);
}
.hero-scene .hero-panel dt { color: #8FB4C9; }
.hero-scene .hero-panel dd { color: #EAF3F9; }
.hero-scene .hero-panel dd a { color: var(--brand-on-dark); }
.hero-scene .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero-scene .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.hero-scene .btn-primary { background: #fff; color: var(--scene-ink); }
.hero-scene .btn-primary:hover { background: var(--brand-on-dark); color: var(--scene-ink); }

/* statement band mid-page */
.scene-statement { padding: clamp(72px, 10vw, 128px) 0; }
.scene-statement blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.35rem);
  line-height: 1.24;
  color: #fff;
  max-width: 26ch;
  text-wrap: balance;
}
.scene-statement .attrib { margin-top: 20px; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-on-dark); }
.scene-statement .grid-3 .panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.scene-statement .grid-3 .panel h3 { color: #fff; }
.scene-statement .grid-3 .panel p { color: #BCD3E1; }

/* CSS stand-in used where the photograph is not available (preview only) */
.stand-in {
  background:
    radial-gradient(120% 90% at 22% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(90% 70% at 78% 82%, rgba(124, 192, 232, 0.28) 0%, transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #0E3C5A 0%, #061B28 60%, #041420 100%);
}

/* ---------- portrait depth: subject lifted off its ground ---------- */

.person { position: relative; overflow: hidden; }
.person .portrait-wrap {
  position: relative;
  width: 132px;
  flex: none;
  transform-style: preserve-3d;
}
.person .portrait-wrap::before {          /* soft ground shadow = depth */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(11, 36, 54, 0.28), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.person .portrait {
  position: relative;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease-cine);
  -webkit-mask-image: radial-gradient(120% 96% at 50% 34%, #000 62%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
  mask-image: radial-gradient(120% 96% at 50% 34%, #000 62%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
}
.person:hover .portrait { transform: scale(1.035) translateY(-3px); }

/* pointer tilt (JS adds --tilt-x / --tilt-y) */
.tilt {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform var(--dur-mid) var(--ease-soft);
}

/* ---------- reveals: masks and fades between sections ---------- */

.js [data-animate] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-cine),
    transform var(--dur-slow) var(--ease-cine);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-animate].is-visible { opacity: 1; transform: none; }

/* wipe reveal for media and rules */
.js [data-reveal="wipe"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-slow) var(--ease-lens);
}
.js [data-reveal="wipe"].is-visible { clip-path: inset(0 0 0 0); }

.js [data-reveal="rise"] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  clip-path: inset(0 0 14% 0);
  transition:
    opacity var(--dur-slow) var(--ease-cine),
    transform var(--dur-slow) var(--ease-cine),
    clip-path var(--dur-slow) var(--ease-cine);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="rise"].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* first-paint entrance for the hero — runs on load, not on scroll */
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
.js .hero-scene [data-enter] {
  animation: heroIn var(--dur-slow) var(--ease-cine) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

/* section-to-section fade seam */
.seam {
  height: 90px;
  margin-top: -90px;
  position: relative;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--page));
}

/* ---------- cinematic gallery ---------- */

.gallery-frame { position: relative; }
.gallery-frame img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--dur-slow) var(--ease-soft), transform 9s linear;
}
.gallery-frame img.is-current { opacity: 1; transform: scale(1.0); }
.gallery-frame::after {           /* letterbox edges */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(6, 27, 40, 0.35);
}

@media (max-width: 640px) {
  .scene__scrim { background: linear-gradient(to bottom, rgba(4, 20, 30, 0.7) 0%, rgba(4, 20, 30, 0.55) 45%, rgba(4, 20, 30, 0.85) 100%); }
  .hero-scene .hero-panel { background: rgba(6, 27, 40, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .scene__media img.kb, .scene__media .stand-in.kb { animation: none; }
  .scene__media, .hero-scene .hero-panel { transform: none !important; }
  .js [data-reveal="wipe"], .js [data-reveal="rise"] { clip-path: none; opacity: 1; transform: none; }
  .js .hero-scene [data-enter] { animation: none; }
  .tilt { transform: none !important; }
}

/* ---------- header over a hero scene ---------- */

.site-header.over-scene:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header.over-scene:not(.is-scrolled) .brand,
.site-header.over-scene:not(.is-scrolled) .brand-name { color: #fff; }
.site-header.over-scene:not(.is-scrolled) .brand-sub { color: #9FBFD2; }
.site-header.over-scene:not(.is-scrolled) .main-nav > a { color: #E4EEF4; }
.site-header.over-scene:not(.is-scrolled) .main-nav > a:hover { color: #fff; }
.site-header.over-scene:not(.is-scrolled) .main-nav > a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand-on-dark); }
.site-header.over-scene:not(.is-scrolled) .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.site-header.over-scene:not(.is-scrolled) .main-nav .btn-primary { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.site-header.over-scene:not(.is-scrolled) .main-nav .btn-primary:hover { background: #fff; color: var(--scene-ink); }
@media (max-width: 980px) {
  .site-header.over-scene:not(.is-scrolled) .main-nav.is-open { background: var(--scene-ink); }
  .site-header.over-scene:not(.is-scrolled) .main-nav.is-open > a { border-bottom-color: rgba(255, 255, 255, 0.14); }
}

/* header sits on top of the hero rather than above it */
body.has-hero-scene .site-header { position: fixed; left: 0; right: 0; }
body.has-hero-scene .hero-scene { padding-top: clamp(140px, 15vw, 210px); }
body.has-hero-scene { padding-top: 0; }

/* tighter nav button so the label never crowds the edge */
.main-nav .btn { padding: 10px 16px; font-size: 0.88rem; }

/* photographs read through the duotone a little more */
.scene__tint { opacity: 0.8; }
.seam { height: 64px; margin-top: -64px; }

/* ==================================================================
   SIMPLE HOME — taller hero, quieter page
   ================================================================== */

.hero-tall {
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding-bottom: clamp(80px, 10vw, 130px);
}
.hero-simple { max-width: 900px; }
.hero-simple h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.4rem);
  line-height: 1.06;
  max-width: 17ch;
  margin: 18px 0 22px;
}
.hero-simple .lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); max-width: 48ch; }
.hero-simple .hero-actions { margin-top: 34px; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  color: #B4CDDC;
}
.hero-foot a { color: var(--brand-on-dark); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-50%);
  animation: cue 2.6s var(--ease-soft) infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.9; transform: translateX(-50%) scaleY(1); transform-origin: top; }
}

/* practice areas as a plain three-column list */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pg-item {
  background: var(--page);
  padding: 26px 24px 28px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.pg-item h3 { font-size: 1.14rem; }
.pg-item p { font-size: 0.93rem; color: var(--muted); }
.pg-item:hover { background: var(--brand-soft); color: inherit; }
.pg-item:hover h3 { color: var(--brand); }

@media (max-width: 980px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-tall { min-height: 78svh; }
}
@media (max-width: 640px) {
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
  .hero-foot { gap: 6px 18px; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ---------- brand mark ---------- */

.brand img.brand-mark {
  width: auto;
  height: 40px;
  flex: none;
}
.brand .logo-light { display: none; }
.site-header.over-scene:not(.is-scrolled) .logo-dark { display: none; }
.site-header.over-scene:not(.is-scrolled) .logo-light { display: block; }

.footer-logo { width: 132px; height: auto; margin-bottom: 4px; }

@media (max-width: 640px) {
  .brand img.brand-mark { height: 32px; }
  .brand-sub { display: none; }
}

/* ==================================================================
   DAY / NIGHT
   ================================================================== */

.header-actions { display: flex; align-items: center; gap: 10px; order: 3; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--dur-fast, .2s) ease, color var(--dur-fast, .2s) ease, background var(--dur-fast, .2s) ease;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

/* in night mode the button offers the day option */
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.site-header.over-scene:not(.is-scrolled) .theme-toggle {
  color: #E4EEF4;
  border-color: rgba(255, 255, 255, 0.4);
}
.site-header.over-scene:not(.is-scrolled) .theme-toggle:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* the white mark is the right one whenever the header ground is dark */
:root[data-theme="dark"] .brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-dark { display: none; }
  :root:not([data-theme="light"]) .brand .logo-light { display: block; }
  :root:not([data-theme="light"]) { --surface-2: #142937; }
}

/* night-mode corrections */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .main-nav .btn-primary { color: #06212F; }
:root[data-theme="dark"] .btn-primary:hover { background: var(--brand-deep); color: #06212F; }
:root[data-theme="dark"] .btn-light { background: var(--brand); color: #06212F; }
:root[data-theme="dark"] .notice.success { background: rgba(46, 125, 74, 0.16); color: #9FE0B6; border-color: rgba(46, 125, 74, 0.5); }
:root[data-theme="dark"] .notice.error { background: rgba(160, 50, 50, 0.16); color: #F0B4B4; border-color: rgba(160, 50, 50, 0.5); }
:root[data-theme="dark"] .person .portrait { filter: brightness(0.94); }
:root[data-theme="dark"] .tag { background: rgba(78, 166, 220, 0.16); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #06212F; }
  :root:not([data-theme="light"]) .btn-light { background: var(--brand); color: #06212F; }
  :root:not([data-theme="light"]) .notice.success { background: rgba(46, 125, 74, 0.16); color: #9FE0B6; border-color: rgba(46, 125, 74, 0.5); }
  :root:not([data-theme="light"]) .notice.error { background: rgba(160, 50, 50, 0.16); color: #F0B4B4; border-color: rgba(160, 50, 50, 0.5); }
}

@media (max-width: 980px) {
  .header-actions { gap: 8px; }
}

/* ==================================================================
   MOTION SYSTEM — scroll-linked, pointer-aware, page transitions
   ================================================================== */

/* ---------- page transitions (Chrome, Edge, Safari 18.2+) ---------- */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vtOut 260ms var(--ease-soft) both;
}
::view-transition-new(root) {
  animation: vtIn 420ms var(--ease-cine) both;
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- word-by-word heading reveal ---------- */

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}
.js .split-ready .split-word > span {
  animation: wordUp 720ms var(--ease-cine) both;
  animation-delay: calc(var(--w, 0) * 42ms + var(--base, 0ms));
}
@keyframes wordUp {
  from { transform: translateY(105%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- pointer glow on the hero ---------- */

.hero-scene .pointer-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease-soft);
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 40%),
    rgba(124, 192, 232, 0.16),
    transparent 65%
  );
}
.hero-scene:hover .pointer-glow { opacity: 1; }

/* ---------- reading progress on article pages ---------- */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(to right, var(--brand), var(--brand-on-dark));
  z-index: 120;
}

/* ---------- hover states with weight ---------- */

.btn { transform: translateZ(0); }
.btn-primary:hover, .btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(3, 103, 163, 0.9);
}
.btn-ghost:hover, .btn-outline-light:hover { transform: translateY(-1px); }

.panel, .matter, .person {
  transition: transform var(--dur-mid) var(--ease-cine), box-shadow var(--dur-mid) var(--ease-cine), border-color var(--dur-mid) var(--ease-soft);
}
.panel:hover, .matter:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -30px rgba(11, 36, 54, 0.55);
  border-color: var(--line);
}

.main-nav > a { position: relative; }
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--dur-mid) var(--ease-cine);
}
.main-nav > a:hover::after { right: 0; }
.main-nav > a[aria-current="page"]::after { display: none; }

.pg-item { position: relative; overflow: hidden; }
.pg-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform var(--dur-mid) var(--ease-cine);
}
.pg-item:hover::before { transform: scaleY(1); }

.index-row .go { transition: transform var(--dur-mid) var(--ease-cine); }
.index-row:hover .go { transform: translateX(4px); }

/* ---------- scroll-linked, where the browser supports it ---------- */

@supports (animation-timeline: view()) {
  .js .scene-statement blockquote,
  .js .scene-statement .attrib,
  .js .scene-statement .stack p {
    animation: liftIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 32%;
  }
  @keyframes liftIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
  }

  /* the hero settles as the page scrolls away from it */
  .js .hero-simple {
    animation: heroSettle linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 90%;
  }
  @keyframes heroSettle {
    from { opacity: 1; transform: none; }
    to { opacity: 0.15; transform: translateY(-26px) scale(0.985); }
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .split-ready .split-word > span { animation: none; transform: none; opacity: 1; }
  .split-word > span { transform: none; opacity: 1; }
  .hero-scene .pointer-glow { display: none; }
  .read-progress { display: none; }
  .btn-primary:hover, .btn-light:hover, .btn-ghost:hover, .panel:hover, .matter:hover { transform: none; box-shadow: none; }
}

/* ==================================================================
   HERO SLIDESHOW + TILE HOVER  (pattern borrowed from the reference)
   ================================================================== */

.scene__media[data-slideshow] { position: absolute; }
.scene__media[data-slideshow] img,
.scene__media[data-slideshow] .stand-in {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease-soft);
}
.scene__media[data-slideshow] img.is-current,
.scene__media[data-slideshow] .stand-in.is-current { opacity: 1; }

/* the line under the headline changes with the slide */
.hero-simple .lede[data-rotator] {
  transition: opacity 520ms var(--ease-soft), transform 520ms var(--ease-cine);
  min-height: 2.6em;
}
.hero-simple .lede[data-rotator].is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.slideshow-toggle {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  bottom: 58px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(6, 27, 40, 0.35);
  backdrop-filter: blur(4px);
  color: #DCE9F1;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.slideshow-toggle:hover { border-color: #fff; color: #fff; background: rgba(6, 27, 40, 0.55); }
.slideshow-toggle .icon-play { display: none; }
.slideshow-toggle.is-paused .icon-play { display: block; }
.slideshow-toggle.is-paused svg:first-of-type { display: none; }
.slideshow-count { font-variant-numeric: tabular-nums; }

/* practice tiles: a panel and a link rise on hover */
.pg-item { padding-bottom: 52px; }
.pg-item .pg-go {
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-mid) var(--ease-cine), transform var(--dur-mid) var(--ease-cine);
}
.pg-item .pg-go::after { content: " →"; }
.pg-item:hover .pg-go, .pg-item:focus-visible .pg-go { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .slideshow-toggle { left: 24px; bottom: 22px; }
  .pg-item .pg-go { opacity: 1; transform: none; position: static; margin-top: 6px; }
  .pg-item { padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene__media[data-slideshow] img,
  .scene__media[data-slideshow] .stand-in { transition: none; }
  .hero-simple .lede[data-rotator] { transition: none; }
}
