:root {
  --paper: #f7f6f2;
  --ink: #151412;
  --muted: #716d65;
  --line: #d9d5cb;
  --accent: #7f1f24;
  --blue: #31556a;
  --gold: #b28a4a;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --sans: "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

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

button {
  font: inherit;
}

.reel-entry {
  min-height: 100vh;
  background: #0f0f0f;
  color: #f7f6f2;
  overflow: hidden;
}

.has-reel-overlay {
  overflow: hidden;
  background: var(--paper);
}

.reel-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #f7f6f2;
  background: #0f0f0f;
  isolation: isolate;
}

.reel-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  isolation: isolate;
}

.reel-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #000;
}

.reel-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.16);
}

.reel-background video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reel-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(820px, calc(100% - 32px));
  text-align: center;
}

.reel-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.reel-content h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  overflow-wrap: anywhere;
}

.enter-button {
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid currentColor;
  background: rgba(15, 15, 15, 0.18);
  color: inherit;
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: #f7f6f2;
  color: #0f0f0f;
}

.site-header {
  padding: 32px clamp(20px, 4vw, 48px) 36px;
  text-align: center;
}

.brand {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(30px, 7vw, 80px);
  margin-top: 26px;
  font-size: 0.78rem;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-active {
  border-color: currentColor;
}

.project-nav {
  gap: 12px clamp(14px, 2.2vw, 32px);
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  font-size: 0.68rem;
  line-height: 1.35;
}

.project-nav a {
  white-space: nowrap;
}

.work-section {
  padding: 0 clamp(18px, 2vw, 32px) 62px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 22px;
}

.project {
  min-width: 0;
}

.project-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  background: #e9e5dc;
  transition: filter 220ms ease, transform 220ms ease;
}

.project-link:hover img,
.project-link:focus-visible img {
  transform: none;
}

.project-note {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(210px, calc(100% - 28px));
  min-height: 58px;
  padding: 15px 18px 14px;
  background: rgb(247, 246, 242);
  color: var(--ink);
  border: 1px solid rgba(21, 20, 18, 0.3);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 180ms ease, transform 180ms ease;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.project-link:hover .project-note,
.project-link:focus-visible .project-note {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  min-height: 43px;
  padding-top: 14px;
  font-size: clamp(0.84rem, 1.2vw, 1rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.project-meta span:nth-child(2) {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

.profile-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(54px, 9vw, 118px) clamp(22px, 8vw, 120px);
}

.profile-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-section h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 1.02;
  font-weight: 400;
}

.profile-section p:last-child {
  max-width: 580px;
  margin: 28px 0 0 auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 7vw, 96px);
  padding: 36px 22px 52px;
  font-size: 0.92rem;
}

.contact-section a {
  border-bottom: 1px solid currentColor;
}

.project-page {
  padding: 0 clamp(18px, 5vw, 64px) 72px;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  border-bottom: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.video-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  color: #f7f6f2;
  overflow: visible;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  bottom: 72px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(247, 246, 242, 0.82);
  background: rgba(0, 0, 0, 0.42);
  color: #f7f6f2;
  padding: 0 17px 0 14px;
  transform: translateX(-50%);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.video-play-button span {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.video-play-button:hover,
.video-play-button:focus-visible {
  background: rgba(247, 246, 242, 0.95);
  color: #0f0f0f;
}

.video-play-button[hidden] {
  display: none;
}

.video-placeholder {
  max-width: 360px;
  padding: 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.7;
}

.project-detail h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.98;
  font-weight: 400;
}

.project-detail .project-year {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.project-detail p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.8;
}

.credit-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.credit-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.credit-list dt {
  color: var(--muted);
}

.credit-list dd {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 25px;
  }

  .brand {
    font-size: clamp(1.55rem, 10vw, 2.8rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .site-nav {
    gap: 13px 22px;
    margin-top: 20px;
  }

  .reel-content h1 {
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .reel-background video {
    object-fit: cover;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-meta span:nth-child(2) {
    text-align: left;
  }

  .project-note {
    position: static;
    margin-top: 10px;
    min-height: 0;
    opacity: 1;
    transform: none;
    width: 100%;
  }

  .profile-section p:last-child {
    margin-left: 0;
  }

  .video-shell {
    grid-template-columns: 1fr;
  }

  .credit-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
