/* Tokens — Production Playground design system, site (dark) theme: black stage everywhere */
:root {
  color-scheme: dark;
  --blue: #4593D0;
  --surface: #000000;
  --surface-raised: #212127;
  --stage: #212127;
  --ink: #FFFFFF;
  --ink-muted: #A1A1AA;
  --line: rgba(255,255,255,0.14);
  --scrim: rgba(0,0,0,0.4);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space-xs: 8px; --space-sm: 10px; --space-md: 20px; --space-lg: 40px; --space-xl: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 1rem/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.eyebrow {
  font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin: 0 0 var(--space-md);
}
.display {
  font: 600 clamp(3rem, 9vw, 7.5rem)/0.92 var(--font-display);
  letter-spacing: -0.01em; text-transform: uppercase; margin: 0;
}
.h2 {
  font: 600 clamp(2.25rem, 5vw, 4rem)/0.95 var(--font-display);
  letter-spacing: -0.005em; text-transform: uppercase; margin: 0;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 38ch; }
.muted { color: var(--ink-muted); }

/* Buttons — pill = the one CTA, square label = everything else */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 24px; transition: transform 100ms ease-out, background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; border-radius: 999px; font-size: 1.1875rem; font-weight: 600; padding: 14px 28px; }
.btn-primary:hover { background: #3a86c2; }
.btn-label { background: var(--stage); color: #fff; border-radius: 0; }
.btn-label:hover { background: #33333b; }

/* Nav — transparent over hero, translucent black material once scrolled */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 250ms ease; }
.nav.scrolled { background: rgba(0,0,0,0.62); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font: 500 1rem/1 var(--font-sans); text-decoration: none; opacity: 0.86; padding: var(--space-xs) 0; transition: opacity 150ms, color 150ms; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--blue); }
.nav .btn-primary { font-size: 1rem; padding: 10px 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 250ms var(--ease-out); }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .nav-links li { display: none; } /* phone: everything, Inquiry included, lives in the menu */
  .nav.open { background: #000; }
  .nav.open .nav-links { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #000;
    padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); animation: menu-in 260ms var(--ease-out); }
  .nav.open .nav-links li { display: block; }
  .nav.open .nav-links a:not(.btn) { display: block; font: 600 1.75rem/1 var(--font-display); text-transform: uppercase; padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.open .nav-links li:last-child { margin-top: 24px; }
  .nav.open .nav-links .btn-primary { width: 100%; justify-content: center; }
  .nav.open .nav-links .btn-primary { display: flex; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .nav.open .nav-links { animation: none; } }
@media (max-width: 560px) { .f-sep { display: none; } .f-tax { display: block; } }

/* Hero — the work is the hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1200ms ease, transform 7000ms linear; }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35)); }
.hero-copy { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(40px, 8vh, 96px); }
.hero-copy .eyebrow { color: #fff; opacity: 0.9; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-lg); }
.hero-meta p { margin: 0; max-width: 42ch; color: rgba(255,255,255,0.86); }
.hero-caption { font: 500 0.875rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-md) var(--space-lg); margin-bottom: clamp(40px, 6vw, 72px); }

/* About — hairline bento */
.about-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.about-grid p { margin: 0 0 1.2em; }
.about-grid .lede { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; max-width: none; }
.about-grid .muted { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.7; }
.bento { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 96px); margin-top: clamp(56px, 8vw, 96px); }
.bento h3 { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px; color: var(--blue); }
.bento p { margin: 0; }
.bento .lede { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; }
/* What we produce — spotlight: dim type, a blue light follows the pointer */
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.5vw, 20px) var(--space-lg); }
.formats li { font: 600 clamp(2.25rem, 6.5vw, 5.5rem)/1 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; }
.spot { position: relative; }
.spot .formats { color: #3d3d45; }
.spot .formats.lit { position: absolute; inset: 0; color: var(--blue); pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 180px at var(--x, -999px) var(--y, -999px), #000 35%, transparent 75%);
          mask-image: radial-gradient(circle 180px at var(--x, -999px) var(--y, -999px), #000 35%, transparent 75%); }
@media (hover: none) { .spot .formats { color: var(--ink-muted); } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .about-grid, .bento { grid-template-columns: 1fr; } }

/* Showcase — mosaic like the original site: 4 columns, big 2x2 / wide 2x1 / single tiles, 3 rows a page */
.section-head.stack { display: block; }
.section-head.stack p { margin: 14px 0 0; }
#showcase { padding-top: clamp(16px, 2vw, 32px); }
#showcase .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
#showcase .wrap { container-type: inline-size; }
.intro { margin: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); font-size: 1rem; line-height: 1.7; color: var(--ink-muted); }
.grid {
  --gap: 10px; --cols: 4;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: dense; gap: var(--gap);
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.93);
}
.grid .big { grid-column: span 2; grid-row: span 2; }
.grid .wide { grid-column: span 2; }
.grid .big .tile-title { font-size: clamp(1.375rem, 2.4vw, 2rem); }
@media (max-width: 720px) { .grid { --cols: 2; --gap: 8px; } }
/* Side page-turn bars: a thin blue bar with an arrow appears in the gutter beside the grid (mouse only) */
.grid-wrap { position: relative; }
.edge { position: absolute; top: 0; bottom: 0; width: var(--gutter); display: none; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; z-index: 2; }
.edge-prev { right: 100%; }
.edge-next { left: 100%; }
.edge-prev::before { right: 8px; }
.edge-next::before { left: 8px; }
.edge-prev svg { right: 10px; }
.edge-next svg { left: 10px; }
.edge::before { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; background: var(--blue); opacity: 0; transform: scaleX(.4); transform-origin: center; transition: opacity 200ms, transform 300ms var(--ease-out); }
.edge svg { position: absolute; top: 50%; margin-top: -5px; opacity: 0; transition: opacity 200ms; }
.grid-wrap:hover .edge::before { opacity: .25; }
.grid-wrap .edge:hover::before, .grid-wrap .edge:focus-visible::before { opacity: 1; transform: none; }
.edge:hover svg, .edge:focus-visible svg { opacity: 1; }
.edge:active::before { transform: scaleX(.8); }
.edge:disabled { visibility: hidden; }
@media (hover: hover) and (min-width: 720px) { .edge { display: flex; } }
.grid-view { position: relative; overflow: clip; overflow-clip-margin: 6px; touch-action: pan-y; }
.grid-out { position: absolute; inset: 0 0 auto; pointer-events: none; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-lg); }
.pager span { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; color: var(--ink-muted); }
.pager .btn { background: none; padding-inline: 0; transition: color 150ms, transform 100ms ease-out; }
.pager .btn:hover:not(:disabled) { background: none; color: var(--blue); }
.pager .btn:disabled { opacity: 0.3; cursor: default; transform: none; }
.tile { position: relative; display: block; background: var(--stage); overflow: hidden; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78), transparent 55%); }
.tile-copy { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(10px, 1.4vw, 18px); }
.tile-title { font: 500 clamp(0.9375rem, 1.5vw, 1.25rem)/1.15 var(--font-display); margin: 0; color: #fff; }
.tile:hover img { transform: scale(1.04); }
.tile:active { transform: scale(0.985); transition: transform 100ms ease-out; }
.tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Location — banner + square mosaic */
.location { padding-top: 0; }
.loc-banner { position: relative; height: clamp(260px, 42vw, 520px); display: grid; place-items: center; overflow: hidden; margin-bottom: var(--space-md); }
.loc-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loc-banner h1, .loc-banner h2 { position: relative; color: var(--blue); font: 600 clamp(3rem, 8vw, 6.5rem)/1 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: var(--space-md); }
.mosaic button { all: unset; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; background: var(--stage); }
.mosaic button.big { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), opacity 200ms; }
.mosaic button:hover img { transform: scale(1.03); }
.mosaic button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 720px) { .mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.contact dl { margin: 0; display: grid; gap: var(--space-md); }
.contact dt { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.contact dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.contact dd a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.social { display: flex; gap: var(--space-md); flex-wrap: wrap; }
form { display: grid; gap: 14px; }
label { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); display: grid; gap: 8px; }
input, textarea { font: 400 1rem/1.5 var(--font-sans); color: #fff; background: var(--stage); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; width: 100%; text-transform: none; letter-spacing: 0; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer — logo, studio, contact, a short form, social */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-muted); padding: clamp(56px, 8vw, 96px) 0 var(--space-lg); }
.f-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
.f-brand img { width: clamp(150px, 16vw, 200px); height: auto; }
.site-footer .f-brand p { margin: 28px 0 0; max-width: 30ch; }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer a { text-decoration: none; color: var(--ink); transition: color 150ms; }
.site-footer a:hover { color: var(--blue); }
.f-label { font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.f-link { display: inline-block; margin-top: 6px; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px !important; }
.f-social { list-style: none; margin: 0 0 0 -10px; padding: 0; display: flex; gap: 4px; }
.f-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: clamp(48px, 6vw, 80px); padding-top: var(--space-md); border-top: 1px solid var(--line); font-size: 0.8125rem; }
.f-bottom nav { display: flex; gap: 24px; }
.f-bottom nav a { color: var(--ink-muted); }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }

/* Project pages (work/<slug>/) */
dialog { color: var(--ink); }
.p-back { display: inline-flex; align-items: center; gap: 8px; background: none; padding-inline: 0; transition: color 150ms, transform 100ms ease-out; }
.p-back:hover { background: none; color: var(--blue); }
.project-page { padding-top: 104px; }
.p-head { text-align: center; padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.p-head .eyebrow { margin-bottom: 14px; }
.p-title { font: 600 clamp(2.25rem, 6vw, 4.5rem)/0.95 var(--font-display); text-transform: uppercase; margin: 0 auto; }
.p-credits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.p-credits li { font-size: 1.0625rem; }
.p-credits span { color: var(--blue); font: 500 0.9375rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; margin-right: 10px; }
.p-film { position: relative; aspect-ratio: 16 / 9; background: var(--stage); margin-bottom: var(--space-md); }
.p-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.p-stills button { all: unset; cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stage); }
.p-stills img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.p-stills button:hover img { transform: scale(1.03); }
.p-stills button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 720px) { .p-stills { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.p-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); padding: clamp(56px, 8vw, 96px) 0; }
.p-next a { text-decoration: none; padding: var(--space-md) 0; border-top: 1px solid var(--line); }
.p-next a:last-child { text-align: right; }
.p-next small { display: block; font: 500 0.875rem/1 var(--font-display); letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.p-next strong { font: 500 clamp(1.25rem, 2.4vw, 1.875rem)/1.1 var(--font-display); }
.p-next a:hover strong { color: var(--blue); }

/* Photo viewer — native scroll-snap gives momentum and snapping */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,0.96); overflow: hidden; }
dialog.viewer::backdrop { background: transparent; }
dialog.viewer[open] { animation: viewer-in 360ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: scale(0.98); } }
.viewer-bar { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--gutter); }
.viewer-title { font: 500 clamp(1.25rem, 2.4vw, 1.875rem)/1.1 var(--font-display); margin: 0; }
.viewer-count { font: 500 0.875rem/1 var(--font-display); letter-spacing: 2px; color: var(--ink-muted); }
.icon-btn { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; transition: transform 100ms ease-out, background-color 150ms; }
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:focus-visible { outline: 2px solid var(--blue); }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 84px var(--gutter) 64px; }
.track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-nav { position: absolute; inset: 50% var(--space-xs) auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.viewer-nav .icon-btn { pointer-events: auto; background: rgba(0,0,0,0.4); }
@media (hover: none) { .viewer-nav { display: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 200ms; }
  .hero-slide { transform: none !important; transition: opacity 400ms; }
  .tile img, .mosaic img, .p-stills img, .tile:active, .btn:active { transform: none !important; }
  dialog[open] { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .nav.scrolled { background: #000; backdrop-filter: none; } }
