:root {
  --pink: #f8279a;
  --lime: #c5f72c;
  --studio-backdrop: #f1f3f8;
  --studio-ink: #101117;
  --team-pill: #101117;
}
.studio-slide { color: var(--studio-ink); }
.presentation-viewport { background-color: var(--studio-backdrop); }
.studio-artboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--studio-scale, .5));
}
.studio-brackets {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(.25,.1,.25,1);
}
.studio-brackets[data-active] { opacity: 1; }
.motion-bracket {
  position: absolute;
  top: 68px;
  width: 41px;
  height: 203px;
  transform-origin: 0 0;
}
.bracket-left { left: 214px; }
.bracket-right { left: 882px; }
.motion-bracket img { display: block; max-width: none; }
.bracket-right img { transform: scaleX(-1); }

.scene-intro .intro-headline { top: calc(84px + var(--studio-extra-height, 0px) * .24); }
.intro-pill { background-color: var(--team-pill); }
.intro-designers { background-color: var(--pink); }
.scene-intro .intro-team {
  transform: translateY(calc(var(--studio-extra-height, 0px) / 2)) scale(1.045);
  transform-origin: center bottom;
}
.scene-intro .intro-headline {
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0s var(--slide-transition), filter 0s var(--slide-transition);
}
.scene-intro[data-active] .intro-headline {
  opacity: 1;
  filter: blur(0);
  transition: opacity 720ms cubic-bezier(.25,.1,.25,1) 80ms,
    filter 720ms cubic-bezier(.25,.1,.25,1) 80ms;
}
.scene-intro .intro-person {
  transform: translateY(104%);
  transition: transform 0s var(--slide-transition);
  --portrait-delay: 20ms;
}
.scene-intro :is(.person-left-front, .person-right-front) { --portrait-delay: 145ms; }
.scene-intro .person-center { --portrait-delay: 300ms; }
.scene-intro[data-active] .intro-person {
  transform: translateY(0);
  transition: transform 880ms cubic-bezier(.22,.69,.21,1) var(--portrait-delay);
}

