.studio-home {
  --studio-bg: #0b0d0f;
  --studio-panel: #15171b;
  --studio-copy: #c4c4c6;
  --studio-rule: #383a3f;
  --studio-accent: #ff7452;
  --studio-paper: #f4f0ea;
  color-scheme: dark;
  color: var(--studio-paper);
  background: var(--studio-bg);
}
.studio-home .site-header { background: #101113; }
.studio-home :is(.header-nav a, .legal-links a):hover { color: var(--studio-accent); }
.studio-home :focus-visible { outline-color: #ff9d83; }
.studio-home .button-outline { border-color: #a3a1a0; background: #10101032; }
.studio-home .button-outline:hover { border-color: white; background: #ffffff13; }
.studio-home .button-reel { color: #161617; background: var(--studio-paper); }
.studio-home .button-reel:hover { background: white; }
.studio-home .button-accent { color: #17100e; background: var(--studio-accent); }
.studio-home .button-accent:hover { background: #ff9278; }
.studio-home .skip-link { background: var(--studio-paper); color: #111; }

.studio-hero { position: relative; isolation: isolate; overflow: clip; background: #101011; border-bottom: 1px solid var(--studio-rule); }
.studio-stage,
.studio-stage :is(picture, img, video) { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-stage { z-index: -1; }
.studio-stage :is(img, video) { display: block; object-fit: cover; object-position: 60% 46%; }
.studio-stage video[hidden] { display: none; }
.studio-stage::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #09090af2 0%, #09090acb 26%, #09090a45 55%, transparent 87%),
    linear-gradient(0deg, #0b0d0f 0%, #0b0d0f75 18%, transparent 45%);
  content: "";
}
.studio-hero-inner {
  min-height: clamp(630px, 45vw, 730px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-bottom: 41px;
}
.studio-hero-copy { align-self: center; padding-block: 46px; }
.studio-hero h1 { font-size: clamp(56px, 6.1vw, 100px); font-weight: 810; line-height: 1.09; letter-spacing: -.058em; }
.studio-hero h1 span { display: block; color: var(--studio-accent); margin-top: .035em; }
.studio-hero-copy p { margin-top: clamp(22px, 2.35vw, 36px); color: #eeeae7; font-size: clamp(17px, 1.65vw, 25px); font-weight: 570; line-height: 1.61; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(25px, 3vw, 44px); }
.studio-actions .button { padding-inline: clamp(19px, 2vw, 32px); min-height: clamp(52px, 4vw, 62px); font-size: clamp(16px, 1.4vw, 21px); }

.studio-chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 6px; align-items: end; }
.studio-chapters button {
  position: relative;
  display: block;
  min-height: 43px;
  border: 0;
  border-bottom: 1px solid #aeaaab83;
  padding: 4px 6px 9px 0;
  color: #f4efeb;
  background: transparent;
  font-size: clamp(13px, 1.13vw, 17px);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.studio-chapters button > span { padding-right: 5px; color: #ded5d2; font: 500 .82em/1 ui-monospace, Consolas, monospace; }
.studio-chapters button:hover { border-bottom-color: var(--studio-accent); color: #ffae98; }
.studio-chapters button:first-child::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--studio-accent);
  transform-origin: left;
  transform: scaleX(var(--scene-progress, .18));
  content: "";
}
.studio-chapters .motion-toggle { display: grid; place-items: center; padding: 0; width: 40px; height: 40px; min-height: 0; margin-left: 14px; border: 1px solid #e3dfda; border-radius: 50%; }
.motion-toggle svg { width: 20px; height: 20px; }
.studio-chapters .motion-toggle:hover { border-color: var(--studio-accent); }

.studio-player { width: min(95vw, 1120px); max-height: 94dvh; margin: auto; padding: 0; border: 1px solid #4f5055; border-radius: 10px; color: var(--studio-paper); background: #101113; overflow: auto; }
.studio-player::backdrop { background: #030303da; backdrop-filter: blur(7px); }
.studio-player-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px 10px 19px; }
.studio-player-top h2 { font-size: 17px; }
.studio-player-top button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 5px; color: white; background: #202125; cursor: pointer; }
.studio-player-top button:hover { background: #33353c; }
.studio-player-top svg { width: 22px; height: 22px; }
.studio-player video { display: block; width: 100%; max-height: 80dvh; background: black; }

.studio-lab { padding-block: clamp(55px, 5.3vw, 90px); }
.studio-section-title { display: flex; align-items: baseline; gap: 13px 30px; margin-bottom: clamp(22px, 2.55vw, 39px); }
.studio-section-title h2, .studio-about h2 { font-size: clamp(34px, 4vw, 66px); font-weight: 760; line-height: 1.18; letter-spacing: -.05em; }
.studio-section-title p { color: var(--studio-copy); font-size: clamp(15px, 1.24vw, 19px); line-height: 1.65; }
.lab-stage { overflow: hidden; border: 1px solid var(--studio-rule); border-radius: 12px; background: var(--studio-panel); }
.lab-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--studio-rule); }
.lab-tabs button {
  position: relative;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  color: #d7d7da;
  background: #121316;
  font-size: clamp(14px, 1.26vw, 19px);
  font-weight: 640;
  white-space: nowrap;
  cursor: pointer;
}
.lab-tabs button:hover { color: white; background: #222327; }
.lab-tabs button[aria-selected="true"] { color: #ffa087; background: #1c1b1d; }
.lab-tabs button[aria-selected="true"]::after { position: absolute; inset: auto 16px 0; height: 2px; background: var(--studio-accent); content: ""; }
.lab-tabs button:focus-visible { outline-offset: -5px; }
.demo-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 368px; }
.demo-panel[hidden] { display: none; }
.demo-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 3.5vw, 55px); }
.demo-copy h3 { font-size: clamp(22px, 2.3vw, 37px); font-weight: 740; letter-spacing: -.034em; line-height: 1.22; }
.demo-copy > p { margin-top: 10px; color: var(--studio-copy); font-size: 15px; line-height: 1.75; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.demo-option {
  min-height: 34px;
  border: 1px solid #57585d;
  border-radius: 5px;
  padding: 6px 11px;
  color: #e9e8e8;
  background: #222329;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.demo-option:is(:hover, [aria-pressed="true"]) { border-color: #ff896d; background: #42241f; color: #ffc2b0; }
.agent-form { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 13px; }
.agent-form input { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid #717177; border-radius: 6px; color: #f1f1f4; background: #1d1f23; font-size: 15px; }
.agent-form .button { min-height: 47px; font-size: 14px; }
.agent-result { width: 100%; min-height: 86px; margin-top: 14px; padding: 13px 15px; border: 1px solid #46474b; border-left-color: var(--studio-accent); border-radius: 6px; background: #222327; }
.agent-result p { color: #f1efed; font-size: 15px; line-height: 1.7; }
.agent-result span { display: block; margin-top: 5px; color: #bab9bf; font-size: 13px; line-height: 1.5; }

.demo-media { position: relative; overflow: hidden; min-width: 0; min-height: 100%; background: #151619; }
.demo-media > img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-media figcaption { position: absolute; inset: auto 0 0; padding: 20px 23px; background: linear-gradient(transparent,#101012e8); color: #f9f3ef; font-size: 14px; }
.agent-media > img { object-position: center; }
.agent-media figcaption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 42px; }
.agent-media figcaption svg { width: 21px; height: 21px; color: #ff967c; }
.agent-media figcaption i { width: clamp(10px, 2vw, 31px); height: 1px; background: #ff947b; margin-inline: 5px; }
.frame-media { display: grid; place-items: center; padding: 23px; background: radial-gradient(ellipse at center, #302824, #131417 79%); }
.film-frame { position: relative; aspect-ratio: 16/9; width: min(100%, 570px); overflow: hidden; border: 1px solid #625b57; background: #161517; transition: width .28s ease; }
.film-frame[data-format="vertical"] { width: min(48%, 183px); aspect-ratio: 9/16; }
.film-frame :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.film-frame video { position: absolute; inset: 0; }
.film-frame video[hidden] { display: none; }
.frame-safe { position: absolute; inset: 9%; border: 1px dashed #f9eee58d; }
.frame-subtitle { position: absolute; bottom: 11%; left: 50%; transform: translateX(-50%); padding: 2px 4px; color: white; background: #0009; font-size: clamp(11px, 1vw, 15px); text-align: center; white-space: nowrap; }
.demo-copy .demo-note { margin-top: 14px; }
.demo-copy .demo-note + .button { margin-top: 16px; }
.portrait-media > img { object-position: 66% 32%; }
.demo-quote { margin-top: 17px; padding: 11px 0 11px 14px; border-left: 2px solid var(--studio-accent); color: #eeebe8; font-size: clamp(15px, 1.24vw, 19px); line-height: 1.72; }
.demo-service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; color: #ffae97; font-size: 14px; }
.demo-service-link:hover { text-decoration: underline; }
.demo-service-link svg { width: 16px; height: 16px; }
.geo-results { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.geo-results li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 3px 9px; min-height: 36px; padding: 7px 0; border-bottom: 1px solid #414146; font-size: 14px; }
.geo-results span { color: #ffc3ae; font-size: 12px; }
.geo-results [data-passed="true"] span { color: #bbdfcc; }

.studio-services { padding-bottom: clamp(45px, 5.6vw, 86px); }
.service-rows { border-top: 1px solid var(--studio-rule); }
.service-rows a {
  display: grid;
  grid-template-columns: minmax(168px, .65fr) minmax(0, 1.55fr) auto;
  align-items: center;
  gap: 9px 27px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--studio-rule);
  transition: background-color .18s ease, color .18s ease;
}
.service-rows a:hover { background: #17181b; color: #ff987e; }
.service-rows h3 { font-size: clamp(20px, 1.92vw, 31px); line-height: 1.22; font-weight: 730; letter-spacing: -.029em; }
.service-rows p { color: var(--studio-copy); font-size: clamp(15px, 1.18vw, 18px); line-height: 1.65; }
.service-rows svg { width: 24px; height: 24px; }

.studio-about { padding-block: clamp(45px, 4.7vw, 76px); border-block: 1px solid var(--studio-rule); background: #121316; }
.studio-about-inner { display: grid; grid-template-columns: minmax(205px,.87fr) minmax(0,1.46fr) auto; align-items: center; gap: 22px clamp(22px, 3vw, 46px); }
.studio-about h2 { font-size: clamp(29px, 2.82vw, 47px); }
.studio-legal-name { margin-top: 9px; color: var(--studio-copy); font-size: 15px; }
.studio-about-copy { color: #d7d6d6; line-height: 1.68; font-size: 16px; }
.studio-about-copy ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 15px; list-style: none; padding: 0; margin-top: 14px; font-size: 13px; }
.studio-about-copy li + li::before { content: "→"; color: var(--studio-accent); margin-right: 7px; }
.studio-home .footer-inner { color: #bdbcc0; }

@media (max-width: 950px) {
  .studio-about-inner { grid-template-columns: minmax(0,1fr) auto; }
  .studio-about-copy { grid-row: 2; grid-column: 1 / -1; }
  .studio-about-inner > .button { grid-row: 1; grid-column: 2; }
}

@media (max-width: 700px) {
  .studio-hero-inner { min-height: 560px; padding-bottom: 19px; }
  .studio-hero-copy { align-self: start; padding-block: 44px 180px; }
  .studio-hero h1 { font-size: clamp(41px, 10.9vw, 69px); }
  .studio-stage :is(img, video) { object-position: 71% center; }
  .studio-stage::after {
    background:
      linear-gradient(180deg, #0b0d0f 0%, #0b0d0fc0 27%, #0b0d0f20 64%, #0b0d0f 100%),
      linear-gradient(90deg, #0b0d0f32, transparent);
  }
  .studio-hero-copy p { max-width: 28ch; margin-top: 18px; font-size: clamp(15px, 3.9vw, 18px); }
  .studio-actions { gap: 9px; margin-top: 19px; }
  .studio-actions .button { min-height: 44px; padding-inline: 13px; font-size: 14px; }
  .studio-chapters { grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 3px 9px; align-self: end; }
  .studio-chapters button { min-height: 32px; padding-block: 2px 6px; font-size: 12px; }
  .studio-chapters button:nth-child(3) { grid-column: 1; }
  .studio-chapters .motion-toggle { grid-column: 3; grid-row: 1 / span 2; place-self: center end; margin-left: 4px; width: 34px; height: 34px; }
  .motion-toggle svg { width: 16px; height: 16px; }
  .studio-section-title { flex-direction: column; gap: 8px; }
  .lab-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lab-tabs button { min-height: 40px; font-size: 13px; }
  .lab-tabs button:nth-child(-n+2) { border-bottom: 1px solid #36373a; }
  .demo-panel { grid-template-columns: 1fr; }
  .demo-copy { padding: 20px 15px; }
  .demo-copy h3 { font-size: clamp(21px, 5.8vw, 29px); }
  .agent-form .button { padding-inline: 12px; }
  .demo-media { min-height: clamp(195px, 63vw, 340px); }
  .frame-media { min-height: 250px; padding: 15px; }
  .film-frame[data-format="vertical"] { width: min(46%, 143px); }
  .demo-media figcaption { padding-inline: 15px; font-size: 12px; }
  .agent-media figcaption svg { width: 17px; height: 17px; }
  .agent-media figcaption i { width: 8px; margin-inline: 0; }
  .service-rows a { grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 14px 0; }
  .service-rows p { grid-column: 1; }
  .service-rows svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; }
}
@media (max-width: 350px) {
  .studio-hero h1 { font-size: 38px; }
  .studio-about-inner { grid-template-columns: 1fr; }
  .studio-about-inner > .button { grid-column: 1; grid-row: 3; justify-self: start; }
  .geo-results { grid-template-columns: 1fr; }
}
.studio-company-arrow { width: 15px; height: 15px; vertical-align: middle; color: var(--studio-accent); }
