/* ==========================================================================
   Rebecca Dinwiddie DeRousse : v2 (butter + deep red)
   To change the brand color, edit --brand and --brand-deep below.
   ========================================================================== */

:root {
  /* ====== THE TWO COLORS ======
     Butter (paper) and deep red. Every other shade below is made from these. */
  --brand: #8E1B2A;          /* deep red */
  --brand-deep: #5E0F1B;     /* darker red: footer, hovers */
  --paper: #F7EED6;          /* butter: page background */
  --white: #FCF6E6;          /* light butter: cards, text on red */
  --tint: #F0E2BF;           /* deeper butter: alternate sections */

  --text: #3B1218;           /* very dark red, used for body text */
  --muted: rgba(59, 18, 24, .74);
  --line: rgba(110, 18, 32, .16);
  --tint-2: rgba(142, 27, 42, .09);
  --on-brand-muted: rgba(252, 246, 230, .8);
  --on-brand-line: rgba(252, 246, 230, .22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .78rem;

  --gap: clamp(1rem, .8rem + 1vw, 1.75rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(110, 18, 32, .06), 0 18px 40px -22px rgba(110, 18, 32, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--brand); color: var(--white); padding: .7rem 1rem; border-radius: 8px; font-weight: 600; font-size: var(--fs-small); transition: top .25s var(--ease); }
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.narrow { max-width: 920px; }

.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------------------------------------------------- */

.h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; color: var(--brand); letter-spacing: -.01em; }
.h1 { font-size: var(--fs-h1); line-height: 1.08; }
.h2 { font-size: var(--fs-h2); line-height: 1.15; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 500; }
.h1 em, .h2 em, .h3 em { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--white); }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 44rem; margin-top: 1.1rem; }
.muted { color: var(--muted); }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose .btn { margin-top: 1.5rem; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  background: var(--brand); color: var(--white);
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .875rem; }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn--text { background: transparent; border-color: transparent; color: var(--brand); padding-inline: .25rem; }
.btn--text:hover { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn--light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--on-brand-line); }
.btn--ghost-light:hover { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; align-items: center; }
.btn-row--center { justify-content: center; }

.tag {
  display: inline-flex; align-items: center;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--brand);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- Top bar + header --------------------------------------------- */

