@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600&family=Nunito+Sans:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #989898;
  --black: #222222;
  --panel: #131313;
  --line: rgba(255,255,255,.15);
  --accent: #ff4a2f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #222222; }
body { margin: 0; background: #222222; color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(22px, 4vw, 64px);
  mix-blend-mode: difference; color: white; pointer-events: none;
}
.nav a { pointer-events: auto; }
.brand { font-family: "Archivo Black", Impact, sans-serif; font-size: 1.1rem; letter-spacing: -.06em; }
.nav nav { display: flex; gap: 30px; text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; }
.nav nav a { border-bottom: 1px solid transparent; padding-bottom: 4px; }
.nav nav a:hover { border-color: currentColor; }

.hero { position: relative; height: clamp(440px, 64vh, 600px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: -3; object-fit: cover; filter: saturate(.78) contrast(1.01) brightness(.72); transform: scale(1.08); pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: rgba(40,40,40,.4); }
.hero-content { position: relative; width: min(100%, 1200px); height: 100%; padding-inline: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-family: "Oswald", Impact, sans-serif; font-size: clamp(3.5rem, 3.35vw, 4.25rem); font-weight: 600; line-height: .94; letter-spacing: .015em; text-transform: uppercase; margin: 0; }
.role { margin: 24px 0 0; font-family: "Nunito Sans", Inter, sans-serif; font-size: clamp(1rem, 1.25vw, 1.6rem); font-weight: 300; line-height: 1.25; letter-spacing: .045em; color: rgba(255,255,255,.9); }

.work { max-width: 1100px; margin: 0 auto; padding: clamp(62px, 7.5vw, 74px) clamp(18px, 3vw, 46px) 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(40px, 4vw, 72px); row-gap: clamp(56px, 6vw, 88px); }
.project-card { appearance: none; display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.project-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; border-radius: 0; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(1.025) contrast(1.025) saturate(1.035); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.project-card:hover img { transform: scale(1.022); filter: brightness(1.08) contrast(1.025) saturate(1.04); }
.project-meta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 12px; line-height: 1.15; }
.project-meta h3 { font-family: "Oswald", Impact, sans-serif; font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 400; color: #a7a7a7; letter-spacing: .01em; margin: 0; }
.project-category { color: #8d8d8d; font-size: .72rem; font-weight: 400; }


footer { border-top: 0; margin: 0 clamp(18px, 4vw, 64px); padding: clamp(132px, 13vw, 192px) 0 46px; color: #8d8d8d; font-size: .75rem; letter-spacing: .02em; text-align: center; }
footer p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin: 0; line-height: 1.5; }
footer a { color: inherit; }
footer .footer-separator { color: #666; }
footer a:hover { color: white; }

.project-dialog { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0a0a; color: var(--ink); overflow: auto; }
.project-dialog::backdrop { background: #000; }
.project-dialog[open] { animation: reveal .36s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }
.project-fullscreen { min-height: 100%; background: #0a0a0a; overflow: auto; }
.project-fullscreen:fullscreen,
.project-fullscreen:-webkit-full-screen { width: 100vw; height: 100vh; background: #0a0a0a; overflow: auto; }
.close-button { position: fixed; z-index: 4; right: clamp(20px, 3vw, 48px); top: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,10,.45); backdrop-filter: blur(12px); cursor: pointer; }
.close-button span { position: absolute; left: 50%; top: 50%; width: 20px; height: 1px; background: white; transform: translate(-50%, -50%) rotate(45deg); }
.close-button span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-shell { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); }
.dialog-shell.swipe-active { transform: translate3d(var(--swipe-x, 0), 0, 0); will-change: transform; }
.dialog-shell.swipe-settling, .dialog-shell.swipe-entering { transition: transform .17s cubic-bezier(.4, 0, .2, 1); }
.dialog-shell.swipe-enter-start { transition: none; }
.film-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; background: #030303; overflow: hidden; }
.film-stage img, .film-stage iframe, .film-stage video { width: 100%; height: 100%; border: 0; object-fit: contain; }
.film-stage img { max-height: 100vh; }
.desktop-film-poster, .desktop-film-frame { position: absolute; inset: 0; }
.desktop-film-frame { opacity: 0; pointer-events: none; }
.desktop-film-frame.desktop-film-loaded { opacity: 1; }
.desktop-film-frame.desktop-film-loaded:is(iframe, [controls]) { pointer-events: auto; }
.desktop-film-loading {
  position: absolute; z-index: 1; inset: 0; margin: auto; width: 30px; height: 30px;
  border: 2px solid #fff5; border-top-color: #eee; border-radius: 50%;
  animation: desktop-film-spin .75s linear infinite;
}
@keyframes desktop-film-spin { to { transform: rotate(1turn); } }
.film-note { margin: 0 0 clamp(26px, 4vh, 44px); color: #bcbcbc; font-size: .76rem; line-height: 1.55; }
.film-note mark {
  font-weight: 700;
  padding: .08em .22em;
  background: #f2e6b4;
  color: #242015;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.film-note[hidden] { display: none; }
.project-info { padding: clamp(100px, 12vh, 150px) clamp(30px, 5vw, 76px) 60px; display: flex; flex-direction: column; }
.project-info h2 { font-family: "Archivo Black", Impact, sans-serif; font-size: clamp(2.3rem, 4vw, 4.8rem); line-height: .91; letter-spacing: -.06em; text-transform: uppercase; margin: 0 0 clamp(34px, 6vh, 64px); }
.project-info h2:where(:has(+ .film-note:not([hidden]))) { margin-bottom: 14px; }
.credits { display: flex; flex-direction: column; gap: 9px; }
.credit-row { margin: 0; font-size: .82rem; line-height: 1.45; }
.credit-role { color: #777; margin-right: .65em; }
.credit-name { color: var(--ink); }
.dialog-nav { margin-top: auto; padding-top: 50px; display: flex; justify-content: space-between; }
.dialog-nav button { background: none; border: 0; padding: 8px 0; cursor: pointer; text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: #999; }
.dialog-nav button:hover { color: white; }
body.dialog-open { overflow: hidden; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-shell { grid-template-columns: 1fr; }
  .film-stage { position: relative; height: min(64vh, 680px); }
  .project-info { min-height: 60vh; }
}
@media (max-width: 600px) {
  .nav { padding: 20px; }
  .nav nav { gap: 20px; }
  .hero { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.1rem); }
  .role { margin-top: 12px; font-size: clamp(.64rem, 2.65vw, .78rem); letter-spacing: .01em; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 54px; }
  .project-meta { padding-top: 9px; }
  .project-meta h3 { font-size: clamp(.9rem, 4.4vw, 1.1rem); }
  .project-category { font-size: .60rem; }
  footer p { gap: 6px; padding-inline: 8px; }
  footer .footer-separator-after-phone { display: none; }
  .project-info { padding-inline: 22px; }
}

@media (max-width: 600px) {
  .hero-film { pointer-events: none; transform: none; }
  .hero-film::-webkit-media-controls,
  .hero-film::-webkit-media-controls-enclosure,
  .hero-film::-webkit-media-controls-panel { display: none !important; }
  .film-stage { height: min(56vw, 360px); min-height: 220px; }
}

@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .role { white-space: nowrap; }
  .role [data-home="taglineExtra"] { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .project-dialog { overflow-y: auto; touch-action: pan-y; }
  .project-dialog .close-button { top: 14px; right: 14px; width: 42px; height: 42px; }
  .dialog-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(42px, 1fr) auto;
    grid-template-areas: "title" "note" "stage" "credits" "." "nav";
    align-content: start;
    padding: 76px 0 36px;
  }
  .project-info { display: contents; }
  .dialog-shell.without-film-note {
    grid-template-rows: auto auto auto minmax(42px, 1fr) auto;
    grid-template-areas: "title" "stage" "credits" "." "nav";
  }
  .film-note {
    display: block; grid-area: note; justify-self: center; text-align: center;
    max-width: min(44ch, calc(100% - 44px)); margin: 0 0 18px; font-size: .72rem;
  }
  .film-note mark { font-weight: 400; }
  .project-info h2 {
    grid-area: title;
    margin: 0 64px 24px;
    font-family: "Oswald", Impact, sans-serif;
    font-size: clamp(2rem, 10vw, 3.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .015em;
    text-align: center;
  }
  .film-stage {
    grid-area: stage;
    position: relative;
    width: calc(100% - 32px);
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0 16px;
    background: #030303;
  }
  .mobile-film-poster { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
  .mobile-film-poster img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-film-shade { position: absolute; inset: 0; background: rgba(20,20,20,.62); }
  .rotate-cue { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: white; text-align: center; }
  .rotate-cue svg { width: 78px; height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .rotate-cue span { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
  .mobile-film-frame { position: absolute; width: 1px !important; height: 1px !important; opacity: .01; pointer-events: none; }
  .mobile-native-video { background: #000; }
  .mobile-loading { display: none; position: absolute; top: 50%; left: 50%; z-index: 5; width: 34px; height: 34px; margin: -17px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: film-spin .75s linear infinite; pointer-events: none; }
  @keyframes film-spin { to { transform: rotate(360deg); } }
  .mobile-pause-indicator { display: none; position: absolute; top: 50%; left: 50%; z-index: 6; align-items: center; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 0; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.55); border-radius: 5px; background: rgba(0,0,0,.65); cursor: pointer; }
  .mobile-pause-indicator span { width: 3px; height: 15px; border-radius: 1px; background: white; }
  .mobile-film-frame:fullscreen,
  .mobile-film-frame:-webkit-full-screen { width: 100vw !important; height: 100vh !important; opacity: 1; background: #000; pointer-events: auto; }
  .film-stage:fullscreen,
  .film-stage:-webkit-full-screen { width: 100vw !important; height: 100vh !important; margin: 0 !important; background: #000; }
  .film-stage:fullscreen .mobile-film-frame,
  .film-stage:-webkit-full-screen .mobile-film-frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 1; pointer-events: auto; }
  .mobile-film-frame::backdrop { background: #000; }
  .credits { grid-area: credits; gap: 10px; padding: 30px 24px 0; }
  .credit-row { font-size: .82rem; }
  .dialog-nav { grid-area: nav; margin: 0; padding: 42px 24px 10px; }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .project-dialog.mobile-playing { overflow: hidden; }
  .project-dialog.mobile-playing .dialog-shell { position: fixed; inset: 0; display: block; padding: 0; background: #000; }
  .project-dialog.mobile-playing .film-stage { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
  .project-dialog.mobile-playing .film-stage { touch-action: none; }
  .project-dialog.mobile-playing .film-note { display: none; }
  .project-dialog.mobile-playing .project-info,
  .project-dialog.mobile-playing .close-button { display: none; }
  .project-dialog.mobile-playing.video-ready .mobile-film-poster { display: none; }
  .project-dialog.mobile-playing .mobile-film-poster { display: block; }
  .project-dialog.mobile-playing .mobile-film-shade,
  .project-dialog.mobile-playing .rotate-cue { display: none; }
  .project-dialog.mobile-playing.video-loading .mobile-loading { display: block; }
  .project-dialog.mobile-playing.is-paused .mobile-pause-indicator { display: flex; animation: pause-indicator-hide .25s ease 2s forwards; }
  @keyframes pause-indicator-hide { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
  .project-dialog.mobile-playing .mobile-film-frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Inline authoring uses the existing elements, fonts and layout. */
[data-inline-editable] { white-space: pre-wrap; }
.inline-editing [data-inline-editable] { cursor: text; caret-color: #fff; outline: 1px dotted rgba(255,255,255,.22); outline-offset: 3px; }
.inline-editing [data-inline-editable]:focus { outline-color: rgba(255,255,255,.65); }
.inline-editing .credit-row { position: relative; }
.inline-editing .credit-role:empty::before,
.inline-editing .credit-name:empty::before { content: '\200b'; }
.inline-editing .project-dialog { scroll-padding-bottom: 90px; }
.credit-grip { position: absolute; left: -26px; top: 0; width: 22px; padding: 0; border: 0; background: transparent; color: #aaa; cursor: grab; font: inherit; touch-action: none; }
.credit-grip:active { cursor: grabbing; }
.credit-dragging { opacity: .4; }
.site-editor-bar[hidden] { display: none; }
.site-editor-bar { position: fixed; z-index: 2147483647; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; width: max-content; max-width: calc(100vw - 28px); padding: 11px 14px; border: 1px solid #555; border-radius: 10px; background: rgba(24,24,24,.97); color: #eee; box-shadow: 0 4px 28px #0008; font: 13px/1.4 Inter,Arial,sans-serif; text-transform: none; letter-spacing: normal; }
.site-editor-bar button { padding: 6px 12px; border: 1px solid #666; border-radius: 6px; background: #333; color: #eee; cursor: pointer; font: inherit; }
.site-editor-bar button[data-action=save] { background: #e9e9e9; color: #222; border-color: #e9e9e9; }
.site-editor-bar button:disabled { opacity: .45; cursor: wait; }
.editor-status { max-width: min(490px,76vw); }
.editor-help { flex-basis: 100%; text-align: center; color: #999; font-size: 11px; }
.editor-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2147483647; max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid #666; border-radius: 8px; background: #242424; color: #eee; font: 14px/1.5 Arial,sans-serif; text-align: center; }
@media (max-width: 600px) { .site-editor-bar { bottom: 9px; gap: 6px; padding: 9px; font-size: 12px; } .site-editor-bar button { padding: 6px 9px; } .editor-status { flex-basis: 100%; text-align: center; } }
[data-home], .project-meta h3, #dialog-title, .credit-role, .credit-name { white-space: pre-line; }

.inline-editing .credit-role:empty, .inline-editing .credit-name:empty { display: inline-block; min-width: 4ch; min-height: 1.45em; vertical-align: baseline; }
