@font-face {
  font-family: "DepartureMono";
  src: url("assets/fonts/DepartureMono.woff2") format("woff2");
  font-display: swap;
}

@property --enter { syntax: "<number>"; initial-value: 0; inherits: false; }

:root {
  --orange: #ff4202;
  --orange-warm: #f7931a;
  --orange-hot: #ff6a1f;
  --orange-soft: #d0442a;
  --stone: #a9a196;
  --ink: #050606;
  --paper: #f2eee7;
  --muted: #aeb6b8;
  --mx: 0;
  --my: 0;
  --scroll: 0;
}

* { box-sizing: border-box; }
html {
  background: var(--ink); color: var(--paper);
  font-family: "DepartureMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  scroll-behavior: smooth;
}
body { margin: 0; min-width: 320px; background: var(--ink); }
a { color: inherit; text-decoration: none; }
html, body { overflow-x: clip; }

.site-shell { min-height: 100vh; }
.scroll-stage { position: relative; min-height: 280vh; }

/* ─── HERO with sticky video + massive Globalite card ─── */
.hero {
  position: sticky; top: 0;
  display: grid; height: 100vh; height: 100svh;
  isolation: isolate; overflow: hidden;
  background: #070809;
}
.hero__video, .hero__grade, .hero__vignette { position: absolute; inset: 0; }
.hero__video {
  z-index: -4; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 52%;
  /* Keep the cinematic cool grade from the ref, just slightly desaturated */
  filter: saturate(0.55) contrast(1.10) brightness(0.78) hue-rotate(192deg);
  animation: camera-drift 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
.hero__grade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 6, 7, 0.78), transparent 34%, transparent 64%, rgba(4, 6, 7, 0.72)),
    linear-gradient(180deg, rgba(3, 5, 6, 0.58), rgba(6, 8, 8, 0.1) 42%, rgba(3, 4, 5, 0.84));
  mix-blend-mode: multiply;
}
.hero__vignette {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 34%, rgba(0, 0, 0, 0.38) 66%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.1), rgba(7, 8, 9, 0.64));
}

.orange-trail {
  position: absolute; z-index: 1;
  left: 50%; top: 0;
  width: 2px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(247, 147, 26, 0.32) 18%,
    var(--orange) 46%,
    var(--orange-hot) 70%,
    rgba(255, 106, 31, 0.18) 92%,
    transparent 100%
  );
  box-shadow:
    0 0 22px rgba(247, 147, 26, 0.78),
    0 0 70px rgba(255, 106, 31, 0.45),
    0 0 140px rgba(255, 106, 31, 0.2);
  opacity: 0; pointer-events: none;
  animation: trail-reveal 6.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards;
  mix-blend-mode: screen;
}

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; width: min(100% - 40px, 1180px); height: 76px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__wordmark {
  display: block; height: 18px; width: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
.topbar__nav { display: flex; align-items: center; gap: 8px; }
.topbar__nav a {
  min-width: 84px; padding: 10px 14px;
  border: 1px solid rgba(242, 238, 231, 0.18);
  border-radius: 999px;
  color: rgba(242, 238, 231, 0.82);
  font-size: 12px; font-weight: 700;
  text-align: center; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(7, 8, 9, 0.26); backdrop-filter: blur(16px);
}
.topbar__nav a:hover { color: var(--orange); border-color: var(--orange); }

.hero__content {
  position: relative; z-index: 2;
  display: grid; grid-template-rows: auto 1fr auto;
  justify-items: center; align-items: center;
  gap: clamp(8px, 1.6vh, 22px);
  height: calc(100svh - 76px);
  padding: clamp(8px, 2vh, 24px) 20px clamp(20px, 3vh, 48px);
  perspective: 1400px; text-align: center;
}

.hero__kicker {
  margin: 0; color: var(--orange);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0; transform: translateY(-8px);
  animation: hero-fade 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
  text-shadow: 0 1px 16px rgba(255, 66, 2, 0.5);
}

.hero__headline {
  max-width: 980px; margin: 0;
  color: rgba(242, 238, 231, 0.96);
  font-size: clamp(24px, 4.2vw, 56px);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.005em;
  text-wrap: balance;
  opacity: 0; transform: translateY(12px);
  animation: hero-fade 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 0 80px rgba(0, 0, 0, 0.5);
}

/* ─── THE CARD (the bar) ─── */
.card-stage {
  position: relative;
  width: min(60vw, 720px);
  aspect-ratio: 1.586 / 1;
  opacity: calc(var(--enter, 1) * (1 - (var(--scroll) * 0.55)));
  transform:
    translate3d(0, calc(((1 - var(--enter, 1)) * 6vh) + (var(--scroll) * -85vh)), calc((1 - var(--enter, 1)) * -180px))
    rotateX(calc((var(--my) * -14deg) + (var(--scroll) * -82deg) + ((1 - var(--enter, 1)) * 10deg)))
    rotateY(calc((var(--mx) * 22deg) + ((1 - var(--enter, 1)) * -6deg)))
    rotateZ(calc(-6deg + (var(--scroll) * 14deg) + ((1 - var(--enter, 1)) * -6deg)))
    scale(calc(1 - (var(--scroll) * 0.28) - ((1 - var(--enter, 1)) * 0.14)));
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: card-enter 2.2s cubic-bezier(0.16, 0.84, 0.24, 1) 0.2s forwards;
}
.card-stage::after {
  content: ""; position: absolute;
  left: 50%; bottom: -8%; width: 78%; height: 14%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), transparent 70%);
  transform: translateX(-50%) translateZ(-40px);
  filter: blur(8px); pointer-events: none;
}