.topbar { background: var(--brand); color: var(--on-brand-muted); font-size: .8125rem; display: none; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--white); }
@media (min-width: 900px) { .topbar { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 246, 230, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(110, 18, 32, .5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand); color: var(--white);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.brand-role { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

.nav-list { display: flex; gap: .25rem; }
.nav-list a {
  position: relative; display: block;
  padding: .5rem .8rem;
  font-size: .9375rem; font-weight: 500; color: var(--muted);
  border-radius: 8px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-list a:hover { color: var(--brand); background: var(--tint); }
.nav-list a[aria-current="page"] { color: var(--brand); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--brand);
}
.nav-mobile-extra { display: none; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-bars { display: grid; gap: 5px; width: 20px; }
.menu-bars i { display: block; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nine links: hide the header button until there is room, and tighten links */
@media (max-width: 1559px) { .header-cta { display: none; } }
.brand-name, .brand-role { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1181px) {
  .nav-list a { padding-inline: .55rem; font-size: .9rem; }
  .header-inner { gap: 1rem; }
  .brand-role { display: none; }
}

/* Mobile and tablet menu */
@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    background: var(--white);
    padding: 1.5rem max(1.25rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    display: flex; flex-direction: column;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: .8rem .25rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--brand); border-radius: 0; }
  .nav-list a:hover { background: transparent; }
  .nav-list a[aria-current="page"] { font-style: italic; }
  .nav-list a[aria-current="page"]::after { left: auto; right: .25rem; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav-mobile-extra { display: grid; gap: .75rem; margin-top: auto; padding-top: 2rem; font-size: var(--fs-small); color: var(--muted); }
  .nav-mobile-extra a { display: inline-flex; align-items: center; gap: .6rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ------------------------------------------------------ */

.section { padding-block: var(--section); }
.section--compact { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-text { color: var(--muted); margin-top: .9rem; }
.section-foot { margin-top: 2.5rem; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }

/* ---------- Cards --------------------------------------------------------- */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: rgba(110, 18, 32, .32); box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { color: var(--muted); }
.card .h3 { margin-bottom: .6rem; }
.card-no {
  display: inline-block; margin-bottom: 1.1rem;
  font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1;
  color: var(--brand);
}
.card--navy { background: var(--brand); border-color: var(--brand); color: var(--white); }
.card--navy:hover { transform: none; }
.card--navy p { color: var(--on-brand-muted); }
.card--navy .side-name, .card--navy .eyebrow { color: var(--white); }

.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 6px;
  border-left: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand);
  transform: rotate(-45deg);
}

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

.hero { position: relative; padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0 clamp(3.5rem, 3rem + 3vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -20%;
  width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--tint-2), transparent 68%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-title { max-width: 14ch; }
.hero-sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}
.stat-num { font-family: var(--serif); font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.6rem); line-height: 1; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.stat-label { margin-top: .45rem; font-size: .8125rem; line-height: 1.4; color: var(--muted); }

.hero-photo { position: relative; width: min(100%, 440px); justify-self: center; }
.photo-wrap { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint-2); box-shadow: var(--shadow); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-badge {
  position: absolute; left: -1rem; bottom: 2.5rem;
  display: grid; gap: .1rem;
  padding: .9rem 1.2rem;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  border-left: 3px solid var(--brand);
}
.badge-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.badge-sub { font-size: .8125rem; color: var(--muted); }

/* Endless heartbeat line under the portrait */
.ecg { width: 100%; height: 44px; margin-top: 1.25rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ecg path { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ecg-strip { animation: ecg-move 3.2s linear infinite; }
@keyframes ecg-move { to { transform: translateX(-300px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1.5px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--brand); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 4rem; }
  .hero-photo { justify-self: end; }
  .scroll-cue { display: flex; }
}
@media (max-width: 480px) {
  .hero-stats { gap: .75rem; }
  .stat-label { font-size: .75rem; }
  .photo-badge { left: .75rem; bottom: 4.5rem; }
}

/* ---------- Ticker -------------------------------------------------------- */

.ticker { background: var(--brand); color: var(--white); overflow: hidden; padding: 1.05rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; white-space: nowrap; }
.ticker-list li { font-family: var(--serif); font-size: 1.15rem; }
.ticker-list .tick-star { font-size: .8rem; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Results ------------------------------------------------------- */

.results { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.result { padding: 1.5rem 0 0; border-top: 2px solid var(--brand); }
.result-label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.result-fig { display: grid; margin-top: .9rem; }
.result-from { font-size: var(--fs-small); color: var(--muted); }
.result-to { font-family: var(--serif); font-size: clamp(2.2rem, 1.9rem + 1.2vw, 3rem); line-height: 1.05; color: var(--brand); }
.result-src { margin-top: .7rem; font-size: .875rem; color: var(--muted); }

/* ---------- Page hero (inner pages) -------------------------------------- */

.page-hero { background: var(--tint); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(3rem, 2.5rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: .5rem; font-size: .8125rem; color: var(--muted); margin-bottom: 1.75rem; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--brand); font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.hero-meta li { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .875rem; color: var(--muted); }
.hero-meta strong { color: var(--brand); font-weight: 600; }

/* ---------- Profile ------------------------------------------------------- */

.profile-grid { display: grid; gap: 3rem; align-items: start; }
.profile-photo { width: min(100%, 420px); }
.profile-photo figcaption { display: grid; margin-top: 1.1rem; gap: .15rem; }
.profile-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.profile-role { font-size: .875rem; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.mini-stats p.stat-label { margin-top: .35rem; }
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
  .profile-photo { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.statement {
  max-width: 54rem; margin-inline: auto; text-align: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
}
.statement p { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem); line-height: 1.35; color: var(--brand); }
.statement footer { margin-top: 1.25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statement footer::before { content: ""; display: block; width: 40px; height: 2px; margin: 0 auto 1rem; background: var(--brand); }

.card--edu .edu-abbr {
  display: inline-grid; place-items: center;
  min-width: 56px; height: 56px; padding: 0 .75rem; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--brand); color: var(--white);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
}

.cred-list { display: grid; gap: .75rem; }
.cred {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
}
.cred-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint-2); color: var(--brand); }
.cred-body { display: grid; gap: .1rem; min-width: 0; }
.cred-title { font-weight: 600; line-height: 1.4; }
.cred-abbr { font-size: .875rem; color: var(--muted); }
@media (max-width: 560px) {
  .cred { grid-template-columns: auto 1fr; }
  .cred .tag { grid-column: 2; justify-self: start; }
}

/* ---------- Timeline ------------------------------------------------------ */

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: 0; width: 2px; background: var(--line); }
.tl-decade + .tl-decade { margin-top: 2.5rem; }
.tl-decade-label { position: relative; margin-bottom: 1.5rem; padding-left: 2.25rem; }
.tl-decade-label span {
  display: inline-block; padding: .3rem 1rem; border-radius: 999px;
  background: var(--brand); color: var(--white);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; font-weight: 400;
}
.tl-item { position: relative; padding-left: 2.25rem; margin-bottom: 1.5rem; }
.tl-dot { position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); }
.tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .5s var(--ease); }
.tl-item.is-in .tl-dot::after { transform: scale(1); }
.tl-date { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.tl-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--white); transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.tl-card:hover { box-shadow: var(--shadow); border-color: rgba(110, 18, 32, .3); }
.tl-org { margin-top: .2rem; font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.tl-desc { margin-top: .9rem; font-size: var(--fs-small); color: var(--muted); padding: .85rem 1rem; background: var(--tint); border-radius: var(--radius-sm); }
.tl-card .ticks { margin-top: 1rem; }
.tl-note { margin-top: 2rem; padding-left: 2.25rem; font-size: .875rem; color: var(--muted); }
@media (min-width: 768px) {
  .timeline::before { left: 11px; }
  .tl-item { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; padding-left: 3rem; }
  .tl-dot { left: 4px; }
  .tl-decade-label, .tl-note { padding-left: 3rem; }
  .tl-date { margin: .55rem 0 0; }
}

/* ---------- Expertise ----------------------------------------------------- */

.prog-list { display: grid; gap: .75rem; }
.prog { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prog-year { font-family: var(--serif); font-size: 1.35rem; color: var(--brand); line-height: 1.2; }
.prog-body { display: grid; gap: .2rem; }
.prog-title { font-weight: 600; }
.prog-text { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Achievements -------------------------------------------------- */

.big-stat { display: grid; gap: 1rem 3rem; align-items: center; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: 20px; background: var(--brand); color: var(--white); }
.big-stat .eyebrow { color: var(--white); }
.big-stat-num { font-family: var(--serif); font-size: clamp(4.5rem, 3.5rem + 5vw, 8rem); line-height: .9; }
.big-stat-text { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); line-height: 1.35; max-width: 34rem; }
@media (min-width: 700px) { .big-stat { grid-template-columns: auto 1fr; } }

.card--ach { display: flex; flex-direction: column; }
.ach-fig { font-family: var(--serif); font-size: clamp(2rem, 1.8rem + 1vw, 2.6rem); line-height: 1.05; color: var(--brand) !important; }
.ach-fig span { font-size: .5em; font-style: italic; color: var(--muted); }
.ach-text { margin: .75rem 0 1.25rem; font-family: var(--sans); font-size: var(--fs-small); font-weight: 400; color: var(--muted); line-height: 1.6; }
.card--ach .tag { margin-top: auto; align-self: flex-start; white-space: normal; }

.partner-list { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .partner-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partner { display: grid; gap: .65rem; justify-items: start; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.partner-no { font-family: var(--serif); font-style: italic; color: var(--muted); }
.partner-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--brand); }

/* ---------- Contact ------------------------------------------------------- */

.quick-links { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  min-width: 0;
}
a.quick:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.quick-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--brand); color: var(--white); }
.quick-icon .ico { width: 1.3em; height: 1.3em; }
.quick > span:last-child { display: grid; min-width: 0; }
.quick-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quick-value { font-weight: 600; overflow-wrap: anywhere; }

.contact-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1025px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: 2rem; } }

.form-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow); overflow: hidden; }
.form-title { margin-bottom: .35rem; }
.form-intro { font-size: .875rem; margin-bottom: 1.75rem; }
.fields { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field:not(.field--half) { grid-column: 1 / -1; }
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .875rem; font-weight: 600; }
.req { color: var(--brand); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: rgba(110, 18, 32, .32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--brand); border-style: dashed; }
.field-error { min-height: 1.6rem; font-size: .8125rem; font-weight: 500; color: var(--brand); padding-top: .2rem; }
.field-error:not(:empty)::before { content: "! "; font-weight: 700; }
.form-status { margin-top: 1rem; font-size: .875rem; color: var(--muted); }

.form-success { text-align: center; display: grid; justify-items: center; gap: .75rem; padding: 2rem 0; }
.form-success:focus { outline: none; }
.sent-seal { width: 120px; height: 120px; color: var(--brand); margin-bottom: .5rem; }
.sent-seal circle { fill: none; stroke: currentColor; stroke-width: 3; }
.sent-seal .thin { stroke-width: 1; stroke-dasharray: 3 4; }
.sent-seal .tick { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.form-success.is-shown .sent-seal { animation: seal-in .6s var(--ease) both; }
.form-success.is-shown .tick { animation: draw .6s var(--ease) .35s forwards; }
.form-success .btn { margin-top: .75rem; }
@keyframes seal-in { from { transform: scale(1.8) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.contact-side { display: grid; gap: var(--gap); }
.side-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.side-role { margin-top: .25rem; font-size: .875rem; color: var(--on-brand-muted) !important; }
.side-list { display: grid; gap: .7rem; margin: 1.5rem 0; font-size: var(--fs-small); }
.side-list li, .side-list a { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.side-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card--navy .btn { width: 100%; }

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

.cta-band { background: var(--brand); color: var(--white); padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem); text-align: center; }
.cta-inner { display: grid; justify-items: center; }
.cta-band .h2 { color: var(--white); max-width: 22ch; }
.cta-text { margin-top: 1rem; color: var(--on-brand-muted); max-width: 36rem; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer { background: var(--brand-deep); color: var(--on-brand-muted); padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 calc(1.75rem + env(safe-area-inset-bottom)); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--on-brand-line); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; gap: 3rem; } }
.footer-name { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; color: var(--white); }
.footer-role { margin-top: .3rem; color: var(--white); font-weight: 500; }
.footer-text { margin-top: 1rem; max-width: 26rem; }
.footer-head { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list a { overflow-wrap: anywhere; transition: color .25s var(--ease); }
.footer-list a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.75rem; font-size: .8125rem; }
.credit { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--on-brand-line); transition: border-color .25s var(--ease); }
.credit:hover { border-color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }

.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--white); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.to-top:hover { background: var(--brand-deep); }

/* ---------- Reveal on scroll (only when JS runs) -------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Page fade between pages */
body { animation: page-in .5s var(--ease) both; }
html.is-leaving body { opacity: 0; transition: opacity .22s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Large screens ------------------------------------------------- */
@media (min-width: 1800px) { html { font-size: 106.25%; } .container { max-width: 1320px; } }
@media (min-width: 2400px) { html { font-size: 118.75%; } }

/* ---------- Small phones -------------------------------------------------- */
@media (max-width: 360px) {
  .brand-role { display: none; }
  .brand-name { font-size: 1.05rem; }
  .btn { padding-inline: 1.1rem; }
  .mini-stats, .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .prog { grid-template-columns: 52px 1fr; padding: 1rem; }
}

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ==========================================================================
   Added pages: Biography, Vision, Consulting + affiliations
   ========================================================================== */

.footer-grid > div:nth-child(2) .footer-list { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 2.5rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
@media (max-width: 560px) { .tag-row { grid-column: 2; justify-content: flex-start; } }
.tag--mt { margin-top: 1.1rem; }
.tag--lg { padding: .55rem 1.1rem; font-size: .9rem; background: var(--white); border: 1px solid var(--line); white-space: normal; text-align: center; max-width: 100%; }

/* Affiliations + speaking */
.affil-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .affil-grid { grid-template-columns: 4fr 7fr; gap: 2.5rem; } }
.affil-abbr { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--white) !important; margin-bottom: 1rem; }
.affil-card .side-name { font-size: 1.35rem; margin-bottom: .6rem; }

/* Biography */
.byline { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.byline-name { font-weight: 600; line-height: 1.4; }
.byline-meta { font-size: .875rem; color: var(--muted); }
.bio-chapter { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
.bio-chapter:last-child { border-bottom: 0; }
.bio-chapter .h2 { margin-bottom: 1.25rem; }
.bio-chapter .prose { max-width: 44rem; }
.hl-text { margin-top: .6rem; font-size: var(--fs-small); }

/* Vision */
.statement--big p { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem); }
.commitment { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border: 1px solid var(--line); border-radius: 20px; border-left: 4px solid var(--brand); }
.commitment .lead { margin-top: 1rem; }

/* Consulting steps */
.steps { display: grid; gap: .9rem; counter-reset: none; padding: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.step-no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--white); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.step .h3 { margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: var(--fs-small); }
.who-list { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }


/* ==========================================================================
   PREMIUM LAYER: butter paper, red ink, certificates, stamps
   ========================================================================== */

/* Fine paper grain over the butter */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .1 0 0 0 0 .12 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Headings: dark ink, italic accent in red */
.h1, .h2, .h3 { color: var(--text); }
.h1 em, .h2 em, .h3 em, .footer-name em, .side-name em { color: var(--brand); }
.cta-band .h2 em, .card--navy em, .footer-name em { color: var(--white); }

/* Eyebrow: small red diamond instead of a line */
.eyebrow::before { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }

/* Header and menu on butter */
.site-header { background: rgba(247, 238, 214, .9); }
.site-header.is-scrolled { border-color: var(--line); }
@media (max-width: 1180px) { .nav { background: var(--paper); } }
.brand-mark { border-radius: 50%; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--brand); }

/* Buttons: tailored, small caps, square-ish */
.btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; padding: .85rem 1.5rem; }
.btn--sm { font-size: .72rem; }
.btn--text { letter-spacing: .1em; }

/* Cards: hairline frame inside the border for a printed feel */
.card, .tl-card, .cred, .prog, .partner, .quick, .step, .form-card {
  background: var(--white);
  border-color: var(--line);
}
.card::after, .tl-card::after, .partner::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(142, 27, 42, .08); border-radius: 3px; pointer-events: none;
}
.tl-card, .partner { position: relative; }
.card:hover { border-color: rgba(142, 27, 42, .35); }
.card-no { color: var(--brand); }
.tag { background: var(--tint-2); color: var(--brand); border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.ticks li::before { border-color: var(--brand); }

/* Red sections */
.topbar, .ticker, .cta-band, .card--navy, .big-stat, .tl-decade-label span, .step-no, .quick-icon, .brand-mark, .card--edu .edu-abbr { background: var(--brand); color: var(--white); }
.site-footer { background: var(--brand-deep); }
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--on-brand-line); pointer-events: none;
}

