:root {
  --amber: #f59a1b;
  --ink: #070707;
  --white: #f4f2ee;
  --font: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  cursor: none;
}

#stage {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 50%, #1a1a1a 0%, var(--ink) 70%);
}

/* ---------- Photo ---------- */
.photo {
  position: absolute;
  top: 0; right: 0;
  width: 72vw; height: 100vh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7,7,7,.75) 0%, rgba(7,7,7,0) 30%),
    linear-gradient(to bottom, rgba(7,7,7,.45) 0%, rgba(7,7,7,0) 22%);
  pointer-events: none;
}
.kb {
  position: absolute; inset: 0;
  will-change: transform;
}
.kb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  display: block;
  filter: contrast(1.08) saturate(.9) brightness(.92);
}

.scene-1 .kb { animation: kb1 9.5s cubic-bezier(.25,.6,.3,1) forwards; }
.scene-2 .kb { animation: kb2 9.5s cubic-bezier(.25,.6,.3,1) forwards; }
.scene-3 .kb { animation: kb3 9.5s cubic-bezier(.25,.6,.3,1) forwards; }

/* wide, settling in */
@keyframes kb1 {
  from { transform: translate(2%, 1%) scale(1.18); }
  to   { transform: translate(0, 0) scale(1.02); }
}
/* close on the seven-slot grille and headlight */
@keyframes kb2 {
  from { transform: translate(45%, 6%) scale(1.7); }
  to   { transform: translate(36%, 4%) scale(1.5); }
}
/* slow push back in */
@keyframes kb3 {
  from { transform: translate(-1%, 0) scale(1.05); }
  to   { transform: translate(1.5%, -1%) scale(1.14); }
}

.shine {
  position: absolute; inset: -20% -40%;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.28) 49%,
    rgba(255,240,210,.45) 50%,
    rgba(255,255,255,.28) 51%,
    rgba(255,255,255,0) 60%);
  mix-blend-mode: soft-light;
  transform: translateX(-70%);
  pointer-events: none;
}
.shine.run { animation: shine 2.6s 1.1s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes shine {
  from { transform: translateX(-70%); }
  to   { transform: translateX(70%); }
}

.glow {
  position: absolute;
  left: -15vw; top: 20vh;
  width: 60vw; height: 60vh;
  background: radial-gradient(closest-side, rgba(245,154,27,.16), rgba(245,154,27,0));
  animation: glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow {
  from { opacity: .5; transform: translateY(-3vh) scale(.95); }
  to   { opacity: 1;  transform: translateY(3vh) scale(1.05); }
}

/* ---------- Brand ---------- */
.brand {
  position: absolute;
  left: 5vw; top: 6vh;
  display: flex; align-items: center; gap: 1.2vmin;
  font-size: min(1.7vw, 3vh);
  font-weight: 700;
  letter-spacing: .45em;
  opacity: 0;
  transition: opacity 1s .4s;
  text-shadow: 0 .3vmin 1.5vmin rgba(0,0,0,.7);
}
.brand sup { font-size: .5em; letter-spacing: 0; margin-right: .5em; }
.brand .bar { width: 4vmin; height: .5vmin; background: var(--amber); display: inline-block; }
#stage:not(.intro) .brand { opacity: 1; }

/* ---------- Copy & scenes ---------- */
.copy {
  position: absolute;
  left: 5vw; top: 0;
  width: 46vw; height: 100vh;
}
.scene {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}
.scene.active { opacity: 1; visibility: visible; }
.scene.active.out {
  opacity: 0;
  transform: translate(-3vw, -50%);
  transition: opacity .5s ease-in, transform .5s ease-in;
}

h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
  font-stretch: condensed;
  text-shadow: 0 .5vmin 3vmin rgba(0,0,0,.6);
}
h1 { font-size: min(7.6vw, 14vh); }
h2 { font-size: min(5.8vw, 10.5vh); }

.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; transform: translateY(110%); }
.accent {
  color: var(--amber);
  background: linear-gradient(100deg, var(--amber) 0%, var(--amber) 40%, #ffe2b0 50%, var(--amber) 60%, var(--amber) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.scene.active .line > span { animation: rise .9s cubic-bezier(.2,.85,.25,1) forwards; }
.scene.active .line:nth-child(1) > span { animation-delay: .35s; }
.scene.active .line:nth-child(2) > span { animation-delay: .55s; }
.scene.active .line > span.accent {
  animation: rise .9s cubic-bezier(.2,.85,.25,1) forwards, sweep 2.2s ease-in-out forwards;
  animation-delay: .55s, 1.6s;
}

@keyframes rise { to { transform: translateY(0); } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

.kicker {
  display: inline-block;
  font-size: min(1.7vw, 3.2vh);
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2.5vh;
  opacity: 0;
}
.scene.active .kicker { animation: fadeRight .8s .15s ease-out forwards; }

.sub {
  margin-top: 3.5vh;
  font-size: min(1.9vw, 3.6vh);
  font-weight: 400;
  color: rgba(244,242,238,.88);
  max-width: 34em;
  opacity: 0;
  padding-left: 2vmin;
  border-left: .5vmin solid var(--amber);
  text-shadow: 0 .3vmin 1.5vmin rgba(0,0,0,.7);
}
.scene.active .sub { animation: fadeRight .9s 1.2s ease-out forwards; }

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-3vw); }
  to   { opacity: 1; transform: translateX(0); }
}

