/* ============================================================================
 * Tools with Brain — light-version
 * DIRECTION: "The Index" — an editorial proof-index. Oversized grotesque
 * display type is the structural spine; every artifact (article, video,
 * capability, timeline entry) is a tangible card in a browsable grid, not a
 * scrolling wall of prose. Alternating paper/ink zones stand in for chapter
 * breaks. One amber mark carries every active/interactive state.
 * Brief-pinned from user-supplied references (course-marketplace card grid,
 * dark award-directory grid, oversized name-over-photo bio) — see PRODUCT.md.
 * ========================================================================== */

@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* palette — restrained ground, one committed accent */
  --paper: #f5f3ee;
  --paper-raised: #ffffff;
  --ink: #0b0b0c;
  --ink-raised: #17171a;
  --line-on-paper: rgba(11, 11, 12, 0.12);
  --line-on-ink: rgba(255, 255, 255, 0.14);
  --muted-on-paper: #6b6b6f;
  --muted-on-ink: #9d9da3;
  --text-on-paper: #14141a;
  --text-on-ink: #f4f3ef;
  --accent: #ffc53d;
  --accent-ink: #241900;

  /* type */
  --font-display: 'Bricolage', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* rhythm */
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--edge); }

.zone-paper { background: var(--paper); color: var(--text-on-paper); }
.zone-ink { background: var(--ink); color: var(--text-on-ink); }

/* ---------------------------------------------------------------- nav --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-paper);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-on-paper);
}
.site-nav .brand img { width: 42px; height: 42px; border-radius: 10px; }
.site-nav .brand b { color: var(--accent-ink); background: var(--accent); padding: 0 0.3em; border-radius: 4px; }

.site-nav .links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav .links a {
  text-decoration: none;
  position: relative;
  padding-block: 0.3rem;
  color: var(--text-on-paper);
}
.site-nav .links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.site-nav .links a:hover::after,
.site-nav .links a[aria-current='page']::after { right: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-paper);
  border-radius: 10px;
  background: var(--paper-raised);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav .links {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    padding: 1rem var(--edge) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    border-bottom: 1px solid var(--line-on-paper);
  }
  .site-nav .links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav .links a { display: block; width: 100%; padding: 0.9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-on-paper); }
}

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

.hero {
  padding: clamp(3rem, 9vw, 7rem) var(--edge) clamp(3rem, 7vw, 5rem);
  position: relative;
}

/* brand-watermark: the mark itself, ghosted in behind the first section of
   every page — top-left, right under the nav, felt rather than seen. */
.brand-watermark {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  left: var(--edge);
  width: clamp(120px, 15vw, 240px);
  height: auto;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.zone-ink .brand-watermark { filter: brightness(0) invert(1); opacity: 0.06; }
.hero .eyebrow { color: var(--muted-on-paper); margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 8.2rem);
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), #ff8a3d 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-on-paper);
}
.hero .cta-row { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.zone-ink.hero .eyebrow,
.zone-ink.hero .lede { color: var(--muted-on-ink); }
.zone-ink.hero .btn-solid { background: var(--paper); color: var(--ink); }
.zone-ink.hero .btn-solid:hover { background: var(--accent); color: var(--accent-ink); }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 80px -32px rgba(11, 11, 12, 0.4);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(11, 11, 12, 0.35));
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
}

/* hero-cutthrough: big full-width photo with a floating card of copy
   (headline + byline together) overlapping its left edge. Both media and
   card share one grid cell so the row auto-sizes to the taller of the
   two — a fixed-height/absolute-position card would either clip or spill
   into whatever follows once its content (e.g. the byline) makes it
   taller than the photo. */
.hero-cutthrough {
  display: grid;
  grid-template-areas: 'stack';
  padding-top: clamp(1.2rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-cutthrough .hero-media {
  grid-area: stack;
  align-self: center;
  margin-left: clamp(4rem, 15vw, 12rem);
  aspect-ratio: 16 / 5.2;
  box-shadow: 0 50px 90px -30px rgba(11, 11, 12, 0.45);
}
.hero-card {
  grid-area: stack;
  align-self: center;
  justify-self: start;
  z-index: 2;
  width: min(50rem, 74%);
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.2vw, 2.6rem) clamp(1.8rem, 3.4vw, 2.8rem);
  box-shadow: 0 30px 70px -26px rgba(11, 11, 12, 0.4);
}
.hero-card .eyebrow { color: var(--muted-on-paper); margin-bottom: 1rem; }
.hero-card h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 14ch;
}
.hero-card .hero-byline {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-on-paper);
}
@media (max-width: 860px) {
  .hero-cutthrough { grid-template-areas: 'media' 'card'; row-gap: 1.6rem; }
  .hero-cutthrough .hero-media { grid-area: media; margin-left: 0; aspect-ratio: 16 / 9; }
  .hero-card { grid-area: card; justify-self: stretch; width: auto; }
}