.studio-slide h2:not(.intro-headline) {
  position: absolute;
  margin: 0;
  font-size: 180px;
  font-weight: 500;
  line-height: 162px;
  letter-spacing: -4px;
  text-align: center;
  white-space: nowrap;
}
.first-line { white-space: pre; }
.studio-slide h2 em { color: var(--pink); font-style: normal; }
#headline { left: 271px; top: 73px; width: 1377px; height: 324px; }
#development-headline { left: 50%; top: 651px; transform: translateX(-50%); width: max-content; }
#ai-headline { left: 695.5px; top: 268px; transform: translateX(-50%); width: max-content; }
.scene-design .duck {
  position: absolute;
  left: 599px;
  top: 322px;
  width: 648px;
  height: 686px;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.duck img, .duck canvas {
  position: absolute;
  left: -12.174291%;
  top: -6.482593%;
  width: 117.647059%;
  height: 111.130509%;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.duck canvas, .duck[data-render="canvas"] .duck-poster { visibility: hidden; }
.duck[data-render="canvas"] canvas { visibility: visible; }
.duck-hitbox { position: absolute; inset: 20%; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
.duck:focus-visible { outline: 3px solid var(--pink); outline-offset: 14px; border-radius: 28px; }

:is(.development-visual, .ai-visual) { position: absolute; z-index: 1; pointer-events: none; }
.development-visual { left: 302px; top: -46px; width: 1060px; height: 1060px; }
.ai-visual { left: 1220px; top: 130px; width: 722px; height: 722px; }
.ai-visual img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.development-visual :is(.device-poster, .device-canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.device-canvas, .development-visual[data-render="canvas"] .device-poster { visibility: hidden; }
.development-visual[data-render="canvas"] .device-canvas { visibility: visible; }
.device-hitbox {
  position: absolute;
  inset: 20%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.device-hitbox:focus-visible { outline: 3px solid var(--pink); outline-offset: 12px; border-radius: 24px; }
.robot-rig { aspect-ratio: 1; isolation: isolate; }
.robot-rig .robot-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.services {
  position: absolute;
  left: 1281px;
  top: 640px;
  width: max-content;
  min-height: 220px;
  border-left: 8px solid var(--lime);
  display: flex;
  align-items: center;
  padding-left: 28px;
}
.services ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
  white-space: nowrap;
}
.development-services { top: 180px; }
.ai-services { left: 506px; top: 699px; min-height: 184px; }

.scene-production {
  /* Convert the 890px-high Figma frame to the shared 1080px studio artboard. */
  --production-unit: calc(1080px / 890);
  color: #000;
}
.scene-production #production-headline {
  inset: 0;
  font-size: calc(148 * var(--production-unit));
  line-height: .9;
  letter-spacing: -.02027em;
  pointer-events: none;
}
:is(.production-title-first, .production-title-last) {
  position: absolute;
  transform: translateX(-50%);
}
.production-title-first {
  left: calc(50% - 7.36 * var(--production-unit));
  top: calc(132.68 * var(--production-unit));
}
.production-title-last {
  left: calc(50% - 248.05 * var(--production-unit));
  top: calc(266.98 * var(--production-unit));
}
.production-visual {
  position: absolute;
  z-index: 1;
  left: calc(50% - 113.72 * var(--production-unit));
  top: calc(335.4 * var(--production-unit));
  width: calc(690.392 * var(--production-unit));
  aspect-ratio: 690.392 / 472.319;
  overflow: hidden;
}
.production-visual :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
}
.production-visual canvas, .production-visual[data-render="canvas"] img { visibility: hidden; }
.production-visual[data-render="canvas"] canvas { visibility: visible; }
.production-note {
  --logo-size: calc(150 * var(--production-unit));
  left: calc(50% - 622 * var(--production-unit));
  top: calc(563 * var(--production-unit));
  min-height: 0;
  gap: calc(24 * var(--production-unit));
  border: 0;
  padding: 0;
  font-size: calc(26 * var(--production-unit));
  line-height: 1.1;
  letter-spacing: -.03846em;
}
.production-note p { margin: 0; }
.production-logo {
  position: relative;
  flex: 0 0 auto;
  width: var(--logo-size);
  aspect-ratio: 1;
  pointer-events: none;
}
.production-logo :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.production-logo canvas, .production-logo[data-render="canvas"] img { visibility: hidden; }
.production-logo[data-render="canvas"] canvas { visibility: visible; }

@media (orientation: portrait) {
  .studio-slide { container-type: size; }
  .studio-artboard { inset: 0; width: auto; height: auto; transform: none; }
  .studio-slide:not(.scene-intro) .studio-artboard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px 12px;
  }
  .studio-slide :is(#headline, #development-headline, #ai-headline) {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    font-size: clamp(18px, 7.4cqw, 49px);
    line-height: 1.04;
    letter-spacing: -.024em;
    white-space: normal;
  }
  .first-line { white-space: normal; }
  .studio-slide :is(.design-word, .development-word, .ai-word) { margin-inline: .20em; }
  .studio-slide .duck, .studio-slide :is(.development-visual, .ai-visual) {
    position: relative;
    left: auto;
    top: auto;
    width: min(94%, 43dvh);
    flex: none;
    height: auto;
    aspect-ratio: 1;
    margin: 10px 0 5px;
  }
  .studio-slide .duck { width: min(79%, 40dvh); aspect-ratio: 648 / 686; }
  .studio-slide .ai-visual { width: min(84%, 38dvh); }
  .studio-slide .development-visual { order: 0; }
  #development-headline { order: 1; }
  .studio-slide .services {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    align-self: center;
    min-height: 0;
    margin-top: 16px;
    padding-left: 12px;
    border-left-width: 4px;
  }
  .studio-slide .services ul {
    font-size: clamp(12px, 4cqw, 20px);
    line-height: 1.18;
    letter-spacing: -.015em;
  }
  .scene-production .studio-artboard {
    gap: clamp(10px, 3.5cqh, 38px);
  }
  .scene-production #production-headline {
    position: relative;
    inset: auto;
    display: grid;
    justify-items: center;
    gap: .08em;
    font-size: min(13cqw, 8.6cqh, 86px);
    line-height: .97;
  }
  :is(.production-title-first, .production-title-last) {
    position: relative;
    inset: auto;
    transform: none;
  }
  .production-visual {
    position: relative;
    inset: auto;
    width: min(100%, 63cqh, 700px);
    flex: 0 0 auto;
  }
  .studio-slide .production-note {
    --logo-size: clamp(45px, min(16cqw, 12cqh), 112px);
    gap: clamp(10px, 3cqw, 24px);
    margin-top: 0;
    padding: 0;
    border: 0;
    font-size: clamp(13px, 4.2cqw, 28px);
  }
  .scene-intro .intro-headline {
    left: 50%;
    top: 33%;
    width: 96%;
    height: auto;
    font-size: clamp(14px, 5.05cqw, 36px);
    letter-spacing: -.04em;
    transform: translateX(-50%);
  }
  .intro-line { height: 7cqw; }
  .intro-pill { height: 100%; width: auto; padding: 0 2.3cqw; }
  .intro-and { padding-inline: 1.6cqw; }
  .intro-arrow { width: 7cqw; height: 7cqw; max-width: none; max-height: none; }
  .intro-research { height: 100%; width: 50cqw; max-width: none; }
  .intro-researchers { width: 100%; padding-right: 8cqw; }
  .intro-logo { width: 10.1cqw; height: 7cqw; max-width: none; max-height: none; }
  .scene-intro .intro-team {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .scene-intro .intro-person {
    top: auto;
    bottom: -1.5cqw;
    width: min(var(--portrait-width), 67cqh - 14cqw - 20px);
    height: auto;
    left: var(--portrait-center);
    translate: -50% 0;
  }
  .person-right-back { --portrait-center: 89%; --portrait-width: 89%; }
  .person-left-back { --portrait-center: 11%; --portrait-width: 89%; }
  .person-right-front { --portrait-center: 73%; --portrait-width: 76%; }
  .person-left-front { --portrait-center: 27%; --portrait-width: 76%; }
  .person-center { --portrait-center: 50%; --portrait-width: 94%; }
  .team-caption { font-size: clamp(13px, 4cqw, 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-brackets { transition: none; }
  .scene-intro[data-active] :is(.intro-person, .intro-headline) { transition: none; }
}

.slide[data-brand-team-scroll] > :is(.scene-brand, .scene-intro) {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.slide[data-brand-team-scroll] > .scene-brand { z-index: 1; }
.slide[data-brand-team-scroll] > .presentation-slide:not(:is(.scene-brand, .scene-intro)) {
  opacity: 0;
  visibility: hidden;
}
.slide[data-brand-team-scroll] > .studio-brackets { opacity: 0; }
.slide[data-brand-team-scroll] .brand-backdrop { opacity: calc(1 - var(--brand-team-background)); }
.slide[data-brand-team-scroll] :is(.brand-artwork, .brand-bottom-blur) {
  opacity: calc(1 - var(--brand-team-logo-out));
}
.slide[data-brand-team-scroll] .brand-artwork {
  filter: blur(calc(clamp(12px, 1.5625cqw, 30px) * var(--brand-team-logo-out)));
}
.slide[data-brand-team-scroll] :is(#brand-headline, .brand-footer) {
  opacity: calc(1 - var(--brand-team-text-out));
  filter: blur(calc(clamp(9px, 1.1458cqw, 22px) * var(--brand-team-text-out)));
}
.slide[data-brand-team-scroll] .intro-headline {
  opacity: var(--brand-team-text-in);
  filter: blur(calc(8px * (1 - var(--brand-team-text-in))));
}
.slide[data-brand-team-scroll] :is(.person-left-back, .person-right-back) { --team-rise: var(--brand-team-outer); }
.slide[data-brand-team-scroll] :is(.person-left-front, .person-right-front) { --team-rise: var(--brand-team-middle); }
.slide[data-brand-team-scroll] .person-center { --team-rise: var(--brand-team-center); }
.slide[data-brand-team-scroll] .intro-person {
  transform: translate3d(0, calc(104% * (1 - var(--team-rise))), 0);
  will-change: transform;
}
.slide:is([data-brand-team-scroll], [data-brand-team-settle]) > :is(.presentation-slide, .brand-backdrop, .studio-brackets),
.slide:is([data-brand-team-scroll], [data-brand-team-settle]) :is(.intro-person, .intro-headline, .brand-artwork, #brand-headline) {
  transition: none;
}