/* Section dividers: a centred diamond between hairlines on tinted sections */
.section--tint { position: relative; }
.section--tint::before {
  content: "\2726"; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--paper); color: var(--brand); font-size: .8rem; border: 1px solid var(--line); border-radius: 50%;
}

/* Photos: double frame */
.photo-wrap { border-radius: 4px; box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line), var(--shadow); }
.byline img { box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line); }

/* ---------- Seals and rubber stamps ---------- */
.seal { display: block; width: 100%; height: 100%; overflow: visible; }
.seal-ink { filter: url(#ink); }
.seal circle { fill: none; stroke: currentColor; }
.seal .s-outer { stroke-width: 5; }
.seal .s-thin { stroke-width: 1.2; }
.seal .s-mid { stroke-width: 2; stroke-dasharray: 3 4; }
.seal-ring { fill: currentColor; font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; }
.seal-center { fill: currentColor; font-family: var(--serif); font-style: italic; font-weight: 500; }
.seal--red { color: var(--brand); }
.seal--light { color: var(--white); }
.seal--bold .s-outer { stroke-width: 7; }
.stamp-wrap { pointer-events: none; mix-blend-mode: multiply; }
.card--navy .stamp-wrap, .big-stat .stamp-wrap { mix-blend-mode: normal; opacity: .9; }

.rubber {
  position: absolute; z-index: 3;
  display: inline-block;
  padding: .4rem .85rem .35rem;
  border: 2.5px solid var(--brand); outline: 1px solid var(--brand); outline-offset: 3px;
  color: var(--brand);
  font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase;
  filter: url(#ink);
  transform: rotate(-12deg);
  white-space: nowrap;
}
.rubber--sm { font-size: .7rem; padding: .3rem .6rem .25rem; border-width: 2px; outline-offset: 2px; top: 1.1rem; right: 1.1rem; }

/* Hero photo seal + results seal */
.hero-photo { isolation: isolate; }
.photo-seal { position: absolute; right: -18px; top: -22px; width: 108px; height: 108px; z-index: 3; transform: rotate(-14deg); }
.head-with-stamp { position: relative; }
.head-stamp { position: absolute; right: 0; top: -.5rem; width: 112px; height: 112px; transform: rotate(12deg); }
@media (max-width: 640px) { .head-stamp { width: 84px; height: 84px; top: -1rem; } .photo-seal { width: 86px; height: 86px; right: -6px; } }

.big-stat { position: relative; overflow: hidden; }
.big-stat-seal { position: absolute; right: 1.5rem; top: 50%; width: 130px; height: 130px; margin-top: -65px; transform: rotate(-12deg); }
@media (max-width: 700px) { .big-stat-seal { position: relative; right: auto; top: auto; margin: 0; width: 96px; height: 96px; } }
@media (min-width: 700px) { .big-stat { padding-right: 180px; } }
.affil-card { overflow: hidden; }
.affil-seal { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; opacity: .55 !important; }

/* ---------- Certificates ---------- */
.certs { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
@media (min-width: 760px) { .certs--2, .certs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .certs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cert {
  position: relative;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(142, 27, 42, .3);
  box-shadow: 0 30px 50px -36px rgba(94, 15, 27, .55), 0 2px 0 rgba(110, 18, 32, .05);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(240, 226, 191, .9), transparent 60%),
    repeating-linear-gradient(45deg, rgba(142, 27, 42, .025) 0 2px, transparent 2px 9px);
}
.cert-frame {
  position: relative; height: 100%;
  border: 2px solid var(--brand);
  outline: 1px solid var(--brand); outline-offset: -7px;
  padding: clamp(2rem, 1.5rem + 2vw, 2.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(2.5rem, 2rem + 2vw, 3.25rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.cert-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--brand); }
.cert-corner::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg); }
.c1 { top: 12px; left: 12px; border-right: 0; border-bottom: 0; } .c1::after { top: 4px; left: 4px; }
.c2 { top: 12px; right: 12px; border-left: 0; border-bottom: 0; } .c2::after { top: 4px; right: 4px; }
.c3 { bottom: 12px; left: 12px; border-right: 0; border-top: 0; } .c3::after { bottom: 4px; left: 4px; }
.c4 { bottom: 12px; right: 12px; border-left: 0; border-top: 0; } .c4::after { bottom: 4px; right: 4px; }
.cert-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.cert-abbr { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.1rem); line-height: 1; color: var(--brand); margin-top: .35rem; }
.cert-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.25; color: var(--text); max-width: 22ch; }
.cert-small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .75rem; }
.cert-name { font-family: var(--script); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); line-height: 1.1; color: var(--text); margin-top: -.2rem; }
.cert-rule { width: 70%; max-width: 220px; height: 1px; background: rgba(142, 27, 42, .45); }
.cert-inst { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cert-seal { position: absolute; right: 14px; bottom: 10px; width: 92px; height: 92px; transform: rotate(-10deg); }
.cert .rubber { right: 16px; bottom: 22px; }
.certs--2 .cert-frame { padding-bottom: 4.25rem; }
.certs--3 .cert-frame { padding-bottom: 5.25rem; }

/* ---------- Slow red pulse monitor ---------- */
.monitor { position: relative; margin-top: 1.5rem; padding: .9rem 1rem .6rem; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.monitor-label { position: absolute; left: .9rem; top: .55rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.monitor-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.monitor-svg { width: 100%; height: auto; overflow: visible; }
.monitor-grid { fill: none; stroke: rgba(142, 27, 42, .08); stroke-width: 1; }
.monitor-base { fill: none; stroke: rgba(142, 27, 42, .14); stroke-width: 1.5; stroke-linejoin: round; }
.monitor-trace { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(142, 27, 42, .45)); }
.monitor-dot { fill: var(--brand); filter: drop-shadow(0 0 6px rgba(142, 27, 42, .9)); }
/* Fallback without GSAP: a slow CSS sweep */
html:not(.gsap) .monitor-trace { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: sweep 6.5s linear infinite; }
html:not(.gsap) .monitor-dot { display: none; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.ecg { display: none; }

/* ---------- Contact SENT stamp ---------- */
.sent-stamp { width: 150px; height: 150px; transform: rotate(-12deg); margin-bottom: .5rem; }

/* Reveal states for GSAP (content stays visible if scripts fail) */
.gsap [data-reveal] { transition: none; }
.js [data-stamp] { opacity: 0; }
html.no-gsap [data-stamp], html:not(.js) [data-stamp] { opacity: 1; }

/* Selection, focus */
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline-color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .js [data-stamp] { opacity: 1; }
  .monitor-trace { stroke-dasharray: none !important; animation: none !important; }
}

/* Stamps scale up as they drop in: never let that widen the page */
main { overflow-x: clip; }

/* Badge sits at the top-left of the photo, clear of the pulse monitor */
.hero-photo .photo-badge { top: 1.75rem; bottom: auto; left: -1rem; z-index: 2; }
@media (max-width: 480px) { .hero-photo .photo-badge { left: .75rem; top: 1rem; } }
.certs--3 .cert-name { font-size: clamp(1.6rem, 1.4rem + .6vw, 1.95rem); white-space: nowrap; }

/* Mobile menu fix: the header's blur effect traps fixed elements inside it,
   which squeezed the menu into the header bar. Use a solid header on mobile
   and give the menu an explicit full-screen height. */
@media (max-width: 1180px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: auto;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    z-index: 99;
    box-shadow: 0 24px 40px -30px rgba(94, 15, 27, .5);
  }
  .menu-toggle { position: relative; z-index: 101; background: var(--white); border-color: rgba(142, 27, 42, .3); }
  .menu-bars i { background: var(--brand); }
}
