/* ————————————————————————————————————————————————————————————
   Layout shell — snap-scrolling vertical pages
   ———————————————————————————————————————————————————————————— */
.stage { margin: 0 auto; padding: 0; }
.snap-stage {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding: 0;
  width: 100%;
}
.snap-page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 40px;
  position: relative;
}
.snap-inner {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.snap-inner-contact { justify-content: center; }
.snap-inner-contact .contact { padding: 0; border: 0; }

.snap-page .swap-top,
.snap-page .swap-bot {
  border-bottom: 0;
  padding: 0;
}

.snap-foot {
  max-width: 1180px;
  width: 100%;
  margin: 24px auto 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  border-top: 1px solid var(--line);
}
.snap-foot-prev, .snap-foot-next { min-height: 1em; }
.snap-foot-link {
  color: var(--fg);
  letter-spacing: 0.08em;
  padding: 8px 0;
  transition: color .15s;
}
.snap-foot-link:hover { color: var(--accent); }
.snap-foot-link.muted { color: var(--fg-3); cursor: default; }
.snap-foot-link.muted:hover { color: var(--fg-3); }

/* ————————————————————————————————————————————————————————————
   Swap layout — top: hero+reels, bottom: bio+portrait
   ———————————————————————————————————————————————————————————— */
.swap-top, .swap-bot {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.swap-top .hero {
  padding: 0;
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.swap-top .col-reels { padding-top: 0; }
.swap-top .reels-head { display: none; }

/* ————————————————————————————————————————————————————————————
   Hero
   ———————————————————————————————————————————————————————————— */
.hero { padding: 28px 0 56px; }
.hero-mark {
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--fg);
  font-weight: 500;
  margin-top: 22px;
}
.name {
  font-family: var(--display-family);
  font-weight: 700;
  font-size: clamp(72px, 9.5vw, 148px);
  line-height: 1.0;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
}
/* Optical alignment: pull "Thomas" left by the T-vs-W glyph offset */
.name > span:first-child { margin-left: -0.06em; color: var(--fg); }
.name > span:last-child { color: var(--accent); }

.hero-tag {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  font-weight: 400;
}
.tag-line { color: var(--fg); }
.tag-line:nth-child(2) { color: var(--accent); }

/* ————————————————————————————————————————————————————————————
   Player
   ———————————————————————————————————————————————————————————— */
.player {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 20px 22px 14px;
}
.player-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.play-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  transition: transform .12s ease;
}
.play-btn:hover { transform: scale(1.05); }

.player-meta {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.player-meta .player-title { font-weight: 600; letter-spacing: 0.04em; font-size: 13px; }
.player-meta .player-sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.player-time { font-size: 12px; color: var(--fg-2); display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.player-time .tslash, .player-time .tdim { color: var(--fg-3); }

.reels {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reel-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 16px 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  border-radius: 2px;
  text-align: left;
  position: relative;
}
.reel-row:hover { background: color-mix(in oklab, var(--fg) 5%, transparent); color: var(--fg); }
.reel-row.active { color: var(--fg); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.reel-row.active .reel-cursor { color: var(--accent); }
.reel-idx { color: var(--fg-3); font-size: 11px; }
.reel-cursor { color: var(--fg-3); width: 16px; }
.reel-label { font-weight: 600; color: inherit; }
.reel-dots { border-bottom: 1px dotted var(--line); align-self: center; height: 1px; }
.reel-len { color: var(--fg-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.reel-row.active .reel-len { color: var(--fg-2); }

/* ————————————————————————————————————————————————————————————
   Section heads
   ———————————————————————————————————————————————————————————— */
.sec-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 18px;
}
.sec-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
  align-self: center;
}
.sec-head h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}

.bio-body {
  max-width: 640px;
  display: grid;
  gap: 16px;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.bio-body p { margin: 0; }

/* ————————————————————————————————————————————————————————————
   Headshot
   ———————————————————————————————————————————————————————————— */
.headshot { position: relative; }
.headshot-frame {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.headshot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headshot-cap {
  margin-top: 10px;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.swap-bot .swap-portrait .headshot-frame { aspect-ratio: 4 / 5; }

/* ————————————————————————————————————————————————————————————
   Contact
   ———————————————————————————————————————————————————————————— */
.contact { padding: 0; border: 0; }
.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 36px;
}
.contact-headline {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 64px;
  max-width: 14ch;
}
.contact-headline .accent { color: var(--accent); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.contact-cell { display: grid; gap: 10px; }
.contact-cell .cell-k {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-big {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color .15s;
}
.contact-big:hover { color: var(--accent); }
.contact-links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.contact-links a { color: var(--fg-2); transition: color .15s; }
.contact-links a:hover { color: var(--accent); }

/* ————————————————————————————————————————————————————————————
   Footer
   ———————————————————————————————————————————————————————————— */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 28px 40px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.footer .f-center { text-align: center; font-variant-numeric: tabular-nums; }
.footer .f-right { text-align: right; }

/* ————————————————————————————————————————————————————————————
   Responsive
   ———————————————————————————————————————————————————————————— */
@media (max-width: 860px) {
  .snap-page { padding: 40px 20px; }
  .swap-top, .swap-bot { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { grid-template-columns: 1fr; gap: 4px; text-align: left; padding: 28px 20px; }
  .footer .f-center, .footer .f-right { text-align: left; }
  .snap-foot { gap: 16px; }

  /* Hero name: JS bails out on mobile, so this clamp controls sizing. */
  .swap-top .hero .name { font-size: clamp(48px, 13vw, 96px); letter-spacing: -0.04em; }
  .hero-mark { margin-top: 16px; }
  .hero-tag { margin-top: 20px; font-size: 15px; gap: 8px; }

  /* Bio paragraphs: bump up for legibility on phones. */
  .bio-body { font-size: 16px; line-height: 1.6; }

  /* Tighten the gap between the headline and the email block. */
  .contact-headline { margin-bottom: 32px; }
  .contact-eyebrow { margin-bottom: 24px; }
  .contact-grid { gap: 32px; }
}
