/* ==========================================================================
   Jared Floyd — dark editorial theme
   Display: Bodoni Moda (self-hosted, OFL). Text: Geist (self-hosted, OFL).
   Palette lives in tokens.json: near-black, ivory, one champagne accent.
   ========================================================================== */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bodoni-moda-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/bodoni-moda-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bodoni-moda-400-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-var.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --label-track: 0.22em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(88px + var(--demo-h, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 16px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ---------- media embeds: make a marker's <figure>/<img> fill its slot ---------- */
.brand-mark figure, .portrait-mark figure, .hero-media figure,
.brand-mark .jini-media, .portrait-mark .jini-media, .hero-media .jini-media { margin: 0; }
.brand-mark figcaption, .portrait-mark figcaption, .hero-media figcaption { display: none; }

/* ---------- labels & type ---------- */
.label, .eyebrow, .label-sm {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
}
.label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.label .num { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.label .num::after { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--border-strong); margin-left: 14px; vertical-align: middle; }
.label-center { justify-content: center; text-align: center; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}
.h2-xl { font-size: clamp(56px, 9vw, 128px); line-height: 0.95; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: rgba(var(--fg-rgb),0.06); }

.text-link {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--border-strong);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.text-link:hover { color: var(--accent-text); border-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: var(--demo-h, 0px) 0 auto 0; z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(var(--bg-rgb),0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { display: block; width: 40px; flex: none; }
.brand-mark img { width: 100%; height: auto; }
.brand-name {
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.01em;
}
.main-nav, .main-nav ul { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 44px); }
.main-nav li { list-style: none; }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 11px; font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--fg); opacity: .82; transition: opacity .3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.is-current { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  padding-top: calc(120px + var(--demo-h, 0px));
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media figure, .hero-media > *, .hero-media picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; opacity: .55; filter: saturate(.75) contrast(1.05); }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),.55) 0%, rgba(var(--bg-rgb),0) 22%, rgba(var(--bg-rgb),0) 45%, rgba(var(--bg-rgb),.9) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb),.7) 0%, rgba(var(--bg-rgb),0) 60%);
}
.hero-inner { padding-bottom: clamp(56px, 9vh, 104px); }
.hero .eyebrow { margin-bottom: 22px; color: var(--accent-text); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(68px, 13.5vw, 196px);
  line-height: .88; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-lede {
  margin-top: 28px; max-width: 30ch;
  font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3;
  color: var(--fg); opacity: .9;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-foot {
  display: flex; gap: 40px; justify-content: flex-end;
  padding-bottom: 28px; border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted);
}

/* ---------- brands ---------- */
.brands { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--border); }
.brands .label { margin-bottom: 36px; }
.brand-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  column-gap: 0; row-gap: 10px; max-width: 1080px; margin: 0 auto; text-align: center;
}
.brand-list li {
  font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.3; color: var(--fg); opacity: .78; white-space: nowrap;
}
.brand-list li:nth-child(3n+2) { font-style: italic; }
.brand-list li:not(:last-child)::after {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); vertical-align: middle; margin: 0 clamp(14px, 2vw, 26px); opacity: .9;
  transform: translateY(-2px);
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.portrait { position: sticky; top: 120px; }
.portrait-plate {
  position: relative; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb),.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.portrait-plate::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--border); pointer-events: none;
}
.portrait-mark { display: block; width: 46%; opacity: .92; }
.portrait-mark img { width: 100%; height: auto; }
.portrait figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted);
}
.quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.01em;
  text-wrap: balance; margin-bottom: 44px;
}
.prose { max-width: 60ch; }
.prose p { color: var(--fg); opacity: .86; font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 1.1em; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 0;
  border-top: 1px solid var(--border);
}
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.3; }
.facts dd span { font-family: var(--font-body); font-size: 14px; color: var(--muted); }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.service { padding: 40px 36px 8px 0; }
.service + .service { padding-left: 36px; border-left: 1px solid var(--border); }
.service-num { display: block; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--accent-text); margin-bottom: 40px; }
.service h3 { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; margin-bottom: 18px; max-width: 14ch; }
.service p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 36ch; }