.features { list-style: none; margin-top: 5vh; }
.features li {
  display: flex; align-items: baseline; gap: 2vmin;
  padding: 1.6vh 0;
  border-top: 1px solid rgba(255,255,255,.14);
  opacity: 0;
  text-shadow: 0 .3vmin 1.5vmin rgba(0,0,0,.7);
}
.features li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.features b {
  min-width: 7.5em;
  font-size: min(2.2vw, 4vh);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: .04em;
}
.features span {
  font-size: min(1.7vw, 3.1vh);
  color: rgba(244,242,238,.88);
}
.scene.active .features li { animation: fadeRight .7s ease-out forwards; }
.scene.active .features li:nth-child(1) { animation-delay: 1.2s; }
.scene.active .features li:nth-child(2) { animation-delay: 1.5s; }
.scene.active .features li:nth-child(3) { animation-delay: 1.8s; }

.cta {
  display: inline-block;
  position: relative;
  overflow: hidden;
  margin-top: 5vh;
  padding: 2.2vh 3.2vw;
  background: var(--amber);
  color: var(--ink);
  font-size: min(2vw, 3.8vh);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  clip-path: inset(0 100% 0 0);
}
.cta::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -40%;
  width: 30%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: skewX(-20deg);
}
.cta span { display: inline-block; position: relative; z-index: 1; }
.scene.active .cta { animation: reveal .8s 1.2s cubic-bezier(.7,0,.2,1) forwards; }
.scene.active .cta::after { animation: glint 3s 2.2s ease-in-out infinite; }

@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes glint {
  0%   { left: -40%; }
  45%, 100% { left: 130%; }
}

/* ---------- Progress bars ---------- */
.dots {
  position: absolute;
  left: 5vw; bottom: 6vh;
  display: flex; gap: 1.2vmin;
}
.dots i {
  position: relative;
  width: 6vmin; height: .5vmin;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}
.dots i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.dots i.active::after { animation: fill var(--dur, 8s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Seven-slot grille wipe ---------- */
.wipe {
  position: absolute; inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 10;
}
.wipe span {
  flex: 1;
  height: 100%;
  background: linear-gradient(to right, #050505 0%, #151515 50%, #050505 100%);
  border-bottom: .6vmin solid var(--amber);
  transform: translateY(-101%);
}
.wipe.run span { animation: slot 1.4s cubic-bezier(.65,0,.35,1) forwards; }
.wipe.reveal span { transform: translateY(0); animation: slotOut .9s cubic-bezier(.65,0,.35,1) forwards; }
.wipe span:nth-child(2) { animation-delay: .04s !important; }
.wipe span:nth-child(3) { animation-delay: .08s !important; }
.wipe span:nth-child(4) { animation-delay: .12s !important; }
.wipe span:nth-child(5) { animation-delay: .16s !important; }
.wipe span:nth-child(6) { animation-delay: .20s !important; }
.wipe span:nth-child(7) { animation-delay: .24s !important; }
#stage.intro .wipe span { transform: translateY(0); }

@keyframes slot {
  0%   { transform: translateY(-101%); }
  35%, 65% { transform: translateY(0); }
  100% { transform: translateY(101%); }
}
@keyframes slotOut {
  from { transform: translateY(0); }
  to   { transform: translateY(101%); }
}

/* ---------- Portrait layout ---------- */
@media (orientation: portrait) {
  .photo {
    width: 100vw; height: 58vh;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }
  .kb img { object-position: 45% 50%; }
  .scene-2 .kb { animation-name: kb2p; }
  .brand { top: 4vh; font-size: 2.6vw; }
  .copy { left: 6vw; top: 54vh; width: 88vw; height: 40vh; }
  .scene { top: 45%; }
  h1 { font-size: min(14vw, 8.5vh); }
  h2 { font-size: min(11vw, 6.5vh); }
  .kicker { font-size: 3vw; margin-bottom: 1.6vh; }
  .sub { font-size: 3.4vw; margin-top: 2.4vh; }
  .features { margin-top: 3vh; }
  .features b { font-size: 4vw; }
  .features span { font-size: 3.2vw; }
  .cta { font-size: 3.6vw; margin-top: 3.5vh; padding: 1.8vh 6vw; }
  .dots { left: 6vw; bottom: 4vh; }
  .glow { top: 50vh; left: -20vw; width: 100vw; height: 50vh; }
}
@keyframes kb2p {
  from { transform: translate(30%, 4%) scale(1.6); }
  to   { transform: translate(20%, 3%) scale(1.4); }
}
