/* ==========================================================================
   A.C. McCowan CPA PLLC
   Palette evolves the firm's existing plum + orchid identity, grounded with
   ivory paper and a champagne-gold hairline.
   ========================================================================== */

:root {
  --ink: #1d1424;
  --plum: #4b1e5e;
  --plum-deep: #2a1035;
  --plum-900: #1b0923;
  --orchid: #b0468f;
  --orchid-soft: #ecd6e6;
  --gold: #b89657;
  --gold-soft: #e4d3ae;
  --paper: #faf7f2;
  --paper-2: #f2ece3;
  --line: #e2d9cd;
  --white: #ffffff;
  --muted: #62586b;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 24px 60px -28px rgba(42, 16, 53, 0.35);
}

/* Lining figures everywhere: the serif defaults to old-style numerals, and the
   `font` shorthand resets the property, so it is pinned here. */
*,
*::before,
*::after { box-sizing: border-box; font-variant-numeric: lining-nums !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 0.96; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--orchid); font-weight: 500; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section--tint { background: var(--paper-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--plum); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-soft); }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 58ch; }
.on-dark .lede { color: rgba(255, 255, 255, 0.74); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 14px 30px -16px rgba(75, 30, 94, 0.8); }
.btn--primary:hover { background: var(--plum-deep); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(29, 20, 36, 0.22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn--gold { background: var(--gold-soft); color: var(--plum-900); }
.btn--gold:hover { background: #fff; transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 12px 20px; font-size: 0.88rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--plum);
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.text-link:hover { color: var(--orchid); }
.on-dark .text-link { color: #fff; }

/* Top bar + header --------------------------------------------------------- */
.topbar { background: var(--plum-900); color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; letter-spacing: 0.02em; }
.topbar__in { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar__links { display: flex; gap: 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.9); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(42, 16, 53, 0.5); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name { font: 600 1.5rem/1 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.brand__name small { font-size: 0.72em; }
.brand__tag {
  font: 600 0.58rem/1.25 var(--sans); letter-spacing: 0.16em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 30px; }
.nav__list a {
  position: relative; text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink); padding: 8px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--orchid);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--plum); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--plum); transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 780px; height: 780px; right: -260px; top: -240px;
  border: 1px solid var(--orchid-soft);
  box-shadow: 0 0 0 70px rgba(236, 214, 230, 0.22), 0 0 0 140px rgba(236, 214, 230, 0.12);
}
.hero::after { width: 320px; height: 320px; left: -180px; bottom: -180px; border: 1px solid var(--gold-soft); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 26px; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 0 5px var(--orchid-soft); }

/* Career ledger card */
.ledger {
  position: relative; background: linear-gradient(160deg, var(--plum-deep), var(--plum-900));
  color: #fff; border-radius: 22px; padding: clamp(28px, 3.4vw, 42px); box-shadow: var(--shadow);
}
.ledger::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(228, 211, 174, 0.28); border-radius: 15px; pointer-events: none;
}
.ledger__title { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 6px; }
.ledger__sub { font: italic 500 1.5rem/1.15 var(--serif); margin: 0 0 22px; color: #fff; }
.ledger__rows li {
  display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.ledger__year { font: 500 1.02rem/1 var(--serif); color: var(--gold-soft); letter-spacing: 0.04em; }
.ledger__firm { font: 600 1.42rem/1.1 var(--serif); letter-spacing: 0.01em; display: block; }
.ledger__role { display: block; font-size: 0.84rem; color: rgba(255, 255, 255, 0.66); margin-top: 3px; }
.ledger__rows li:last-child .ledger__firm { color: var(--gold-soft); }

/* Credentials strip -------------------------------------------------------- */
.creds { border-block: 1px solid var(--line); background: var(--white); }
.creds__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.creds__item { padding: 34px 28px; border-left: 1px solid var(--line); }
.creds__item:first-child { border-left: 0; padding-left: 0; }
.creds__num { font: 500 2.6rem/1 var(--serif); color: var(--plum); display: block; margin-bottom: 8px; }
.creds__num em { font-style: italic; color: var(--orchid); }
.creds__label { font-size: 0.9rem; color: var(--muted); line-height: 1.45; display: block; }

/* Section heads ------------------------------------------------------------ */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--muted); }
.head--stack { display: block; max-width: 780px; }
.head--stack h2 { margin-bottom: 18px; }

/* Service cards ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  position: relative; background: var(--white); padding: 38px 34px 40px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: background 0.3s ease;
}
.card__no { font: italic 500 1.25rem/1 var(--serif); color: var(--gold); margin-bottom: 44px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 26px; }
.card__more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--plum); display: inline-flex; gap: 8px; align-items: center; }
.card__more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card:hover { background: #fdfbf8; }
.card:hover .card__more svg { transform: translateX(4px); }
.card::after { content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 2px; background: var(--orchid); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.card:hover::after { transform: scaleX(1); }

/* Dark approach band ------------------------------------------------------- */
.band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--plum-deep) 0%, var(--plum-900) 70%); color: #fff; }
.band::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -200px; bottom: -320px;
  border: 1px solid rgba(228, 211, 174, 0.25); box-shadow: 0 0 0 80px rgba(176, 70, 143, 0.07), 0 0 0 160px rgba(176, 70, 143, 0.05);
}
.band .wrap { position: relative; }
.band h2 { max-width: 17ch; }
.band h2 em { color: var(--gold-soft); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.pillar { border-top: 1px solid rgba(228, 211, 174, 0.4); padding-top: 26px; }
.pillar h3 { color: #fff; margin-bottom: 10px; }
.pillar p { color: rgba(255, 255, 255, 0.7); font-size: 0.97rem; margin: 0; }

/* Industries --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 18px; font-size: 0.92rem; }
.section--tint .chips li { background: var(--paper); }

/* Insights ----------------------------------------------------------------- */
.notes { border-top: 1px solid var(--line); }
.note { border-bottom: 1px solid var(--line); }
.note summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 150px 1fr 44px; gap: 24px; align-items: center; padding: 28px 0;
}
.note summary::-webkit-details-marker { display: none; }
.note__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orchid); }
.note__title { font: 500 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--serif); }
.note__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; justify-self: end; transition: background 0.2s ease, border-color 0.2s ease; }
.note__icon::before, .note__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--plum); transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.note__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.note[open] .note__icon { background: var(--plum); border-color: var(--plum); }
.note[open] .note__icon::before, .note[open] .note__icon::after { background: #fff; }
.note[open] .note__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.note summary:hover .note__title { color: var(--plum); }
.note__body { padding: 0 68px 32px 174px; color: var(--muted); max-width: 980px; }
.fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 26px; max-width: 80ch; }