/* ---------- open searches (collection marker, list layout) ---------- */
.search-list { border-top: 1px solid var(--border-strong); }
.search-list ul, .search-list ol { display: block; }
.search-list li { list-style: none; }
.search-card {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; column-gap: 48px; row-gap: 10px;
  align-items: start; padding: 40px 0; border-bottom: 1px solid var(--border);
  transition: background-color .4s var(--ease);
}
.search-company { margin-bottom: 12px; font-size: 11px; font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--accent-text); }
.search-title { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; text-wrap: balance; }
.search-body { padding-top: 22px; }
.search-summary { color: var(--fg); opacity: .82; font-size: 16px; line-height: 1.65; max-width: 52ch; }
.search-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.search-meta span:empty { display: none; }
.search-apply {
  align-self: center; white-space: nowrap;
  display: inline-flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--border-strong);
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.search-apply:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search-empty { padding: 40px 0; color: var(--muted); }

/* ---------- career timeline ---------- */
.career-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.career-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.career-grid .h2 { font-size: clamp(36px, 4.2vw, 56px); max-width: 12ch; }
.timeline { border-top: 1px solid var(--border-strong); }
.timeline li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.t-years { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.t-role strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.25; }
.t-role span { display: block; margin-top: 4px; color: var(--fg); opacity: .78; font-size: 15px; }
.t-role small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 58ch; }
.t-city { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.t-group .t-role span { line-height: 1.7; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact-lede { margin-top: 32px; max-width: 42ch; color: var(--fg); opacity: .84; font-size: 18px; line-height: 1.65; }
.contact-direct { margin-top: 48px; border-top: 1px solid var(--border); }
.contact-direct li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-direct a { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 24px); transition: color .3s var(--ease); overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--accent-text); }

