/* Mays HisToracle Consulting: preview site styles */

@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/pf-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/pf-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/pf-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/in-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/in-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/in-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand lock (approved 2026-03-14) */
  --amber: #D4941E;      /* rules, icons accents, CTA fill, large display only on light grounds (2.40:1 on ivory) */
  --charcoal: #2D3436;
  --ivory: #F8F5F0;
  /* Derived tokens */
  --amber-ink: #8A5A0E;  /* the ONE amber text tint: 5.44:1 on ivory, 4.86:1 on paper */
  --paper: #EFE8DC;      /* secondary light ground */
  --muted: #565E60;      /* secondary text: 6.10:1 on ivory */
  --on-dark-muted: #B8B1A6; /* 5.96:1 on charcoal */
  --line: #DDD4C5;       /* hairlines, non-text */
  --ink-deep: #232829;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(56px, 7vw, 104px);   /* round 2: was clamp(72px, 10vw, 144px) */
  --error: #9B2C1F;      /* form errors only: 6.96:1 on ivory */
  --field-line: #857E73; /* input borders: 4.02:1 on white, 3.69:1 on ivory */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --icon-stroke: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 1px; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--charcoal); color: var(--ivory); padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 880px; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round;
}

.kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-ink);
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(248 245 240 / 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; padding: 10px 0; }
.brand img { width: 218px; height: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  display: inline-block; padding: 12px 0; text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  background: linear-gradient(var(--amber), var(--amber)) no-repeat left calc(100% - 8px) / 0 1.5px;
  transition: background-size 0.35s var(--ease-out);
}
.nav a:hover { background-size: 100% 1.5px; }

/* Buttons: square corners across the whole system */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; white-space: nowrap;
  font: 500 1rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: var(--charcoal); }
.btn-primary:hover { background: #E0A534; }
.btn-quiet { border-color: var(--charcoal); color: var(--charcoal); }
.btn-quiet:hover { background: var(--charcoal); color: var(--ivory); }

/* Hero */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy .kicker { margin-bottom: 28px; }
.hero-copy .kicker span { color: var(--amber); margin-inline: 6px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.02em; max-width: 11ch;
}
.lede { margin-top: 28px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-plate { position: relative; }
.hero-plate::before {
  /* offset amber frame: a page-corner echo */
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--amber); pointer-events: none;
}
.hero-plate picture, .hero-plate img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-plate::before { animation: settle 1.1s var(--ease-out) 150ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translate(-10px, -10px); } to { opacity: 1; transform: none; } }

/* Mission */
.mission { background: var(--paper); padding-block: var(--section); text-align: center; }
.mission-title { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; color: var(--amber-ink); }
.mission-text {
  margin: 28px auto 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.625rem, 1.1rem + 1.9vw, 2.625rem); line-height: 1.32; letter-spacing: -0.005em;
}
.vision { margin: 40px auto 0; max-width: 58ch; }
.vision .rule { display: block; width: 56px; height: 1.5px; background: var(--amber); margin: 0 auto 28px; }
.vision p { color: var(--muted); }

/* Services */
.services { padding-block: var(--section); }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services-head { position: sticky; top: 112px; }
.services-head h2, .audiences h2, .approach h2, .about h2 {
  font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.012em;
}
.services-head h2 { margin-top: 0; }
.services-head .muted { margin-top: 22px; max-width: 36ch; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); row-gap: clamp(40px, 5vw, 64px); }
.service { padding-top: 26px; border-top: 1px solid var(--line); }
.glyph { position: relative; display: inline-flex; padding-bottom: 12px; margin-bottom: 20px; color: var(--charcoal); }
.glyph .icon { width: 30px; height: 30px; stroke-width: 1.35; }
.glyph::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 1.5px; margin-left: -9px; background: var(--amber); transform-origin: center; }
.service h3 { font-family: var(--serif); font-size: 1.4375rem; line-height: 1.25; }
.service p { margin-top: 10px; color: var(--muted); max-width: 40ch; }

/* Full-bleed band */
.band { position: relative; background: var(--charcoal); }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; min-height: 280px; }
.band figcaption {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 22px 0 26px;
  color: var(--on-dark-muted); font-size: 0.9375rem;
}
.band figcaption span { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; color: var(--ivory); margin-right: 6px; }

/* Audiences */
.audiences { padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.audience-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 36px; border-left: 1px solid var(--line); }
.audience-list li { display: flex; flex-direction: column; gap: 18px; padding: 8px 24px 8px 24px; border-right: 1px solid var(--line); }
.audience-list .icon { width: 28px; height: 28px; color: var(--charcoal); stroke-width: 1.35; }
.audience-list span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }

/* Approach */
.approach { padding-block: var(--section); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.approach-plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.timeline { position: relative; margin-top: 36px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line); }
.timeline li { position: relative; }
.timeline li + li { margin-top: 32px; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 8px; width: 12px; height: 12px;
  background: var(--ivory); border: 1.5px solid var(--amber); transform: rotate(45deg);
}
.timeline h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.timeline p { margin-top: 10px; color: var(--muted); max-width: 48ch; }

/* About */
.about { background: var(--paper); padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about h2 { margin-top: 20px; }
.role { margin-top: 10px; font-weight: 500; color: var(--amber-ink); }
.prose { margin-top: 28px; max-width: 60ch; }
.prose p + p { margin-top: 1.1em; }
.portrait { position: relative; margin: 0; }
.portrait::before {
  /* offset amber frame, mirroring the hero plate */
  content: ""; position: absolute; inset: 18px 18px -18px -18px;
  border: 1.5px solid var(--amber); pointer-events: none;
}
.portrait picture, .portrait img {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}

/* Contact */
.contact { background: var(--charcoal); color: var(--ivory); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-family: var(--serif); font-size: clamp(2.125rem, 1.2rem + 3vw, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 16ch; }
.contact-lede { margin: 26px 0 38px; color: var(--on-dark-muted); max-width: 46ch; font-size: 1.125rem; }
.contact .btn-primary:hover { background: #E0A534; }
.contact-list { margin: 0; border-top: 1px solid rgb(248 245 240 / 0.18); }
.contact-list div { padding: 22px 0; border-bottom: 1px solid rgb(248 245 240 / 0.18); }
.contact-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.contact-list dd { margin: 6px 0 0; }
.contact-list a {
  font-family: var(--serif); font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem); text-decoration: none;
  font-variant-numeric: lining-nums; overflow-wrap: anywhere;
  background: linear-gradient(var(--amber), var(--amber)) no-repeat left bottom / 0 1.5px;
  transition: background-size 0.35s var(--ease-out);
}
.contact-list a:hover { background-size: 100% 1.5px; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: 36px; }
.foot-mark { width: 40px; height: auto; }
.site-footer .nav a { color: var(--ivory); }
.copy { font-size: 0.875rem; }

/* Scroll reveal: only applied by JS to content below the first viewport */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0ms); }
  .will-reveal.in { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .services-grid, .approach-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-plate { max-width: 520px; margin-right: 18px; }
  .services-head { position: static; }
  .audience-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .approach-plate { max-width: 520px; }
  .portrait { max-width: 360px; }
  .contact-grid { align-items: start; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bar { flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; padding-top: 6px; }
  .brand img { width: 184px; }
  .bar nav { width: 100%; }
  .bar .nav { gap: 12px; justify-content: space-between; }
  .nav a { padding: 10px 0 12px; font-size: 0.875rem; }
  .hero h1 { max-width: none; }
  .actions .btn { flex: 1 1 100%; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .audience-list { grid-template-columns: minmax(0, 1fr); border-left: 0; margin-top: 32px; }
  .audience-list li { flex-direction: row; align-items: center; gap: 16px; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .audience-list li:first-child { border-top: 1px solid var(--line); }
  .band img { aspect-ratio: 4 / 3; }
  .mission { text-align: left; }
  .vision .rule { margin-left: 0; }
  .contact .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 12px; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===================================================================== round 2 */

/* Utilities */
.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;
}
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.site-footer .nav { flex-wrap: wrap; row-gap: 4px; }

.more-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--charcoal);
  background: linear-gradient(var(--amber), var(--amber)) no-repeat left calc(100% - 9px) / 0 1.5px;
  transition: background-size 0.35s var(--ease-out);
}
.more-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.more-link:hover { background-size: calc(100% - 26px) 1.5px; }
.more-link:hover .icon { transform: translateX(3px); }

/* Shared article metadata: category, then date */
.card-meta, .entry-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-size: 0.8125rem; line-height: 1.4; color: var(--muted);
}
.card-meta span, .entry-cat { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-ink); }
.card-meta time, .entry-meta time { font-variant-numeric: tabular-nums; }

