.elementor-18199 .elementor-element.elementor-element-a90e967{--display:flex;--margin-top:39px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}@media(max-width:767px){.elementor-18199 .elementor-element.elementor-element-a90e967{--margin-top:57px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}}/* Start custom CSS for html, class: .elementor-element-99fee2e */:root {
  --bg: #050608;
  --bg-soft: #0b0d10;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.09);
  --text: #f5f7f8;
  --text-soft: rgba(245, 247, 248, 0.68);
  --text-muted: rgba(245, 247, 248, 0.42);
  --success: #77f5aa;
  --success-soft: rgba(119, 245, 170, 0.14);
  --cyan: #50dfff;
  --purple: #9b7cff;
  --danger: #ff7a7a;

  --font-display: "Anton", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --page-padding: clamp(1.25rem, 4vw, 4.5rem);
  --radius-small: 0.75rem;
  --radius-medium: 1.2rem;
  --radius-large: 1.8rem;

  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--border-soft);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.84em;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* =========================================================
   FILM STRUCTURE
========================================================= */

.film {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.85s ease,
    visibility 0s linear 0.85s;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.85s ease,
    visibility 0s linear 0s;
}

.scene-black {
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(80, 223, 255, 0.06),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
}

/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.eyebrow,
.panel-label {
  display: block;
  color: var(--text-muted);
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.panel-label {
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

/* =========================================================
   SCENE 1 — WALLPAPER
========================================================= */

.scene-wallpaper {
  background: #071018;
}

.wallpaper {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 14, 0.92) 0%,
      rgba(3, 8, 14, 0.64) 42%,
      rgba(3, 8, 14, 0.2) 72%,
      rgba(3, 8, 14, 0.66) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16),
      rgba(0, 0, 0, 0.88)
    ),
    url("https://assets.codepen.io/11990995/New-Zealand-Coast.jpg")
      center / cover no-repeat;

  transform: scale(1.08);
  filter: saturate(0.82) contrast(1.06);
  animation: wallpaperDrift 16s ease-in-out infinite alternate;
}

.scene-wallpaper::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(80, 223, 255, 0.05) 43%,
      transparent 62%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(99, 125, 255, 0.1),
      transparent 34%
    );
  content: "";
  pointer-events: none;
}

.noise-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.film-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--page-padding);
}

.film-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.film-brand__mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.34);
  font-family: var(--font-display);
  font-size: 1.1rem;
  backdrop-filter: blur(12px);
}

.film-brand__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.build-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.build-status__dot,
.video-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow:
    0 0 0 5px rgba(119, 245, 170, 0.08),
    0 0 18px rgba(119, 245, 170, 0.8);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.title-block {
  position: absolute;
  left: var(--page-padding);
  bottom: clamp(7.5rem, 18vh, 11rem);
  z-index: 3;
  width: min(56rem, 58vw);
  color: var(--text);
}

.title-block .eyebrow {
  margin-bottom: 1rem;
}

.title-block h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: 0 0 3rem rgba(0, 0, 0, 0.85);
}

.title-top {
  font-size: clamp(4.8rem, 9.5vw, 10.5rem);
}

.title-bottom {
  color: transparent;
  font-size: clamp(4.2rem, 8.2vw, 9rem);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
  text-stroke: 1px rgba(255, 255, 255, 0.92);
}

.hero-description {
  width: min(42rem, 100%);
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  line-height: 1.75;
}

.deployment-panel {
  position: absolute;
  top: 20%;
  right: var(--page-padding);
  z-index: 3;
  width: min(23rem, 28vw);
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(3, 7, 12, 0.58);
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.deployment-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-soft);
}

.deployment-panel__header strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.deployment-badge {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(119, 245, 170, 0.24);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deployment-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.2rem 0;
}

.metric {
  min-width: 0;
  padding: 0 0.75rem;
  border-right: 1px solid var(--border-soft);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.metric__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.62rem;
}

.metric__value {
  color: var(--text);
  font-size: clamp(0.82rem, 1vw, 1rem);
}

.deployment-progress__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
  font-size: 0.64rem;
}

.deployment-progress__track {
  position: relative;
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.deployment-progress__bar {
  position: absolute;
  inset: 0;
  transform-origin: left;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--cyan),
      var(--success)
    );
  box-shadow: 0 0 18px rgba(80, 223, 255, 0.5);
  animation: progressReveal 1.6s 0.6s both var(--ease-cinematic);
}

.visual-cards {
  position: absolute;
  right: var(--page-padding);
  bottom: clamp(5.8rem, 13vh, 8rem);
  z-index: 3;
  display: grid;
  width: min(23rem, 28vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  background: rgba(3, 7, 12, 0.66);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transition:
    transform 0.35s var(--ease-cinematic),
    border-color 0.35s ease;
}

.visual-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.visual-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.visual-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.1);
  transition:
    transform 0.8s var(--ease-cinematic),
    filter 0.4s ease;
}

