:root {
  color-scheme: dark;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080706;
  color: #fff;
  font-synthesis: none;
  --page-x: clamp(24px, 4vw, 72px);
  --orange: #ff5a16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #080706;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  color: #fff;
  background: transparent;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.site-loader.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 720ms;
}

.site-loader__brand {
  display: none;
  position: absolute;
  top: 22px;
  left: var(--page-x);
  width: clamp(112px, 9.5vw, 138px);
  aspect-ratio: 1.97;
  overflow: hidden;
}

.site-loader__brand .brand__mark,
.brand .brand__mark {
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("./assets/brand/ora-studio-logo2-white.png?v=20260812");
  background-position: 40% 44%;
  background-repeat: no-repeat;
  background-size: 251.8% auto;
  filter: contrast(1.05) saturate(1.04);
}

.site-loader__meter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.site-loader__meta {
  display: none;
}

.site-loader__track {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.site-loader__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  transform: scaleX(var(--loader-progress, 0));
  transform-origin: left center;
  transition: transform 160ms linear;
  will-change: transform;
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: 0;
  background: rgba(8, 8, 10, 0.2);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 12px 50px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.liquid-glass::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.04) 68%,
    rgba(255, 255, 255, 0.22)
  );
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #160803;
}

.video-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.03);
  will-change: opacity;
}

.video-stage__media--two {
  z-index: 1;
  opacity: var(--scene-two-opacity, 0);
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-stage__media--three {
  z-index: 2;
  opacity: var(--scene-three-opacity, 0);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-stage__media--four {
  z-index: 3;
  opacity: var(--scene-four-opacity, 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-stage__shade,
.video-stage__vignette,
.video-stage__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-stage__shade {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.5), transparent 48%),
    linear-gradient(0deg, rgba(3, 2, 2, 0.48), transparent 52%);
}

.video-stage__vignette {
  z-index: 5;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.36);
}

.video-stage__grain {
  z-index: 6;
  opacity: 0.055;
  background-image: repeating-radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.45) 0 0.5px,
    transparent 0.8px 3px
  );
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.outro-field {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      rgba(255, 84, 24, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(7, 7, 10, 0.12) 0%,
      rgba(4, 4, 6, 0.38) 58%,
      rgba(9, 4, 5, 0.58) 100%
    );
  opacity: var(--outro-opacity, 0);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px var(--page-x);
}

.brand {
  position: relative;
  display: block;
  width: clamp(112px, 9.5vw, 138px);
  aspect-ratio: 1.97;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
}

.desktop-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 500;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.header-actions > .primary-action {
  min-height: 34px;
  padding: 0 14px;
  font-size: 10px;
}

.text-action {
  display: none;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-action {
  color: #090909;
  background: #fff;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #f1f1f1;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.scroll-track {
  position: fixed;
  inset: 0;
  z-index: 10;
  height: 100vh;
  overflow: hidden;
}

.chapter {
  position: absolute;
  inset: 0;
  min-height: 100vh;
}

.chapter__sticky {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  padding: 0 var(--page-x) clamp(44px, 8vh, 92px);
  pointer-events: none;
}

.chapter__content {
  max-width: 480px;
  will-change: opacity, transform;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter--two .chapter__sticky {
  align-items: center;
  justify-content: flex-end;
  padding: 82px var(--page-x) 42px;
}

.chapter--two .chapter__content {
  width: min(36vw, 440px);
}

.chapter--three .chapter__sticky {
  align-items: flex-start;
  justify-content: flex-start;
  padding:
    clamp(112px, 18vh, 174px)
    var(--page-x)
    42px
    clamp(24px, 10vw, 180px);
}

.chapter--three .chapter__content {
  width: min(38vw, 460px);
}

.chapter--outro .chapter__sticky {
  align-items: center;
  justify-content: center;
  padding: 84px 24px 48px;
}

.chapter__content--outro {
  width: min(460px, 90vw);
  text-align: center;
}

.chapter--two .chapter__content,
.chapter--three .chapter__content {
  opacity: 0;
  transform: translateY(24px);
}

.chapter--outro .chapter__content {
  opacity: 0;
  transform: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  color: var(--orange);
}

h1,
h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(24px, 2.65vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1 span,
h2 span {
  display: block;
}

h1 span:last-child,
h2 span:last-child {
  color: rgba(255, 255, 255, 0.62);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.chapter__summary {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 300;
  line-height: 1.72;
}

.chapter__actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  pointer-events: auto;
}

.primary-action--large,
.secondary-action {
  min-height: 38px;
  padding: 0 17px;
  font-size: 10px;
}

.secondary-action {
  color: #fff;
}

.chapter--outro .chapter__actions {
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.chapter--outro .primary-action,
.chapter--outro .secondary-action {
  min-height: 30px;
  padding: 0 0 5px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  box-shadow: none;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chapter--outro .primary-action {
  border-bottom: 1px solid var(--orange);
}

.chapter--outro .secondary-action {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chapter--outro .secondary-action::before {
  display: none;
}

.chapter-index {
  position: fixed;
  z-index: 25;
  top: 50%;
  right: var(--page-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  font-size: 10px;
}

.chapter-index strong {
  color: #fff;
}

.chapter-index span {
  color: rgba(255, 255, 255, 0.36);
}

.chapter-index i {
  width: 1px;
  height: 64px;
  background:
    linear-gradient(
      to bottom,
      var(--orange) 0 var(--chapter-progress, 50%),
      rgba(255, 255, 255, 0.2) var(--chapter-progress, 50%) 100%
    );
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions > .text-action,
  .header-actions > .primary-action {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: #fff;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 18px;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-menu > a {
    padding: 13px 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
  }

  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu__actions > a:first-child {
    display: grid;
    place-items: center;
    min-height: 42px;
  }

  .video-stage__media--one {
    object-position: 54% center;
  }

  .video-stage__media--two {
    object-position: 62% center;
  }

  .video-stage__media--three {
    object-position: center;
  }

  .video-stage__media--four {
    object-position: center;
  }

  .video-stage__shade {
    background:
      linear-gradient(90deg, rgba(3, 2, 2, 0.42), transparent 72%),
      linear-gradient(0deg, rgba(3, 2, 2, 0.72), transparent 62%);
  }

  .chapter__sticky {
    padding-bottom: 64px;
  }

  .chapter--two .chapter__sticky,
  .chapter--three .chapter__sticky {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 var(--page-x) 64px;
  }

  .chapter--two .chapter__content,
  .chapter--three .chapter__content {
    width: min(100%, 580px);
  }

  .chapter--outro .chapter__sticky {
    align-items: center;
    justify-content: center;
    padding: 80px 24px 48px;
  }

  h1,
  h2 {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1;
  }

  .chapter-index {
    display: none;
  }

}

@media (max-width: 540px) {
  .site-header {
    padding-top: 18px;
  }

  .site-loader__brand {
    top: 18px;
    width: 104px;
  }

  .brand {
    width: 104px;
  }

  .chapter {
    min-height: 110vh;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .chapter__summary br {
    display: none;
  }

  .chapter__summary {
    max-width: 88%;
    margin-top: 15px;
    font-size: 11px;
  }

  .chapter__actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .primary-action--large,
  .secondary-action {
    flex: 1;
    padding: 0 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}
