:root {
  color-scheme: dark;
  --black: #080808;
  --ink: #0d0d0d;
  --panel: #141414;
  --line: #2a2a2a;
  --soft: #8d8d89;
  --paper: #f1f0ea;
  --acid: #d7ff43;
  --gutter: clamp(16px, 2.35vw, 40px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 104px;
  --space-7: 160px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--paper); font-size: 14px; line-height: 1.3; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
::selection { background: var(--acid); color: var(--black); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--acid); color: #000; transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0; color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gutter); color: #fff; mix-blend-mode: difference; }
.wordmark { justify-self: start; font-size: 14px; font-weight: 700; letter-spacing: -.04em; }
.wordmark span { color: var(--acid); }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a, .language-toggle { border: 0; background: none; padding: 4px 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.language-toggle { justify-self: end; }
.language-toggle span:not(.language-active) { opacity: .45; }

.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #111; }
.hero-media, .detail-hero { position: absolute; inset: 0; background: #111; }
.hero-media picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-media img { filter: saturate(.85) contrast(1.04); }
.hero-media picture img { object-position: var(--hero-desktop-focus, 50% 50%); }
.hero-media iframe, .detail-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 35%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.hero-identity { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(82px, 12vh, 138px); }
.hero-identity .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { margin: 8px 0 0; font-size: clamp(58px, 10.6vw, 176px); font-weight: 400; line-height: .82; letter-spacing: -.072em; }
.hero-role { margin: 14px 0 0 4px; font-size: clamp(18px, 2.1vw, 34px); letter-spacing: -.04em; }
.hero-role span { color: var(--acid); }
.hero-caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 30px; display: flex; gap: 22px; color: rgba(255,255,255,.7); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.scroll-cue { position: absolute; z-index: 2; bottom: 27px; left: var(--gutter); width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.scroll-cue span::after { content: ''; position: absolute; top: 8px; left: 12px; width: 4px; height: 7px; border-right: 1px solid white; border-bottom: 1px solid white; transform: rotate(45deg); }
.play-button { position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; gap: 10px; place-items: center; border: 0; background: transparent; transform: translate(-50%, -50%); cursor: pointer; text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.play-button svg { width: 54px; height: 54px; overflow: visible; }
.play-button circle { fill: rgba(8,8,8,.18); stroke: white; stroke-width: 1; }
.play-button path { fill: white; }
.play-button:hover svg { transform: scale(1.08); transition: transform 180ms ease; }
.play-button--hero { top: 36%; left: auto; right: var(--gutter); transform: none; }

.work-section { padding: var(--space-6) var(--gutter) var(--space-7); }
.section-heading { display: grid; grid-template-columns: 1fr 4fr auto; align-items: end; padding-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4.2vw, 70px); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.section-count { margin: 0; color: var(--soft); font-size: 10px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(46px, 7vw, 110px) 10px; }
.project--wide { grid-column: span 2; }
.project-link { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.project-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.project-image::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.project-image img { transition: transform 450ms cubic-bezier(.2,.6,.2,1), filter 300ms ease; }
.project-play { position: absolute; right: 16px; bottom: 16px; padding: 8px 10px; background: var(--paper); color: var(--black); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.project-link:hover .project-image img { transform: scale(1.015); filter: brightness(.88); }
.project-link:hover .project-play { opacity: 1; transform: none; }
.project-meta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr) minmax(150px, 1fr) 48px 42px; gap: 12px; align-items: start; padding-top: 11px; font-size: 9px; font-weight: 700; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
.project-title { font-size: 12px; letter-spacing: -.015em; text-transform: none; }
.project-client, .project-role, .project-duration { color: var(--soft); }
.archive { margin-top: var(--space-7); }
.section-heading--small { grid-template-columns: 1fr 4fr; border-bottom: 1px solid var(--line); }
.section-heading--small h2 { font-size: clamp(28px, 3vw, 52px); }
.archive-row { display: grid; grid-template-columns: 2.1fr 1.2fr 60px 60px 20px; gap: 20px; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; transition: background 150ms ease, padding 150ms ease; }
.archive-row span:nth-child(n+2) { color: var(--soft); }
.archive-row:hover { padding-inline: 10px; background: #0d0d0d; }
.data-note, .placeholder-note { margin: 16px 0 0; color: #64645f; font-size: 9px; letter-spacing: .05em; }

.clients { padding: 0 var(--gutter) var(--space-7); }
.client-strip { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; min-height: 150px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-strip span { color: #a3a39e; text-align: center; font-size: clamp(10px, 1vw, 14px); font-weight: 700; letter-spacing: -.01em; }

.about { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; min-height: 90vh; border-top: 1px solid var(--line); }
.portrait-placeholder { position: relative; min-height: 720px; overflow: hidden; background: linear-gradient(145deg, #1d1d1b, #0b0b0b 62%); color: #545450; }
.portrait-placeholder::before { content: ''; position: absolute; width: 38%; aspect-ratio: 1; top: 24%; left: 31%; border: 1px solid #3a3a36; border-radius: 50%; }
.portrait-placeholder::after { content: ''; position: absolute; width: 70%; height: 43%; left: 15%; bottom: 0; border: 1px solid #3a3a36; border-bottom: 0; border-radius: 50% 50% 0 0; }
.portrait-placeholder span { position: absolute; z-index: 2; top: 18px; left: 18px; font-size: 9px; letter-spacing: .12em; }
.portrait-placeholder span:last-child { right: 18px; left: auto; }
.portrait-placeholder--image::before, .portrait-placeholder--image::after { display: none; }
.portrait-placeholder--image img { position: absolute; inset: 0; }
.about-copy { padding: var(--space-6) clamp(28px, 8vw, 140px); }
.about-copy h2 { margin: 54px 0 70px; font-size: clamp(54px, 7vw, 118px); font-weight: 400; line-height: .87; letter-spacing: -.07em; }
.about-copy h2 span { color: var(--soft); }
.bio { max-width: 620px; font-size: clamp(18px, 2vw, 30px); line-height: 1.25; letter-spacing: -.03em; }
.bio--es { display: none; }
.is-es .bio--en { display: none; }
.is-es .bio--es { display: block; }
.about-facts { margin: var(--space-6) 0 0; }
.about-facts div { display: grid; grid-template-columns: 150px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.about-facts dt { color: var(--soft); font-size: 10px; text-transform: uppercase; }
.about-facts dd { margin: 0; }
.about-facts dd a + a { margin-left: 22px; }

.contact { min-height: 80vh; padding: var(--space-7) var(--gutter) 34px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--paper); color: var(--black); }
.contact .eyebrow { color: #65655f; }
.contact h2 { max-width: 1100px; margin: 28px 0 46px; font-size: clamp(56px, 9vw, 148px); font-weight: 400; line-height: .85; letter-spacing: -.075em; }
.contact-email { width: max-content; border-bottom: 1px solid; font-size: clamp(19px, 2vw, 30px); }
.contact-footer { display: grid; grid-template-columns: 1fr auto auto auto; gap: 32px; margin-top: var(--space-6); padding-top: 18px; border-top: 1px solid #b9b9b2; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.project-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 0; background: var(--black); color: var(--paper); }
.project-dialog::backdrop { background: #000; }
.dialog-shell { min-height: 100%; }
.dialog-close { position: fixed; z-index: 20; top: 18px; right: var(--gutter); border: 0; padding: 8px 0; background: transparent; mix-blend-mode: difference; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-hero { position: relative; height: min(82vh, 900px); }
.detail-hero::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 -160px 100px -120px #000; pointer-events: none; }
.detail-content { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--space-6); padding: var(--space-6) var(--gutter) var(--space-7); }
.detail-heading h2 { margin: 26px 0 36px; font-size: clamp(54px, 8.4vw, 138px); font-weight: 400; line-height: .86; letter-spacing: -.07em; }
.detail-heading > a { border-bottom: 1px solid var(--soft); font-size: 11px; text-transform: uppercase; }
.credits { margin: 22px 0 0; }
.credits div { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 10px; text-transform: uppercase; }
.credits dt { color: var(--soft); }
.credits dd { margin: 0; text-align: right; }
.stills { padding: 0 var(--gutter) var(--space-7); }
.stills-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 20px; }
.stills-grid div { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #222, #101010); border: 1px solid var(--line); }
.stills-grid div:nth-child(2), .stills-grid div:nth-child(3) { grid-column: 2; }
.stills-grid div:nth-child(2) { grid-row: 1; aspect-ratio: auto; }
.stills-grid div:nth-child(3) { grid-row: 1; align-self: end; aspect-ratio: 16/8.5; }
.stills-grid span { position: absolute; top: 12px; left: 12px; color: #555; font-size: 9px; letter-spacing: .08em; }
.still-image img { position: absolute; inset: 0; }
.next-project { display: flex; width: 100%; justify-content: space-between; border: 0; border-top: 1px solid var(--line); padding: 34px var(--gutter); background: #0d0d0d; color: var(--soft); text-align: left; opacity: 1; }
.next-project span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.next-project strong { color: var(--paper); font-size: clamp(18px, 2vw, 30px); font-weight: 400; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: 540px; }
  .hero-media picture img { object-position: var(--hero-mobile-focus, 50% 50%); }
  .hero-identity { right: var(--gutter); bottom: 90px; }
  .hero h1 { max-width: 7ch; font-size: clamp(64px, 20vw, 112px); line-height: .83; }
  .hero-role { margin-left: 2px; }
  .hero-caption { right: auto; left: var(--gutter); bottom: 24px; }
  .scroll-cue { display: none; }
  .play-button--hero { top: 26%; }
  .work-section { padding-top: 78px; padding-bottom: 110px; }
  .section-heading { grid-template-columns: 1fr auto; gap: 18px; }
  .section-heading h2 { grid-column: 1 / -1; grid-row: 2; }
  .work-grid { grid-template-columns: 1fr; gap: 54px; }
  .project--wide { grid-column: auto; }
  .project-meta { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .project-title { font-size: 14px; }
  .project-client { grid-column: 1; }
  .project-role { grid-column: 1; }
  .project-meta > span:nth-child(4) { grid-row: 1; grid-column: 2; }
  .project-duration { grid-row: 2; grid-column: 2; }
  .project-play { opacity: 1; transform: none; }
  .archive { margin-top: 110px; }
  .section-heading--small { grid-template-columns: 1fr; }
  .archive-row { grid-template-columns: 1fr auto; gap: 5px 12px; padding: 16px 0; }
  .archive-row span:first-child { font-size: 12px; }
  .archive-row span:nth-child(2) { grid-row: 2; }
  .archive-row span:nth-child(3), .archive-row span:nth-child(4) { display: none; }
  .archive-row span:last-child { grid-column: 2; grid-row: 1 / 3; }
  .client-strip { grid-template-columns: repeat(2, 1fr); min-height: 260px; }
  .about { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 72vh; }
  .about-copy { padding: 78px var(--gutter) 110px; }
  .about-copy h2 { margin: 46px 0 58px; }
  .about-facts div { grid-template-columns: 110px 1fr; }
  .contact { min-height: 90vh; padding-top: 110px; }
  .contact-footer { grid-template-columns: 1fr auto; gap: 14px; }
  .detail-hero { height: 58vh; min-height: 420px; }
  .detail-content { grid-template-columns: 1fr; gap: 70px; padding-top: 72px; }
  .detail-heading h2 { font-size: clamp(52px, 16vw, 88px); }
  .stills-grid { grid-template-columns: 1fr; }
  .stills-grid div, .stills-grid div:nth-child(2), .stills-grid div:nth-child(3) { grid-column: 1; grid-row: auto; aspect-ratio: 16/9; }
  .next-project { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
  .hero-caption span:nth-child(2) { display: none; }
  .play-button--hero { top: 22%; }
  .project-client { max-width: 28ch; }
  .about-facts div { grid-template-columns: 90px 1fr; }
  .about-facts dd a { display: block; }
  .about-facts dd a + a { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .project-link:hover .project-image img { transform: none; }
}
