:root {
  --red: #750606;
  --red-deep: #6A0707;
  --cream: #F3ECE2;
  --paper: #F4F4F2;
  --ink: #0D0D0D;
  --slot: #E4E4E2;
  --rule: rgba(13, 13, 13, 0.2);
  --strip: 88px;
  --nav-h: 60px;
  --bar-h: 56px;
}

html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
::selection { background: var(--cream); color: var(--red-deep); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img, video, iframe { display: block; }

.site {
  position: relative;
  background: var(--red-deep);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: clip;
}

.label { font-size: 13px; font-weight: 500; }

/* ── Opening panel ─────────────────────────────────────────────── */
.panel {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh;
  overflow: hidden; z-index: 20;
  background: var(--red);
  border-right: 1px solid rgba(243, 236, 226, 0.28);
}
.hero {
  position: absolute; left: 0; top: 0;
  width: 100vw; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 28px; box-sizing: border-box;
}
.hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em;
}
.hero-meta.bottom { align-items: end; letter-spacing: 0; }
.hero-meta .c { text-align: center; }
.hero-meta .r { text-align: right; }

.hero-name {
  margin: 0;
  display: flex; flex-direction: row; justify-content: center; align-items: center;
  padding: 0 0.04em;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.055em; line-height: 0.84;
  font-size: 9.46vw; /* min(21vw, 88vw / (15 chars × 0.62)) */
  white-space: nowrap;
}
.hero-word { display: block; overflow: hidden; padding: 0.04em 0 0.03em; }
.hero-name [data-hero-char] { display: inline-block; white-space: pre; will-change: transform; }
.js-motion .hero-name [data-hero-char] { clip-path: inset(-10% 100% -10% 0%); }

.strip {
  position: absolute; right: 0; top: 0;
  width: var(--strip); height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 22px 0; box-sizing: border-box;
  cursor: pointer; opacity: 0;
  background: none; border: 0; color: inherit; font: inherit;
}
.strip-name {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 30px; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.04em; white-space: nowrap;
}
.strip-arrow { font-size: 12px; font-weight: 500; }

.bar {
  position: absolute; left: 0; bottom: 0;
  width: 100vw; height: var(--bar-h);
  display: none; justify-content: space-between; align-items: center;
  padding: 0 5vw; box-sizing: border-box; opacity: 0;
}
.bar-name { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; cursor: pointer; }
.bar a { font-size: 13px; font-weight: 500; }

/* ── Top nav (desktop, after collapse) ─────────────────────────── */
.nav {
  position: fixed; top: 0; left: var(--strip); right: 0;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 3vw; box-sizing: border-box;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid rgba(13, 13, 13, 0.15);
  z-index: 15; font-size: 13px; font-weight: 500;
  opacity: 0;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }

/* ── Content ───────────────────────────────────────────────────── */
main {
  background: var(--paper); color: var(--ink);
  position: relative; z-index: 1;
  padding-left: var(--strip);
}
.spacer { height: 100vh; }

.intro {
  padding: 16vh 5vw 14vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 4vw;
}
.intro .label { padding-top: 0.8em; }
.intro p {
  margin: 0;
  font-size: clamp(28px, 3.7vw, 68px); font-weight: 500;
  line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: pretty; max-width: 26ch;
}

.display {
  margin: 0; overflow: hidden;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.06em; line-height: 0.8; padding-bottom: 0.04em;
}
.display > span { display: inline-block; }

.work { padding: 6vh 5vw 14vh; }
.work-head { margin-bottom: 5vh; }
.work-head .display { font-size: clamp(76px, 17vw, 320px); }
.cats { display: flex; flex-direction: column; gap: 14vh; }
.cat { display: flex; flex-direction: column; gap: 4vh; }
.cat-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2vw; align-items: baseline;
  padding-top: 2.4vh; border-top: 1px solid var(--rule);
}
.cat-head h3 {
  margin: 0;
  font-size: clamp(44px, 6.5vw, 124px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.055em; line-height: 0.85;
}

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4vw; align-items: start;
}
.card {
  grid-column: var(--col);
  margin: 0; display: flex; flex-direction: column; gap: 10px;
}
.card figcaption { font-size: 12px; font-weight: 500; }
.clip {
  position: relative; width: 100%;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: var(--bg, var(--slot));
}
/* Cover images are oversized for scroll parallax; contain images sit exactly in the frame. */
.img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; }
.is-contain .img { top: 0; height: 100%; }
.img img { width: 100%; height: 100%; object-fit: cover; }
.is-contain .img img { object-fit: contain; }
.card video, .card iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: var(--ink);
}
.card video { object-fit: contain; }

.about {
  padding: 10vh 5vw 14vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 6vh 4vw; align-items: start;
}
.about .clip { aspect-ratio: 4 / 5; }
.about-body { display: flex; flex-direction: column; gap: 7vh; }
.about .display { font-size: clamp(64px, 11vw, 210px); }
.about-lead {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 38px); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.02em; text-wrap: pretty; max-width: 28ch;
}
.about-copy {
  display: flex; flex-direction: column; gap: 1.2em;
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55;
  max-width: 62ch; text-wrap: pretty;
}
.about-copy p { margin: 0; }
.lists {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 5vh 3vw; font-size: 15px; line-height: 1.5;
}
.list { display: flex; flex-direction: column; gap: 12px; }
.list-head { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.job { display: flex; justify-content: space-between; gap: 16px; }
.job strong { font-weight: 600; }
.job .years { white-space: nowrap; }

.contact {
  padding: 14vh 5vw 4vh;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8vh;
}
.contact-link { display: flex; flex-direction: column; gap: 3vh; }
.contact .display { display: block; font-size: clamp(64px, 14.5vw, 280px); }
.email {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(30px, 4.4vw, 84px); line-height: 1;
  letter-spacing: -0.01em; word-break: break-word;
}
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px 32px; font-size: 13px; font-weight: 500;
  padding-top: 3vh; border-top: 1px solid var(--rule);
}

.cursor {
  position: fixed; left: 0; top: 0;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #FFFFFF;
  mix-blend-mode: difference; pointer-events: none;
  z-index: 100; opacity: 0;
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-name {
    flex-direction: column;
    font-size: 17.74vw; /* min(26vw, 88vw / (8 chars × 0.62)) */
    padding: 0;
  }
  .hero-word { padding: 0.04em 0.04em 0.03em; }
  .hero-space { display: none; }
  .strip, .nav { display: none; }
  .bar { display: flex; }
  main { padding-left: 0; }
  .intro, .about { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card { grid-column: 1 / -1; }
  .card.is-cover .clip { aspect-ratio: 4 / 3; }
}