/* native Tovu form inside .contact-form — element-level styling so it follows any form markup */
.contact-form { border: 1px solid var(--border); background: rgba(var(--bg-rgb),.5); padding: clamp(28px, 4vw, 48px); }
.contact-form form { display: grid; gap: 26px; }
.contact-form label, .contact-form legend {
  display: block; margin-bottom: 10px; padding: 0;
  font-size: 11px; font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted);
}
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form input[type="url"], .contact-form textarea, .contact-form select {
  width: 100%; display: block;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0;
  padding: 10px 0 12px; font: inherit; font-size: 17px;
  transition: border-color .3s var(--ease);
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-bottom-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(var(--fg-rgb),.38); }
/* radio "I am a…" as two segmented choices */
.contact-form fieldset > div, .contact-form [role="radiogroup"] { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form input[type="radio"], .contact-form input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.contact-form fieldset label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px 16px; border: 1px solid var(--border-strong);
  font-size: 12px; letter-spacing: 0.1em; color: var(--fg); cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.contact-form fieldset label:hover { border-color: var(--fg); }
.contact-form fieldset label:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.contact-form button, .contact-form input[type="submit"] {
  justify-self: start; min-height: 54px; padding: 0 36px; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 0;
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color .3s var(--ease);
}
.contact-form button:hover, .contact-form input[type="submit"]:hover { background: var(--accent); }
.contact-form small, .contact-form .help, .contact-form [class*="help"] { color: var(--muted); font-size: 13px; }
.contact-form [class*="error"], .contact-form [role="alert"] { color: var(--danger-text, #f0a59a); font-size: 14px; }
.contact-form [class*="success"], .contact-form [role="status"] { color: var(--accent-text); }

/* ---------- searches page ---------- */
.page-hero { padding: clamp(160px, 22vh, 220px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(56px, 10vw, 140px); line-height: .92; letter-spacing: -0.03em; }
.page-hero h1 em { font-style: italic; }
.page-hero .intro { margin-top: 32px; max-width: 54ch; color: var(--fg); opacity: .84; font-size: 18px; line-height: 1.65; }
.searches-page .search-list { border-top: 0; }
.searches-page .section { padding-top: clamp(24px, 4vw, 56px); }
.cta-band { padding: var(--section) 0; border-top: 1px solid var(--border); text-align: center; }
.cta-band h2 { margin: 0 auto 24px; max-width: 18ch; }
.cta-band p { margin: 0 auto; max-width: 48ch; color: var(--muted); }
.cta-band .cta-row { justify-content: center; }

/* ---------- generic page / post shell (pages-default, 404, posts) ---------- */
.post-detail { max-width: 760px; margin: 0 auto; padding: clamp(150px, 20vh, 200px) var(--gutter) var(--section); }
.post-detail h1 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 32px; }
.post-detail h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.15; margin: 48px 0 16px; }
.post-detail h3 { font-family: var(--font-display); font-size: 24px; margin: 32px 0 12px; }
.post-detail p, .post-detail li { color: var(--fg); opacity: .86; font-size: 18px; line-height: 1.7; }
.post-detail p + p { margin-top: 1em; }
.post-detail ul, .post-detail ol { padding-left: 1.2em; margin: 1em 0; list-style: disc; }
.post-detail a { color: var(--accent-text); border-bottom: 1px solid currentColor; }
.post-detail img { margin: 32px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand .brand-mark { width: 56px; }
.footer-tag { font-family: var(--font-display); font-size: 20px; max-width: 26ch; line-height: 1.3; opacity: .9; }
.footer-links, .footer-links ul { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.footer-links li { list-style: none; }
.footer-links a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); opacity: .82;
  padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), opacity .3s var(--ease);
}
.footer-links a[href^="mailto"] { text-transform: none; letter-spacing: 0.04em; font-size: 14px; }
.footer-links a:hover { opacity: 1; border-color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted);
}
.footer-bottom a:hover { color: var(--fg); }
.site-footer-minimal .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .career-grid { grid-template-columns: 1fr; }
  .career-grid .section-head { position: static; margin-bottom: 40px; }
  .search-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-apply { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { position: static; }
  .portrait-plate { aspect-ratio: 16 / 10; }
  .portrait-mark { width: 26%; }
  .service-grid { grid-template-columns: 1fr; border-top: 0; }
  .service, .service + .service { padding: 32px 0; border-left: 0; border-top: 1px solid var(--border); }
  .service:first-child { border-top-color: var(--border-strong); }
  .service-num { margin-bottom: 16px; }
  .service h3 { max-width: none; }
  .hero-foot { justify-content: flex-start; gap: 20px; flex-wrap: wrap; }
  .search-card { grid-template-columns: 1fr; padding: 32px 0; }
  .search-body { padding-top: 16px; }
}
@media (max-width: 640px) {
  .nav-row { height: 68px; }
  .brand-name { display: none; }
  .brand-mark { width: 34px; }
  .main-nav, .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 10.5px; letter-spacing: 0.16em; }
  .hero { padding-top: calc(96px + var(--demo-h, 0px)); }
  .hero-media { bottom: 40%; }
  .hero-media img { object-position: 50% 62%; opacity: .7; }
  .hero-veil { background: linear-gradient(180deg, rgba(var(--bg-rgb),.5) 0%, rgba(var(--bg-rgb),0) 18%, rgba(var(--bg-rgb),0) 30%, rgba(var(--bg-rgb),.85) 52%, var(--bg) 62%); }
  .hero-lede { font-size: 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-foot { display: none; }
  .brand-list li { font-size: 19px; }
  .brand-list li:not(:last-child)::after { margin: 0 12px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .t-city { text-align: left; }
  .t-city:empty { display: none; }
  .contact-form { padding: 24px 20px; }
  .contact-direct li { flex-direction: column; gap: 6px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   Multi-page additions — editorial page shell, image slots, About,
   Work With Jared, Contact, home teasers, mobile nav
   ========================================================================== */

/* ---------- image slots: framed placeholders until real assets arrive ----------
   Drop a media embed (or <img>) inside .img-slot and the label/frame hide. */
.img-slot {
  position: relative; display: grid; place-items: center; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb),.09), transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid rgba(var(--accent-rgb),.4);
}
.img-slot::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--border); pointer-events: none;
}
.img-slot-label {
  position: relative; padding: 9px 16px; text-align: center;
  font-size: 10.5px; font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--accent-text); background: var(--bg); border: 1px solid rgba(var(--accent-rgb),.4);
}
.img-slot-portrait { aspect-ratio: 4 / 5; }
.img-slot-wide { aspect-ratio: 16 / 9; }
.img-slot-band { aspect-ratio: 21 / 9; }
.img-slot img, .img-slot video, .img-slot figure, .img-slot .jini-media {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0;
}
.img-slot:has(img, video)::before, .img-slot:has(img, video) .img-slot-label { display: none; }

