@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/outfit-700.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/jetbrains-mono-400.woff2") format("woff2");
}

:root {
  --bg-void: #07080A;
  --bg-surface: #0D111A;
  --border-subtle: rgba(243, 243, 244, 0.08);
  --brand-solar: #F99C1C;
  --brand-platinum: #F3F3F4;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-cyan: #00F0FF;
  --accent-amber-glow: rgba(249, 156, 28, 0.28);
  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);

  --lid-angle: 103deg;
  --rest-x: 10deg;
  --rest-y: -12deg;
  --perspective: 1800px;
  --s: 0.72;
}

html,
body,
main,
div,
section,
header,
footer,
aside,
h1,
h2,
p,
a,
span,
img,
label,
input,
svg {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 46% at 50% 45%,
    rgba(249, 156, 28, 0.1) 0%,
    rgba(249, 156, 28, 0.03) 45%,
    rgba(7, 8, 10, 0) 75%
  );
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/noise.png");
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.03;
  z-index: 2;
}

.intro-veil {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  animation: veilFade 1.2s ease-out forwards;
}

@keyframes veilFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.scene-frame {
  position: relative;
  width: calc(992px * var(--s));
  height: calc(760px * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.scene-scale {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 992px;
  height: 760px;
  transform: translate3d(-50%, -50%, 0) scale(var(--s));
  transform-origin: center center;
}

.scene {
  position: relative;
  width: 992px;
  height: 760px;
  perspective: var(--perspective);
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: laptopRise 1.6s var(--ease-brand) both;
}

@keyframes laptopRise {
  from {
    transform: translate3d(0, 40px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.floater,
.sway,
.tilt,
.laptop,
.base,
.lid {
  transform-style: preserve-3d;
}

.floater {
  will-change: transform;
  animation: idleFloat 7s ease-in-out infinite alternate;
}

.sway {
  animation: idleSway 11s ease-in-out infinite alternate;
}

@keyframes idleFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes idleSway {
  from {
    transform: rotateZ(-0.4deg);
  }
  to {
    transform: rotateZ(0.4deg);
  }
}

.tilt {
  will-change: transform;
}

.laptop {
  position: relative;
  width: 992px;
  height: 760px;
  transform: translate3d(64px, 0, -460px) rotateX(calc(-1 * var(--rest-x))) rotateY(var(--rest-y));
}

.base {
  position: absolute;
  left: 0;
  top: 592px;
  width: 992px;
  height: 660px;
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
}

.base-top {
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, #0D111A 0%, #111622 65%, #0F141F 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 -1px 0 rgba(243, 243, 244, 0.16);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 52px;
  gap: 34px;
}

.keyboard {
  width: 824px;
  height: 274px;
  border-radius: 10px;
  background-color: #090C13;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(20, 26, 38, 0.95) 0 42px,
      #07080A 42px 50px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(20, 26, 38, 0.95) 0 38px,
      #07080A 38px 46px
    );
  background-blend-mode: darken;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
}

.trackpad {
  width: 316px;
  height: 196px;
  border-radius: 12px;
  background: linear-gradient(180deg, #161C29 0%, #121722 100%);
  border: 1px solid rgba(243, 243, 244, 0.1);
  box-shadow: inset 0 1px 0 rgba(243, 243, 244, 0.06);
}

.base-bottom {
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 18px 18px;
  background: #080B11;
  border: 1px solid var(--border-subtle);
  transform: translateZ(-12px) rotateY(180deg);
  backface-visibility: hidden;
}

.base-front {
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 960px;
  height: 12px;
  background: linear-gradient(180deg, rgba(243, 243, 244, 0.18) 0, rgba(243, 243, 244, 0.18) 1px, #121824 2px, #0B0E16 100%);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 0 6px 6px;
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}

.base-back {
  position: absolute;
  left: 14px;
  top: 0;
  width: 964px;
  height: 12px;
  background: #090C12;
  border: 1px solid var(--border-subtle);
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
}

.base-left {
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 628px;
  background: linear-gradient(90deg, #121824 0%, #090C13 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform-origin: 0% 50%;
  transform: rotateY(90deg);
}

.base-right {
  position: absolute;
  right: 0;
  top: 14px;
  width: 12px;
  height: 628px;
  background: linear-gradient(270deg, #121824 0%, #090C13 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}

.hinge {
  position: absolute;
  left: 156px;
  top: 586px;
  width: 680px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #181E2B 0%, #0A0D14 55%, #07080A 100%);
  border: 1px solid var(--border-subtle);
  transform: translateZ(-4px);
}

.lid {
  position: absolute;
  left: 0;
  top: -46px;
  width: 992px;
  height: 632px;
  transform-origin: 50% 100%;
  transform: rotateX(calc(90deg - var(--lid-angle)));
}

.lid-front {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #161C28 0%, #0D111A 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(243, 243, 244, 0.18);
  padding: 16px;
  overflow: hidden;
  backface-visibility: hidden;
}

.bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050608;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.camera-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #1B2230;
  border: 1px solid rgba(243, 243, 244, 0.12);
  z-index: 3;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  overflow: hidden;
}

.app-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.menu-bar {
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #090C13;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-muted);
}

.menu-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.menu-project {
  letter-spacing: 0.02em;
}

.workspace {
  height: 352px;
  flex: 0 0 352px;
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.panel-sub {
  margin-top: 2px;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.3;
}

.media-bin {
  width: 200px;
  flex: 0 0 200px;
  padding: 12px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.bin-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bin-clip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bin-thumb {
  height: 52px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(155deg, #171E2E 0%, #090D14 100%);
}

.bin-label {
  font-size: 8.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-monitor {
  width: 540px;
  flex: 0 0 540px;
  padding: 12px 20px 10px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-monitor .panel-title {
  align-self: flex-start;
}

.title-card {
  width: 448px;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  background: var(--bg-void);
  border: 1px solid rgba(249, 156, 28, 0.28);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  animation: titleCardIn 0.8s var(--ease-brand) 0.8s forwards;
}

@keyframes titleCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-sub {
  margin: 12px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.timecode-row {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.timecode {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brand-platinum);
  font-variant-numeric: tabular-nums;
}

.inspector {
  width: 220px;
  flex: 0 0 220px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.inspector-body {
  margin-top: 14px;
  flex: 1 1 auto;
  display: flex;
  gap: 14px;
}

.sliders-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.slider-track {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(243, 243, 244, 0.1);
}

.slider-thumb {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transform: translate(-50%, -50%);
}

.meters-col {
  width: 24px;
  flex: 0 0 24px;
  display: flex;
  gap: 6px;
  padding: 2px 0;
}

.meter-track {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  background: #080B12;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.meter-fill {
  display: block;
  width: 100%;
  background: rgba(0, 240, 255, 0.34);
  transform-origin: 50% 100%;
  animation: meterPulse 1.6s ease-in-out infinite alternate;
}

.meter-l {
  height: 64%;
  animation-delay: -0.35s;
}

.meter-r {
  height: 56%;
  animation-delay: -0.95s;
}

@keyframes meterPulse {
  from {
    transform: scaleY(0.68);
  }
  to {
    transform: scaleY(1.06);
  }
}

.timeline {
  height: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  background: #0A0E16;
  border-bottom: 1px solid var(--border-subtle);
}

.ruler {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: #080B12;
}

.ruler-stub {
  width: 48px;
  flex: 0 0 48px;
  border-right: 1px solid var(--border-subtle);
}

.ruler-ticks {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 8.5px;
  color: var(--text-muted);
}

.tracks {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.track-row {
  flex: 1 1 0;
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.track-row:last-of-type {
  border-bottom: none;
}

.track-label {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  background: #090C13;
}

.track-lane {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.clip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
}

.clip-title {
  left: 16%;
  width: 56%;
  background: rgba(249, 156, 28, 0.14);
  border: 1px solid rgba(249, 156, 28, 0.72);
  color: var(--brand-solar);
  letter-spacing: 0.03em;
}

.clip-v2-a,
.clip-v2-b,
.clip-v2-c {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(243, 243, 244, 0.1);
}

.clip-v2-a {
  left: 6%;
  width: 22%;
}

.clip-v2-b {
  left: 34%;
  width: 26%;
}

.clip-v2-c {
  left: 68%;
  width: 20%;
}

.clip-v1 {
  background: #171D2A;
  border: 1px solid rgba(243, 243, 244, 0.1);
  color: var(--text-secondary);
}

.clip-v1.clip-alt {
  background: #1D2535;
}

.clip-audio {
  left: 0;
  right: 0;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 0;
  color: rgba(0, 240, 255, 0.36);
}

.wave {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  animation: wavePulse 1.6s ease-in-out infinite alternate;
}

.wave-a2 {
  animation-delay: -0.45s;
}

@keyframes wavePulse {
  from {
    transform: scaleY(0.84);
  }
  to {
    transform: scaleY(1.1);
  }
}

.playhead-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  right: 0;
  pointer-events: none;
}

.playhead {
  position: absolute;
  top: -8px;
  bottom: 0;
  left: 0;
  width: 1.5px;
  background: var(--brand-platinum);
  transform: translate3d(372px, 0, 0);
  opacity: 0.9;
}

.playhead-cap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 7px;
  background: var(--brand-platinum);
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.status-bar {
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  background: #080B12;
  font-size: 9px;
  color: var(--text-muted);
}

.status-grade {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.grade-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-solar);
  animation: dotPulse 2.8s ease-in-out infinite alternate;
}

@keyframes dotPulse {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 1;
  }
}

.glare {
  position: absolute;
  left: -20%;
  top: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  border-radius: 18px 18px 8px 8px;
  background: radial-gradient(
    circle at 36% 28%,
    rgba(243, 243, 244, 0.08) 0%,
    rgba(243, 243, 244, 0.02) 32%,
    rgba(243, 243, 244, 0) 64%
  );
  transform: translate3d(0, 0, 0);
  z-index: 4;
}

.lid-back {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #161C28 0%, #0D111A 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(243, 243, 244, 0.18);
  transform: translateZ(-8px) rotateY(180deg);
  backface-visibility: hidden;
}

.lid-edge-top {
  position: absolute;
  left: 16px;
  top: 0;
  width: 960px;
  height: 8px;
  background: linear-gradient(180deg, rgba(243, 243, 244, 0.18) 0, rgba(243, 243, 244, 0.18) 1px, #161C28 2px, #0D111A 100%);
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
}

.lid-edge-bottom {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 976px;
  height: 8px;
  background: #090C12;
  border: 1px solid var(--border-subtle);
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}

.lid-edge-left {
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 608px;
  background: linear-gradient(90deg, #161C28 0%, #0C1018 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform-origin: 0% 50%;
  transform: rotateY(90deg);
}

.lid-edge-right {
  position: absolute;
  right: 0;
  top: 16px;
  width: 8px;
  height: 608px;
  background: linear-gradient(270deg, #161C28 0%, #0C1018 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}

.shadow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 860px;
  height: 112px;
  transform: translate3d(-50%, 0, 0);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.34) 50%,
    rgba(0, 0, 0, 0) 76%
  );
  filter: blur(22px);
  pointer-events: none;
}

.signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 2px;
}

.wordmark {
  display: block;
  height: 24px;
  width: auto;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 200ms ease-out;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--text-primary);
}

.contact a:focus-visible {
  outline: 2px solid var(--brand-platinum);
  outline-offset: 2px;
}

.mobile-title {
  display: none;
  margin: 14px 0 4px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
}

@media (max-width: 899px) {
  .mobile-title {
    display: flex;
  }

  .signoff {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .mobile-title {
    font-size: 22px;
  }
}

@media (max-height: 520px) {
  .stage {
    padding: 8px 16px;
  }

  .mobile-title {
    margin: 6px 0 2px;
    font-size: 20px;
  }

  .signoff {
    margin-top: 4px;
    gap: 0;
  }

  .wordmark {
    height: 18px;
  }
}

.is-paused .intro-veil,
.is-paused .scene,
.is-paused .floater,
.is-paused .sway,
.is-paused .title-card,
.is-paused .mobile-title,
.is-paused .wave,
.is-paused .meter-fill,
.is-paused .grade-dot {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .intro-veil {
    display: none;
    animation: none;
  }

  .scene,
  .floater,
  .sway,
  .wave,
  .meter-fill,
  .grade-dot {
    animation: none;
    transform: none;
  }

  .title-card,
  .mobile-title {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .grade-dot {
    opacity: 1;
  }

  .contact a {
    transition: none;
  }
}
