/* Styles 18, 20 and 21 from the Psychoactive export provide the player and scene. */
.romanjo-hero {
  --studio-scroll: 0;
  --studio-side: 0;
  --studio-side-alpha: 1;
  --studio-pull: 0;
  --studio-direction: 1;
}

[dir='rtl'] .romanjo-hero {
  --studio-direction: -1;
}

.romanjo-hero .hero__wrapper[data-v-6a4e24e7] {
  height: 100svh;
  min-height: 36rem;
  max-height: none;
  padding: 0;
}

.romanjo-hero .romanjo-hero-visual[data-v-6a4e24e7] {
  inset: 0;
}

.romanjo-hero-visual img {
  object-position: 52% 53%;
  filter: saturate(0.7) brightness(0.63);
  opacity: 0.48;
}

.romanjo-hero-visual::after {
  background:
    linear-gradient(90deg, #101012b8, transparent 59%, #1010123a),
    linear-gradient(0deg, #101012, transparent 35%, #1010122b 79%, #101012);
}

.reel-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(39vw, 35rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-33deg);
  border: 1px solid #fff2;
  border-inline-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.reel-orbit::after {
  position: absolute;
  inset: 12% auto auto 15%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #878788;
  content: '';
}

.reel-brand,
.reel-intro {
  position: absolute;
  z-index: 2;
  top: max(12%, calc(50% - 280px));
}

.reel-brand {
  inset-inline-start: max(7vw, calc(50vw - 800px));
  font: 650 0.94rem/1.2 var(--romanjo-mono);
  opacity: 0.55;
  text-decoration: none;
}

.reel-intro {
  inset-inline-end: max(4.5vw, calc(50vw - 860px));
}

.reel-intro .button {
  padding-inline: 1.35rem;
  border-color: #fff4;
  border-radius: 3rem;
  font: 650 0.7rem/1.2 var(--romanjo-mono);
  text-transform: uppercase;
  transition: border-color 0.2s cubic-bezier(0, 0, 0.02, 0.99);
}

.reel-intro .button:hover {
  border-color: #fff;
}

.reel-line {
  position: absolute;
  z-index: 1;
  inset-inline: max(7vw, calc(50vw - 800px));
  top: 50%;
  height: 1px;
  background: #ffffff1a;
  pointer-events: none;
}

.reel-line::before,
.reel-line::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #878788;
  content: '';
}

.reel-line::before { inset-inline-start: 0; }
.reel-line::after { inset-inline-end: 0; }

.romanjo-hero .reel-stage[data-v-e939ce4c] {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 320px), 1600px, calc(100svh * 1.68));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.romanjo-hero .reel-window[data-v-e939ce4c] {
  opacity: 1;
  pointer-events: none;
  scale: var(--reel-hover-scale, 1);
}

.reel-window img,
.reel-window video {
  object-position: 50% 56%;
  filter: brightness(0.86) saturate(0.72);
}