/* ---------- editorial page shell (pages-editorial.html) ---------- */
.editorial-body { display: block; }
.page-editorial .page-hero h1 { max-width: 13ch; }
.jump-links { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 44px; }
.editorial-band { padding: clamp(40px, 6vw, 88px) 0 0; }
.editorial-band + .section { border-top: 0; }
.story .cta-row { margin-top: 44px; }
.portrait figcaption { flex-wrap: wrap; row-gap: 6px; }
.portrait figcaption span { white-space: nowrap; }

/* ---------- two-column section heads (career, education, process) ---------- */
.edu-grid, .process-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.edu-grid .section-head, .process-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.edu-grid .h2, .process-grid .h2 { font-size: clamp(36px, 4.2vw, 56px); max-width: 12ch; }

/* ---------- education ---------- */
.edu-degree { padding: 28px 0 32px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
.edu-school { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.edu-detail { margin-top: 12px; color: var(--muted); font-size: 16px; }
.edu-detail em { font-family: var(--font-display); font-size: 19px; color: var(--accent-text); }
.edu-label { display: block; margin: 40px 0 18px; color: var(--accent-text); }
.edu-list { display: flex; flex-wrap: wrap; gap: 10px; }
.edu-list li { padding: 10px 16px; border: 1px solid var(--border-strong); font-size: 14px; letter-spacing: .02em; line-height: 1.3; }
.edu-lang { font-family: var(--font-display); font-size: 26px; }

/* ---------- how a search works ---------- */
.steps { border-top: 1px solid var(--border-strong); }
.steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent-text); }
.steps h3 { font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 56ch; }

/* ---------- for candidates ---------- */
.cand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.cand-item { padding: 40px 36px 8px 0; }
.cand-item + .cand-item { padding-left: 36px; border-left: 1px solid var(--border); }
.cand-item h3 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin-bottom: 16px; }
.cand-item p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 38ch; }

/* ---------- contact page ---------- */
.contact-page { padding-top: clamp(150px, 20vh, 200px); }

/* ---------- home teasers ---------- */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: end; }
.teaser-grid .quote { margin-bottom: 0; }
.teaser-copy .text-link { margin-top: 32px; }
.home-band { padding: 0 0 clamp(64px, 8vw, 120px); }
.home-band + .section { border-top: 1px solid var(--border); }
.section-foot { margin-top: 48px; }

/* ---------- mobile nav (toggle shown only when site.js has armed it) ---------- */
.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  background: transparent; color: var(--fg); border: 1px solid var(--border-strong); border-radius: 0;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
html.nav-locked { overflow: hidden; }