/* Sister company ----------------------------------------------------------- */
.sister {
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 52px);
  position: relative; overflow: hidden;
}
.sister::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--orchid), var(--gold)); }
.sister h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 10px; }
.sister p { margin: 0; color: var(--muted); max-width: 62ch; }

/* CTA ---------------------------------------------------------------------- */
.cta { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.03); }
.cta__in { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: clamp(64px, 8vw, 104px) 0; }
.cta h2 { margin: 0 0 14px; }
.cta h2 em { color: var(--gold-soft); }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.76); max-width: 48ch; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }
.cta__phone { font: 500 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); color: #fff; text-decoration: none; }
.cta__phone:hover { color: var(--gold-soft); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--plum-900); color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand__tag { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.25); }
.footer__title { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin: 6px 0 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 26px 0 34px; display: grid; gap: 12px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer__legal p { margin: 0; max-width: 110ch; }

/* Inner page hero ---------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--plum-deep), var(--plum-900)); color: #fff; padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px); }
.page-hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -180px; top: -300px; border: 1px solid rgba(228, 211, 174, 0.28); box-shadow: 0 0 0 80px rgba(176, 70, 143, 0.08), 0 0 0 160px rgba(176, 70, 143, 0.05); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); max-width: 16ch; margin-bottom: 22px; }
.page-hero h1 em { color: var(--gold-soft); }
.crumbs { font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); margin-bottom: 30px; }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Services page ------------------------------------------------------------ */
.svc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.svc-nav { position: sticky; top: 112px; }
.svc-nav li { border-top: 1px solid var(--line); }
.svc-nav li:last-child { border-bottom: 1px solid var(--line); }
.svc-nav a { display: flex; gap: 12px; padding: 14px 0; text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease, padding 0.2s ease; }
.svc-nav a span { font: italic 500 1rem/1.5 var(--serif); color: var(--gold); }
.svc-nav a:hover { color: var(--plum); padding-left: 6px; }
.svc-block { padding-bottom: clamp(48px, 7vw, 84px); margin-bottom: clamp(48px, 7vw, 84px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-block__no { font: italic 500 1.2rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
.svc-block > p { color: var(--muted); max-width: 62ch; }
.svc-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; }
.panel h4 { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum); margin-bottom: 18px; }
.ticks li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--paper-2); font-size: 0.96rem; }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 5px; border-left: 1.5px solid var(--orchid); border-bottom: 1.5px solid var(--orchid); transform: rotate(-45deg); }
.forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.form-tile { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 20px 18px; }
.form-tile b { display: block; font: 600 1.9rem/1 var(--serif); color: var(--plum); margin-bottom: 6px; }
.form-tile span { font-size: 0.84rem; color: var(--muted); }