.hero-byline { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.hero-card .hero-byline { margin-bottom: 0; }
.hero-byline img {
  width: 95px; height: 95px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--paper-raised);
  box-shadow: 0 10px 24px rgba(11, 11, 12, 0.3);
  background: var(--line-on-paper);
}
.hero-byline .meta { display: flex; flex-direction: column; line-height: 1.35; }
.hero-byline .meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}
.hero-byline .meta strong { font-size: 1.1rem; font-weight: 700; }
.hero-byline .meta em { font-style: normal; font-size: 0.85rem; color: var(--muted-on-paper); }
.zone-ink .hero-byline .meta span,
.zone-ink .hero-byline .meta em { color: var(--muted-on-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-on-paper); color: var(--text-on-paper); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.zone-ink .btn-ghost { border-color: var(--line-on-ink); color: var(--text-on-ink); }
.zone-ink .btn-ghost:hover { border-color: var(--text-on-ink); }

.hero-stats {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line-on-paper);
  padding-top: 1.8rem;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}
.hero-stats .stat span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}

/* ------------------------------------------------------- section head --- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.6rem, 6vw, 4.5rem) var(--edge) clamp(1.6rem, 3vw, 2.4rem);
}
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.section-head .eyebrow { color: var(--muted-on-paper); margin-bottom: 1rem; }
.zone-ink .section-head .eyebrow { color: var(--muted-on-ink); }
.section-head p { max-width: 42ch; color: var(--muted-on-paper); margin: 0; }
.zone-ink .section-head p { color: var(--muted-on-ink); }
.section-head .tail-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15em;
  white-space: nowrap;
}

/* ---------------------------------------------------------- card grid --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 0 var(--edge) clamp(3rem, 6vw, 5rem);
}
@media (max-width: 1180px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid.cols-3 { grid-template-columns: 1fr; } }

/* course-card: article / demo entries — light card, image, footer bar */
.course-card {
  background: var(--paper-raised);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-on-paper);
  border: 1px solid var(--line-on-paper);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11, 11, 12, 0.35);
  border-color: transparent;
}
.course-card .thumb {
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem;
  overflow: hidden;
  background: var(--thumb-a, #222);
  background-image: linear-gradient(135deg, var(--thumb-a, #222), var(--thumb-b, #444));
}
.course-card .thumb img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.course-card:hover .thumb img { transform: scale(1.05); }
.course-card .thumb.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.28) 0%, rgba(11, 11, 12, 0) 45%);
}
.course-card .thumb .badge { position: relative; z-index: 1; }
.course-card .thumb .play,
.course-card .thumb .play-label { z-index: 1; }
.course-card .thumb .badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-card .thumb .badge svg { width: 16px; height: 16px; }
.course-card .thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.course-card:hover .thumb .play { opacity: 1; }
.course-card .thumb .play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.85);
  transition: transform 0.3s var(--ease);
}
.course-card:hover .thumb .play span { transform: scale(1); }
.course-card .thumb .play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 2px; }

/* yt-card: demos page — click-to-load inline player, not a whole-card link */
.yt-card { cursor: default; }
.yt-card .thumb { cursor: pointer; }
.yt-card .thumb .play { opacity: 1; }
.yt-card .thumb .play span { transform: scale(1); }
.yt-card:hover .thumb .play span { transform: scale(1.08); }
.yt-card .thumb .play-label {
  position: absolute;
  bottom: 0.7rem; left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.yt-card.is-playing .thumb .play,
.yt-card.is-playing .thumb .play-label { display: none; }
.yt-card .thumb iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.course-card .foot .go.is-link { text-decoration: none; }

.course-card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.course-card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.course-card .tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28em 0.6em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted-on-paper);
}
.course-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
}
.course-card .summary {
  font-size: 0.9rem;
  color: var(--muted-on-paper);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.course-card .foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-on-paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-card .foot .meta { display: flex; flex-direction: column; gap: 0.35rem; }
.course-card .foot .meta b {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
  font-weight: 600;
}
.course-card .foot .meta .bar { width: 68px; height: 3px; border-radius: 2px; background: var(--line-on-paper); overflow: hidden; }
.course-card .foot .meta .bar i { display: block; height: 100%; width: var(--fill, 70%); background: var(--accent); }
.course-card .foot .go {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-on-paper);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}
.course-card .foot .go svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.course-card:hover .foot .go { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }

/* directory-card: capabilities / proof entries — dark card */
.directory-card {
  background: var(--ink-raised);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--text-on-ink);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.directory-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line-on-ink)); }
.directory-card .top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.directory-card .glyph {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.directory-card .pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 0.35em 0.75em;
  color: var(--muted-on-ink);
  text-align: right;
}
.directory-card .pill b { display: block; font-size: 0.95rem; color: var(--text-on-ink); font-family: var(--font-display); }
.directory-card h3 { font-size: 1.35rem; font-weight: 700; }
.directory-card p { margin: 0; color: var(--muted-on-ink); font-size: 0.92rem; line-height: 1.55; }
.directory-card .tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line-on-ink); }
.directory-card .tag-row span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted-on-ink);
}
.directory-card .tag-row span:not(:last-child)::after { content: '·'; margin-left: 0.5rem; opacity: 0.5; }

