/* Outcome-first landing hero with the Escapement market scene. */
/* Per project rule, every vw clamp below reaches its max by a 1440px
   viewport (max_px = coeff × 14.4): maxes are set to the 1440px value so
   the MacBook 1280–1440px composition is authoritative and ultrawide
   matches it instead of growing past it. */
body.landing-3d .landing-hero-section .depth-hero-layout {
  width: min(100% - clamp(44px, 6vw, 86.4px), 1440px);
  /* The market scene carries slightly more of the stage so the chart reads
     as a live intelligence surface, not a thumbnail — widened a touch here for
     a more panoramic proportion. */
  grid-template-columns: minmax(0, 0.82fr) minmax(clamp(31rem, 44vw, 39.6rem), 1.12fr);
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.6rem);
  padding-top: 0;
  overflow: visible;
}

body.landing-3d .landing-hero-section .depth-hero-copy {
  width: 100%;
  max-width: 44rem;
  margin: 0;
  text-align: left;
  transform: none;
  /* Share the chart panel's optical seat offset so the copy group's vertical
     center lines up with the animation's center (the chart carries the same
     `top` on .hero-market-chart). Reset in the stacked layout below. */
  position: relative;
  top: clamp(0.8rem, 1.1vw, 1rem);
}

body.landing-3d .landing-hero-section .depth-kicker {
  justify-content: flex-start;
  margin-right: 0;
  margin-left: 0;
  /* Eyebrow→headline gap, matched across every landing section (hero, how it
     works, features, pricing) so the intro lockup reads identically down the
     page. No min-height box now the pill is gone — the label sits tight to
     the headline instead of floating in leftover pill space. */
  margin-bottom: 22px;
  /* Chrome-free eyebrow: the short green line + tracked label with no pill
     box, line flush to the headline's left edge. Matches the section
     eyebrows (.depth-tag) exactly — same gap, size, tracking, weight, and
     full brand green — so the hero eyebrow reads identically to "How it
     works" down the page. */
  gap: 14px;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: transparent !important;
  border: 0 !important;
  color: #23d18b !important;
  box-shadow: none !important;
}

body.landing-3d .landing-hero-section .depth-hero-content {
  max-width: 100%;
}

/* The marker matches the section eyebrows' dash cue exactly (.depth-tag::before)
   — a static 22px green line, not a pulsing dot — so every eyebrow reads the
   same down the page. */
body.landing-3d .landing-hero-section .depth-kicker .live-dot {
  width: 22px;
  height: 1px;
  border-radius: 0;
  background: #23d18b;
  opacity: 0.9;
  box-shadow: none;
  animation: none;
}

