:root {
  --apple-blue: #0071e3;
  --link-blue: #0066cc;
  --carbon: #1d1d1f;
  --smoke: #333333;
  --ash: #707070;
  --hairline: #d2d2d7;
  --pebble: #e2e2e5;
  --frost: #f5f5f7;
  --white: #ffffff;
  --radius: 8px;
  --pill: 980px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--carbon);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--carbon); color: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter);
  height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.brand img { height: 28px; width: auto; }
.nav nav { display: flex; gap: clamp(18px, 3vw, 32px); }
.nav nav a { color: var(--carbon); font-size: 13px; letter-spacing: -0.01em; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* pills */
.pill {
  display: inline-block; border-radius: var(--pill); padding: 11px 21px;
  font: inherit; font-size: 17px; line-height: 1.18; letter-spacing: -0.016em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.pill:hover { text-decoration: none; }
.pill-filled { background: var(--apple-blue); color: #f4f8fb; }
.pill-filled:hover { background: #0077ed; }
.pill-outline { border-color: var(--link-blue); color: var(--link-blue); background: transparent; }
.pill-outline:hover { background: var(--link-blue); color: var(--white); }
.pill-light { background: rgba(255,255,255,.92); color: var(--carbon); font-size: 14px; padding: 8px 16px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 28px 0 0; }
.actions-left { justify-content: flex-start; }

/* hero */
.hero { text-align: center; padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(48px, 7vw, 80px); max-width: 980px; margin: 0 auto; }
.hero-compact { padding-bottom: clamp(32px, 5vw, 56px); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.5vw, 72px); line-height: 1.07; letter-spacing: -0.015em; margin: 0;
}
.tagline {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0.004em;
  margin: 14px auto 0; max-width: 34ch; color: var(--carbon);
}
.eyebrow-client { margin: 0 0 8px; font-size: 21px; font-weight: 600; color: var(--ash); letter-spacing: 0; }

/* reel */
.reel { position: relative; background: #000; }
.reel-video { width: 100%; aspect-ratio: 16 / 9; max-height: 88vh; object-fit: cover; }
.reel-toggle {
  position: absolute; right: 20px; bottom: 20px; font-size: 14px; padding: 8px 16px;
  background: rgba(29,29,31,.6); color: var(--white); border-color: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* work */
.work { padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); max-width: 1440px; margin: 0 auto; }
.hero-compact + .work { padding-top: 0; }
.section-heading {
  text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 clamp(28px, 4vw, 48px);
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--carbon); color: var(--white); }
.card a:hover { text-decoration: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover img { transform: scale(1.03); }
.card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%); }
.card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; align-items: flex-start; }
.card-kind { font-size: 14px; opacity: .85; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; margin-top: 2px; }
.card-sub { font-size: 17px; opacity: .92; margin-top: 2px; }
.card .pill-light { margin-top: 16px; }

/* project */
.media { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--white); font: inherit; font-size: 17px;
}
.play-icon { width: clamp(64px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.9); position: relative; transition: transform .2s; }
.play-icon::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--carbon);
}
.play:hover .play-icon { transform: scale(1.06); }
.play-text { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.player-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 16px; font-size: 12px; color: #f5f5f7; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.player-note a { color: #fff; text-decoration: underline; }
.player.is-playing > img, .player.is-playing .play, .player.is-playing .player-note { display: none; }

.text-block { max-width: 692px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.text-block p { margin: 0 0 1em; }
.credit { color: var(--ash); }

.gallery { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 80px); }
.g-grid { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .g-grid { columns: 2; } }
@media (min-width: 1100px) { .g-grid { columns: 3; } }
.g-item { display: block; margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--pebble); cursor: zoom-in; }

.next-block { text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter); background: var(--white); }
.next-block .tagline { margin-top: 0; color: var(--ash); font-size: 21px; }
.next-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 8px auto 0; max-width: 22ch; }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; cursor: pointer; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 44px; line-height: 1; color: #fff; background: transparent; border: 0; padding: 12px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-close { top: 16px; right: 16px; font-size: 14px; padding: 8px 16px; background: rgba(255,255,255,.92); color: var(--carbon); }
@media (max-width: 640px) { .lightbox img { max-width: 100vw; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* about */
.about { max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 80px); }
.about-photo { margin: 0 auto; max-width: 520px; padding: 0 var(--gutter); }
.about-photo img { width: 100%; border-radius: var(--radius); }
.about .text-block { padding-left: 0; padding-right: 0; }

/* contact */
.contact { padding-bottom: clamp(80px, 12vw, 160px); }
.contact-lines { margin: 40px 0 0; font-size: 21px; line-height: 1.6; }

/* legal */
.legal { max-width: 692px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 48px); line-height: 1.1; margin: 0; }
.legal-sub { color: var(--ash); margin: 8px 0 32px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 36px 0 8px; letter-spacing: 0; }
.legal p { margin: 0 0 12px; }

/* footer */
.footer { background: var(--frost); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: 1024px; margin: 0 auto; padding: 20px var(--gutter) 28px; font-size: 12px; color: var(--ash); letter-spacing: -0.01em; }
.footer p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-contact { padding-bottom: 12px; margin-bottom: 12px !important; border-bottom: 1px solid var(--hairline); }
.footer a { color: var(--smoke); }

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