.visual-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05);
}

.visual-card__content {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
}

.visual-card__number {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.visual-card__content strong {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
}

.visual-card__content div span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.56rem;
  line-height: 1.4;
}

.start-btn,
.replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-cinematic),
    background-color 0.35s ease,
    border-color 0.35s ease,
    opacity 0.3s ease;
}

.start-btn {
  position: absolute;
  right: var(--page-padding);
  bottom: 6.9rem;
  z-index: 4;
  min-width: 14.5rem;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(15px);
}

.start-btn__icon {
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease-cinematic);
}

.start-btn:hover,
.replay-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.start-btn:hover .start-btn__icon {
  transform: translateX(4px);
}

button:disabled {
  opacity: 0.42;
  pointer-events: none;
  cursor: not-allowed;
}

.interaction-hint {
  position: absolute;
  left: var(--page-padding);
  bottom: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interaction-hint__line {
  width: 3rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   SCENE 1 ENTRANCE
========================================================= */

.scene-wallpaper.active .film-header {
  animation: fadeDown 0.9s 0.15s both var(--ease-cinematic);
}

.scene-wallpaper.active .title-block {
  animation: titleEntrance 1.15s 0.22s both var(--ease-cinematic);
}

.scene-wallpaper.active .deployment-panel {
  animation: panelEntrance 1s 0.45s both var(--ease-cinematic);
}

.scene-wallpaper.active .visual-cards {
  animation: panelEntrance 1s 0.62s both var(--ease-cinematic);
}

.scene-wallpaper.active .start-btn,
.scene-wallpaper.active .interaction-hint {
  animation: fadeUp 0.9s 0.78s both var(--ease-cinematic);
}

/* =========================================================
   SCENE 2 — PROCESS EXPLANATION
========================================================= */

.scene-process {
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.process-wrapper {
  width: min(76rem, 100%);
  margin: auto;
}

.process-header {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.process-header .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.4vw, 6.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.process-intro {
  color: var(--text-soft);
  font-size: clamp(0.86rem, 1.2vw, 1.03rem);
  line-height: 1.8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.process-card {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.015)
    );
  transition:
    transform 0.4s var(--ease-cinematic),
    border-color 0.4s ease,
    background-color 0.4s ease;
}

.process-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(80, 223, 255, 0.05);
  content: "";
  filter: blur(5px);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(80, 223, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

.process-card__number {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.process-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1rem;
  box-shadow: inset 0 0 1.4rem rgba(80, 223, 255, 0.05);
}

.process-card h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

.process-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-step__dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--bg);
}

.timeline-step.is-complete,
.timeline-step.is-active {
  color: var(--text);
}

.timeline-step.is-complete .timeline-step__dot {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 0 15px rgba(119, 245, 170, 0.45);
}

.timeline-step.is-active .timeline-step__dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(80, 223, 255, 0.5);
}

.timeline-line {
  height: 1px;
  margin: 0 1rem;
  background: rgba(255, 255, 255, 0.11);
}

.timeline-line.is-complete {
  background: linear-gradient(
    90deg,
    var(--success),
    var(--cyan)
  );
}

.scene-process.active .process-header {
  animation: fadeUp 0.9s 0.15s both var(--ease-cinematic);
}

.scene-process.active .process-card {
  animation: cardEntrance 0.8s both var(--ease-cinematic);
}

.scene-process.active .process-card:nth-child(1) {
  animation-delay: 0.38s;
}

.scene-process.active .process-card:nth-child(2) {
  animation-delay: 0.5s;
}

.scene-process.active .process-card:nth-child(3) {
  animation-delay: 0.62s;
}

.scene-process.active .process-card:nth-child(4) {
  animation-delay: 0.74s;
}

.scene-process.active .process-timeline {
  animation: fadeUp 0.8s 0.95s both var(--ease-cinematic);
}

/* =========================================================
   SCENE 3 — VIDEO
========================================================= */

.scene-video {
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 3rem) var(--page-padding);
  background:
    radial-gradient(
      circle at 40% 42%,
      rgba(80, 223, 255, 0.12),
      transparent 31%
    ),
    radial-gradient(
      circle at 76% 30%,
      rgba(155, 124, 255, 0.09),
      transparent 28%
    ),
    var(--bg);
}

.video-scene-header {
  display: flex;
  width: min(90rem, 100%);
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 auto 1.5rem;
}