.company-card {
  position: relative;
  display: grid; grid-template-rows: 1fr auto;
  width: 100%; height: 100%; overflow: hidden;
  padding: clamp(26px, 4vw, 56px);
  border: 1px solid rgba(255, 211, 164, 0.34);
  border-radius: clamp(20px, 2.4vw, 34px);
  background:
    linear-gradient(132deg, #ff7a2a 0%, #ff4202 48%, #b32400 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 40%);
  box-shadow:
    0 42px 74px rgba(0, 0, 0, 0.58),
    0 10px 22px rgba(0, 0, 0, 0.3),
    0 0 46px rgba(255, 66, 2, 0.34);
  transform: translateZ(90px);
}
.company-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.32) 34%, transparent 48%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.2), transparent 28%);
  mix-blend-mode: screen; opacity: 0.8;
}
.company-card__gloss {
  position: absolute; inset: -40% -14% auto; height: 80%;
  transform: rotate(8deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.74;
}
.company-card__edge {
  position: absolute; inset: auto 0 0; height: 24%;
  background: linear-gradient(180deg, transparent, rgba(47, 8, 0, 0.28));
}
.company-card__chip {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: clamp(58px, 9vw, 104px);
  height: clamp(44px, 7vw, 78px);
  align-self: start;
  padding: 8px;
  border: 2px solid rgba(74, 52, 18, 0.64);
  border-radius: 13px;
  background:
    linear-gradient(135deg, #f8df8e, #aa7d29),
    linear-gradient(90deg, transparent 45%, rgba(74, 52, 18, 0.56) 45% 55%, transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 202, 0.58);
}
.company-card__chip span { border: 1px solid rgba(66, 47, 19, 0.58); border-radius: 4px; }
.company-card__symbol {
  position: absolute;
  right: clamp(20px, 3vw, 44px); top: clamp(20px, 3vw, 44px);
  width: clamp(48px, 7vw, 96px); height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 6px 14px rgba(67, 18, 0, 0.45));
}
.company-card__brand {
  position: relative; margin-top: auto;
  filter: drop-shadow(0 6px 18px rgba(67, 18, 0, 0.5));
}
.company-card__wordmark { display: block; width: clamp(220px, 56%, 540px); height: auto; }
.company-card__meta {
  position: absolute;
  right: clamp(26px, 4vw, 56px); bottom: clamp(22px, 3.4vw, 48px);
  display: flex; gap: 14px;
  color: rgba(255, 249, 235, 0.78);
  font-size: clamp(10px, 1.4vw, 14px); letter-spacing: 0.18em;
}

/* ─── Marquee ─── */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden; white-space: nowrap;
  padding: 16px 0; background: #050505;
  border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
}
.marquee__track { display: inline-block; animation: marquee-scroll 48s linear infinite; }
.marquee__track span { padding: 0 32px; color: #888; }
.marquee__track .hot { color: var(--orange); }
.marquee__track .dot { color: #333; }

/* ─── Section ─── */
.section {
  position: relative; z-index: 2;
  width: min(100% - 48px, 1200px); margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) 0;
  background: var(--ink);
}
.section__kicker {
  margin: 0 0 22px; color: var(--orange);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
}
.section__heading {
  margin: 0 0 32px; color: #fff;
  font-size: clamp(32px, 5.4vw, 72px); font-weight: 400;
  line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance;
}
.section__heading--accent { color: var(--orange); }
.section__lede {
  max-width: 680px; margin: 0; color: #aaa;
  font-size: 15px; line-height: 1.75;
}

/* ─── Steps ─── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 64px;
  background: #1a1a1a; border: 1px solid #1a1a1a;
}
.step {
  position: relative; padding: 32px 24px 38px; min-height: 240px;
  background: #0a0a0a; overflow: hidden;
  transition: background 0.3s ease;
}
.step:hover { background: #111; }
.step:hover::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0;
  width: 2px; background: var(--orange);
}
.step__n {
  margin-bottom: 22px; color: var(--orange);
  font-size: 64px; line-height: 1;
  text-shadow: 0 0 24px rgba(255, 66, 2, 0.32);
}
.step__title { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 400; letter-spacing: 0.08em; }
.step__body { margin: 0; color: #999; font-size: 12px; line-height: 1.7; }

/* ─── Stats ─── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 96px; padding: 60px 0;
  border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
}
.stat__v {
  color: var(--orange); font-size: clamp(40px, 6vw, 84px);
  line-height: 1; text-shadow: 0 0 32px rgba(255, 66, 2, 0.28);
}
.stat__l {
  margin-top: 14px; color: #888;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ─── Reveal (full-bleed video sections with side copy) ─── */
.reveal {
  position: relative; z-index: 2;
  height: 90vh; min-height: 600px;
  display: grid; align-items: center;
  padding: 0 8vw; overflow: hidden;
  background: #050505;
}
.reveal__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.7);
}
.reveal__grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,6,8,0.85) 0%, rgba(5,6,8,0.55) 35%, rgba(5,6,8,0.35) 65%, rgba(5,6,8,0.85)),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%);
}
.reveal__copy { max-width: 540px; }
.reveal__copy--right { margin-left: auto; text-align: right; }
.reveal__kicker {
  margin: 0 0 22px; color: var(--orange);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  display: inline-block; padding-left: 22px; position: relative;
}
.reveal__kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1px; background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}
.reveal__copy--right .reveal__kicker { padding-left: 0; padding-right: 22px; }
.reveal__copy--right .reveal__kicker::before { left: auto; right: 0; }
.reveal__heading {
  margin: 0 0 24px; color: #fff;
  font-size: clamp(32px, 5vw, 64px); font-weight: 400;
  line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,0.7);
}
.reveal__heading--accent { color: var(--orange); }
.reveal__body { margin: 0; color: rgba(240,243,245,0.88); font-size: 16px; line-height: 1.7; max-width: 460px; }
.reveal__copy--right .reveal__body { margin-left: auto; }

