:root {
  --page-bg: #000;
  --panel: #050505;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.18);
  --header-height: 64px;
  --page-pad: clamp(22px, 4vw, 72px);
  --chapter-gap: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  background: var(--page-bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open { overflow: hidden; }
button, a, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 12px;
  color: #000;
  background: #fff;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--page-pad);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
  transition: background 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-scrolled {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
  backdrop-filter: none;
}

.wordmark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.58);
  transition: color 180ms ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: #fff; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}


.home-main { background: #000; }

/* ---------------------------------------------------------------------------
   Shared media frame layers (masthead stage + work cards)
   --------------------------------------------------------------------------- */
.frame-poster,
.frame-video,
.frame-vignette,
.frame-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.frame-poster,
.frame-video {
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 1200ms var(--ease);
}
.frame-poster { z-index: 1; }
.frame-video { z-index: 2; }
.frame-poster.is-visible,
.frame-video.is-visible { opacity: 1; }

.frame-grain {
  z-index: 5;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.frame-vignette {
  z-index: 4;
  background: none;
}

/* ---------------------------------------------------------------------------
   Masthead
   --------------------------------------------------------------------------- */
.masthead {
  position: relative;
  background: #000;
}

.masthead-stack {
  display: flex;
  flex-direction: column;
}

.masthead-slide {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.masthead-slide-trigger {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.masthead-slide-copy {
  position: absolute;
  inset: auto var(--page-pad) clamp(42px, 8vh, 88px);
  z-index: 10;
  pointer-events: none;
}

.masthead-slide-copy h2 {
  max-width: 14ch;
  margin: 8px 0 0;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.masthead-slide-kicker {
  display: block;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead-slide-roles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 0;
  pointer-events: none;
}

.work-roles-primary {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.work-roles-secondary {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
}

.masthead-slide-caption {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead-slide-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: background 180ms ease, border-color 180ms ease;
}

.masthead-slide-watch::before {
  content: "▶";
  font-size: 7px;
}

.masthead-slide-watch:hover,
.masthead-slide-watch:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.masthead-slide-index {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.is-video-feature .masthead-slide-copy {
  inset: clamp(76px, 10vh, 116px) auto auto var(--page-pad);
}

.is-video-feature .masthead-slide-copy h2 {
  display: none;
}

.is-video-feature .masthead-slide-copy p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(9px, 0.85vw, 12px);
}

.masthead-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.masthead-stage .frame-poster.is-visible,
.masthead-stage .frame-video.is-visible { transform: scale(1.04); }

.masthead-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: calc(var(--header-height) + 48px) var(--page-pad) clamp(72px, 10vh, 120px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.masthead-kicker {
  margin: 0 0 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(60px, 9.5vw, 168px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  display: none;
}

.masthead-copy {
  max-width: 44ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
  display: none;
}


.masthead-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
  max-width: 760px;
}
.masthead-index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 260ms var(--ease), color 180ms ease;
}
.masthead-index a:hover { padding-left: 12px; }
.index-number {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.index-label {
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.masthead-index a::after {
  content: "↓";
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.scroll-cue {
  position: absolute;
  right: var(--page-pad);
  bottom: 26px;
  z-index: 12;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ---------------------------------------------------------------------------
   Chapters — one continuous vertical column
   --------------------------------------------------------------------------- */
.chapter {
  position: relative;
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: #000;
}

.chapter-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1120px;
  margin-bottom: clamp(48px, 6vw, 92px);
}

.chapter-index {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.chapter-title {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 108px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.057em;
  text-transform: uppercase;
  text-wrap: balance;
}

.chapter-description {
  max-width: 62ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.58;
  text-wrap: pretty;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.chapter-archive {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.chapter-archive::after { content: " ↗"; }
.chapter-archive:hover { color: #000; border-color: #fff; background: #fff; }
.chapter-archive.is-secondary { border-color: var(--hairline); color: var(--muted); }
.chapter-archive.is-secondary:hover { color: #000; background: #fff; }

.chapter-projects {
  display: flex;
  flex-direction: column;
  gap: var(--chapter-gap);
}

/* ---------------------------------------------------------------------------
   Work cards — every project is full-bleed, title + CTA overlay the frame
   --------------------------------------------------------------------------- */
.work-card {
  min-width: 0;
  /* Bleed past the chapter's horizontal padding */
  margin-inline: calc(var(--page-pad) * -1);
}

.work-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.work-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #060606;
}

.work-frame .frame-poster,
.work-frame .frame-video { transform: scale(1.01); }

.work-trigger:hover .frame-poster,
.work-trigger:focus-visible .frame-poster,
.work-trigger:hover .frame-video,
.work-trigger:focus-visible .frame-video { transform: scale(1.045); }

/* Vignette over the frame so overlay text is always legible */
.work-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 42%, transparent 68%),
    linear-gradient(to right, rgba(0,0,0,0.32) 0%, transparent 60%);
}

/* Title + CTA sit over the frame at the bottom-left */
.work-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  /* .work-card bleeds full-width via a negative margin-inline of -1x --page-pad,
     so the horizontal inset here must be 2x --page-pad to land back at the
     page gutter (matching the header/wordmark alignment). */
  padding: clamp(18px, 3.5vw, 44px) calc(var(--page-pad) * 2) clamp(20px, 3.5vw, 46px);
  pointer-events: none;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.work-kicker {
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-name {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

.work-roles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 58ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Prominent pill CTA — lights up on hover */
.work-cta {
  flex: 0 0 auto;
  align-self: flex-end;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 2px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease;
}
.work-cta::before {
  content: "▶";
  font-size: 7px;
}
.work-trigger:hover .work-cta,
.work-trigger:focus-visible .work-cta {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}

/* No-poster fallback: typographic band */
.frame-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-content: center;
  padding: clamp(22px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(20px, 3vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.work-frame.has-no-poster {
  aspect-ratio: 21 / 9;
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 9px
    ),
    #060606;
}
.work-frame.has-no-poster .frame-fallback { display: grid; }

/* ---------------------------------------------------------------------------
   Section header cards — full-size section introductions
   --------------------------------------------------------------------------- */
.work-card.section-header {
  position: relative;
}

.section-header-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.section-header-frame img,
.section-header-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  /* Same fix as .work-overlay: offset the -1x --page-pad bleed on .work-card. */
  padding: clamp(32px, 6vw, 64px) calc(var(--page-pad) * 2);
}

.section-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.section-header-title {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.057em;
  text-transform: uppercase;
}

.section-header-description {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.58;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   About + footer
   --------------------------------------------------------------------------- */
.about-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 0.7fr);
  grid-template-rows: auto auto;
  gap: clamp(24px, 5vw, 86px);
  align-items: start;
  min-height: auto;
  padding: calc(var(--header-height) + clamp(68px, 10vh, 120px)) var(--page-pad) 96px;
  border-top: 1px solid var(--hairline);
  background: #000;
}
.about-copy { grid-column: 1; grid-row: 1; }
.about-links { grid-column: 2; grid-row: 1; }
.about-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.about-copy h2 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(42px, 6.5vw, 108px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.057em;
  text-transform: uppercase;
}
.about-copy > p:last-child {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.58;
}
.about-kicker {
  margin: 0 0 12px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-links {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.contact-value {
  display: inline-block;
  width: fit-content;
  color: #fff;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 260ms var(--ease), color 180ms ease;
}
.contact-value:hover {
  color: var(--muted);
  background-size: 100% 1px;
}
.contact-footer {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  margin-top: 72px;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.contact-footer p { margin: 0; }

/* ---------------------------------------------------------------------------
   Project modal
   --------------------------------------------------------------------------- */
.project-modal[hidden] { display: none; }
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 42px);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: default;
  backdrop-filter: blur(14px);
}
.project-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1500px, 100%);
  height: min(900px, calc(100svh - clamp(24px, 6vw, 84px)));
  border: 1px solid var(--hairline);
  background: #050505;
  overflow: hidden;
}
.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 clamp(18px, 2.4vw, 34px);
  border-color: var(--hairline);
}
.modal-header { border-bottom: 1px solid var(--hairline); }
.modal-footer { border-top: 1px solid var(--hairline); }
.modal-kicker,
.project-number {
  margin: 0 0 12px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.modal-header .modal-kicker { margin: 0; color: var(--muted); }
.close-button,
.project-step {
  padding: 8px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.close-button:hover,
.project-step:hover { color: var(--muted); }
.project-content {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(300px, 0.65fr);
  min-height: 0;
}
.project-media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}
.project-media iframe,
.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
  overflow-y: auto;
  padding: clamp(24px, 3.6vw, 58px);
  border-left: 1px solid var(--hairline);
}
.project-copy h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(28px, 3vw, 54px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.project-description {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.project-meta {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 18px;
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 10px;
  line-height: 1.45;
}
.project-meta dt { color: var(--muted); font-weight: 700; letter-spacing: 0.1em; }
.project-meta dd { margin: 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  padding: 7px 9px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-link {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.project-position { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }

.password-gate {
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(520px, calc(100% - 48px));
  min-height: 100%;
  padding: 36px;
}
.password-gate p { margin: 0; }
.password-gate .gate-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.password-gate h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.password-gate .gate-copy {
  max-width: 400px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.password-form {
  display: flex;
  width: 100%;
  margin-top: 30px;
}
.password-form input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--hairline);
  border-right: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  appearance: none;
}
.password-form button {
  height: 46px;
  padding: 0 16px;
  border: 1px solid #fff;
  color: #000;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.password-error {
  min-height: 18px;
  margin-top: 10px !important;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-nav a { display: none; }
  .about-section { grid-template-columns: 64px minmax(0, 1fr); }
  .about-links { grid-column: 2; }
  .project-content { grid-template-columns: 1fr; overflow-y: auto; }
  .project-media { min-height: min(56vw, 54svh); }
  .project-copy { border-left: 0; border-top: 1px solid var(--hairline); overflow: visible; }
}

@media (max-width: 640px) {
  :root { --header-height: 56px; --page-pad: 18px; --chapter-gap: 0px; }
  .site-header { background: rgba(0, 0, 0, 0.72); }
  .wordmark { font-size: 10px; }
  .site-nav { gap: 10px; }

  .masthead-content { padding: calc(var(--header-height) + 44px) var(--page-pad) 96px; }
  .masthead-title { font-size: clamp(52px, 16vw, 88px); }
  .masthead-copy { max-width: 100%; margin-top: 20px; }
  .masthead-index { margin-top: 36px; }
  /* Keep the opening hero slides in the same widescreen system as every work card. */
  .masthead-slide,
  .masthead-slide-trigger {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .masthead-slide-copy,
  .is-video-feature .masthead-slide-copy {
    inset: auto var(--page-pad) 24px;
  }
  .masthead-slide-copy h2,
  .is-video-feature .masthead-slide-copy h2 {
    display: block;
    max-width: 12ch;
    margin-top: 8px;
    font-size: clamp(22px, 7.5vw, 40px);
    line-height: 0.92;
  }
  .masthead-slide-roles { margin-top: 8px; }
  .masthead-slide-watch { margin-top: 14px; padding: 9px 14px; }
  .is-video-feature .masthead-slide-copy p:last-child { max-width: 25ch; line-height: 1.35; }
  .scroll-cue { left: var(--page-pad); right: auto; bottom: 22px; }

  .work-overlay,
  .section-header-overlay {
    padding-left: 54px;
    padding-right: 54px;
  }
  .work-name { font-size: clamp(22px, 7.5vw, 40px); }
  .work-cta { padding: 9px 14px; font-size: 8px; }

  .about-section {
    display: block;
    min-height: auto;
    padding: calc(var(--header-height) + 58px) var(--page-pad) 0;
  }
  .about-index { margin-bottom: 44px; }
  .about-copy h2 { font-size: clamp(42px, 13vw, 74px); }
  .about-links { margin-top: 48px; }
  .contact-footer { margin-top: 48px; }
  .project-modal { padding: 0; }
  .project-shell { width: 100%; height: 100svh; border: 0; }
  .project-media { min-height: 34svh; }
  .project-copy { padding: 26px 20px 36px; }
  .modal-footer { min-height: 54px; }
  .password-gate { width: 100%; padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .frame-video { display: none; }
}
