/* Shared styles. Keep responsive overrides after the components they refine. */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; font-feature-settings: "ss03" 1; }
:root { --blue: #264aff; --ink: #000; --space: clamp(22px,5.2vw,76px); }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Geist',Arial,sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { margin-inline: auto; }
header { padding-block: 28px; justify-content: space-between; align-items: center; }
nav { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; justify-content: center; }
.active, .reel { background: var(--blue); color: white; }
.intro { padding-top: clamp(150px,18vh,230px); padding-bottom: 110px; }
h1 { line-height: 1.04; font-weight: 480; margin: 0; }
h1 span { display: block; }
.intro-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 42px; }
.reel { padding: 13px 24px; }
.projects { display: grid; grid-template-columns: 1fr; gap: 80px; }
.featured { grid-column: 1/-1; }
.project img { display: block; width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; }
.caption { padding-top: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.caption h3 { letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.15; }
.caption p { margin: 0; }
.work { padding: 32px 0 90px; }
@media(max-width:700px) {
  .intro { padding-top: 110px; padding-bottom: 80px; }
  .reel { padding: 12px 18px; flex-shrink: 0; }
  .projects { grid-template-columns: 1fr; }
}
.caption h3 { margin-bottom: 0; }
.caption p { margin-top: 8px; }
@media(max-width:700px) {
  .caption { gap: 12px; }
}
.site-footer { padding: 72px 0; display: flex; align-items: flex-end; position: relative; z-index: 1; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 14px/1.5 'Geist Mono',monospace; }
.legal { display: flex; gap: 24px; }
@media(max-width:700px) {
  .site-footer { padding: 48px 0; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 22px; }
  .projects { gap: 46px; }
}
.theme-icon { width: 36px; height: 36px; padding: 9px; flex-shrink: 0; }
@media(max-width:700px) {
  header { flex-direction: row; align-items: center; gap: 12px; }
  nav { width: auto; gap: 4px; }
  .intro-bottom { gap: 22px; margin-top: 30px; }
}
@media(max-width:380px) {
  nav .pill { font-size: 14px; }
}
body { isolation: isolate; }
main { position: relative; z-index: 1; }
.pill { transition: background-color 180ms ease,color 180ms ease; }
@media(prefers-reduced-motion:reduce) {
  .pill { transition: none; }
  .site-footer { position: relative; }
}
header { display: block; width: 100%; }
.header-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
a.pill { text-decoration: none; }
a.pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1 { font-size: 48px; }
.caption p { font-size: 18px; }
.pill, .footer-content, .page-label { font-size: 14px; }
h2 { font-size: 36px; font-weight: 480; line-height: 1.15; }
.about-intro { padding-bottom: 140px; }
.page-label { font: 14px/1.5 'Geist Mono',monospace; margin: 0 0 28px; color: var(--accent); }
.about-copy { margin-top: 52px; }
.about-copy p { margin: 0 0 24px; }
@media(max-width:700px) {
  h1 { font-size: 36px; }
  .header-controls, nav { flex-wrap: wrap; }
  nav .pill { font-size: 14px; }
  .about-intro { padding-bottom: 90px; }
  .about-copy { margin-top: 36px; }
  .footer-content { font-size: 14px; }
  .legal { flex-wrap: wrap; }
}
:root { color-scheme: light; --surface: #fff; --text: #000; --tonal: #f2f2f2; --button: #000; --button-text: #fff; --accent: #264aff; }
:root[data-theme="dark"] { color-scheme: dark; --surface: #000; --text: #fff; --tonal: #0d0d0d; --button: #fff; --button-text: #000; --accent: #264aff; }
body, header { color: var(--text); }
main { background: var(--surface); color: var(--text); }
.work { color: var(--text); }
.site-footer { background: var(--surface); color: var(--text); }
h1 span { color: var(--accent); }
.pill { background: var(--button); color: var(--button-text); }
.pill.active, .pill.reel { background: var(--blue); color: #fff; }
button.pill { border: 0; cursor: pointer; }
button.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.theme-icon [hidden] { display: none; }
@media(hover:hover) and (pointer:fine) {
  .pill:hover { background: var(--blue); color: #fff; }
  .pill.active:hover, .pill.reel:hover { background: var(--text); color: var(--surface); }
}
header { top: 0; z-index: 10; }
header { position: fixed; inset: 0 0 auto; background: transparent; }
.intro { display: flex; flex-direction: column; justify-content: center; padding-block: 140px 100px; }
.caption h3 { color: var(--text); }
.caption p { color: var(--accent); }
@media(max-width:700px) {
  .intro { padding-block: 130px 80px; }
}
.intro { position: relative; background: var(--surface); }
.work-hint { position: absolute; bottom: 28px; color: var(--text); font: 14px/1.5 'Geist Mono',monospace; text-decoration: none; }
.work-hint:hover { text-decoration: underline; }
.work-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#work { scroll-margin-top: 0; }
@media(max-width:700px) {
  .work-hint { bottom: 24px; }
}
.work { background: var(--tonal); }
.work-hint { align-items: baseline; gap: 8px; }
.work-arrow { flex-shrink: 0; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; }
.project-media { position: relative; }
.project-arrow { position: absolute; right: 24px; bottom: 24px; color: #fff; pointer-events: none; }
.copyright-symbol { font-family: Geist,Arial,sans-serif; font-weight: 400; }
.intro h1 { font-weight: 800; }
.hero-subtitle { margin: 12px 0 0; font: 400 48px/1.04 "Geist Mono",monospace; color: var(--accent); }
@media(max-width:700px) {
  .hero-subtitle { font-size: 36px; }
}
.work-arrow, .project-arrow { overflow: visible; }
:root { --pill-y: 9px; --pill-x: 17px; }
.pill, .pill.reel { font: 400 14px/1.2 'Geist Mono',monospace; padding: var(--pill-y) var(--pill-x); height: calc(1.2 * 14px + 2 * var(--pill-y)); border-radius: 30px; }
.pill.theme-icon { font: 400 14px/1.2 'Geist Mono',monospace; height: calc(1.2 * 14px + 2 * var(--pill-y)); }
nav .pill { font: 400 14px/1.2 'Geist Mono',monospace; padding: var(--pill-y) var(--pill-x); height: calc(1.2 * 14px + 2 * var(--pill-y)); border-radius: 30px; }
@media(max-width:700px) {
  :root { --pill-y: 8px; --pill-x: 12px; }
}
.pill.theme-icon { width: calc(1.2 * 14px + 2 * var(--pill-y)); padding: 0; border-radius: 50%; }
.theme-icon svg { width: 13px; height: 13px; stroke-width: 1.85; }
.theme-icon svg.moon-icon { width: 12px; height: 12px; stroke-width: 2; }
.caption h3, .featured h3 { font-size: 24px; font-weight: 700; }
.caption p, .page-label.project-meta { font: 400 14px/1.2 'Geist Mono',monospace; }
.project-smiley { font-family: Geist,Arial,sans-serif; font-weight: 400; }
.custom-player { position: relative; background: #000; color: #fff; line-height: 0; isolation: isolate; }
.custom-player video { display: block; width: 100%; height: auto; }
.player-controls { display: flex; align-items: center; gap: 8px; position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; padding: 28px 20px 10px; background: linear-gradient(transparent,#0009); line-height: 1; pointer-events: none; }
.player-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; pointer-events: auto; }
.player-button svg { display: block; width: 13px; height: 13px; }
.player-button:focus-visible { outline: none; }
.player-button:focus-visible::after { content: ""; position: absolute; width: 13px; height: 1px; margin-top: 28px; background: currentColor; }
.player-button[hidden] { display: none; }
.player-mute { margin-right: -16px; }
.player-seek { --played: 0%; flex: 1; min-width: 0; display: block; appearance: none; -webkit-appearance: none; width: auto; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; background: linear-gradient(to right,#fff 0 var(--played),#ffffff59 var(--played) 100%) center/100% 2px no-repeat; cursor: pointer; pointer-events: auto; touch-action: pan-y; }
.player-seek::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.player-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3px; border: 0; border-radius: 50%; background: #fff; }
.player-seek::-moz-range-track { height: 2px; background: transparent; }
.player-seek::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }
.player-seek:focus-visible { outline: none; filter: drop-shadow(0 0 2px #fff); }
.custom-player:fullscreen { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #000; }
.custom-player:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.project-video { aspect-ratio: 2/1; background: #000; }
.project-video .custom-player, .project-video video { width: 100%; height: 100%; }
.project-video video { display: block; aspect-ratio: 2/1; object-fit: contain; }
.project-video .custom-player:fullscreen video { object-fit: contain; aspect-ratio: auto; }
dialog { border: 0; border-radius: 0; position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; overscroll-behavior: contain; background: var(--surface); color: var(--text); overflow: auto; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: transparent; }
.reel-viewer { padding: max(60px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
.reel-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer-close { position: absolute; top: max(10px,env(safe-area-inset-top)); right: max(20px,env(safe-area-inset-right)); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.viewer-close.pill:focus-visible { outline: none; }
.viewer-close.pill:focus-visible { box-shadow: none; text-decoration: none; }
.reel-content { width: 100%; max-width: 1280px; line-height: 0; }
.reel-content video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 100px); object-fit: contain; background: #000; }
.reel-content .custom-player:fullscreen video { height: 100%; max-height: none; }
body.reel-open { overflow: hidden; }
main { min-height: 100svh; }
.about-intro, .page-content { padding-block: 140px 120px; }
.about-page h1, .inner-page h1 { font-size: 48px; font-weight: 800; }
.inner-page, .about-page { background: var(--tonal); }
.about-copy, .contact-intro, .case-copy, .legal-copy { width: 70%; font-size: 18px; line-height: 1.6; }
.contact-intro { margin: 52px 0 24px; }
a { color: inherit; text-decoration-skip-ink: none; text-underline-offset: .18em; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.inline-external { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; }
.contact-email { display: inline-block; font: 400 18px/1.4 'Geist Mono',monospace; font-feature-settings: 'ss03' 1; overflow-wrap: anywhere; }
.legal-copy { margin-top: 52px; }
.legal-copy h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 40px 0 12px; }
.legal-copy p { margin: 0 0 24px; }
.legal-copy a[href^="mailto:"], .legal-copy a[href^="tel:"] { font: 400 18px/1.6 'Geist Mono',monospace; font-feature-settings: 'ss03' 1; overflow-wrap: anywhere; }
.legal-copy .placeholder { font: 400 9px/1.6 'Geist Mono',monospace; color: var(--text); }
.placeholder strong { font-weight: 400; }
.legal-copy code { font: inherit; overflow-wrap: anywhere; }
.legal a { text-decoration: none; }
.legal a:hover, .legal a:focus-visible { text-decoration: underline; }
.project-media { display: block; }
.project-media:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-film { margin: 0; }
.project-film video { display: block; width: 100%; height: auto; aspect-ratio: 2/1; background: #000; }
.case-intro { padding: 48px 0 88px; }
.case-copy { margin-top: 32px; }
.case-copy p { margin: 0 0 24px; }
.case-copy p:first-child { margin-bottom: 0; }
.project-stills { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-stills figure { margin: 0; min-width: 0; }
.project-stills .still-wide { grid-column: 1/-1; }
.project-stills img { display: block; width: 100%; height: auto; }
.project-back { display: inline-block; margin-top: 48px; font: 400 14px/1.5 'Geist Mono',monospace; }
.viewer-close svg { width: 14px; height: 14px; stroke-width: 1.7; }
.viewer-close.pill { position: fixed; width: var(--menu-height); height: var(--menu-height); top: calc(var(--menu-top) + env(safe-area-inset-top,0px)); padding: 0; border-radius: 50%; background: var(--button); color: var(--button-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; background: var(--surface); color: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media(max-width:700px) {
  .about-intro, .page-content { padding-block: 120px 80px; }
  .about-page h1, .inner-page h1 { font-size: 36px; }
  .about-copy, .contact-intro, .case-copy, .legal-copy { width: 100%; }
  .contact-intro, .legal-copy { margin-top: 36px; }
  .legal-copy h2 { font-size: 22px; }
  .project-stills { grid-template-columns: 1fr; gap: 16px; }
  .case-intro { padding: 32px 0 64px; }
  .player-controls { padding: 24px 8px 4px; }
}
@media(max-width:370px) {
  :root { --space: 16px; --pill-x: 9px; }
  .header-controls { gap: 8px; }
  nav { gap: 3px; }
}
.text-arrow { font-family: Geist,Arial,sans-serif; font-weight: 400; font-style: normal; font-size: 1em; line-height: 1; letter-spacing: 0; }
.project-arrow { font-size: 14px; }
.back-top { align-items: baseline; gap: 8px; text-decoration: none; }
.back-top:hover, .back-top:focus-visible { text-decoration: underline; }
.site-footer>.back-top { position: absolute; font: 400 14px/1.5 'Geist Mono',monospace; }
.work-hint, .back-top { display: block; }
.work-arrow { display: inline; }
.work-hint, .back-top, .project-back, .contact-email, .legal a, .legal-copy a { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-skip-ink: none; text-underline-offset: .18em; }
:root { --safe-gutter: max(var(--space),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)); }
.wrap { width: min(1280px,calc(100% - 2*var(--safe-gutter))); }
.header-controls, .footer-content { width: calc(100% - 2*var(--safe-gutter)); max-width: none; }
.work-hint, .viewer-close.pill { right: var(--safe-gutter); }
.site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom,0px)); }
@media(max-width:700px) {
  .site-footer { padding-bottom: calc(48px + env(safe-area-inset-bottom,0px)); }
}
.work { padding-bottom: 180px; }
.site-footer>.back-top { top: 28px; right: var(--safe-gutter); z-index: 1; }
@media(max-width:700px) {
  .site-footer>.back-top { top: 24px; }
}
:root { --menu-top: 28px; --menu-height: calc(16.8px + 2 * var(--pill-y)); --footer-strip: calc(2 * (var(--menu-top) + env(safe-area-inset-top,0px)) + var(--menu-height)); }
header { padding-top: calc(var(--menu-top) + env(safe-area-inset-top,0px)); }
.site-footer { min-height: calc(100svh - var(--footer-strip)); }
@media(max-width:700px) {
  :root { --menu-top: 24px; }
}
:root { --content-start: 140px; }
@media(max-width:700px) {
  :root { --content-start: 120px; }
}
.work { padding-top: var(--content-start); }
@media(max-height:600px) {
  .intro { padding-top: calc(var(--menu-top) + env(safe-area-inset-top,0px) + var(--menu-height) + 12px); padding-bottom: 48px; }
  .intro .hero-subtitle { margin-top: 8px; }
  .intro-bottom { margin-top: 12px; }
  .work-hint { bottom: 16px; }
  .site-footer { padding-top: 64px; padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); }
}
:root { --opening-peek: calc(var(--footer-strip) - 24px); }
.intro { min-height: calc(100svh - var(--opening-peek)); }
.about-page, .contact-page { min-height: calc(100svh - 45px); }
.about-intro, .page-content { padding-top: var(--content-start); }
html, body { background: var(--surface); }
html:has(main.inner-page), html:has(main.about-page), body:has(main.inner-page), body:has(main.about-page) { background: var(--tonal); }
@media(orientation:landscape) {
  .intro { padding-top: calc(var(--content-start) + 21px + 28px); }
}
.about-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 52px; align-items: start; margin-top: 52px; }
.about-layout .about-copy { width: 100%; max-width: 680px; margin-top: 0; }
.about-portrait { grid-row: 1; width: calc(100% * 2 / 3); max-width: none; margin: 0; justify-self: end; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 2/1; object-fit: contain; }
@media(max-width:900px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .about-portrait { grid-row: 1; width: 100%; max-width: none; }
}
.title-drafts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 72px; }
.title-drafts .project-arrow { right: 12px; bottom: 12px; color: #fff; mix-blend-mode: difference; }
.draft-viewer[open] { display: flex; align-items: center; justify-content: center; padding: var(--viewer-inset) var(--safe-gutter); overflow: hidden; --viewer-inset: max(72px,calc(var(--menu-top) + var(--menu-height) + env(safe-area-inset-top,0px) + 16px)); }
.draft-viewer>img { display: block; max-width: 100%; max-height: calc(100dvh - 2 * var(--viewer-inset)); width: auto; height: auto; object-fit: contain; }
@media(max-width:700px) {
  .title-drafts { margin-bottom: 48px; }
  .title-drafts .project-arrow { right: 8px; bottom: 8px; }
}
.gallery-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: var(--menu-height); height: var(--menu-height); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--button); color: var(--button-text); cursor: pointer; font-size: 14px; }
.gallery-prev { left: var(--safe-gutter); }
.gallery-next { right: var(--safe-gutter); }
.draft-viewer .gallery-arrow:hover { background: var(--accent); color: #fff; }
.draft-viewer .gallery-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media(max-width:900px),(max-height:500px) and (pointer:coarse) {
  .projects, .project-stills, .title-drafts, .about-layout { grid-template-columns: minmax(0,1fr); }
  .project-stills, .title-drafts { gap: 16px; }
  .project-stills>figure, .projects>.project { grid-column: 1/-1; }
}
dialog .viewer-close.pill { top: var(--viewer-top,calc(var(--menu-top) + env(safe-area-inset-top,0px))); right: var(--viewer-right,var(--safe-gutter)); }
dialog .viewer-close.pill, dialog .gallery-arrow { width: var(--viewer-button-size,var(--menu-height)); height: var(--viewer-button-size,var(--menu-height)); }
dialog .gallery-prev { left: var(--viewer-left,var(--safe-gutter)); }
dialog .gallery-next { right: var(--viewer-right,var(--safe-gutter)); }
.email-at { font-family: Geist,Arial,sans-serif; }

/* Isolate pinch zoom to the open image, keeping controls above its transformed layer. */
.draft-viewer > img.pinch-zoom { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transform-origin: center; }
.draft-viewer .viewer-close, .draft-viewer .gallery-arrow { z-index: 2; }