.video-scene-header h2 {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.video-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.5rem;
  color: var(--text-soft);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-layout {
  display: grid;
  width: min(90rem, 100%);
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.55fr);
  gap: 1rem;
  align-items: stretch;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 4rem rgba(80, 223, 255, 0.12),
    0 2rem 6rem rgba(0, 0, 0, 0.42);
}

.video-frame__topbar {
  display: grid;
  min-height: 3rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.035);
}

.window-controls {
  display: flex;
  gap: 0.4rem;
}

.window-controls span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-controls span:first-child {
  background: #ff6c6c;
}

.window-controls span:nth-child(2) {
  background: #ffcc66;
}

.window-controls span:last-child {
  background: #6fdd8b;
}

.video-frame__filename,
.video-frame__quality {
  color: var(--text-muted);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.video-frame__quality {
  justify-self: end;
  text-transform: uppercase;
}

.video-frame video {
  width: 100%;
  height: min(67vh, 48rem);
  object-fit: contain;
  background: #000;
}

.video-information {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
}

.video-information__section,
.video-log,
.reaction-image {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.video-information__section {
  padding: 1.3rem;
}

.video-information__section h3 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.22;
}

.video-information__section p {
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.7;
}

.video-log {
  padding: 0.65rem 1rem;
}

.video-log__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.62rem;
}

.video-log__row:last-child {
  border-bottom: 0;
}

.video-log__row strong {
  color: var(--text-soft);
  font-weight: 500;
}

.video-log__row--success span,
.video-log__row--success strong {
  color: var(--success);
}

.reaction-image {
  overflow: hidden;
  margin-top: auto;
}

.reaction-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.08);
}

.reaction-image figcaption {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.scene-video.active .video-scene-header {
  animation: fadeDown 0.8s 0.1s both var(--ease-cinematic);
}

.scene-video.active .video-frame {
  animation: videoEntrance 1s 0.26s both var(--ease-cinematic);
}

.scene-video.active .video-information {
  animation: panelEntrance 0.9s 0.48s both var(--ease-cinematic);
}

/* =========================================================
   FADE LAYER
========================================================= */

.fade-layer {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.fade-layer.show {
  opacity: 1;
}

/* =========================================================
   SCENE 4 — FINAL
========================================================= */

.final {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  background: #020304;
}

.final-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.final-status {
  align-self: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(119, 245, 170, 0.22);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-text {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.final-description {
  width: min(33rem, 100%);
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: clamp(0.8rem, 1vw, 0.96rem);
  line-height: 1.75;
}

.final-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 5vh, 3.5rem);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.final-summary__item {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border-soft);
}

.final-summary__item:first-child {
  padding-left: 0;
}

.final-summary__item:last-child {
  border-right: 0;
}

.final-summary__item span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.final-summary__item strong {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.replay-btn {
  align-self: flex-start;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.055);
}

.final-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.final-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #020304 0%,
      rgba(2, 3, 4, 0.5) 18%,
      transparent 55%
    ),
    linear-gradient(
      180deg,
      transparent 52%,
      rgba(0, 0, 0, 0.75)
    );
  content: "";
}

.final-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) contrast(1.12) brightness(0.74);
}

