@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101010;
  --paper: #f1eee7;
  --lime: #e3ff56;
  --muted: #57554e;
  --display: "Barlow Condensed", "Arial Narrow", "Impact", sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --gutter: clamp(1.125rem, 5.35vw, 5.875rem);
  --header: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + .5rem); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 100rem; padding-inline: var(--gutter); margin-inline: auto; }
.accent { color: var(--lime); }
.eyebrow { font-size: .8125rem; line-height: 1.35; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 10; background: var(--lime); color: var(--ink); padding: .8rem 1rem; }

.site-header { min-height: var(--header); position: sticky; z-index: 4; top: 0; background: var(--ink); color: var(--paper); border-bottom: 1px solid #ffffff26; }
.header-inner { display: flex; min-height: calc(var(--header) - 1px); justify-content: space-between; align-items: center; gap: 1rem; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .63rem; font: 800 1.6rem/.82 var(--display); letter-spacing: .055em; }
.brand small { display: block; font: 700 .5375rem/1.1 var(--sans); letter-spacing: .12em; margin-top: .3rem; }
.monogram { width: 2.45rem; height: 2.45rem; border: 1px solid var(--lime); display: grid; place-items: center; color: var(--lime); font-size: 1.35rem; letter-spacing: -.05em; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3.3vw, 2.7rem); }
.site-header nav a, .header-notice { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.site-header nav a { padding-block: .85rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--lime); }
.header-notice { color: var(--lime); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(35rem, calc(91svh - var(--header)), 54rem); background: #0d0d0d; color: var(--paper); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 9%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #0c0c0cde 0%, #0c0c0c4a 44%, transparent 65%); }
.hero-inner { padding-block: 4.25rem 4.75rem; }
.hero-copy { width: max-content; max-width: 100%; animation: enter .65s ease-out both; }
.hero-label { color: var(--lime); margin-bottom: 1.45rem; display: flex; align-items: center; gap: .72rem; }
.hero-label::before { display: block; width: 1.45rem; height: 1px; background: var(--lime); content: ""; }
.hero h1, .book h2, .films h2, .scenes h2, .outtakes h2, .comp h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.hero h1 { font-size: clamp(5.85rem, 11vw, 12rem); line-height: .77; letter-spacing: -.026em; }
.hero h1 > span { display: block; }
.hero h1 > span + span { margin-top: .075em; }
.hero-line { margin-top: 1.8rem; font-size: clamp(.95rem, 1.45vw, 1.15rem); line-height: 1.5; }
.action { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; padding: .7rem 1.1rem; text-decoration: none; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; transition: background .18s, color .18s; }
.action-primary { margin-top: 1.75rem; background: var(--lime); border: 1px solid var(--lime); color: var(--ink); }
.action-primary:hover { background: var(--paper); border-color: var(--paper); }
.action-primary:focus-visible { outline-color: var(--lime); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 1.55rem; color: var(--paper); font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; text-shadow: 0 0 12px #000; }

.stat-band { background: var(--lime); color: var(--ink); }
.stat-band ul { list-style: none; margin-block: 0; padding-block: 1.03rem; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: .85rem 1.5rem; }
.stat-band li { font-size: .8125rem; font-weight: 700; line-height: 1.45; }
.stat-band span { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; margin-right: .36rem; color: #343a12; }

.book { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.1rem 2rem; padding-bottom: clamp(1.45rem, 3vw, 2.1rem); border-bottom: 1px solid #202019; }
.section-label { margin-bottom: .55rem; }
.book h2, .films h2, .scenes h2, .outtakes h2, .comp h2 { font-size: clamp(4.4rem, 8.1vw, 8.6rem); line-height: .82; letter-spacing: -.017em; }
.book h2 span, .scenes h2 span, .footer-name span { color: #536500; }
.book-tools > p:first-child { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.filters button { background: transparent; border: 1px solid #77736a; padding: .54rem .72rem; min-height: 2.5rem; font-size: .8125rem; font-weight: 600; }
.filters button:hover { border-color: var(--ink); background: #e1ded5; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery { padding-top: clamp(1rem, 2vw, 1.6rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem clamp(.7rem, 1.75vw, 1.7rem); }
.portrait-link { display: block; position: relative; overflow: hidden; background: #252521; }
.portrait-link img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .34s ease; }
.portrait-link:hover img, .portrait-link:focus-visible img { transform: scale(1.045); }
.enlarge { display: grid; place-items: center; position: absolute; right: .63rem; bottom: .63rem; width: 2rem; height: 2rem; background: var(--ink); color: white; font-size: 1.25rem; transition: background .18s, color .18s; }
.portrait-link:hover .enlarge, .portrait-link:focus-visible .enlarge { background: var(--lime); color: var(--ink); }
figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; padding-top: .68rem; }
figcaption span { font-weight: 700; font-size: clamp(.865rem, 1.2vw, 1.04rem); }
figcaption small { color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .105em; font-weight: 700; }

.films, .outtakes { background: #22231e; color: var(--paper); padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); }
:is(.films, .outtakes) .section-label { color: var(--lime); }
:is(.films, .outtakes) .section-head { border-bottom-color: #85867c; }
.films-line { color: #e1dfd5; line-height: 1.55; max-width: 24rem; }
.gallery-jumps { display: flex; flex-wrap: wrap; column-gap: 1.05rem; }
.films-line a, .scenes-line a { display: inline-block; padding-block: .55rem .15rem; font-size: .875rem; font-weight: 700; text-underline-offset: .23em; }
.films-line a { color: var(--lime); }
.film-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.film-gallery .portrait-link { background: var(--ink); }

.scenes { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 8vw, 8rem); }
.scenes-line { color: var(--muted); line-height: 1.55; max-width: 24rem; }
.scenes-line a { color: var(--ink); }
.scene-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scene-gallery .portrait-link img { aspect-ratio: 16 / 9; }
.outtake-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.outtake-gallery figcaption small { color: #d1cfc4; }
.after-wrap { margin-top: clamp(4rem, 7vw, 7rem); }
.after-wrap h3 { font: 800 clamp(3.75rem, 7vw, 6.5rem)/.84 var(--display); text-transform: uppercase; letter-spacing: -.017em; }

.comp { background: var(--ink); color: var(--paper); padding-block: clamp(3.75rem, 7vw, 7rem); }
.comp-inner { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: clamp(2rem, 7vw, 8rem); }
.comp .section-label { color: var(--lime); }
.print-name { display: none; }
.comp-intro > p:not(.section-label) { line-height: 1.65; max-width: 20rem; margin-top: 1.4rem; color: #d2d0c8; }
.action-outline { margin-top: 1.2rem; background: transparent; color: var(--lime); border: 1px solid var(--lime); }
.action-outline:hover { color: var(--ink); background: var(--lime); }
.measurements { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.1rem, 3vw, 3rem); margin: .25rem 0 0; }
.measurements > div { border-top: 1px solid #62615b; min-width: 0; padding-block: .85rem; }
.measurements dt { color: #b8b5aa; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .115em; }
.measurements dd { font-size: clamp(.89rem, 1.45vw, 1.12rem); font-weight: 600; line-height: 1.4; margin: .3rem 0 0; }

.site-footer { padding-block: 1.6rem 1.8rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-name { font: 800 1.9rem/.95 var(--display); text-transform: uppercase; }
.footer-inner div > p + p { margin-top: .4rem; font-size: .825rem; line-height: 1.45; color: var(--muted); }
.footer-inner a { flex-shrink: 0; font-weight: 700; font-size: .8125rem; text-underline-offset: .23em; }

dialog { width: min(calc(100% - 1.5rem), 38rem); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid #64615b; background: var(--ink); color: var(--paper); }
dialog[data-layout="wide"] { width: min(calc(100% - 1.5rem), 64rem); }
dialog::backdrop { background: #000d; backdrop-filter: blur(5px); }
html:has(dialog[open]) { overflow: hidden; }
.viewer-content { min-height: 100%; padding: .9rem; }
.viewer-top, .viewer-info { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.viewer-top { margin-bottom: .7rem; }
.viewer-top p { color: var(--lime); }
.viewer-content img { width: 100%; height: min(62dvh, 32rem); object-fit: contain; background: #191919; }
dialog[data-layout="wide"] img { height: auto; max-height: 64dvh; aspect-ratio: 16 / 9; }
.viewer-info { align-items: end; margin-top: .75rem; }
.viewer-info h2 { font: 800 clamp(1.9rem, 5vw, 3.1rem)/.9 var(--display); text-transform: uppercase; }
.viewer-info p { font-size: .88rem; line-height: 1.45; margin-top: .4rem; color: #dedbd0; }
.viewer-nav { display: flex; gap: .35rem; }
.viewer-content button { font-size: .8125rem; font-weight: 700; background: transparent; border: 1px solid #77736a; min-height: 2.5rem; padding: .44rem .68rem; }
.viewer-content button:hover { border-color: var(--lime); color: var(--lime); }

@keyframes enter {
  from { transform: translateY(.75rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 61rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 45rem) {
  :root { --header: 3.75rem; }
  .header-notice { display: none; }
  .site-header nav { gap: .9rem; }
  .site-header nav a { letter-spacing: .075em; }
  .hero { min-height: 40rem; align-items: end; }
  .hero-image { object-position: 73% 0; height: 78%; }
  .hero-shade { background: linear-gradient(0deg, #101010 21%, #101010e0 32%, #10101057 53%, transparent 77%), linear-gradient(90deg, #0d0d0d44, transparent 68%); }
  .hero-inner { padding-block: 10.75rem 3.7rem; }
  .hero h1 { font-size: clamp(4.85rem, 15.8vw, 7.6rem); }
  .hero-label { margin-bottom: 1.05rem; }
  .hero-line { margin-top: 1.3rem; }
  .action-primary { margin-top: 1.1rem; }
  .hero-credit { left: var(--gutter); right: auto; bottom: 1.12rem; }
  .section-head { flex-direction: column; align-items: start; }
  .film-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-inner { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  .hero { min-height: 37rem; }
  .hero h1 { font-size: clamp(4.15rem, 15.8vw, 5rem); }
  .brand small { display: none; }
  .brand { font-size: 1.3rem; gap: .35rem; }
  .monogram { width: 1.9rem; height: 1.9rem; font-size: 1.125rem; }
  .site-header nav { gap: .55rem; }
  .site-header nav a { font-size: .67rem; letter-spacing: .035em; white-space: nowrap; }
  .viewer-info { align-items: start; flex-direction: column; }
}

@media (max-width: 38rem) {
  .scene-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 22rem) {
  .brand > span:last-child { display: none; }
}

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

@media print {
  @page { margin: 1.5cm; }
  body, .comp { background: white; color: #101010; }
  .site-header, .hero, .stat-band, .book, .films, .scenes, .outtakes, .site-footer, .skip-link, #print-card, dialog { display: none !important; }
  .comp { padding: 0; }
  .comp .accent, .comp .section-label, .measurements dt, .comp-intro > p:not(.section-label) { color: #101010; }
  .comp-inner { padding: 0; grid-template-columns: 1fr; gap: 1.5rem; }
  .comp h2 { font-size: 4.5rem; }
  .comp h2 br { display: none; }
  .comp .print-name { display: block; margin: 0 0 .7rem; font-weight: 700; }
  .measurements > div { break-inside: avoid; }
}