/* Image frames: crop to a fixed ratio, ease in on hover */
.frame, .card-img, .latest-lead-img, .latest-thumb, .lead-media picture, .entry-thumb { display: block; overflow: hidden; background: var(--paper); }
.card-img img, .latest-lead-img img, .latest-thumb img, .lead-media img, .entry-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover img, .latest-lead:hover img, .latest-row:hover img, .lead-story:hover img, .entry:hover img { transform: scale(1.03); }
}
.thumb-blank {
  display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--paper);
  color: var(--amber-ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* About: credentials */
.credentials { margin: 32px 0 0; max-width: 60ch; border-top: 1px solid var(--line); }
.credentials div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credentials dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); padding-top: 3px; }
.credentials dd { margin: 0; }
.credentials a { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.credentials a:hover { text-decoration-color: var(--charcoal); }

/* Featured work: the East Cleveland Oral History Project */
.featured { padding-block: var(--section); }
.featured-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.featured h2 { margin-top: 20px; font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.012em; max-width: 18ch; }
.featured-lede { margin-top: 24px; font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.45; max-width: 36ch; }
.featured-copy > p:not(.kicker):not(.featured-lede) { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.featured-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.record { margin: 0; border-top: 1.5px solid var(--charcoal); }
.record div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.record dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink); padding-top: 4px; }
.record dd { margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 1.4; }

/* Latest insights (home) */
.latest { background: var(--paper); padding-block: var(--section); }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.latest-head h2 { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.012em; }
.latest-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); margin-top: 36px; align-items: start; }
.latest-lead { position: relative; }
.latest-lead-img { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.latest-lead-title { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem); line-height: 1.18; letter-spacing: -0.01em; }
.latest-lead-desc { margin-top: 12px; color: var(--muted); max-width: 56ch; }
.latest-rows { border-top: 1px solid var(--line); }
.latest-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.latest-thumb { aspect-ratio: 4 / 3; }
.latest-row-title { margin-top: 6px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.28; }
.latest-lead-title a, .latest-row-title a, .card-title a, .entry-title a, .lead-title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 0 1px;
  transition: background-size 0.35s var(--ease-out);
}
.latest-lead:hover .latest-lead-title a, .latest-row:hover .latest-row-title a, .card:hover .card-title a,
.entry:hover .entry-title a, .lead-story:hover .lead-title a { background-size: 100% 1px; }

/* Contact form: an ivory sheet on the charcoal band */
.contact-intro .contact-lede { margin-bottom: 32px; }
.form-panel { background: var(--ivory); color: var(--charcoal); padding: clamp(24px, 4vw, 44px); border-top: 3px solid var(--amber); }
.form-panel :focus-visible { outline-color: var(--charcoal); }
.form-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); line-height: 1.2; }
.contact-form { display: grid; gap: 20px; }
.contact-form .form-title { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.5 var(--sans); color: var(--charcoal);
  background: #FFFFFF; border: 1px solid var(--field-line); border-radius: 0;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 1px var(--charcoal), 0 0 0 4px rgb(212 148 30 / 0.35); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 1px var(--error), 0 0 0 4px rgb(155 44 31 / 0.2); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid { color: var(--muted); }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--charcoal); border-bottom: 1.5px solid var(--charcoal); transform: rotate(45deg); pointer-events: none;
}
.field-error { display: flex; gap: 6px; font-size: 0.875rem; line-height: 1.4; font-weight: 500; color: var(--error); }
.field-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; }
.turnstile-slot:empty { min-height: 0; }
.turnstile-slot.is-pending { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 0.875rem; color: var(--muted); }
.contact-form button[aria-busy="true"] { cursor: progress; }
.contact-form button[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .contact-form button[aria-busy="true"]::after { animation: none; border-right-color: currentColor; opacity: 0.5; } }
.form-status { font-size: 0.9375rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; background: #F6E9E4; color: var(--ink-deep); border-top: 2px solid var(--error); }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.form-noscript { font-size: 0.9375rem; color: var(--muted); }
.form-noscript a { color: var(--charcoal); }
.form-success { display: grid; gap: 14px; justify-items: start; padding-block: 8px; }
.form-success[hidden] { display: none; }
.form-success > .icon { width: 40px; height: 40px; color: var(--amber-ink); stroke-width: 1.35; }
.form-success p { color: var(--muted); max-width: 46ch; }
.form-success:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) > * { animation: rise 0.6s var(--ease-out) both; }
  .form-success:not([hidden]) > :nth-child(2) { animation-delay: 60ms; }
  .form-success:not([hidden]) > :nth-child(3) { animation-delay: 120ms; }
  .form-success:not([hidden]) > :nth-child(4) { animation-delay: 180ms; }
}

