@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;
}

.site-shell {
  min-height: 100vh;
}

html, body {
  overflow-x: clip;
}

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

.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%;
  filter: saturate(0.3) contrast(1.18) brightness(0.7) hue-rotate(184deg);
  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);
}

.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: rgba(242, 238, 231, 0.82);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.32em;
  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 18px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(255, 66, 2, 0.35);
}

.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);
}

.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;
}

/* ─── History (BTC chart) ─── */
.history {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) 0 clamp(60px, 10vh, 96px);
  background: var(--ink);
}

.history__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vh, 64px);
}

.history__chart {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vh, 560px);
  border: 1px solid #1a1a1a;
  background: linear-gradient(180deg, #050505, #0a0a0a 50%, #050505);
  overflow: hidden;
  cursor: crosshair;
}

.history__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.history__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.history__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 66, 2, 0.18) 10%,
    rgba(255, 66, 2, 0.42) 40%,
    rgba(255, 66, 2, 0.18) 100%
  );
  box-shadow: 0 0 12px rgba(255, 66, 2, 0.4);
}

.history__marker-label {
  position: absolute;
  top: 14px;
  left: 8px;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(5, 5, 5, 0.86);
  padding: 4px 8px;
  border: 1px solid rgba(255, 66, 2, 0.42);
  backdrop-filter: blur(4px);
}

.history__peak {
  position: absolute;
  pointer-events: none;
}

.history__peak-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 12px rgba(255, 66, 2, 0.9),
    0 0 28px rgba(255, 66, 2, 0.55);
}

.history__peak-label {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid rgba(255, 66, 2, 0.42);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -130%);
}

.history__peak-label .px {
  color: var(--orange);
  margin-left: 4px;
}

.history__hairline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.32);
  transform: translateX(-100%);
  pointer-events: none;
  transition: opacity 0.15s ease;
  opacity: 0;
}

.history__chart:hover .history__hairline,
.history__chart.is-scrubbing .history__hairline {
  opacity: 1;
}

.history__readout {
  position: absolute;
  top: 80px;
  left: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 66, 2, 0.34);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(6px);
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: left;
  min-width: 180px;
}

.history__readout-date {
  color: #888;
  text-transform: uppercase;
}

.history__readout-price {
  margin-top: 4px;
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 66, 2, 0.45);
}

.history__scrubber {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.history__scrub-label {
  color: #888;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.history__range {
  appearance: none;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #1a1a1a 0%, #333 50%, var(--orange) 100%);
  outline: none;
  cursor: ew-resize;
}

.history__range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 66, 2, 0.7);
  cursor: ew-resize;
}

.history__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--orange);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 66, 2, 0.7);
  cursor: ew-resize;
}

.history__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #1a1a1a;
}

.history__cta-lede {
  margin: 0;
  max-width: 720px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .history__cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .history__chart {
    height: 56vh;
  }
  .history__readout {
    top: 8px;
    right: 8px;
    padding: 8px 10px;
    min-width: 0;
  }
  .history__readout-price {
    font-size: 14px;
  }
  .history__marker-label,
  .history__peak-label {
    display: none;
  }
}

/* ─── 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;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── 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;
}

/* ─── 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);
  }
}

@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;
  }
}

@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;
  }
}