@media (max-width: 1024px) {
  .edu-grid, .process-grid { grid-template-columns: 1fr; }
  .edu-grid .section-head, .process-grid .section-head { position: static; margin-bottom: 40px; }
}
@media (max-width: 860px) {
  .cand-grid { grid-template-columns: 1fr; border-top: 0; }
  .cand-item, .cand-item + .cand-item { padding: 32px 0; border-left: 0; border-top: 1px solid var(--border); }
  .cand-item:first-child { border-top-color: var(--border-strong); }
  .cand-item p { max-width: none; }
  .teaser-grid { grid-template-columns: 1fr; align-items: start; gap: 32px; }
  .img-slot-band { aspect-ratio: 4 / 3; }
  .story .portrait { max-width: 440px; }
}
@media (max-width: 760px) {
  .site-header:not(.js-nav) .main-nav { overflow-x: auto; }
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .main-nav {
    position: fixed; left: 0; right: 0; top: calc(68px + var(--demo-h, 0px));
    height: calc(100vh - 68px - var(--demo-h, 0px)); height: calc(100dvh - 68px - var(--demo-h, 0px));
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--bg); border-top: 1px solid var(--border);
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .js-nav .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .js-nav .main-nav a {
    display: block; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--border);
    font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 1;
  }
  .js-nav .main-nav a::after { display: none; }
  .js-nav .main-nav a[aria-current="page"], .js-nav .main-nav a.is-current { color: var(--accent-text); }
  .site-header.nav-open { background: var(--bg); border-bottom-color: var(--border); }
  .nav-open .main-nav { visibility: visible; opacity: 1; }
}
@media (max-width: 640px) {
  .steps li { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .jump-links { gap: 14px 28px; }
  .edu-list li { font-size: 13px; padding: 9px 13px; }
  .contact-page { padding-top: 120px; }
}

/* ==========================================================================
   Theme demo tag · light/dark mode · motion support (2026-11-04)
   ========================================================================== */

/* ---------- theme demo tag (render/partials/demo-tag.html) ----------
   --demo-h only exists while the tag is on the page, so emptying the partial
   returns the header, mobile menu and hero offsets to 0. */
:root:has(.demo-tag) { --demo-h: 30px; }
/* Tovu's built-in theme preview switcher (fixed bar, adds body padding itself):
   push the fixed header + mobile menu below it, and keep the hero to one screen. */
/* Platform quirk: the banner's shadow :host{all:initial!important} beats its own position:fixed,
   so the bar renders in normal flow (static) at the top of <body>. Drop the body padding the
   platform adds for a fixed bar, and slide the fixed header/menu down by the bar's visible height
   (--pv-top, set in scripts/site.js; falls back to 44px). */
/* The platform script writes body padding-top: calc(var(--tovu-theme-preview-base-padding) + var(--tovu-theme-preview-height)) !important
   inline, and top: var(--tovu-theme-preview-height) !important on fixed headers. Re-scope the variables instead. */
html:has(.tovu-theme-preview-host) body { --tovu-theme-preview-height: 0px; --tovu-theme-preview-base-padding: 0px; padding-top: 0 !important; }
html:has(.tovu-theme-preview-host) body .site-header { --tovu-theme-preview-height: var(--pv-top, 44px); }
html:has(.tovu-theme-preview-host) .site-header { top: var(--pv-top, 44px); }
@media (max-width: 760px) {
  html:has(.tovu-theme-preview-host) .js-nav .main-nav { top: calc(68px + var(--pv-top, 44px)); height: calc(100dvh - 68px - var(--pv-top, 44px)); }
}
:root:has(.tovu-theme-preview-host) .hero { min-height: calc(100svh - 44px); }
.demo-tag {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--demo-h, 30px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 var(--gutter); white-space: nowrap; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid rgba(var(--accent-rgb), .32);
  font-family: var(--font-body); font-size: 10px; font-weight: 500; line-height: 1;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text);
}
.demo-tag-kicker { font-weight: 600; }
.demo-tag-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex: none; }
.demo-tag-name { color: var(--fg); opacity: .78; }
.demo-tag-name em { font-family: var(--font-display); font-style: italic; font-size: 12px; letter-spacing: .06em; text-transform: none; }
.demo-tag-dash { opacity: .6; }
@media (max-width: 480px) {
  .demo-tag { gap: 10px; font-size: 9px; letter-spacing: .2em; }
}

