/* ==========================================================================
   Brian Onorio — brianonorio.com
   ========================================================================== */

:root {
  --paper: #edeae2;
  --paper-2: #e3dfd4;
  --cream: #f6f2e9;
  --ink: #0f0f0e;
  --ink-2: #1b1a18;
  --muted: #6f6a61;
  --line: rgba(15, 15, 14, 0.14);
  --line-light: rgba(246, 242, 233, 0.14);
  --accent: #e0522a;
  --rust: #9e3a1d;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--cream); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.display {
  font-size: clamp(2.4rem, 5.4vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.display em { letter-spacing: -0.02em; }

.section { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.section__label { color: var(--muted); display: inline-block; }
.section__lede {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--muted);
  max-width: 30ch;
}
.section__lede em { color: var(--ink); }
.section__head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 120px);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
}
.loader__row { display: flex; justify-content: space-between; }
.loader__count { font-size: clamp(3rem, 10vw, 9rem); font-family: var(--sans); font-weight: 300; letter-spacing: -0.05em; line-height: 1; text-transform: none; }
.loader__bar { height: 1px; background: var(--line-light); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 95;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.3s;
}
.cursor__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-active { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-active .cursor__label { opacity: 1; transition-delay: 0.12s; }
.cursor.is-link { width: 32px; height: 32px; margin: -16px 0 0 -16px; background: rgba(224, 82, 42, 0.35); }
.cursor.is-hidden { width: 0; height: 0; margin: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 80;
  margin: 0 auto;
  width: min(440px, calc(100% - 32px));
  height: 54px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  border-radius: 6px;
  border: 1px solid rgba(246, 242, 233, 0.1);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.5);
}
.nav__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; transition: background 0.3s; }
.nav__icon:hover { background: rgba(246, 242, 233, 0.08); }
.nav__mark { font-size: 22px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.nav__mark em { font-size: 25px; color: var(--accent); letter-spacing: -0.01em; }
.nav__toggle { position: relative; }
.nav__toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.nav__toggle span:first-child { transform: translateY(-3.5px); }
.nav__toggle span:last-child { transform: translateY(3.5px); }
.menu-open .nav__toggle span:first-child { transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: rotate(-45deg); }

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.menu-open .menu { pointer-events: auto; }
.menu__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 88px var(--gutter) var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu__label { color: rgba(246, 242, 233, 0.5); margin-bottom: 24px; }
.menu__list li { overflow: hidden; border-top: 1px solid var(--line-light); }
.menu__list li:last-child { border-bottom: 1px solid var(--line-light); }
.menu__list a { display: flex; align-items: baseline; gap: 24px; padding: 2px 0; }
.menu__list .mono { color: var(--accent); width: 32px; }
.menu__word {
  display: inline-block;
  font-size: clamp(1.8rem, min(8vw, 9vh), 7rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  transition: transform 0.6s var(--ease), font-style 0.2s;
}
.menu__list a:hover .menu__word { transform: translateX(24px); font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.menu__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(246, 242, 233, 0.7); }

/* Menu open/close is CSS-driven on every page. */
.menu--css { transition: clip-path 0.9s var(--ease); }
.menu-open .menu--css { clip-path: inset(0 0 0% 0); }
.menu--css .menu__word { transform: translateY(110%); transition: transform 1s var(--ease); }
.menu-open .menu--css .menu__word { transform: none; }
.menu-open .menu--css li:nth-child(1) .menu__word { transition-delay: 0.3s; }
.menu-open .menu--css li:nth-child(2) .menu__word { transition-delay: 0.35s; }
.menu-open .menu--css li:nth-child(3) .menu__word { transition-delay: 0.4s; }
.menu-open .menu--css li:nth-child(4) .menu__word { transition-delay: 0.45s; }
.menu-open .menu--css li:nth-child(5) .menu__word { transition-delay: 0.5s; }
.menu-open .menu--css .menu__list a:hover .menu__word { transform: translateX(24px); transition-delay: 0s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero__meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  z-index: 3;
}
.hero__meta--top { top: 92px; }
.hero__meta--bottom { bottom: var(--gutter); }
.hero__scroll i { display: inline-block; font-style: normal; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.hero__name {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 50%;
  transform: translateY(-56%);
  font-size: clamp(5rem, 16.4vw, 21rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.8;
  z-index: 1;
}
.hero__line { display: flex; align-items: center; overflow: hidden; padding-bottom: 0.06em; }
.hero__line--2 { justify-content: flex-end; }
.hero__slot {
  display: inline-block;
  width: 0.95em;
  height: 0.6em;
  margin-right: 0.06em;
  border-radius: 999px;
  flex: none;
}
.split { display: inline-block; }
.split .char { display: inline-block; will-change: transform; }

.hero__frame {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
  will-change: left, top, width, height;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.15); }
.hero__frame-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,14,0) 40%, rgba(15,15,14,0.7) 100%); opacity: 0; }
.hero__frame-quote {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--gutter) + 8px);
  max-width: 16ch;
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0;
}
.hero__frame-quote .mono { display: block; margin-bottom: 16px; color: rgba(246, 242, 233, 0.7); letter-spacing: 0.08em; }

