.studio-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(550px, 56vw, 730px);
  margin-block: 18px 24px;
}
.studio-hero-visual { position: absolute; inset: 0; }
.studio-hero-visual .hero-image-frame img { height: 100%; object-fit: cover; object-position: 58% center; }
.studio-hero-visual .hero-image-frame::after {
  background: linear-gradient(90deg, #081017f5, #081017bd 34%, #08101739 65%, transparent 90%), linear-gradient(0deg, #081017ba, transparent 30%);
}
.studio-hero-visual figcaption, .trade-hero figcaption {
  color: var(--fg);
  font: 500 11px/1.4 var(--mono);
}
.studio-hero-visual figcaption { position: absolute; right: 18px; bottom: 15px; }
.studio-hero-visual figcaption span, .trade-hero figcaption span { color: var(--accent); }
.studio-hero-copy { position: relative; padding: clamp(24px, 4.2vw, 64px); }
.studio-hero h1, .trade-hero h1 {
  margin-top: 14px;
  max-width: 10ch;
  font-size: clamp(66px, 9.5vw, 144px);
  font-weight: 835;
  line-height: .87;
  letter-spacing: -.075em;
}
.studio-hero h1 em, .trade-hero h1 em { color: var(--accent); font-style: normal; }
.studio-hero .hero-lead { max-width: 37ch; color: var(--fg); }
.showreel-duration { color: #34401d; font: 500 11px/1 var(--mono); }

.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.selection-grid-studio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selection-card a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  background: var(--soft-bg);
  border: 1px solid var(--line);
}
.selection-card a:hover, .selection-card a:focus-visible { border-color: var(--accent); }
.selection-card figure { aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep-bg); }
.selection-card img { height: 100%; object-fit: cover; }
.selection-copy { padding: clamp(14px, 2vw, 26px); }
.selection-copy h3 {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.selection-grid-trade h3 { font-size: clamp(22px, 2.5vw, 34px); }
.selection-copy h3 span { color: var(--accent); font-size: .7em; }
.selection-copy > p:last-child { margin-top: 10px; max-width: 49ch; color: var(--muted); line-height: 1.48; }
.studio-footer { flex-wrap: wrap; row-gap: 0; }
.studio-footer a:hover { color: var(--accent); }

.trade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  padding-block: clamp(36px, 7vw, 100px);
}
.trade-hero h1 { margin: 0; max-width: 15ch; font-size: clamp(46px, 5.7vw, 84px); line-height: .94; }
.trade-hero .hero-lead { max-width: 51ch; }
.trade-hero figure { background: var(--soft-bg); border: 1px solid var(--line); }
.trade-hero figure img { aspect-ratio: 1.25; object-fit: cover; }
.trade-hero figcaption { padding: 10px 12px; }
.trade-formats { padding-bottom: var(--section-gap); }
.trade-audiences { padding-top: var(--section-gap); }
.trade-work-lead { max-width: 57ch; margin-top: 14px; color: var(--muted); line-height: 1.5; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); margin-top: 26px; }
.format-grid article { padding: clamp(17px, 3vw, 33px); border-top: 2px solid var(--accent); background: var(--soft-bg); }
.format-grid h3 { font-size: clamp(23px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.05; }
.format-grid p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

body:has(.showreel-dialog[open]) { overflow: hidden; }
.showreel-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  overflow: hidden;
  background: #000;
  color: #f4f4f4;
}
.showreel-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.showreel-dialog::backdrop { background: #000; }
.showreel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.showreel-header h2 { font: 500 clamp(11px, 1.4vw, 14px)/1.45 var(--mono); text-transform: uppercase; }
.showreel-header .dialog-close { width: 44px; height: 44px; flex-basis: 44px; border-color: #515151; border-radius: 50%; background: #111; }
.showreel-header .dialog-close:hover { color: var(--accent); border-color: var(--accent); }
.showreel-dialog video { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; background: #000; }
.showreel-dialog [data-showreel-status]:not(:empty) { padding: 8px 0; }

@media (prefers-reduced-motion: no-preference) {
  .showreel-dialog[open] { animation: showreel-enter 430ms cubic-bezier(.2,.76,.28,1) both; }
  .showreel-dialog::backdrop { animation: showreel-fade 260ms ease both; }
  @keyframes showreel-enter {
    from { opacity: 0; transform: translateY(5vh); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes showreel-fade { from { opacity: 0; } to { opacity: 1; } }
  .selection-card img { transition: transform 500ms cubic-bezier(.2,.76,.28,1); }
  .selection-card a:hover img { transform: scale(1.045); }
}

@media (max-width: 900px) {
  .selection-grid-trade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .studio-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    gap: 22px;
    margin-top: 33px;
  }
  .studio-hero-copy { padding: 0; }
  .studio-hero h1 { font-size: clamp(55px, 12.5vw, 82px); }
  .studio-hero-visual { position: relative; aspect-ratio: 16 / 10; }
  .studio-hero-visual .hero-image-frame::after { background: linear-gradient(0deg, #081017b3, transparent 28%); }
  .studio-hero-visual figcaption { right: 10px; bottom: 8px; }
  .studio-hero .hero-paths .action { flex: 0 1 auto; }
  .selection-grid, .selection-grid-studio, .format-grid, .trade-hero { grid-template-columns: 1fr; }
  .selection-copy h3 { font-size: clamp(27px, 6vw, 42px); }
}