/* ---------------------------------------------------------------- Insights index */
.ins-head { padding-top: clamp(28px, 4vw, 56px); }
.ins-head h1 { font-family: var(--serif); font-size: clamp(2.75rem, 1.6rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.ins-lede { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.ins-head .crumbs { margin-bottom: 20px; }
.cat-filter { margin-top: 32px; border-bottom: 1px solid var(--line); }
.cat-filter ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.cat-filter a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 12px 0 13px; margin-bottom: -1px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.cat-filter a:hover { color: var(--charcoal); border-bottom-color: var(--line); }
.cat-filter a[aria-current] { color: var(--charcoal); border-bottom-color: var(--amber); }
.cat-filter .count { font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted); }

.ins-lead { padding-top: 40px; }
.ins-lead[hidden] { display: none; }
.lead-story { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.lead-media picture { aspect-ratio: 3 / 2; }
.lead-title { margin-top: 12px; font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.012em; }
.lead-desc { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.lead-copy .more-link { margin-top: 16px; }

.ins-list { padding-top: clamp(32px, 4vw, 48px); padding-bottom: var(--section); }
.entries { border-top: 1px solid var(--line); }
.entry {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) 240px;
  gap: clamp(20px, 3vw, 40px); align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.entry[hidden] { display: none; }
.entry-meta { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 6px; }
.entry-title { font-family: var(--serif); font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.2; letter-spacing: -0.006em; }
.entry-desc { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.entry-thumb { aspect-ratio: 3 / 2; }
.ins-empty, .ins-filter-empty { padding: 32px 0; color: var(--muted); max-width: 60ch; }
.ins-empty a, .ins-filter-empty a { color: var(--charcoal); }

/* ---------------------------------------------------------------- Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #A39C90; }
.crumbs a { text-decoration: none; display: inline-block; padding-block: 4px; }
.crumbs a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Post */
.post { padding-top: clamp(24px, 3.5vw, 48px); padding-bottom: var(--section); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.post-head .kicker { margin-top: 24px; }
.post-head .kicker a { text-decoration: none; }
.post-head .kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-head h1 { margin-top: 14px; font-family: var(--serif); font-size: clamp(2.25rem, 1.35rem + 3.2vw, 3.875rem); line-height: 1.06; letter-spacing: -0.018em; }
.dek { margin-top: 20px; font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 24px; font-size: 0.875rem; color: var(--muted); }
.post-meta time { color: var(--charcoal); font-weight: 500; }
.post-meta .sep { width: 5px; height: 5px; background: var(--amber); transform: rotate(45deg); }

.post-hero { margin-top: clamp(28px, 4vw, 44px); }
.post-hero img { width: 100%; outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px; }
.post-hero.is-portrait { width: 100%; max-width: 520px; justify-self: center; }
.post-hero figcaption { display: grid; gap: 4px; margin-top: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.post-hero .cap { color: var(--charcoal); }
.post-hero .credit { font-size: 0.8125rem; }
.post-hero .credit a { color: inherit; text-underline-offset: 3px; }

.toc { margin-top: 36px; padding: 18px 0; border-block: 1px solid var(--line); }
.toc-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); }
.toc ol { margin-top: 10px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); font-size: 0.9375rem; line-height: 1.4; }
.toc li::before { content: counter(toc); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; font-size: 0.8125rem; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); transition: color 0.2s var(--ease-out); }
.toc a:hover, .toc a[aria-current] { color: var(--charcoal); }
.toc a[aria-current] { font-weight: 500; }

.post-body { margin-top: 36px; min-width: 0; }

/* Long-form reading column */
.longform { max-width: 68ch; font-size: 1.125rem; line-height: 1.72; }
.longform > * + * { margin-top: 1.15em; }
.longform h2 { margin-top: 2.1em; font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.008em; scroll-margin-top: 96px; }
.longform h3 { margin-top: 1.8em; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; scroll-margin-top: 96px; }
.longform h2 + *, .longform h3 + * { margin-top: 0.6em; }
.longform a { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color 0.2s var(--ease-out); }
.longform a:hover { text-decoration-color: var(--charcoal); }
.longform strong { font-weight: 600; }
.longform ul > li, .glance ul > li { position: relative; padding-left: 1.5em; }
.longform ul > li::before, .glance ul > li::before {
  content: ""; position: absolute; left: 0.2em; top: 0.68em; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg);
}
.longform ol { counter-reset: ol; }
.longform ol > li { position: relative; padding-left: 2.1em; counter-increment: ol; }
.longform ol > li::before {
  content: counter(ol); position: absolute; left: 0; top: 0.06em; min-width: 1.4em;
  font-family: var(--serif); font-size: 1.0625em; color: var(--amber-ink); font-variant-numeric: lining-nums tabular-nums;
}
.longform li + li { margin-top: 0.5em; }
.longform blockquote {
  margin: 1.8em 0; padding-top: 22px; position: relative;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.6875rem); line-height: 1.42;
}
.longform blockquote::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 1.5px; background: var(--amber); }
.longform blockquote p + p { margin-top: 0.6em; }
.longform hr { border: 0; height: 1px; background: var(--line); margin-block: 2.2em; }
.longform code { font-size: 0.9em; background: var(--paper); padding: 0.1em 0.3em; }
.table-wrap { overflow-x: auto; margin-block: 1.6em; }
.longform table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.longform th { text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); padding: 10px 16px 10px 0; border-bottom: 1.5px solid var(--charcoal); }
.longform td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.glance { background: var(--paper); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); margin-block: 1.8em !important; }
.glance-title { margin: 0 0 12px !important; font-family: var(--sans) !important; font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); }
.glance ul, .glance ol { font-size: 1.0625rem; line-height: 1.55; }
.glance li + li { margin-top: 0.45em; }