/* ─── Callout ─── */
.callout {
  position: relative; z-index: 2;
  padding: clamp(96px, 16vh, 160px) 36px;
  text-align: center;
  border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
  background: var(--ink);
}
.callout__heading {
  margin: 0; color: #fff;
  font-size: clamp(40px, 8vw, 132px); font-weight: 400;
  line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance;
}
.callout__heading--accent { color: var(--orange); }
.callout__sub {
  max-width: 580px; margin: 28px auto 0;
  color: #999; font-size: 15px; line-height: 1.75;
}
.callout__cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
}

.btn {
  position: relative; padding: 16px 26px;
  border: 1px solid #fff; background: transparent; color: #fff;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--primary { background: var(--orange); border-color: var(--orange); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 66, 2, 0.3); }
.btn--primary:hover { background: #c52e00; border-color: #c52e00; }
.btn .arrow { margin-left: 8px; display: inline-block; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Footer ─── */
.site-foot {
  position: relative; z-index: 2;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 32px 36px 56px;
  background: var(--ink); color: #666; font-size: 11px;
}
.site-foot a { border-bottom: 1px dotted #444; color: #999; }
.site-foot a:hover { color: var(--orange); }

@keyframes camera-drift {
  0% { transform: scale(1.06) translate3d(0, 0.4%, 0); }
  100% { transform: scale(1.14) translate3d(0, -0.8%, 0); }
}
@keyframes card-enter { from { --enter: 0; } to { --enter: 1; } }
@keyframes hero-fade { to { opacity: 1; transform: translateY(0); } }
@keyframes trail-reveal {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.18); }
  60% { opacity: 0.95; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0.78; transform: translateX(-50%) scaleY(1); }
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .topbar { width: min(100% - 28px, 1180px); height: 68px; }
  .topbar__nav a { min-width: 0; padding-inline: 10px; }
  .hero__content { height: calc(100svh - 68px); padding-inline: 14px; }
  .card-stage { width: min(88vw, 520px); }
  .company-card { border-radius: 20px; }
  .company-card__wordmark { width: 80%; }
  .company-card__meta { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .marquee { font-size: 11px; padding: 12px 0; }
  .reveal { height: 70vh; min-height: 480px; padding: 0 6vw; }
  .reveal__copy, .reveal__copy--right { max-width: 100%; text-align: left; margin: 0; }
  .reveal__copy--right .reveal__kicker { padding-right: 0; padding-left: 22px; }
  .reveal__copy--right .reveal__kicker::before { right: auto; left: 0; }
  .reveal__copy--right .reveal__body { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