.hero__roles {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--gutter) + 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: clamp(15px, 1.25vw, 19px);
  letter-spacing: -0.01em;
  z-index: 1;
}
.hero__roles .mono { color: var(--accent); margin-right: 10px; }

/* ---------- Prologue ---------- */
.prologue { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.prologue__text {
  font-size: clamp(1.65rem, 3.3vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.prologue__text .word { opacity: 0.14; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.86em;
  vertical-align: -0.08em;
  border-radius: 999px;
  overflow: hidden;
  line-height: 1;
}
.chip--img { width: 1.6em; }
.chip--img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.chip--num { padding: 0 0.32em; background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 0.7em; height: 1.2em; letter-spacing: 0; }
.chip--star { padding: 0 0.32em; background: var(--accent); color: var(--cream); font-family: var(--mono); font-size: 0.7em; height: 1.2em; letter-spacing: 0; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 34px) 0;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track span { font-size: clamp(2.4rem, 6.5vw, 6.4rem); letter-spacing: -0.05em; line-height: 1; padding: 0 0.3em; }
.marquee__track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.marquee__track i { flex: none; width: clamp(10px, 1.1vw, 16px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); margin: 0 clamp(10px, 1.6vw, 26px); }

/* ---------- Record ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(80px, 10vw, 140px);
}
.stat { padding: 24px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(4rem, 10vw, 9.5rem); font-weight: 300; letter-spacing: -0.07em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat__x { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 4.5rem); color: var(--accent); margin-left: 4px; }
.stat p { color: var(--muted); margin-top: 16px; }

.timeline { border-bottom: 1px solid var(--line); }
.role {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr 3fr 1fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s;
  isolation: isolate;
}
.role::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.role:hover { color: var(--cream); }
.role:hover::before { transform: scaleY(1); transform-origin: top; }
.role__when { color: var(--accent); }
.role__title { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; }
.role__title span { font-family: var(--serif); font-style: italic; letter-spacing: -0.01em; color: var(--muted); transition: color 0.4s; }
.role:hover .role__title span { color: rgba(246, 242, 233, 0.6); }
.role__desc { color: var(--muted); max-width: 46ch; transition: color 0.4s; }
.role:hover .role__desc { color: rgba(246, 242, 233, 0.75); }
.role__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 7px 14px 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.role__play i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); }
.role__play:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.role__play:hover i { border-left-color: var(--cream); }
.role:hover .role__play { color: var(--cream); }
.role__films { display: flex; flex-wrap: wrap; gap: 0 10px; }

/* Video lightbox */
.filmbox {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.filmbox::backdrop { background: rgba(15, 15, 14, 0.88); backdrop-filter: blur(6px); }
.filmbox[open] { animation: film-in 0.6s var(--ease); }
@keyframes film-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.filmbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.filmbox__caption { margin-top: 14px; color: rgba(246, 242, 233, 0.6); }
.filmbox__caption a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.filmbox__frame { aspect-ratio: 16 / 9; max-height: calc(100svh - 80px); background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.filmbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.filmbox video { max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); object-fit: contain; }
.filmbox__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15, 15, 14, 0.6);
  border: 1px solid rgba(246, 242, 233, 0.3);
  transition: background 0.3s, border-color 0.3s;
}
.filmbox__close:hover { background: var(--accent); border-color: var(--accent); }

.role__tag { justify-self: end; border: 1px solid currentColor; padding: 3px 8px; border-radius: 999px; opacity: 0.7; }


/* ---------- Stage ---------- */
.stage {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  --mx: 50%;
  --my: 40%;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(246, 225, 190, 0.11), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.stage .section__label { color: rgba(246, 242, 233, 0.5); }
.stage__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: grid;
  place-items: center;
}
.stage__center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 var(--gutter);
}
.stage__center .display { margin: 20px 0 20px; font-size: clamp(2.4rem, 5vw, 5rem); }
.stage__sub { color: rgba(246, 242, 233, 0.65); max-width: 38ch; margin: 0 auto 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 24px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn span { transition: transform 0.4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--light { background: var(--cream); color: var(--ink); }

.cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.card {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(150px, 16vw, 250px);
  aspect-ratio: 16 / 10;
  margin-left: calc(clamp(150px, 16vw, 250px) / -2);
  margin-top: calc(clamp(150px, 16vw, 250px) * -0.3125);
  padding: clamp(10px, 1.1vw, 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.card .mono { font-size: 9px; color: rgba(246, 242, 233, 0.55); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 1.55vw, 1.55rem); line-height: 1.02; letter-spacing: -0.01em; }
.card--accent { background: var(--accent); border-color: transparent; }
.card--accent .mono { color: rgba(15, 15, 14, 0.7); }
.card--accent h3 { color: var(--ink); }
.card--img { padding: 0; overflow: hidden; }
.card--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.1) brightness(0.85); }
.card--img .mono { position: absolute; left: 10px; bottom: 8px; color: var(--cream); display: flex; align-items: center; gap: 6px; }
.card--img .mono::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.formats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  padding: clamp(72px, 9vw, 140px) var(--gutter);
  border-top: 1px solid var(--line-light);
}
.formats ul { display: flex; flex-wrap: wrap; gap: 0 0.3em; font-size: clamp(1.8rem, 4vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.12; }
.formats li { color: rgba(246, 242, 233, 0.35); transition: color 0.3s; }
.formats li:hover { color: var(--cream); }
.formats li:not(:last-child)::after { content: " /"; color: var(--accent); }

.booking {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  border-top: 1px solid var(--line-light);
}
.booking .section__label { display: block; margin-bottom: 22px; }
.rooms li {
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  letter-spacing: -0.03em;
  color: rgba(246, 242, 233, 0.85);
}
.rooms li:last-child { border-bottom: 1px solid var(--line-light); }
.perks li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-light); }
.perks li:last-child { border-bottom: 1px solid var(--line-light); }
.perks .mono { color: var(--accent); }
.perks p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(246, 242, 233, 0.75); letter-spacing: -0.015em; }
.perks em { color: var(--cream); }
.booking__cta { margin-top: 32px; }