/* ---------------------------------------------------------- featured --- */
/* featured-card: one oversized spotlight for the current headline work —
   distinct from the course-card grid so it reads as "the" story, not one
   entry among many. */
.featured-card {
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 0 var(--edge) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.featured-body { position: relative; }
.featured-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { order: -1; }
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 88% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.featured-card .kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.featured-card .kicker::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.featured-card h3 {
  position: relative;
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1.2rem;
}
.featured-card .lede {
  position: relative;
  max-width: 64ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-on-ink);
  margin: 0 0 1.8rem;
}
.featured-card .tag-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}
.featured-card .tag-row span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  color: var(--muted-on-ink);
}
.featured-card .cta-row { position: relative; display: flex; flex-wrap: wrap; gap: 1rem; }
.featured-card .btn-solid { background: var(--paper); color: var(--ink); }
.featured-card .btn-solid:hover { background: var(--accent); color: var(--accent-ink); }

/* -------------------------------------------------------------- marquee - */
.marquee {
  border-top: 1px solid var(--line-on-paper);
  border-bottom: 1px solid var(--line-on-paper);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee .track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 32s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--muted-on-paper);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after { content: '✺'; color: var(--accent); font-size: 0.9rem; }

/* -------------------------------------------------------------- footer - */
.site-footer { padding: clamp(3rem, 7vw, 5rem) var(--edge) 2.5rem; }
.site-footer .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.site-footer h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); max-width: 14ch; }
.site-footer .links-col { display: flex; flex-direction: column; gap: 0.7rem; }
.site-footer .links-col a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5em; }
.site-footer .links-col a svg { width: 14px; height: 14px; opacity: 0.6; }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-on-ink);
}

/* --------------------------------------------------------------- misc --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.8rem 1.2rem; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ------------------------------------------------------ background photo */
/* Note: a relative url() inside a custom property resolves against the
   stylesheet that consumes it, not the page — so the image layer is a real
   element with its own inline background-image instead of a var()-driven
   pseudo-element, which resolves correctly against the HTML document. */

.bg-photo { position: relative; isolation: isolate; }
.bg-photo-layer {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: saturate(0.9);
}
.bg-photo-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, 0.72) 45%, var(--ink) 100%);
}

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

.bio-hero { position: relative; padding: clamp(2.2rem, 5vw, 3.5rem) var(--edge) 0; overflow-x: hidden; }
.bio-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.bio-top .eyebrow { color: var(--muted-on-ink); }
.chip {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 0.6em 1.1em;
  color: var(--text-on-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: chip-blink 1.7s ease-in-out infinite;
}
@keyframes chip-blink {
  0%, 55%, 100% { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  27% { opacity: 0.4; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .chip::before { animation: none; }
}

.bio-main {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.bio-photo-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.bio-photo-wrap {
  flex: 0 0 auto;
  width: clamp(220px, 27vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #e9e9e6, #b8b8b4 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.bio-photo {
  width: 94%;
  height: auto;
}
.bio-name {
  align-self: center;
  font-size: clamp(2.6rem, 8.5vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.specialty-list {
  position: absolute;
  top: clamp(2.2rem, 5vw, 3.2rem);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.specialty-list li:first-child { color: var(--accent); font-weight: 700; }

.bio-sub {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-on-ink);
}

@media (max-width: 720px) {
  .bio-main { flex-direction: column; align-items: flex-start; padding-top: 1.5rem; }
  .bio-photo-wrap { width: 160px; }
  .bio-name { font-size: clamp(2.6rem, 15vw, 4rem); }
  .specialty-list {
    position: static;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* -------------------------------------------------------------- bio body */

.bio-body {
  padding: clamp(2.6rem, 6vw, 4.5rem) var(--edge);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.bio-body .prose p { max-width: 62ch; color: var(--text-on-paper); font-size: 1.05rem; margin: 0 0 1.3rem; }
.bio-body .prose p:first-child { font-size: 1.2rem; }
.facts-list { display: flex; flex-direction: column; gap: 1.1rem; border-left: 2px solid var(--line-on-paper); padding-left: 1.4rem; }
.facts-list dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-paper); margin: 0; }
.facts-list dd { margin: 0.25rem 0 0; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
@media (max-width: 820px) { .bio-body { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- timeline */

.timeline { padding: 0 var(--edge) clamp(3rem, 6vw, 5rem); }
.timeline-list { position: relative; margin-top: 1rem; }
.timeline-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-on-ink);
}
.zone-paper .timeline-list::before { background: var(--line-on-paper); }
.timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem 2rem;
  border-bottom: 1px solid var(--line-on-ink);
}
.zone-paper .timeline-item { border-bottom-color: var(--line-on-paper); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink-raised);
  border: 2px solid var(--accent);
}
.zone-paper .timeline-item::before { background: var(--paper); }
.timeline-item .period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted-on-ink);
}
.zone-paper .timeline-item .period { color: var(--muted-on-paper); }
.timeline-item h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.timeline-item p { margin: 0; color: var(--muted-on-ink); font-size: 0.94rem; line-height: 1.5; }
.zone-paper .timeline-item p { color: var(--muted-on-paper); }
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
}