.final-image__overlay {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: clamp(1.5rem, 4vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: rgba(2, 4, 7, 0.74);
  font-family: Consolas, Monaco, monospace;
  backdrop-filter: blur(16px);
}

.terminal-line {
  color: var(--text-soft);
  font-size: clamp(0.65rem, 0.9vw, 0.78rem);
}

.terminal-line--success {
  color: var(--success);
}

.terminal-cursor {
  width: 0.55rem;
  height: 1rem;
  background: var(--text);
  animation: cursorBlink 0.9s steps(1) infinite;
}

.final.active .final-content {
  animation: finalContentEntrance 1s 0.18s both var(--ease-cinematic);
}

.final.active .final-image {
  animation: finalImageEntrance 1.2s 0.32s both var(--ease-cinematic);
}

/* =========================================================
   NOSCRIPT
========================================================= */

.noscript-message {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  padding: 1rem;
  border: 1px solid rgba(255, 122, 122, 0.3);
  border-radius: var(--radius-small);
  background: rgba(20, 4, 4, 0.92);
  color: #ffd0d0;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes wallpaperDrift {
  from {
    transform: scale(1.08) translate3d(-0.8%, 0, 0);
  }

  to {
    transform: scale(1.14) translate3d(1.2%, -0.5%, 0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes progressReveal {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes titleEntrance {
  from {
    opacity: 0;
    transform: translateY(3rem);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes panelEntrance {
  from {
    opacity: 0;
    transform: translateX(2.5rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-1.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes videoEntrance {
  from {
    opacity: 0;
    transform: scale(0.955);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes finalContentEntrance {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes finalImageEntrance {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

/* =========================================================
   LAPTOPS
========================================================= */

@media (max-width: 1180px) {
  .title-block {
    width: min(52rem, 62vw);
  }

  .deployment-panel,
  .visual-cards {
    width: min(20rem, 30vw);
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card {
    min-height: 13rem;
  }

  .video-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  }

  .final {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.85fr);
  }
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .scene-wallpaper {
    overflow-y: auto;
  }

  .wallpaper {
    inset: 0;
  }

  .film-header {
    padding-top: 1.1rem;
  }

  .film-brand__text {
    display: none;
  }

  .title-block {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    padding: 7.5rem var(--page-padding) 1rem;
  }

  .title-top {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .title-bottom {
    font-size: clamp(3.6rem, 13vw, 6.3rem);
  }

  .hero-description {
    max-width: 35rem;
  }

  .deployment-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 1rem var(--page-padding) 0;
  }

  .visual-cards {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0.75rem var(--page-padding) 7rem;
  }

  .start-btn {
    position: fixed;
    right: var(--page-padding);
    bottom: 1.1rem;
    left: var(--page-padding);
    width: calc(100% - (var(--page-padding) * 2));
  }

  .interaction-hint {
    display: none;
  }

  .process-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-header .eyebrow {
    margin-bottom: 0;
  }

  .process-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-timeline {
    display: none;
  }

  .video-scene-header {
    align-items: flex-start;
  }

  .video-status {
    padding-top: 0.4rem;
  }

  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-frame video {
    height: auto;
    max-height: 55vh;
  }

  .video-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .reaction-image {
    grid-column: 1 / -1;
  }

  .final {
    display: block;
    overflow-y: auto;
  }

  .final-content {
    min-height: 100svh;
  }

  .final-image {
    min-height: 70vh;
  }

  .final-image::after {
    background:
      linear-gradient(
        180deg,
        #020304 0%,
        rgba(2, 3, 4, 0.25) 25%,
        rgba(0, 0, 0, 0.72)
      );
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  :root {
    --page-padding: 1.15rem;
  }

  .build-status {
    padding: 0.55rem 0.7rem;
    font-size: 0.58rem;
  }

  .title-block {
    padding-top: 6.5rem;
  }

  .title-top {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  .title-bottom {
    font-size: clamp(3.15rem, 16vw, 4.8rem);
  }

  .hero-description {
    margin-top: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .deployment-panel {
    padding: 1rem;
  }

  .deployment-metrics {
    gap: 0.4rem;
  }

  .metric {
    padding: 0 0.5rem;
  }

  .metric__label {
    font-size: 0.52rem;
  }

  .metric__value {
    font-size: 0.76rem;
  }

  .visual-cards {
    grid-template-columns: 1fr;
    margin-bottom: 6.5rem;
  }

  .visual-card {
    display: grid;
    grid-template-columns: 7rem 1fr;
  }

  .visual-card__image {
    height: 100%;
    aspect-ratio: auto;
  }

  .start-btn,
  .replay-btn {
    min-height: 3.7rem;
    font-size: 0.68rem;
  }

  .scene-process {
    display: block;
    padding-top: 2rem;
  }

  .process-title {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .process-intro {
    font-size: 0.78rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .process-card__icon {
    margin: 1.1rem 0 1.3rem;
  }

  .scene-video {
    padding-top: 1.2rem;
  }

  .video-scene-header {
    display: block;
  }

  .video-status {
    margin-top: 0.8rem;
  }

  .video-frame__topbar {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
  }

  .video-frame__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .video-information {
    display: flex;
  }

  .video-log__row {
    grid-template-columns: 4rem 1fr;
  }

  .final-content {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .final-text {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .final-summary {
    grid-template-columns: 1fr;
  }

  .final-summary__item {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .final-summary__item:last-child {
    border-bottom: 0;
  }

  .replay-btn {
    width: 100%;
  }

  .final-image {
    min-height: 55vh;
  }

  .final-image__overlay {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }
}

/* =========================================================
   SHORT SCREENS
========================================================= */

@media (max-height: 760px) and (min-width: 901px) {
  .title-block {
    bottom: 11vh;
  }

  .title-top {
    font-size: clamp(4rem, 8vw, 7rem);
  }

  .title-bottom {
    font-size: clamp(3.5rem, 7vw, 6rem);
  }

  .hero-description {
    margin-top: 1rem;
  }

  .deployment-panel {
    top: 16%;
  }

  .visual-cards {
    bottom: 5.5rem;
  }

  .process-card {
    min-height: 12rem;
  }

  .process-card__icon {
    margin: 1rem 0 1.25rem;
  }

  .video-frame video {
    height: min(60vh, 36rem);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wallpaper {
    transform: scale(1.08);
  }
}/* End custom CSS */