.external-site { white-space: nowrap; }
.external-arrow { position: relative; display: inline-block; width: .68em; height: .68em; margin-inline-start: .22em; vertical-align: .04em; }
.external-arrow::before { content: ""; position: absolute; top: 48%; left: 1%; width: 100%; height: 1.4px; background: currentColor; transform: rotate(-45deg); }
.external-arrow::after { content: ""; position: absolute; top: 4%; right: 4%; width: 54%; height: 54%; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; }
.studio-all-work { text-decoration: underline; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; font-weight: 750; }
.studio-work-footer { margin-top: 34px; }
.end .studio-privacy { font: 700 12px/1.4 'DM Sans', sans-serif; letter-spacing: .06em; border: none; }
.studio-policy { margin: 0; background: #f2ebd8; color: #1d1b19; font: 16px/1.6 system-ui, sans-serif; }
.studio-policy header, .studio-policy footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 5%; }
.studio-policy header { border-bottom: 1px solid #1d1b1933; }
.studio-policy nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.studio-policy a { color: inherit; text-underline-offset: 4px; }
.studio-policy .policy-home { font-size: 22px; font-weight: 850; text-decoration: none; }
.studio-policy main { max-width: 720px; padding: 40px 5% 60px; margin: 0 auto; }
.studio-policy h1 { font-size: clamp(42px, 7vw, 80px); line-height: 1.02; letter-spacing: -.05em; }
.studio-policy h2 { margin: 1.8em 0 .3em; font-size: 24px; letter-spacing: -.025em; }
.studio-policy p { margin: 0 0 .8em; }
.studio-policy footer { border-top: 1px solid #1d1b1933; }

.studio-menu[hidden], .top nav[hidden], .film-error[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.film-dialog {
  --dialog-gutter: clamp(10px, 3vw, 40px);
  color: #f2ebd8;
  background: transparent;
  border: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) max(var(--dialog-gutter), env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(var(--dialog-gutter), env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.film-dialog[open] { display: grid; align-items: safe center; justify-items: center; }
.film-dialog::backdrop { background: rgb(12 10 9 / .94); }
.film-panel { width: min(100%, 1100px); min-width: 0; }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.film-client { margin: 0 0 4px; color: #ff805a; font: 750 12px/1.2 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.film-title { margin: 0; font: 400 clamp(25px, 4vw, 48px)/1.05 Anton, Impact, sans-serif; text-transform: uppercase; }
.film-close, .film-retry {
  flex: none; min-height: 44px; color: inherit; background: transparent; border: 1px solid #f2ebd87a;
  padding: 6px 14px; font: 700 14px/1.2 'DM Sans', sans-serif; cursor: pointer;
}
.film-close:hover, .film-retry:hover { color: #151412; background: #f2ebd8; }
.film-dialog :focus-visible, .studio-menu:focus-visible, .card:focus-visible { outline: 3px solid #ff805a; outline-offset: 3px; }
.film-panel video {
  display: block; width: 100%; height: auto; aspect-ratio: auto 16 / 9;
  max-height: calc(100vh - 130px);
  max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain; background: black; color-scheme: dark;
}
.film-error { margin: 8px 0 0; font: 15px/1.4 'DM Sans', sans-serif; }
.film-retry { margin-inline-start: 8px; }
.tile-picture { position: absolute; inset: 0; display: block; overflow: hidden; }
@media (max-height: 520px) {
  .film-bar { margin-bottom: 6px; }
  .film-title { font-size: 21px; }
  .film-client { font-size: 10px; margin-bottom: 2px; }
  .film-panel video { max-height: calc(100dvh - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  .top {
    position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 0 12px; padding: 8px max(5%, env(safe-area-inset-right)) 8px max(5%, env(safe-area-inset-left));
    border-bottom: 1px solid currentColor;
  }
  .studio-home .top { background: #fa5921; }
  .top :is(.logo, .brand) { display: inline-flex; align-items: center; width: max-content; min-height: 44px; font-size: 25px; }
  .top .studio-menu {
    align-items: center; justify-content: center; gap: 9px; min-width: 76px; min-height: 44px;
    padding: 0 9px; color: inherit; background: transparent; border: 0; cursor: pointer;
    font: 750 13px/1 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .07em;
  }
  .studio-menu:not([hidden]) { display: inline-flex; }
  .menu-mark { display: block; width: 16px; height: 8px; border-block: 1.5px solid currentColor; }
  .studio-menu[aria-expanded="true"] .menu-mark { height: 0; border-bottom: 0; }
  .top nav {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
    gap: 0 clamp(12px, 3vw, 30px); padding-block: 5px 2px; border-top: 1px solid currentColor;
  }
  .top nav a, .top nav a:not(.contact):not(.nav-contact) {
    display: inline-flex; align-items: center; min-height: 44px;
    font: 750 13px/1.2 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .03em;
  }
  .top nav .nav-contact, .top nav .contact { border: 0; padding: 0; }
  .studio-work .top nav a[href="/"] { display: none; }

  .studio-home .intro, .studio-home .intro-pin { height: auto; min-height: 0; }
  .studio-home .intro-pin {
    display: grid; grid-template-areas: 'title' 'scene' 'question'; justify-items: start;
    padding: clamp(20px, 5vw, 34px) 5% clamp(26px, 6vw, 46px); gap: 8px;
  }
  .studio-home .hero-title, .studio-home .hero-question {
    position: static; width: 100%; max-width: 100%; margin: 0;
  }
  .studio-home .hero-title { grid-area: title; font-size: clamp(37px, 12vw, 96px); line-height: .98; }
  .studio-home .hero-title span, .studio-home .hero-title span:nth-child(2) {
    width: auto; transform: none; clip-path: none; animation: none; white-space: normal;
  }
  .studio-home .hero-title span:nth-child(2) { font-size: .69em; line-height: 1.02; margin-top: .10em; }
  .studio-home .hero-phone-stage {
    grid-area: scene; justify-self: center; position: relative; inset: auto;
    width: auto; max-width: 100%; height: clamp(225px, 40svh, 470px); aspect-ratio: 540 / 720;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent), linear-gradient(0deg, transparent, black 8%, black 92%, transparent);
    mask-composite: intersect;
  }
  .studio-home .hero-phone-stage img, .studio-home .hero-phone-stage video { object-fit: contain; }
  .studio-home .hero-question { grid-area: question; font-size: clamp(24px, 6.8vw, 54px); line-height: 1.02; }
  .studio-home .intro-bridge { display: none; }

  .studio-home .client-proof { padding: 40px 5%; border-width: 3px; }
  .studio-home .client-proof-head { display: block; padding: 0; }
  .studio-home .client-proof h2 { font-size: clamp(34px, 8.8vw, 68px); margin: 15px 0 24px; }
  .studio-home .client-proof .footnote, .studio-home .client-proof-bottom { display: none; }
  .studio-home .client-marquee { mask-image: none; padding: 18px 0; overflow: visible; }
  .studio-home .client-track { display: block; width: 100%; animation: none; }
  .studio-home .client-group {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center;
    align-items: center; gap: 14px 12px; padding: 0;
  }
  .studio-home .client-group[aria-hidden] { display: none; }
  .studio-home .client-group .client-logo {
    width: 100%; max-width: 110px; height: 34px; min-height: 0; object-fit: contain;
    font-size: clamp(18px, 4.9vw, 30px); background-size: 100% auto;
  }
  .studio-home .client-group .client-logo.rq { max-width: 48px; }
  .studio-home .client-group .client-logo.pluxee { display: flex; }
  .studio-home .statement, .studio-home .credits {
    grid-template-columns: minmax(0, 1fr); padding: 48px 5%; gap: 24px;
  }
  .studio-home .statement h1, .studio-home .credits h2 { font-size: clamp(46px, 12vw, 96px); margin: 12px 0 0; }
  .studio-home .statement aside p, .studio-home .credits p { font-size: 19px; line-height: 1.35; margin: 0 0 12px; }
  .studio-home .statement aside small { font-size: 15px; }
  .studio-home .statement aside { padding: 0; }
  .studio-home .about-link { margin-top: 14px; min-height: 44px; padding: 12px 0; }
  .studio-home .credits ul { margin: 18px 0 0; }

  .studio-work .intro { padding: 36px 5% 34px; }
  .studio-work .intro h1 { font-size: clamp(52px, 15.6vw, 115px); line-height: .95; margin: 12px 0; }
  .studio-work .intro p { font-size: clamp(16px, 4vw, 21px); }
  .studio-work .gallery-wrap { padding: 26px 5% 54px; }
  .studio-work .gallery-head { gap: 12px; margin-bottom: 14px; align-items: baseline; font-size: 10px; }
  .studio-work .gallery { gap: 22px 16px; }
  .studio-work .tile {
    display: grid; grid-template-columns: minmax(0,1fr); align-content: start; width: 100%; height: auto;
    aspect-ratio: auto; border: 0; overflow: visible; background: transparent; color: var(--cream);
  }
  .studio-work .tile::before, .studio-work .tile::after, .studio-work .tile .watch { display: none; }
  .studio-work .tile-picture {
    position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9;
    background: #342e2a; border: 1px solid #f2ebd838;
  }
  .studio-work .tile .poster { opacity: 1; transform: none; }
  .studio-work .tile .sticker {
    position: static; transform: none; box-shadow: none; background: none; color: inherit;
    max-width: none; padding: 10px 0 0; text-transform: none; line-height: 1.2;
  }
  .studio-work .sticker > span { color: #ff805a; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
  .studio-work .sticker strong { margin-top: 3px; font-size: clamp(23px, 6vw, 34px); }
  .studio-work .tile .play {
    left: 12px; bottom: 12px; top: auto; width: 44px; height: 44px; font-size: 18px;
    transform: none; border-width: 1px; background: #171512c9; color: var(--cream);
  }
  .studio-work .tile .index { right: 10px; top: 10px; font-size: 10px; background: #171512b3; padding: 4px 6px; }
  .studio-work .end, .studio-home .end { padding: 48px 5% 26px; }
  .studio-work .end h2, .studio-home .end h2 { font-size: clamp(48px, 13vw, 100px); margin: 16px 0 25px; }
  .studio-home .end-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 42px; font-size: 10px; }
  .studio-home .end-bottom a { width: max-content; min-height: 44px; }
}

@media (max-width: 900px), (max-height: 540px) and (pointer: coarse) {
  .studio-home .deck-section { height: auto; padding: 0; }
  .studio-home .deck-pin {
    position: static; display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible;
    gap: 20px; height: auto; padding: 46px 5% 54px;
  }
  .studio-home .deck-copy { padding: 0; }
  .studio-home .deck-copy h2 { font-size: clamp(42px, 11vw, 86px); margin: 10px 0 4px; }
  .studio-home .deck-copy h2 br { display: none; }
  .studio-home .deck-copy h2 span::before { content: ' '; }
  .studio-home .deck-copy p, .studio-home .deck-controls, .studio-home .deck-side { display: none; }
  .studio-home .studio-all-work { min-height: 44px; }
  .studio-home .cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; position: static; width: 100%; height: auto; max-height: none; perspective: none; }
  .studio-home .cards .card {
    position: relative; inset: auto; display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
    margin: 0; border: 1px solid #f2ebd84a; border-radius: 4px; transform: none; box-shadow: none;
    opacity: 1; pointer-events: auto; will-change: auto;
  }
  .studio-home .card .card-bottom { padding: 14px; align-items: center; }
  .studio-home .card h3 { font-size: clamp(24px, 6vw, 42px); margin-top: 3px; }
  .studio-home .card small { color: #ffd8b9; font-size: 10px; text-shadow: 0 1px 4px #000; }
  .studio-home .card-arrow { display: grid; place-items: center; border: 1px solid #f2ebd8; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; background: #17151291; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .studio-home .intro-pin { grid-template: 'title scene' auto 'question scene' auto / minmax(0, 1.3fr) minmax(0, 1fr); align-content: center; gap: 16px; }
  .studio-home .hero-title { align-self: end; font-size: clamp(44px, 6.2vw, 64px); }
  .studio-home .hero-question { align-self: start; font-size: clamp(26px, 3.6vw, 36px); }
  .studio-home .hero-phone-stage { height: auto; width: min(100%, 300px); }
  .studio-home .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .studio-home .card .card-bottom { padding: 9px; }
  .studio-home .card h3 { font-size: 22px; }
  .studio-home .card .card-arrow { width: 32px; height: 32px; }
  .studio-work .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) { .studio-work .gallery { grid-template-columns: minmax(0, 1fr); } }

.studio-work .play, .studio-home .card-arrow { display: grid; place-items: center; padding-left: 0; }
.studio-work .play::before, .studio-home .card-arrow::before {
  content: ''; display: block; width: .9em; height: 1em;
  background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}
@media (min-width: 600px) and (max-width: 900px) and (max-height: 520px) {
  .studio-home .intro-pin { padding-block: 12px 18px; }
  .studio-home .hero-phone-stage { width: auto; height: clamp(180px, 66svh, 310px); }
}