/* FAQ + Sources */
.faq, .sources { margin-top: clamp(48px, 6vw, 72px); max-width: 68ch; }
.faq h2, .sources h2 { font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.2; scroll-margin-top: 96px; }
.qa-list { margin-top: 20px; border-top: 1px solid var(--line); }
.qa { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.qa p { margin-top: 8px; color: var(--muted); }
.sources ol { margin-top: 18px; counter-reset: src; font-size: 0.9375rem; line-height: 1.55; }
.sources li { position: relative; padding-left: 2.2em; counter-increment: src; overflow-wrap: anywhere; }
.sources li + li { margin-top: 10px; }
.sources li::before { content: counter(src) "."; position: absolute; left: 0; color: var(--amber-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sources a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.sources a:hover { text-decoration-color: var(--charcoal); }
.sources .pub { color: var(--muted); }

/* About the firm + CTA */
.about-firm { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(22px, 3vw, 32px); background: var(--paper); max-width: 68ch; }
.about-firm img { width: 44px; height: auto; }
.about-firm h2 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.about-firm p { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.about-firm .more-link { margin-top: 4px; }
.post-cta { margin-top: 20px; padding: clamp(26px, 4vw, 44px); background: var(--charcoal); color: var(--ivory); max-width: 68ch; }
.post-cta :focus-visible { outline-color: var(--amber); }
.post-cta h2 { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.18; max-width: 24ch; }
.post-cta p { margin-top: 12px; color: var(--on-dark-muted); max-width: 52ch; }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.cta-mail { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Related */
.related { background: var(--paper); padding-block: var(--section); }
.related h2 { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.12; }
.cards { display: grid; gap: clamp(24px, 3vw, 40px); margin-top: 28px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; }
.card-img { aspect-ratio: 3 / 2; margin-bottom: 16px; }
.card-title { margin-top: 8px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.26; }

/* Desktop: TOC rail beside the reading column */
@media (min-width: 1100px) {
  .post-grid { max-width: none; grid-template-columns: 220px minmax(0, 720px); column-gap: 64px; justify-content: center; }
  .post-head { grid-column: 2; }
  .post-hero { grid-column: 1 / -1; }
  .post-hero.is-portrait { grid-column: 2; justify-self: start; }
  .toc { grid-column: 1; grid-row: 3; align-self: start; position: sticky; top: 104px; margin-top: 44px; border: 0; padding: 0; }
  .post-body { grid-column: 2; grid-row: 3; margin-top: 44px; }
  .toc + .post-body { margin-top: 44px; }
}

@media (max-width: 960px) {
  .featured-grid, .latest-grid, .lead-story { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr) 200px; }
  .entry-meta { grid-column: 1 / -1; flex-direction: row; padding-top: 0; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .entry { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px 16px; padding: 22px 0; }
  .entry-thumb { aspect-ratio: 1; }
  .entry-desc { font-size: 0.9375rem; }
  .cards-2, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .latest-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .record div, .credentials div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .longform { font-size: 1.0625rem; }
  .about-firm { grid-template-columns: minmax(0, 1fr); }
  .cat-filter ul { gap: 0 20px; }
  .post-cta .btn { width: 100%; }
}

.contact-form[hidden] { display: none; }
@media (max-width: 640px) {
  .post-meta .sep:nth-last-child(2) { display: none; }
  .post-meta > span:last-child { flex-basis: 100%; }
}
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
