/* ---------- tokens ---------- */
:root {
  --bg:        #ffffff;
  --paper-2:   #f3f1ec;
  --ink:       #0e0e0d;
  --ink-2:     #2a2a28;
  --soft:      #6e6e6a;
  --faint:     #a3a3a0;
  --rule:      #ececea;
  --gutter:    clamp(24px, 6vw, 56px);
  --maxw:      720px;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif:     'Newsreader', 'Iowan Old Style', 'Times New Roman', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}
::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* shared subtle underline on hover for content links */
.hero .intro a,
.cv .ln a,
.plain a,
.sig a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
  padding-bottom: 1px;
}
.hero .intro a:hover,
.cv .ln a:hover,
.plain a:hover,
.sig a:hover { background-size: 100% 1px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  padding: 22px var(--gutter);
  z-index: 10;
  font-size: 14px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0));
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}
.nav .mark {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav nav {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav nav a {
  color: var(--soft);
  transition: color .2s ease;
}
.nav nav a:hover { color: var(--ink); }

@media (max-width: 540px) {
  .nav { padding: 16px 22px; font-size: 13px; }
  .nav .mark { font-size: 13px; }
}

/* ---------- main ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 80px 0; }
section:first-of-type { padding-top: 22vh; }

/* ---------- hero ---------- */
.hero h1 {
  font-family: var(--serif);
  font-style: normal;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero .contact {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--soft);
}
.mint { color: #6fbf9b; }
.hero .meta {
  margin: 6px 0 36px;
  font-size: 14.5px;
  color: var(--soft);
  font-family: var(--sans);
}
.hero .intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 28px 0 0;
}
.hero .intro em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- section heads ---------- */
h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #6fbf9b;
  margin: 0 0 28px;
  line-height: 1.2;
}

/* ---------- work ---------- */
.cv {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cv li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
}
.cv li + li { border-top: 1px solid var(--rule); }
.cv .yr {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 6px;
}
.cv .ln {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cv .ln b {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

@media (max-width: 540px) {
  .cv li { grid-template-columns: 64px 1fr; gap: 14px; }
  .cv .yr { font-size: 12.5px; }
  .cv .ln { font-size: 15.5px; }
}

/* ---------- plain list (reads) ---------- */
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
}
.plain li:first-child { border-top: none; }
.plain .dim { color: var(--faint); font-size: 12px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- kv list (more) ---------- */
.kv {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  row-gap: 18px;
  column-gap: 18px;
}
.kv dt {
  font-size: 13.5px;
  color: var(--faint);
  padding-top: 2px;
}
.kv dd {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.kv .dim {
  color: var(--faint);
  font-size: 13px;
  display: inline-block;
  width: 56px;
}

@media (max-width: 540px) {
  .kv { grid-template-columns: 64px 1fr; }
  .kv dt { font-size: 12.5px; }
  .kv dd { font-size: 15.5px; }
  .kv .dim { width: 50px; font-size: 12px; }
}

/* ---------- eats ---------- */
.eats .display {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: -8px 0 10px;
}
.eats .display em { font-style: normal; }
.eats .lede {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--soft);
  margin: 0 0 36px;
}
.hint { margin: 0 0 22px; font-size: 14px; }
.dim { color: var(--faint); }

.eats-grid {
  display: block;
  margin-top: 12px;
}
.hood {
  margin-bottom: 56px;
}
.hood:last-child { margin-bottom: 0; }

.hood h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.hood .tops {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hood .tops li {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
.hood .tops .star { display: none; }
.hood .tops a {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 92%;
  transition: background-size .3s ease;
  padding-bottom: 1px;
}
.hood .tops a:hover { background-size: 100% 1px; }

.hood .tops .pill {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--paper-2, #f3f1ec);
  border-radius: 100px;
  vertical-align: 2px;
  white-space: nowrap;
}

.hood .rest {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--soft);
  line-height: 1.8;
  margin: 8px 0 0;
}
.hood .rest a {
  color: var(--soft);
  transition: color .2s ease;
}
.hood .rest a:hover { color: var(--ink); }
.hood .rest .sep { color: var(--faint); margin: 0 6px; }

/* ---------- footer ---------- */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
  border-top: 1px solid var(--rule);
}
.sig {
  font-size: 17px;
  color: var(--soft);
  margin: 0;
  font-style: italic;
}
.sig a {
  color: var(--soft);
  transition: color .2s ease;
}
.sig a:hover { color: var(--ink); }
.sig .sep { margin: 0 10px; color: var(--faint); }

/* ============== LOAD CHOREOGRAPHY ==============
   Beat 0: page paints (body fades in instantly).
   Beat 1: name letters cascade with blur-fade.
   Beat 2: intro + contact rise into place.
   Beat 3: each section lights and cascades on scroll. */

/* hide content before JS pins reveal classes — no FOUC */
html.js body { opacity: 0; }
html.js body.booted { opacity: 1; transition: opacity .6s ease; }
html:not(.js) body { opacity: 1; }

/* --- the name: letter-by-letter blur-rise --- */
.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) scale(0.96);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.hero h1.typing .ch {
  animation: charIn 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(280ms + 55ms * var(--i));
}
@keyframes charIn {
  0%   { opacity: 0; transform: translateY(0.5em) scale(0.96); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* --- everything else: a refined rise with a hint of blur + scale --- */
.rise {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(4px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.1s cubic-bezier(.16,1,.3,1),
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0ms);
}

/* hero rises fire on boot (their --rd is pre-set to 1050ms+) */
body.booted .hero .rise { opacity: 1; transform: none; filter: blur(0); }

/* sections light up when they scroll into view; their children cascade */
.rise-host.lit > .rise,
.rise-host.lit > * > .rise,
.hood.rise.lit { opacity: 1; transform: none; filter: blur(0); }

/* hood items also reveal smoothly when their host lights */
.hood.rise.lit { transition-delay: var(--rd, 0ms); }

/* hero h2-equivalents inside hero already handled by their own --rd */

/* once in, drop will-change so GPU layers aren't kept around */
body.booted .hero .rise,
.rise-host.lit > .rise,
.hood.rise.lit { will-change: auto; }

/* fallback for reduced motion */
body.all-in .rise,
body.all-in .hero h1 .ch {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
  }
  html.js body { opacity: 1 !important; }
  .hero h1 .ch, .rise { opacity: 1 !important; transform: none !important; filter: none !important; }
}