.sources {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line-light);
}
.sources ul { display: flex; flex-wrap: wrap; gap: 10px 0; }
.sources li {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: rgba(246, 242, 233, 0.9);
}
.sources li:not(:last-child)::after { content: "·"; font-style: normal; color: var(--accent); margin: 0 0.45em; }

/* ---------- POV ---------- */
.pov__intro { font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; max-width: 26ch; }
.beliefs li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3.4fr 2.6fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(26px, 3.2vw, 44px) 0;
}
.beliefs li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.18;
  transform: scaleX(var(--line-x, 0));
  transform-origin: left;
}
.beliefs .mono { color: var(--accent); }
.beliefs h3 { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; }
.beliefs p { color: var(--muted); max-width: 40ch; }

/* ---------- Notes ---------- */
.notes { padding-top: 0; }
.notes .section__label { margin-bottom: 24px; }
.note {
  display: grid;
  grid-template-columns: 1fr 5fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.note:last-child { border-bottom: 1px solid var(--line); }
.note .mono { color: var(--muted); }
.note__title { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.015em; transition: transform 0.6s var(--ease); }
.note__arrow { font-size: 1.6rem; transition: transform 0.5s var(--ease), color 0.3s; }
.note:hover .note__title { transform: translateX(16px); }
.note:hover .note__arrow { transform: rotate(45deg); color: var(--accent); }

.notes__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.notes__all { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.notes__all:hover { color: var(--accent); border-color: var(--accent); }
.note--elsewhere .note__title { color: var(--muted); }

/* ---------- Off stage ---------- */
.offstage { padding-top: clamp(64px, 8vw, 120px); }
.hobby__kicker { display: block; color: var(--accent); margin-bottom: 14px; }
.hobby__title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.hobby__copy { margin-top: 14px; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.hobby__copy cite { font-style: italic; font-family: var(--serif); font-size: 1.12em; color: var(--ink); }
.hobby__copy em { color: var(--ink); font-size: 1.1em; }
.hobby__link { display: inline-block; margin-top: 18px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.hobby__link:hover { color: var(--accent); border-color: var(--accent); }
.hobby__status { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(224, 82, 42, 0.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(224, 82, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 82, 42, 0); } }

.hobby--wide {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--ink);
}

/* Bookshelf: one spine per presidency */
.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: clamp(150px, 16vw, 220px);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}
.spine {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px 1px 0 0;
  transform-origin: bottom;
  background: var(--c, var(--ink));
  transition: margin 0.35s var(--ease), filter 0.3s;
}
.spine::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  top: 12%;
  height: 2px;
  background: rgba(246, 242, 233, 0.5);
  box-shadow: 0 5px 0 rgba(246, 242, 233, 0.35);
}
.spine.is-unread { background: transparent; border: 1px solid var(--line); border-bottom: 0; }
.spine.is-unread::after { display: none; }
.spine.is-repeat { opacity: 0.35; }
.spine.is-current { background: var(--accent); }
.spine.is-current::before {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  width: 1px; height: 22px;
  background: var(--accent);
}
.spine:hover { margin-bottom: 8px; filter: brightness(1.15); }
.shelf__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  padding: 6px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.shelf__tip.is-on { opacity: 1; transform: translate(-50%, 0); }

.hobbies { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hobbies .hobby { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px) 0; border-right: 1px solid var(--line); }
.hobbies .hobby:first-child { padding-left: 0; }
.hobbies .hobby:last-child { border-right: 0; padding-right: 0; }
.hobby__vis { height: clamp(160px, 15vw, 210px); margin-bottom: 28px; position: relative; }

/* NC dot map */
.dotmap svg { width: 100%; height: 100%; overflow: visible; }
.dotmap circle { fill: var(--ink); opacity: 0.16; transition: opacity 0.6s, fill 0.6s; }
.dotmap circle.is-lit { fill: var(--accent); opacity: 1; }
.dotmap circle.is-warm { fill: var(--rust); opacity: 0.75; }

/* Cook-mode timer */
.timer { display: grid; place-items: center; }
.timer svg { position: absolute; height: 100%; aspect-ratio: 1; transform: rotate(-90deg); }
.timer__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.timer__ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--offset, 0); transition: stroke-dashoffset 1s linear; }
.timer__time { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: -10px; }
.timer__label { position: absolute; top: calc(50% + 18px); color: var(--muted); font-size: 9px; }