.reel-window .reel-teaser {
  position: absolute;
  z-index: 2;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.reel-window .player__preview_overlay {
  z-index: 4;
  opacity: 0.56;
  pointer-events: none;
}

.reel-window .reel-shader {
  z-index: 3;
  visibility: hidden;
}

.reel-window .reel-shader.is-rendering {
  visibility: visible;
}

.romanjo-hero .reel-controls[data-v-e939ce4c] {
  gap: 24px;
  pointer-events: none;
}

.romanjo-hero .reel-stage.homehero-prepared .reel-controls .reel-meta[data-v-e939ce4c] {
  position: absolute;
  top: calc(50% + 9px);
  visibility: visible;
  color: #fffa;
  font: 500 0.69rem/1.15 var(--romanjo-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.reel-meta:first-child { inset-inline-end: 74.5%; }
.reel-meta:last-child { inset-inline-start: 74.5%; }

.romanjo-hero .reel-controls .reel-launch {
  display: grid;
  place-items: center;
  color: #101012;
  text-decoration: none;
}

.romanjo-hero .reel-controls .reel-launch:is(:hover, :focus-visible) .play-glyph {
  color: #fff;
  filter: drop-shadow(0 1px 2px #101012);
}

.romanjo-hero .reel-controls .reel-launch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.reel-controls .reel-launch .play-glyph { height: 0; color: #101012; }

.romanjo-hero .romanjo-hero-copy[data-v-599f7f61] {
  position: absolute;
  inset-inline-start: max(7vw, calc(50vw - 800px));
  top: max(59%, calc(50% + 5.1rem));
  width: min(64%, 54rem);
  margin: 0;
  padding: 0;
}

.romanjo-hero .romanjo-hero-title {
  margin-block-end: 0.8rem;
  font-size: clamp(2.2rem, 4.9vw, 5.3rem);
  font-weight: 530;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.romanjo-hero-title span:first-child { color: #ffffffb5; }
.romanjo-hero-title span:last-child {
  color: var(--romanjo-paper);
  font-size: 1.49em;
}

.romanjo-hero .hero-fallback__headline[data-v-599f7f61] {
  max-width: 27rem;
  font-size: clamp(0.87rem, 1.15vw, 1rem);
  line-height: 1.47;
}

.romanjo-hero .actions { margin-top: 0.4rem; }
.romanjo-caption { opacity: 0.86; }

.reel-mobile-loop,
.hero-mobile__player_overlay,
.caption-reel,
.studio-mist-layer,
.reel-handoff {
  display: none;
}

/* The modal uses the same 1s opening and 700ms return as the reference player. */
#studio-reel {
  width: min(1000px, calc(100% - 2rem));
  max-height: 90svh;
  overflow: auto;
  padding: clamp(0.8rem, 2vw, 1.5rem);
  border: 1px solid var(--romanjo-line);
  background: #101012;
  color: #f2f2f0;
}

#studio-reel::backdrop { background: #050506e8; }
#studio-reel h2 {
  align-self: center;
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
}

#studio-reel video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68svh;
  margin-block: 0.65rem;
  background: #08080a;
  object-fit: contain;
}

#studio-reel p { margin: 0; color: var(--romanjo-muted); font-size: 0.88rem; }
#studio-reel.is-morphing { overflow: visible; border-color: transparent; background: transparent; }
#studio-reel.is-morphing :is(.dialog-header, video, p, a) { visibility: hidden; }
#studio-reel.is-morphing::backdrop { background: #050506be; }

.reel-flight {
  position: fixed;
  z-index: 1;
  max-width: none;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
  pointer-events: none;
}

.studio-motion-toggle {
  position: absolute;
  z-index: 5;
  inset-block-start: calc(clamp(1.3rem, 3.33vw, 3rem) + 3.9rem);
  inset-inline-end: clamp(1.125rem, 3.33vw, 3rem);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #fff4;
  border-radius: 50%;
  background: #1010129c;
  color: var(--romanjo-paper);
  cursor: pointer;
}

.studio-motion-toggle:hover { border-color: var(--romanjo-paper); }
.studio-motion-toggle span { width: 0.55rem; height: 0.62rem; border-inline: 2px solid currentColor; }
.studio-motion-toggle[aria-pressed='true'] span {
  width: 0;
  height: 0;
  border: 0;
  border-block: 0.33rem solid transparent;
  border-inline-start: 0.56rem solid currentColor;
}

@media (min-width: 769px) {
  .romanjo-hero-copy .actions a:last-child { display: none; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .reel-window .reel-teaser {
    clip-path: circle(0 at var(--reel-pointer-x, 50%) var(--reel-pointer-y, 50%));
    transition: clip-path 0.46s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.25s ease;
  }

  .reel-window .reel-teaser.is-playing {
    clip-path: circle(145% at var(--reel-pointer-x, 50%) var(--reel-pointer-y, 50%));
    opacity: 1;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .romanjo-hero .reel-stage[data-v-e939ce4c] { width: calc(100% - 96px); }
}

/* 1 viewport of expansion, then 0.78 of pull, 0.5 hold, and 0.78 push. */
@media (min-width: 1024px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  .studio-pinned .studio-mist-layer {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .studio-mist-live .studio-mist-layer { visibility: visible; }

  .studio-mist-layer :is(.studio-mist-host, .mist-field, canvas) {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .romanjo-hero.studio-pinned[data-v-599f7f61] {
    z-index: 2;
    height: 406svh;
    overflow: clip;
    pointer-events: none;
  }

  .romanjo-hero.studio-pinned + .homepage__content {
    margin-block-start: -82svh;
  }

  .studio-pinned .hero__wrapper[data-v-6a4e24e7] {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    overflow: clip;
  }

  .studio-pinned .hero__wrapper[inert] { opacity: 0 }

  .studio-pinned :is(.reel-brand, .reel-intro, .romanjo-hero-copy, .studio-motion-toggle) {
    pointer-events: auto;
  }

  .studio-pinned .reel-stage.homehero-prepared .reel-window[data-v-e939ce4c] {
    --reel-mask: calc(25.97% * (1 - var(--studio-scroll)));
    clip-path: inset(var(--reel-mask) 0 round 20px);
    transform: scale(calc(0.45 + 0.55 * var(--studio-scroll)));
  }

  .studio-pinned .reel-controls {
    opacity: calc(1 - var(--studio-pull));
  }

  .studio-pinned .reel-controls .reel-meta { opacity: var(--studio-side-alpha); }
  .studio-pinned .player__dots { opacity: var(--studio-side-alpha); }
  .studio-pinned .romanjo-hero-visual { opacity: calc(1 - var(--studio-pull)); }
  .studio-pinned.studio-mist-live .romanjo-hero-visual { opacity: 0; }
  .studio-pinned .romanjo-hero-copy {
    translate: calc(-175% * var(--studio-side) * var(--studio-direction)) 0;
    opacity: var(--studio-side-alpha);
  }

  .studio-pinned .reel-brand {
    translate: calc(-125% * var(--studio-side) * var(--studio-direction)) 0;
    opacity: calc(0.55 * var(--studio-side-alpha));
  }

  .studio-pinned .reel-intro {
    translate: calc(260% * var(--studio-side) * var(--studio-direction)) 0;
    opacity: var(--studio-side-alpha);
  }

  .studio-pinned .reel-line {
    scale: calc(1 - var(--studio-scroll) * 0.82) 1;
    opacity: var(--studio-side-alpha);
  }

  .studio-pinned .reel-orbit {
    rotate: calc(var(--studio-side) * 120deg);
    opacity: var(--studio-side-alpha);
  }

  .studio-pinned .romanjo-caption { opacity: var(--studio-side-alpha); }
  .studio-pinned .studio-side-retired { visibility: hidden; }
  .studio-pinned .reel-stage.is-handed-off { visibility: hidden; }

  .studio-pinned .reel-handoff.is-visible {
    position: absolute;
    z-index: 4;
    top: var(--handoff-y);
    left: var(--handoff-x);
    display: block;
    width: var(--handoff-width);
    height: var(--handoff-height);
    opacity: var(--handoff-opacity, 1);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .reel-handoff-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--handoff-radius, 20px);
    background: #171719;
  }

  .reel-handoff-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .reel-handoff-destination {
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reel-handoff.is-rolled .reel-handoff-destination {
    transform: none;
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
  }

  .studio-pinned .handoff-works.bday--handover[data-v-8be1234b] {
    position: absolute;
    z-index: 3;
    inset: 0;
    height: 100%;
    visibility: visible;
  }

  .handoff-works::before {
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, transparent 0 3px, #171a271a 3px 4px),
      radial-gradient(ellipse at 74% 69%, #21464c46, transparent 48%),
      radial-gradient(ellipse at 48% 58%, #272b583b, transparent 56%);
    opacity: var(--handoff-tiles, 0);
    content: '';
  }

  .studio-mist-live .handoff-works::before {
    opacity: 0;
  }

  .handoff-works .bday__text[data-v-8be1234b] {
    visibility: visible;
    opacity: var(--handoff-title, 0);
  }

  .handoff-works .bday__title_big[data-v-8be1234b] {
    white-space: normal;
    text-wrap: balance;
  }

  .handoff-work-link {
    min-width: 10.5rem;
    margin-top: 0.35rem;
    border-radius: 3rem;
    background: #314148;
    pointer-events: auto;
  }

  .studio-intro-ready .reel-window[data-v-e939ce4c] {
    animation: film-frame-open 2s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  }

  .studio-intro-ready .reel-line {
    animation: film-line-open 2s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  }

  .studio-intro-ready .reel-controls {
    animation: film-controls-in 0.85s 1s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  }

  .studio-intro-ready .reel-orbit {
    animation: film-controls-in 1.8s 0.3s ease-out backwards;
  }

  .studio-intro-ready .romanjo-hero-copy {
    animation: film-copy-in 1.2s 1.15s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  }

  .studio-intro-ready .reel-intro {
    animation: film-cta-in 1.2s 1.15s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  }

  .studio-intro-ready :is(.reel-controls, .romanjo-hero-copy, .reel-intro):focus-within {
    animation: none;
  }
}

@keyframes film-frame-open {
  from { clip-path: inset(25.97% 50% round 20px); }
  to { clip-path: inset(25.97% 0 round 20px); }
}

@keyframes film-line-open { from { scale: 0 1; } }
@keyframes film-controls-in { from { opacity: 0; scale: 0.7; } }
@keyframes film-copy-in { from { translate: calc(-26% * var(--studio-direction)) 0; opacity: 0; } }
@keyframes film-cta-in { from { translate: calc(26% * var(--studio-direction)) 0; opacity: 0; } }

@media (max-width: 768px) {
  body { padding-bottom: 4.65rem; }

  .romanjo-hero .hero__wrapper[data-v-6a4e24e7] {
    min-height: max(36rem, 100svh);
  }

  .romanjo-hero .romanjo-hero-visual[data-v-6a4e24e7] { inset: 0; }

  .romanjo-hero-visual img {
    object-position: 61% 46%;
    filter: brightness(0.7) saturate(0.72);
    opacity: 0.78;
  }

  .romanjo-hero-visual::after {
    z-index: 2;
    background: linear-gradient(0deg, #101012 2%, #101012a8 22%, #10101228 64%, #101012ae);
  }

  .romanjo-hero-visual .hero-mobile__player_overlay {
    display: block;
    opacity: 0.62;
    pointer-events: none;
  }

  .reel-mobile-loop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    filter: brightness(0.7) saturate(0.85);
    object-fit: cover;
    object-position: 84% center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .studio-mobile-playing .reel-mobile-loop { opacity: 1; }
  .studio-mobile-playing .caption-reel { display: inline; }
  .studio-mobile-playing .caption-still { display: none; }

  .romanjo-hero .reel-stage[data-v-e939ce4c] {
    top: 47%;
    width: calc(100% - 2rem);
    height: 3rem;
    aspect-ratio: auto;
  }

  .reel-window,
  .reel-stage .player__dots,
  .reel-brand,
  .reel-intro,
  .reel-line,
  .reel-orbit {
    display: none;
  }

  .romanjo-hero .reel-controls[data-v-e939ce4c] { gap: clamp(0.6rem, 4vw, 1.4rem); }

  .romanjo-hero .reel-stage.homehero-prepared .reel-controls .reel-meta[data-v-e939ce4c] {
    position: static;
    max-width: 9ch;
    color: #fff;
    font-size: 0.61rem;
    opacity: 1;
    white-space: normal;
  }

  .romanjo-hero .reel-controls .reel-launch[data-v-e7ff44e0] {
    width: 6rem;
    height: 3rem;
  }

  .romanjo-hero .reel-controls .reel-launch::before { border: 0; }

  .romanjo-hero .reel-controls .reel-launch:is(:hover, :focus-visible) .play-glyph {
    color: #fff;
  }

  .romanjo-hero .romanjo-hero-copy[data-v-599f7f61] {
    inset-inline: 1.125rem;
    top: auto;
    bottom: 7.25rem;
    width: auto;
  }

  .romanjo-hero .romanjo-hero-title {
    font-size: clamp(1.9rem, 7vw, 3.3rem);
    letter-spacing: -0.06em;
  }

  .romanjo-hero-title span:last-child { font-size: 1.24em; }
  .romanjo-caption { bottom: 5rem; }
  .studio-motion-toggle { inset-block-start: 1rem; inset-inline-end: 1rem; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .romanjo-hero .reel-controls .reel-launch::before,
  .reel-mobile-loop,
  .reel-intro .button {
    transition: none;
  }
}

:lang(zh-Hans) .romanjo-hero .romanjo-hero-title,
:lang(ar) .romanjo-hero .romanjo-hero-title {
  letter-spacing: 0;
  line-height: 1.1;
}