/* About page --------------------------------------------------------------- */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { position: sticky; top: 112px; }
.portrait__frame { position: relative; width: 224px; margin: 0 0 26px 14px; }
.portrait__frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold); border-radius: 120px 120px 10px 10px; }
.portrait__frame img { position: relative; width: 224px; aspect-ratio: 223 / 345; object-fit: cover; border-radius: 112px 112px 8px 8px; }
.portrait__name { font: 600 1.6rem/1.1 var(--serif); margin: 0 0 4px; }
.portrait__role { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.facts li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 16px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.bio__text p:not(.eyebrow) { font-size: 1.06rem; color: #3a3041; max-width: 64ch; }
.bio__text p.bio__lead { font: 500 clamp(1.5rem, 2.4vw, 1.95rem)/1.3 var(--serif); color: var(--ink); }

.timeline { margin-top: 20px; border-left: 1px solid var(--gold); padding-left: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 0 0 34px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--orchid); }
.timeline__when { font: italic 500 1.3rem/1.3 var(--serif); color: var(--plum); }
.timeline__what b { display: block; font: 600 1.45rem/1.2 var(--serif); }
.timeline__what span { color: var(--muted); font-size: 0.95rem; }

.orgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.org { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.org__role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orchid); margin-bottom: 14px; }
.org p { color: var(--muted); font-size: 0.96rem; }
.org .text-link { margin-top: auto; align-self: flex-start; font-size: 0.88rem; }
.supports { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; padding-top: 28px; border-top: 1px solid var(--line); }
.supports b { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum); }
.supports span { font: 500 1.3rem/1.2 var(--serif); }

/* Contact page ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__label { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.contact__value { font: 500 1.7rem/1.2 var(--serif); text-decoration: none; color: var(--ink); }
a.contact__value:hover { color: var(--orchid); }
.contact__hint { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--plum); background: #fff; box-shadow: 0 0 0 4px rgba(176, 70, 143, 0.14); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: 0.82rem; flex: 1 1 220px; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--orchid-soft); color: var(--plum-deep); font-size: 0.92rem; }
.form-status[hidden] { display: none; }

/* Reveal ------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero__grid, .split, .contact, .bio, .cta__in { grid-template-columns: 1fr; }
  .cta__actions { justify-self: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .creds__grid { grid-template-columns: repeat(2, 1fr); }
  .creds__item { border-left: 0; padding: 26px 20px 26px 0; border-top: 1px solid var(--line); }
  .creds__item:nth-child(-n + 2) { border-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; }
  .svc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .svc-nav li, .svc-nav li:last-child { border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
  .svc-nav a { padding: 8px 16px; }
  .svc-nav a:hover { padding-left: 16px; }
  .portrait { position: static; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: end; }
  .portrait__frame { margin-bottom: 0; }
  .forms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 120px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font: 500 2rem/1.2 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav .btn { align-self: flex-start; }
  .site-header { backdrop-filter: none; background: var(--paper); }
  .head { grid-template-columns: 1fr; gap: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .sister { grid-template-columns: 1fr; }
  .orgs, .svc-cols { grid-template-columns: 1fr; }
  .note summary { grid-template-columns: 1fr 44px; }
  .note__tag { grid-column: 1 / -1; margin-bottom: -14px; }
  .note__body { padding: 0 0 28px; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .creds__num { font-size: 2rem; white-space: nowrap; }
  .card { padding: 30px 26px; }
  .card__no { margin-bottom: 26px; }
  .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
  .brand__name { font-size: 1.25rem; }
  .brand__mark { width: 40px; height: 40px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .portrait { grid-template-columns: 1fr; }
  .ledger__rows li { grid-template-columns: 50px 1fr; }
  .topbar__links { gap: 16px; font-size: 0.76rem; }
  .hero__actions .btn { width: 100%; }
}