/* Growth rings */
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings path { fill: none; stroke: var(--rust); stroke-width: 1.1; opacity: 0.55; }
.rings path.is-late { stroke: var(--ink); opacity: 0.35; }
.rings .rings__check { stroke: var(--ink); stroke-width: 1.2; opacity: 0.6; }

.press-section { padding-top: 0; }

.press {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  margin-top: clamp(64px, 8vw, 110px);
}
.press__copy { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.press__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.5vw, 20px); }
.press__list a { display: block; }
.press__list img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; transition: transform 0.7s var(--ease), filter 0.5s; filter: grayscale(0.2); }
.press__list a:hover img { transform: scale(0.97); filter: grayscale(0); }
.press__list .mono { display: block; margin-top: 10px; color: var(--muted); }

.bios { display: grid; grid-template-columns: 1fr 3fr; column-gap: 24px; margin-top: clamp(64px, 8vw, 110px); padding-top: 24px; border-top: 1px solid var(--line); }
.bios__head, .bios > [role="tabpanel"], .bios__copy { grid-column: 2; }
.bios__copy { justify-self: start; }
.bios__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.bios__tabs { display: flex; gap: 6px; }
.bios__tab { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.bios__tab:hover { border-color: var(--ink); color: var(--ink); }
.bios__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.bios__panel { max-width: 62ch; }
.bios__panel p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; letter-spacing: -0.015em; text-wrap: pretty; }
.bios__panel p + p { margin-top: 0.9em; }
.bios__copy { margin-top: 24px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 4px; transition: background 0.3s, color 0.3s; }
.bios__copy:hover, .bios__copy.is-done { background: var(--ink); color: var(--cream); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--rust);
  color: var(--cream);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  margin-top: -40px;
  overflow: hidden;
  z-index: 2;
}
.contact__rule {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 40px);
  opacity: 0.6;
}
.contact__inner { padding: clamp(96px, 12vw, 180px) var(--gutter) clamp(64px, 8vw, 120px); }
.contact .section__label { color: rgba(246, 242, 233, 0.55); }
.contact__title {
  margin: 24px 0 40px;
  font-size: clamp(3.2rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.88;
}
.contact__title em { letter-spacing: -0.03em; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: inline-block; }
.contact__email {
  display: inline-block;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(246, 242, 233, 0.5);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.contact__email:hover { border-color: var(--cream); }

/* Inquiry form */
.inquiry { margin-top: clamp(40px, 6vw, 80px); }
.inquiry fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.inquiry legend { padding: 0; margin-bottom: 18px; color: rgba(246, 242, 233, 0.55); font-size: 12px; }
.inquiry__topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.inquiry__topics label { position: relative; cursor: pointer; border-right: 1px solid var(--line-light); }
.inquiry__topics label:last-child { border-right: 0; }
.inquiry__topics input { position: absolute; opacity: 0; pointer-events: none; }
.inquiry__topics label > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  padding: 24px 24px 28px;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: -0.03em;
  transition: background 0.4s, color 0.4s;
}
.inquiry__topics label:first-child > span { padding-left: 0; }
.inquiry__topics .mono { color: rgba(246, 242, 233, 0.55); font-size: 12px; }
.inquiry__topics i { position: absolute; right: 24px; bottom: 28px; font-style: normal; opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.inquiry__topics label:hover > span { background: rgba(15, 15, 14, 0.14); }
.inquiry__topics input:checked + span { background: var(--cream); color: var(--rust); padding-left: 24px; }
.inquiry__topics input:checked + span .mono { color: var(--rust); }
.inquiry__topics input:checked + span i { opacity: 1; transform: none; }
.inquiry__topics input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: -4px; }

.inquiry__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line-light);
}
.field { display: flex; flex-direction: column; gap: 6px; padding: 22px 0 10px; border-bottom: 1px solid var(--line-light); transition: border-color 0.3s; }
.field:focus-within { border-color: var(--cream); }
.field--wide { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field .mono { font-size: 12px; color: rgba(246, 242, 233, 0.6); }
.field em { font-family: var(--mono); font-style: normal; opacity: 0.6; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 4.5em; line-height: 1.4; }
.field ::placeholder { color: rgba(246, 242, 233, 0.32); }
.field.is-invalid { border-color: var(--cream); border-bottom-width: 2px; }
.field__error { font-size: 14px; color: var(--cream); }
.field__error:empty { display: none; }
.field__error::before { content: "↑ "; }
.inquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.inquiry__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.inquiry__check:empty { display: none; }
.inquiry__send {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--rust);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: -0.02em;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.inquiry__send i { font-style: normal; transition: transform 0.5s var(--ease); }
.inquiry__send:hover { background: var(--ink); color: var(--cream); }
.inquiry__send:hover i { transform: translateX(6px); }
.inquiry__send[disabled] { opacity: 0.6; pointer-events: none; }
.inquiry__status { margin-top: 20px; font-size: 15px; line-height: 1.45; color: var(--cream); }
.inquiry__status:empty { display: none; }
.inquiry__status[data-kind="error"] { padding: 14px 18px; border-left: 3px solid var(--cream); background: rgba(15, 15, 14, 0.22); border-radius: 0 8px 8px 0; }
.inquiry__status a, .contact__alt a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.inquiry__done { margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line-light); outline: none; }
.inquiry__done p { max-width: 36ch; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; }
.inquiry__done .inquiry__done-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1; margin-bottom: 18px; max-width: none; }
.contact__alt { margin-top: 40px; font-size: 12px; color: rgba(246, 242, 233, 0.6); }