.depth-hero-headline {
  max-width: 15ch;
  margin: 0;
  color: rgba(232, 240, 248, 0.92);
  font-family: 'Inter', system-ui, sans-serif;
  /* Sized up for more presence at the top of the page. Weight 700: one Inter
     step slimmer than the 800 section headlines — 800 read too thick at the
     hero's large scale, so this trims it back a notch while staying bold.
     (Inter is loaded as static faces 300–800, so 700/800 are the only real
     steps here; 750 would snap up to 800.)
     4.78vw reaches the 4.3rem cap at 1440 per the clamp rule. */
  font-size: clamp(3.3rem, 4.78vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: nowrap;
}

/* Each phrase holds its own line on desktop too — the composition never
   depends on lucky wrap points inside the measure. Mobile already does this
   (landing-mobile.css) for the JS fitter. */
.depth-hero-headline .hero-headline-line {
  display: block;
}

/* Accent word in the restrained brand voice — one word only now, in the
   muted brand green (#27c889), no glow, ever. */
.depth-hero-headline .hero-headline-accent {
  /* Still the headline's highlight, dialed back a touch so the green word
     reads as an accent within the line rather than overpowering it. */
  color: rgba(39, 200, 137, 0.82);
}

body.landing-3d .landing-hero-section .hero-product-copy {
  /* Controlled measure, a touch more presence than standard SaaS body:
     slightly larger and airier, muted cool-white — clear, never bright. */
  max-width: 44ch;
  margin: clamp(22px, 2.8vh, 28px) 0 0;
  /* Cool desaturated off-white/blue — lifted for readability without going
     pure white, so the paragraph stays calm but legible. */
  color: rgba(214, 224, 238, 0.73);
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  /* Light (300) to match the section body copy (.depth-copy) under the other
     headlines, so the hero paragraph doesn't read heavier than the rest. */
  font-weight: 300;
  line-height: 1.6;
  /* Rebalance wraps so the block never ends on an orphaned word. */
  text-wrap: pretty;
}

.hero-cta-block {
  margin-top: clamp(30px, 4vh, 38px);
}

/* CTA hierarchy: the green primary owns the block through its fill alone —
   a black seat, never a green halo. The !important flags out-rank the global
   landing.css `.depth-btn-primary` block (itself !important); this hero-only
   fill sits a step deeper and flatter than the sitewide primary. */
body.landing-3d .hero-cta-block .depth-btn-primary {
  /* Dimensional brand fill: a deep diagonal green with a subtle top highlight
     so the button reads as a lit surface, not flat paint. One controlled
     green object, not a green halo. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #2ccc91, #16a86f) !important;
  border-color: rgba(39, 200, 137, 0.3) !important;
  /* Tighter glow (~13% less blur, pulled in a touch harder) so the primary
     reads crisp and expensive rather than foggy. */
  box-shadow:
    0 13px 26px -15px rgba(24, 190, 126, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* Hover lifts and warms a touch, never neon. */
body.landing-3d .hero-cta-block .depth-btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #30d497, #18b074) !important;
  border-color: rgba(39, 200, 137, 0.38) !important;
  box-shadow:
    0 16px 31px -15px rgba(24, 190, 126, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* The !important flags are required to override landing.css's global
   `.depth-btn-secondary` block, which is itself !important; this scoped
   rule quiets only the hero's secondary button. Quiet, not invisible:
   the border and label must read at a glance while the filled primary
   keeps its clear dominance. */
body.landing-3d .hero-cta-block .depth-btn-secondary {
  /* Clearly secondary: a fainter hairline over a barely-there glass wash, so
     it reads as quiet-but-clickable beside the filled primary. */
  border: 1px solid rgba(206, 222, 232, 0.17) !important;
  background: rgba(255, 255, 255, 0.022) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 240, 248, 0.88) !important;
}

body.landing-3d .hero-cta-block .depth-btn-secondary:hover {
  border-color: rgba(220, 232, 229, 0.42) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(238, 244, 255, 0.96) !important;
}

body.landing-3d .landing-hero-section .hero-cta-block .depth-actions {
  justify-content: flex-start;
  margin-top: 0;
}

/* The compact mobile product visual is phone-only; the desktop hero shows the
   full Escapement scene instead. Kept display:none here so it never renders on
   desktop/tablet — it is switched on inside the ≤700px block in landing-mobile.css. */
.hero-mobile-visual {
  display: none;
}

/* ── Escapement scene ─────────────────────────────────────────────────────
   A terminal-style chart panel in the site's card idiom: square corners,
   hairline border, layered gradient, deep shadow. Header bar carries the
   instrument and the model's state; the plot owns the canvas; the session
   rail closes the panel as a footer. Typography stays sentence-case Inter —
   private-bank calm, never cockpit chrome. */
.hero-market-chart {
  position: relative;
  /* Seats the panel a hair below the copy column's optical center so it
     locks to the headline→CTA group instead of floating above it. `top`
     (not margin/transform) keeps grid centering and the reveal transition
     untouched; 0.83vw maxes at 12px by 1440px per the clamp rule. */
  top: clamp(0.8rem, 1.1vw, 1rem);
  isolation: isolate;
  container-type: inline-size;
  justify-self: end;
  /* Trimmed ~5% off the panel's cap so the product visual sits in better
     balance with the copy column instead of dominating the stage. */
  width: min(100%, 47.5rem);
  /* Nudged in off the layout's right edge (~25px more than before) so the
     chart relates to the copy block intentionally instead of hugging the far
     right. Width and vertical seat are untouched — it only shifts left.
     3vw maxes at 1440px per the clamp rule. */
  margin: 0 clamp(1.75rem, 3vw, 2.75rem) 0 0;
  overflow: visible;
}

/* Ambient seat: a soft pool of the page's own light behind the panel so it
   sits in the hero's atmosphere instead of floating on top of it. */
.hero-market-chart::before {
  position: absolute;
  z-index: -1;
  /* A wide, generously-feathered pool so the shadow falls off gradually into
     the hero — a natural cinematic vignette behind the product surface, never
     a hard rectangle or a concentrated black patch. It extends off the right
     and bottom into empty space, but its LEFT edge is held inside the chart
     (left: 4%) so the pool never bleeds onto the copy column and dims the
     paragraph's right-hand words. */
  inset: -22% -32% -28% 4%;
  /* Blue-gray product stage, chart-side only: reads as depth/shadow behind
     the panel, never atmosphere across the hero — and never a green cloud.
     Weighted right/lower so the vignette anchors the panel's lower-right. */
  background:
    radial-gradient(ellipse 60% 56% at 54% 44%, rgba(66, 100, 126, 0.03), transparent 74%),
    radial-gradient(ellipse 54% 50% at 52% 56%, rgba(60, 92, 118, 0.036), transparent 72%),
    radial-gradient(ellipse 92% 86% at 58% 62%, rgba(6, 14, 21, 0.78), transparent 88%);
  content: "";
  pointer-events: none;
}

/* The panel body is a near-solid application surface — no card sheen, no
   inset shine. A screenshot of software, not a rendering of one: small
   radius, one hairline border, and a grounded shadow that seats the panel
   without haloing it. */
.hero-escapement {
  position: relative;
  display: flex;
  flex-direction: column;
  /* A slightly more panoramic proportion — wider relative to its height. */
  aspect-ratio: 1.66 / 1;
  overflow: hidden;
  /* A defined cool blue-gray seam — enough edge to read as a solid instrument
     panel sitting on the page, not a transparent overlay. */
  border: 1px solid rgba(140, 165, 200, 0.18);
  border-radius: 18px;
  /* Expensive dark glass: a near-solid cool shell with only a hint of
     translucency (the blur still catches a whisper of the page behind it).
     Top-lit for dimension, weighted to a near-black base. */
  background: linear-gradient(180deg, rgba(12, 22, 34, 0.93), rgba(6, 12, 20, 0.95) 60%, rgba(4, 9, 15, 0.96));
  box-shadow:
    /* A crisp top-edge highlight — the light-catch of expensive dark glass. */
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    /* Seated in atmosphere: tight contact + a broad, softly-spread ambient
       that feathers into the page rather than pooling as a hard patch. */
    0 1px 1px rgba(0, 0, 0, 0.46),
    0 44px 132px rgba(0, 0, 0, 0.42),
    0 16px 44px rgba(0, 0, 0, 0.3);
  color: rgba(222, 238, 230, 0.9);
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  /* The landing section centers text; application chrome reads left. Without
     this, short labels (e.g. "Bitcoin") center inside grid cells stretched
     by longer siblings and drift away from the coin icon. */
  text-align: left;
  user-select: none;
  transition: border-color 500ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Directional light-catch: a 1px edge ring lit at the top and upper sides,
   fading to transparent by mid-height, so the panel reads as lit from above
   (its dimension / "pop") while the lower edges dissolve into the page (the
   blend). Rides only the 1px perimeter over the soft base border; pointer
   events off so it never dims the chart or blocks the crosshair. */
.hero-escapement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(188, 210, 235, 0.36),
    rgba(150, 176, 202, 0.06) 30%,
    transparent 56%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* A hair of acknowledgement when the visitor's cursor arrives. */
.hero-market-chart:hover .hero-escapement {
  border-color: rgba(145, 170, 205, 0.34);
}

/* Header and rail are compressed toolbar strips — the chart owns the panel;
   the chrome annotates it. */
.hero-esc-header {
  /* Three-column grid seats the timeframe chips near the header's center,
     biased slightly left: the wider right flank reserves room for the
     longest model-state phrase ("Trade opportunity detected") so the
     updating message never wraps mid-cycle. */
  display: grid;
  grid-template-columns: 0.8fr auto 1.2fr;
  align-items: center;
  gap: 0.85rem;
  padding: clamp(0.5rem, 1.35cqw, 0.68rem) clamp(0.85rem, 2.4cqw, 1.2rem);
  border-bottom: 1px solid rgba(140, 162, 184, 0.09);
  background: rgba(5, 11, 18, 0.66);
}

/* The plot accepts the pointer so the crosshair can follow it — the one
   honest interaction a screenshot of real software invites. */
.hero-esc-plot {
  position: relative;
  flex: 1;
  min-height: 0;
  /* The canvas body seats a step deeper than the shell chrome — a more solid
     fill so the chart reads as a real screen, not a see-through overlay. */
  background: rgba(4, 9, 15, 0.5);
  cursor: crosshair;
}

/* Edge-only inset shading recesses the plot inside the shell — a material
   cue at the borders, never an overlay that dims the chart. */
.hero-esc-plot::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 12px 20px -14px rgba(0, 0, 0, 0.56),
    inset 0 -12px 20px -14px rgba(0, 0, 0, 0.46);
  pointer-events: none;
}

.hero-esc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Feather only the plot's top headroom (no axis labels live there) so the
     grid and candles emerge softly into the shell instead of butting against
     a hard internal edge — the chart reads as a live window on a continuous
     market. Right/bottom axes and the near-left time labels stay crisp. */
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 7%);
          mask: linear-gradient(to bottom, transparent 0, #000 7%);
}

.hero-esc-instrument {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-esc-coin {
  flex: 0 0 auto;
  width: clamp(0.9rem, 2.3cqw, 1.1rem);
  height: clamp(0.9rem, 2.3cqw, 1.1rem);
}

.hero-esc-names {
  display: grid;
  gap: 0.1rem;
}

/* Non-interactive timeframe chips: platform grammar, noticed subconsciously.
   Scenery, not controls — no pointer, no hover response; the plot's
   crosshair is the panel's one honest interaction. The grid's center track
   holds the chips clear of the instrument identity so icon + name + pair
   read as one compact group and the chips as an unattached cluster. */
.hero-esc-tfs {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  justify-self: center;
  pointer-events: none;
}

.hero-esc-tfs span {
  padding: 0.14rem 0.38rem;
  border-radius: 4px;
  color: rgba(222, 238, 230, 0.46);
  font-size: clamp(0.54rem, 1.25cqw, 0.6rem);
  font-weight: 500;
}

.hero-esc-tfs span.is-active {
  background: rgba(207, 224, 255, 0.09);
  color: rgba(222, 238, 230, 0.92);
}

/* Narrower product windows crop the longest timeframe chips — the same
   behavior a real platform shows in a tighter window. Thresholds measured
   against the longest state string so the header never wraps. */
@container (max-width: 719px) {
  .hero-esc-tfs span:nth-child(n + 8) {
    display: none;
  }
}

@container (max-width: 599px) {
  .hero-esc-tfs span:nth-child(n + 7) {
    display: none;
  }
}

.hero-esc-pair {
  color: rgba(222, 238, 230, 0.92);
  font-size: clamp(0.62rem, 1.5cqw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.hero-esc-tf {
  color: rgba(222, 238, 230, 0.5);
  font-size: clamp(0.54rem, 1.25cqw, 0.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-esc-mind {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.7rem;
}

.hero-esc-divider {
  width: 1px;
  height: 0.85em;
  background: rgba(222, 238, 230, 0.12);
}

.hero-esc-stateline {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
}

.hero-esc-dot {
  width: 0.28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(222, 238, 230, 0.32);
  transition: background 545ms ease, box-shadow 545ms ease;
}

.hero-esc-dot.is-thinking {
  background: #23d18b;
  box-shadow: 0 0 0.5rem rgba(35, 209, 139, 0.55);
  animation: hero-esc-dot-pulse 2.4s ease-in-out infinite;
}

/* State words crossfade — engine swaps the text mid-fade on the sim clock.
   Real-time durations here track the JS SIM_SPEED playback rate. */
.hero-esc-state {
  min-height: 1.2em;
  white-space: nowrap;
  color: rgba(222, 238, 230, 0.94);
  font-size: clamp(0.62rem, 1.5cqw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  opacity: 1;
  transition: opacity 290ms ease, transform 290ms ease, color 545ms ease;
}

.hero-esc-state.is-swapping {
  opacity: 0;
  transform: translateY(3px);
}

/* The commit moment borrows the cognition green — the one time per cycle
   the state line raises its voice. */
.hero-esc-state.is-signal {
  color: rgba(35, 209, 139, 0.95);
}

.hero-esc-conf-row {
  white-space: nowrap;
  color: rgba(222, 238, 230, 0.66);
  font-size: clamp(0.54rem, 1.25cqw, 0.6rem);
  font-weight: 400;
}

/* Swiss-counter conviction: each digit rolls vertically on its own strip. */
.hero-esc-conf {
  display: inline-flex;
  margin-left: 0.12rem;
  color: rgba(238, 244, 255, 0.96);
  font-weight: 600;
}

.hero-esc-odo-col {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
}

.hero-esc-odo-strip {
  display: inline-flex;
  flex-direction: column;
  transition: transform 510ms cubic-bezier(0.45, 0, 0.15, 1);
  will-change: transform;
}

.hero-esc-odo-strip b {
  height: 1.25em;
  font-weight: 600;
  line-height: 1.25em;
}

.hero-esc-odo-sep {
  line-height: 1.25em;
}

/* Contextual narration floats quietly at the plot's top right, held clear
   of the price-axis gutter the canvas reserves on the right edge. */
.hero-esc-note {
  position: absolute;
  top: clamp(0.5rem, 1.5cqw, 0.7rem);
  right: calc(clamp(0.7rem, 2.1cqw, 1rem) + 52px);
  max-width: 34ch;
  color: rgba(222, 238, 230, 0.9);
  font-size: clamp(0.58rem, 1.35cqw, 0.65rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: right;
  opacity: 0;
  transition: opacity 545ms ease;
  pointer-events: none;
}

.hero-esc-note.is-visible {
  opacity: 1;
}

/* The last price rides the canvas hairline as a rectangular tag seated on
   the price axis — platform furniture, not a badge. JS sets its Y transform
   from the same projection that draws the line. */
.hero-esc-price {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.2rem 0.45rem 0.2rem 0.4rem;
  border: 1px solid rgba(222, 238, 230, 0.22);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: rgba(8, 17, 25, 0.92);
  color: rgba(222, 238, 230, 0.93);
  font-size: clamp(0.56rem, 1.3cqw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.hero-esc-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: clamp(0.32rem, 0.95cqw, 0.45rem) clamp(0.7rem, 2.1cqw, 1rem);
  border-top: 1px solid rgba(125, 150, 175, 0.1);
  background: rgba(6, 12, 19, 0.72);
}

.hero-esc-railleft {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Connection status: a quietly breathing feed indicator with its latency. */
.hero-esc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(222, 238, 230, 0.74);
  font-size: clamp(0.52rem, 1.2cqw, 0.58rem);
  font-weight: 500;
}

.hero-esc-live i {
  width: 0.26rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #23d18b;
  box-shadow: 0 0 0.4rem rgba(35, 209, 139, 0.5);
  animation: hero-esc-dot-pulse 2.08s ease-in-out infinite;
}

.hero-esc-latency,
.hero-esc-clock {
  color: rgba(222, 238, 230, 0.48);
  font-size: clamp(0.52rem, 1.2cqw, 0.58rem);
  font-weight: 400;
}

/* Session outcomes collect silently — a track record forming in the margin. */
.hero-esc-ticks {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-esc-ticks i {
  width: 0.38rem;
  height: 0.13rem;
  border-radius: 999px;
}

.hero-esc-ticks i.is-win {
  background: rgba(35, 209, 139, 0.75);
}

.hero-esc-ticks i.is-loss {
  background: rgba(221, 79, 79, 0.58);
}

.hero-esc-tally {
  color: rgba(222, 238, 230, 0.56);
  font-size: clamp(0.54rem, 1.25cqw, 0.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* The session tally and the simulation marker share the rail's right end. */
.hero-esc-railright {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4cqw, 0.7rem);
}

@keyframes hero-esc-dot-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

body.landing-3d .landing-hero-section {
  padding-bottom: calc(clamp(100px, 13.5svh, 158px) + 20px);
}

/* ── Layered hero lighting ────────────────────────────────────────────────
   Almost-imperceptible pools of light: a faint spotlight where the headline
   sits, a wide green-cast pool behind the chart panel, and a grounding
   falloff along the bottom edge. The hero is the landing page's first
   section, so ::before is free here — every later section spends it on the
   divider hairline. */
body.landing-3d .landing-hero-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  /* Depth without atmosphere: a faint neutral pool at the headline, a
     barely-there brand breath at the chart, and the grounding falloff. */
  background:
    radial-gradient(ellipse 40% 48% at 24% 40%, rgba(66, 100, 122, 0.0228), transparent 74%),
    radial-gradient(ellipse 54% 68% at 73% 52%, rgba(66, 100, 122, 0.017), transparent 78%),
    radial-gradient(ellipse 130% 72% at 50% 116%, rgba(2, 7, 12, 0.6), transparent 64%);
  content: "";
  pointer-events: none;
}

/* Film grain, hero-scoped at near-invisible opacity: the global .depth-noise
   layer is deliberately disabled on the landing, so the hero carries its
   own texture without reopening that page-wide decision. */
body.landing-3d .landing-hero-section::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  content: "";
  /* A whisper of grain so the deep field never reads as a flat rectangle. */
  opacity: 0.026;
  pointer-events: none;
}

[data-theme="light"] body.landing-3d .landing-hero-section::before,
[data-theme="light"] body.landing-3d .landing-hero-section::after {
  content: none;
}

/* Below laptop width the scene stacks beneath the copy instead of squeezing
   either column. Only the measured phone hero omits product art. */
@media (max-width: 1080px) {
  body.landing-3d .landing-hero-section .depth-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-3d .landing-hero-section .depth-hero-copy {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
    /* Stacked layout: no optical seat offset (mirrors the chart reset). */
    top: 0;
  }

  body.landing-3d .landing-hero-section .depth-kicker,
  body.landing-3d .landing-hero-section .hero-product-copy {
    margin-right: auto;
    margin-left: auto;
  }

  body.landing-3d .landing-hero-section .depth-kicker,
  body.landing-3d .landing-hero-section .hero-cta-block .depth-actions {
    justify-content: center;
  }

  .depth-hero-headline {
    margin-inline: auto;
    font-size: clamp(3.35rem, 6.8vw, 4.6rem);
  }

  .hero-market-chart {
    /* Stacked layout centers the scene under the copy; the desktop optical
       seat offset no longer applies. */
    top: 0;
    justify-self: center;
    width: min(100%, 44rem);
    /* Reset the desktop right-edge nudge so the stacked scene stays centered. */
    margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  }

  /* Stacked layout: the light pools follow the headline (top) and chart
     (below center). */
  body.landing-3d .landing-hero-section::before {
    background:
      radial-gradient(ellipse 52% 34% at 50% 22%, rgba(66, 100, 122, 0.026), transparent 70%),
      radial-gradient(ellipse 62% 46% at 50% 66%, rgba(66, 100, 122, 0.02), transparent 74%),
      radial-gradient(ellipse 130% 72% at 50% 116%, rgba(2, 7, 12, 0.6), transparent 64%);
  }
}

@media (max-width: 700px) {
  .hero-market-chart {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-esc-dot.is-thinking {
    animation: none;
  }

  .hero-esc-state,
  .hero-esc-odo-strip {
    transition: none;
  }
}