/* ---------- header actions + light/dark toggle ---------- */
.brand { margin-right: auto; }
.nav-actions { display: none; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--border-strong); border-radius: 0;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 18px; height: 18px; }
/* show the mode you would switch TO: sun in dark mode, moon in light mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle-mobile { display: none; }
@media (max-width: 760px) {
  .nav-actions { display: flex; }
  .theme-toggle-desktop { display: none !important; }
  .js-nav .theme-toggle-mobile:not([hidden]) { display: inline-flex; width: 44px; height: 44px; }
}

/* ---------- light mode: ivory paper, near-black ink, bronze accent ---------- */
:root[data-theme="light"] { color-scheme: light; }
/* the JF logo asset is white: print it in ink on paper */
:root[data-theme="light"] .brand-mark img,
:root[data-theme="light"] .portrait-mark img { filter: invert(1) brightness(.12); }
:root[data-theme="light"] .hero-media img { opacity: .9; filter: saturate(.7) contrast(1.02); }
:root[data-theme="light"] .hero-veil {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),.9) 0%, rgba(var(--bg-rgb),.55) 14%, rgba(var(--bg-rgb),.12) 30%, rgba(var(--bg-rgb),.2) 45%, rgba(var(--bg-rgb),.93) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb),.9) 0%, rgba(var(--bg-rgb),.45) 45%, rgba(var(--bg-rgb),0) 75%);
}
:root[data-theme="light"] .hero-lede { opacity: 1; }
:root[data-theme="light"] .site-header.scrolled { background: rgba(var(--bg-rgb), .9); }
:root[data-theme="light"] .img-slot { border-color: rgba(var(--accent-rgb), .45); }
:root[data-theme="light"] .contact-form { background: rgba(255,255,255,.35); }
:root[data-theme="light"] .brand-list li,
:root[data-theme="light"] .main-nav a { opacity: .9; }
@media (max-width: 640px) {
  :root[data-theme="light"] .hero-media img { opacity: .95; }
  :root[data-theme="light"] .hero-veil {
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.9) 0%, rgba(var(--bg-rgb),.5) 12%, rgba(var(--bg-rgb),.1) 24%, rgba(var(--bg-rgb),.15) 32%, rgba(var(--bg-rgb),.9) 48%, var(--bg) 56%);
  }
}
/* palette swaps glide instead of snapping (never on the motion targets themselves) */
body, .site-header, .demo-tag, .site-footer { transition: background-color .35s var(--ease), color .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  body, .site-header, .demo-tag, .site-footer { transition: none; }
}

/* ---------- motion support (kUInetic) ----------
   Split hero name: each word is its own split host so "Floyd" keeps its italic. */
.hero-title .hero-word { display: inline-block; }
/* count-up: reserve the final width so digits never shift the label */
.stat-number { display: inline-block; inline-size: 2ch; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
/* .facts dd span styles the sub-label; the number must keep the display face */
.facts dd .stat-number { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }

/* ---------- social icons (footer menu html, Contact, About) ---------- */
.social-links { display: inline-flex; align-items: center; gap: 4px; margin-inline: -10px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  color: inherit; border-radius: 50%; transition: color .3s var(--ease), background-color .3s var(--ease);
}
.social-icon svg { display: block; flex: none; width: 24px; height: 24px; fill: currentColor; }
.social-icon:hover { color: var(--accent-text); background: rgba(var(--accent-rgb), .14); }
.social-icon:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.footer-links { align-items: center; }
.footer-links a.social-icon { padding: 0; border: 0; opacity: 1; }
.contact-direct li.contact-social { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 10px; }
/* word + icon variant: keeps the readable label (About) */
.social-icon.social-icon-labelled { justify-content: flex-start; gap: 10px; border-radius: 0; }
.social-icon.social-icon-labelled:hover { background: none; }

/* ---------- brand logos: single-colour marks; --logo-h is the optical height ---------- */
.brand-logo { display: block; flex: none; width: auto; max-width: none; height: calc(var(--logo-h, 28px) * var(--logo-scale, 1)); filter: brightness(0) invert(1); }
:root[data-theme="light"] .brand-logo { filter: brightness(0); }
.brand-logo-lvmh { --logo-h: 22px; }
.brand-logo-mj { --logo-h: 32px; } /* file has ~25% empty space above and below the mark */
.brand-logo-kate { --logo-h: 44px; }
.brand-logo-kcd { --logo-h: 28px; }
.brand-logo-sbh { --logo-h: 42px; }
.brand-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px clamp(32px, 5vw, 72px); max-width: 1080px; margin: 0 auto clamp(32px, 4vw, 52px);
}
.brand-logos li { opacity: .86; }
:root[data-theme="light"] .brand-logos li { opacity: .92; }
.t-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 14px; --logo-scale: .72; }
@media (max-width: 640px) {
  .brand-logos { gap: 20px 32px; --logo-scale: .86; }
}