.contact__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line-light);
  font-size: 14px;
}
.contact__foot--small { border-top: 0; padding-top: 0; color: rgba(246, 242, 233, 0.6); font-size: 13px; }
.contact__links { display: flex; gap: 28px; }
.contact__links a:hover, .to-top:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.contact__giant {
  font-family: var(--serif);
  font-style: italic;
  font-size: 31vw;
  line-height: 0.72;
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(15, 15, 14, 0.16);
  margin-top: 12px;
  margin-bottom: -0.06em;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section__head,
  .prologue,
  .formats, .sources, .booking { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .role { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .role__when { grid-column: 1; grid-row: 1; }
  .role__tag { grid-column: 2; grid-row: 1; }
  .role__title, .role__desc { grid-column: 1 / -1; }
  .beliefs li { grid-template-columns: 48px 1fr; gap: 10px 16px; }
  .beliefs p { grid-column: 2; }
  .note { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .note .mono { grid-column: 1 / -1; }
  .press, .bios { grid-template-columns: 1fr; }
  .bios__head, .bios > [role="tabpanel"], .bios__copy { grid-column: 1; }
  .hobby--wide { grid-template-columns: 1fr; }
  .hobbies { grid-template-columns: 1fr; }
  .hobbies .hobby, .hobbies .hobby:first-child, .hobbies .hobby:last-child { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .shelf { gap: 1px; }
  .inquiry__topics { grid-template-columns: 1fr 1fr; }
  .inquiry__topics label { border-bottom: 1px solid var(--line-light); }
  .inquiry__topics label:nth-child(2n) { border-right: 0; }
  .inquiry__topics label > span, .inquiry__topics label:first-child > span { padding: 18px 16px 22px; gap: 20px; }
  .inquiry__fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .hero__name { font-size: 25vw; transform: translateY(-62%); }
  .hero__roles { grid-template-columns: 1fr; gap: 6px; bottom: calc(var(--gutter) + 36px); }
  .hero__meta--top { top: 84px; }
  .card { width: 128px; margin-left: -64px; margin-top: -40px; }
  .card h3 { font-size: 0.92rem; }
  .card .mono { font-size: 8px; }
  .contact__foot { flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i, .card--img .mono::before { animation: none; }
  .prologue__text .word { opacity: 1 !important; }
  .beliefs li::after { transform: scaleX(1); }
}

/* ---------- Analytics consent ---------- */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 85;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 20px 22px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 50px rgba(15, 15, 14, 0.28);
  animation: consent-in 0.7s var(--ease) both;
}
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.consent__label { font-size: 11px; color: rgba(246, 242, 233, 0.55); }
.consent__text { margin-top: 10px; font-size: 15px; line-height: 1.45; }
.consent__text a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 8px; margin-top: 16px; }
.consent__btn {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(246, 242, 233, 0.35);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.consent__btn:hover, .consent__btn:focus-visible { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
