/* Scrollbar — the Pexodus terminal recipe (gmx-interface/src/styles/Shared.scss), applied
   here so the static home matches the perps app. The static export has no
   --color-slate-* vars, so the fork's values are inlined (slate-500 #ffffff1f,
   slate-900 #0e0503). Firefox uses scrollbar-color; WebKit/Blink use the ::-webkit-*
   pseudo-elements, so scrollbar-color is nulled where the WebKit selector is supported
   (the standard property would otherwise override the custom styling). Pointer-fine only. */
:root {
  scrollbar-color: #ffffff1f #0e0503;
}

@supports selector(::-webkit-scrollbar) {
  @media (hover: hover) and (pointer: fine) {
    :root {
      scrollbar-color: auto;
    }
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background-color: #0e0503;
    }
    ::-webkit-scrollbar-thumb {
      background-color: #ffffff1f;
      border-radius: 15px;
    }
  }
}

/* Underlined link that loses its underline on hover */
.link-underline {
  text-decoration: underline;
}
.link-underline:hover {
  text-decoration: none;
}

/* Paid Webflow plan: suppress the runtime-injected "Made in Webflow" badge */
.w-webflow-badge {
  display: none !important;
}

/* Homepage music capsule: nested sub-pills.
   Desktop: auto-expanded (subtitles toggle always shown; the subtitle sub-pill
   expands while a line is active).
   Mobile: auto-collapsed to the music master key only. */
.music-pill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border--primary);
  border-top-left-radius: var(--_structure---radius--round);
  border-bottom-left-radius: var(--_structure---radius--round);
  border-top-right-radius: var(--_structure---radius--round);
  border-bottom-right-radius: var(--_structure---radius--round);
  background-color: var(--background--primary);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px #ffffff0f, inset 0 0.5px 0.5px #ffffff14;
}
.music-sub {
  display: flex;
  align-items: center;
}
.music-sub-button {
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--_structure---radius--round);
  background-color: transparent;
  color: var(--icon--quinary);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.music-sub-button:hover,
.music-sub-button.is-active {
  color: var(--text--primary);
  background-color: var(--background--tertiary);
}
.music-sub-captions {
  max-width: 0;
  margin-right: -10px;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: rgba(5, 1, 0, 0.72);
  color: var(--text--primary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  white-space: normal;
  transition: max-width 0.3s, margin 0.3s, padding 0.3s, opacity 0.3s;
}
.music-pill.has-cue .music-sub-captions {
  max-width: min(560px, 62vw);
  margin-right: 0;
  padding: 6px 12px;
  opacity: 1;
}
.music-skip {
  transition: transform 0.3s, color 0.3s, background-color 0.3s;
}
.music-skip:hover {
  transform: scale(1.2);
}
.music-sub-button .music-slash {
  opacity: 0;
  transition: opacity 0.3s;
}
.music-sub-button.is-muted .music-slash {
  opacity: 1;
}
@media screen and (max-width: 991px) {
  .music-sub-captions {
    font-size: 13px;
  }
}
/* Mobile: capsule stays collapsed to the music key; subtitles sit above it —
   12px vertical offset, same 20px viewport offsets as the capsule */
@media screen and (max-width: 767px) {
  #captions-toggle,
  .music-skip {
    display: none;
  }
  .music-sub-captions {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: calc(100vw - 40px);
    margin-right: 0;
    padding: 0;
    opacity: 0;
    white-space: normal;
    font-size: 12px;
    transition: opacity 0.3s, padding 0.3s;
  }
  .music-pill.has-cue .music-sub-captions {
    max-width: calc(100vw - 40px);
    padding: 6px 12px;
    opacity: 1;
  }
}

/* Homepage nav: Perpetuals dropdown — hover (or keyboard focus) opens the panel
   below the trigger; the chevron flips up. Icons are the local white logos used
   by the Fair Ecosystem section (pump-white / raydium-white / bonk-white). */
.nav-perpetuals {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-perpetuals-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}
.nav-perpetuals-toggle:hover,
.nav-perpetuals:focus-within .nav-perpetuals-toggle {
  color: var(--text--primary);
}
.nav-perpetuals-chevron {
  flex: none;
  transition: transform 0.3s ease-in;
}
.nav-perpetuals:hover .nav-perpetuals-chevron,
.nav-perpetuals:focus-within .nav-perpetuals-chevron {
  transform: rotate(180deg);
  transition-timing-function: ease-out;
}
.nav-perpetuals-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 50;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}
.nav-perpetuals:hover .nav-perpetuals-menu,
.nav-perpetuals:focus-within .nav-perpetuals-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-timing-function: ease-out;
}
.nav-perpetuals-panel {
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border--primary);
  border-radius: var(--_structure---radius--medium);
  background-color: var(--background--primary);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px #ffffff0f, inset 0 0.5px 0.5px #ffffff14;
}
.nav-perpetuals-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text--secondary);
  letter-spacing: -0.006em;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.3s, background-color 0.3s;
}
.nav-perpetuals-item:hover {
  color: var(--text--primary);
  background-color: var(--background--tertiary);
}
.nav-perpetuals-icon {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* Direction arrows (same marks as the stats section): green up = long, red down = short */
.nav-perpetuals-arrow {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  color: #22c55e;
}
.nav-perpetuals-arrow.is-down {
  color: #ef4444;
}
/* Mobile: the collapsed menu lists Perpetuals as a label followed by its items */
@media screen and (max-width: 991px) {
  .nav-perpetuals {
    flex-flow: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-perpetuals-toggle {
    padding: 12px 0 4px;
    color: var(--text--tertiary);
    font-size: 13px;
    pointer-events: none;
  }
  .nav-perpetuals-chevron {
    display: none;
  }
  /* The reset MUST also match the desktop hover/focus selectors. A bare `.nav-perpetuals-menu`
     (0,1,0) loses to `.nav-perpetuals:hover .nav-perpetuals-menu` (0,3,0) — specificity beats
     source order — and on a touch device `:hover` STICKS after a tap. That re-applied
     `transform: translate(-50%, 0)` inside the stacked menu and shoved the three items 149px to
     the LEFT of the panel (measured: x 53 -> -96), so they rendered outside the card and were cut
     off at the viewport edge. This is the mobile-menu-perpetuals bug. */
  .nav-perpetuals-menu,
  .nav-perpetuals:hover .nav-perpetuals-menu,
  .nav-perpetuals:focus-within .nav-perpetuals-menu {
    position: static;
    z-index: auto;
    width: 100%;
    padding-top: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-perpetuals-panel {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-perpetuals-item {
    gap: 10px;
    padding: 12px 0;
    border-radius: 0;
    font-size: 20px;
    letter-spacing: 0;
  }
  .nav-perpetuals-item:hover {
    color: var(--text--secondary);
    background-color: transparent;
  }
}

/* Hero H1 underline: hand-drawn stroke under "Raydium." in official Raydium hex
   (#c200fb -> #3772ff -> #5ac4be, from public/icons/raydium-white.svg).
   H1 has no gradient of its own; each text span carries .text-color-gradient-white
   (own background-clip:text box, so no bleed), and the Raydium gradient lives only
   in the SVG stroke. Draws once on first load. */
.hero-underline-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-underline {
  position: absolute;
  left: -2%;
  bottom: -0.14em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
  pointer-events: none;
}
.hero-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-underline-draw 1.1s 0.7s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes hero-underline-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-underline path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Text selection: repo brand orange (#ff4c1f) with ink text (#050100).
   Replaces the browser-default blue. Ink-on-brand = 6.24:1 contrast (passes
   WCAG AA); white-on-brand is only 3.33:1, so ink is used for legibility.
   -moz- prefix covers Firefox. */
::selection {
  background-color: #ff4c1f;
  color: #050100;
}
::-moz-selection {
  background-color: #ff4c1f;
  color: #050100;
}

/* Hero Explore: border-only companion to the Create pill — transparent by
   default, repo surface recipe (1px var(--border--primary), pill 99px,
   blur 6px + inset shadow) on top. Arrow = repo FAQ chevron, 14px. */
html {
  scroll-behavior: smooth;
}
.hero-button-wrapper {
  gap: 12px;
  flex-wrap: wrap;
}
.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border--primary);
  border-radius: 99px;
  background-color: transparent;
  color: var(--text--primary);
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px #ffffff0f, inset 0 0.5px 0.5px #ffffff14;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hero-explore:hover {
  background-color: var(--background--primary);
  border-color: var(--border--tertiary);
}
.hero-explore svg {
  flex: none;
  transition: transform 0.3s ease;
}
.hero-explore:hover svg {
  transform: translateX(2px);
}
/* Anchor offset: fixed nav never covers the "Pexodus is easy" heading */
#pexodus-is-easy {
  scroll-margin-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-explore svg {
    transition: none;
  }
  .hero-explore:hover svg {
    transform: none;
  }
}

/* Hero H1: reduced from the 72px template default. (A centered-hero experiment
   lived here and was reverted; only the smaller H1 stays.) */
.h1-heading {
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.05;
}

/* Testimonial cards: equal heights (tallest sibling wins). The mask keeps its
   native 348px/overflow-visible slider design; flex only stretches slides to
   equal height — slide widths and the translate animation are untouched. Gap
   comes from slide padding (inside the 100% basis, so no animation drift). */
.testimonial-mask-overflow {
  display: flex;
  align-items: stretch;
}
.testimonial-mask-overflow > .testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  margin-right: 0;
  padding-right: 16px;
  box-sizing: border-box;
}
.testimonial-slide > .testimonial-card {
  height: 100%;
}
/* Testimonial footers (logo + date row) pin to the card bottom so short
   quotes don't leave the row floating mid-card. */
.testimonial-card {
  display: flex;
  flex-direction: column;
}
.testimonial-card .column-regular {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card .row-regular.row-space-between {
  margin-top: auto;
  padding-top: 20px;
}
/* Horizontal breathing room between testimonial slides on every breakpoint.
   Padding (not margin/gap) so the slider's 100%-width slide math stays intact. */
.testimonial-mask-overflow > .testimonial-slide {
  padding-right: 16px;
  box-sizing: border-box;
}
/* Testimonial slider arrows: 8px horizontal gap between the two buttons on
   every breakpoint. Desktop already gaps 8px via template (right:0 vs
   right:64px at 56px width); the max-width:767px template rules pin them at
   left:0/left:56px = touching, so the right button shifts to left:64px.
   .is-left keeps left:0 (higher specificity, untouched). */
@media screen and (max-width: 767px) {
  .testimonial-arrow {
    left: 64px;
  }
}
/* Hero H1 "Raydium" pill: fully-rounded translucent-white badge carrying the
   white Raydium mark + word. Translucent (never full opacity) so the white
   asset stays legible over the dark hero. Radius/border/blur follow the repo
   surface recipe (round 999px, border--primary, blur 6px + inset shadow);
   em sizing lets it scale with the H1. */
.hero-raydium-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  padding: 0.06em 0.38em 0.1em 0.32em;
  border: 1px solid var(--border--primary);
  border-radius: var(--_structure---radius--round);
  background-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px #ffffff0f, inset 0 0.5px 0.5px #ffffff14;
  color: #fff;
  white-space: nowrap;
}
.hero-raydium-pill-icon {
  width: 0.8em;
  height: 0.8em;
  flex: none;
}

/* Fair Ecosystem process cards: the white token marks inline in the card copy —
   the same local logos the nav Perpetuals items use (pump-white.svg /
   bonk-white.png / raydium-white.svg). em sizing keeps them on the text line. */
.process-token {
  width: 1em;
  height: 1em;
  margin: 0 0.08em;
  vertical-align: -0.14em;
  object-fit: contain;
}

/* ---- Process section: the three "small" cards as COMPACT ROWS --------------------- */

/* `.process-card-small` ships as a 36px-padded box with a 28px icon stacked ABOVE two lines of text
 * (template: `flex-flow: column`, `align-items: flex-start`, `padding: 36px`, 1px border all round,
 * `--background--secondary` + `blur(12px)`, `radius--large`). Three of those under the two big
 * process cards read as six competing panels.
 *
 * They become single-line rows instead: icon beside the text, no panel, one hairline separator.
 * Same content, same inline SVG art, far less visual weight.
 *
 * SCOPED to `.process-grid >`: the class name also appears in comments in this file and
 * `companion.css` describing the nav popover's surface (the popover copies the LOOK, not the class),
 * so scoping makes the intent unmistakable and costs one selector token.
 *
 * Grid spans are deliberately untouched — the template's `w-node` rules still give each row
 * `span 2` of the 6-column grid, so they stay three-up on desktop and collapse on the template's
 * own breakpoints. No `!important` anywhere: this file loads after the template stylesheet, so
 * equal specificity means later source wins. */
.process-grid > .process-card-small {
  /* Row, not column: icon beside the text. */
  flex-flow: row;
  align-items: center;
  gap: var(--_structure---spacing--medium, 16px);
  /* No panel: drop the fill, the blur and the full border. A single top hairline separates rows
     without boxing them. */
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-top: 1px solid var(--border--primary);
  border-radius: 0;
  /* 36px all round was the bulk of the weight. */
  padding: 14px 0;
  text-wrap: initial;
}

/* The icon keeps its 28px viewBox but renders smaller so the row stays one line tall. */
.process-grid > .process-card-small > .icon,
.process-grid > .process-card-small > .icon svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* The copy is the row's flexible half; slightly tighter than the template's paragraph-medium. */
.process-grid > .process-card-small > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text--tertiary);
}

/* Keep the bold lead-in legible against the dimmed body copy. */
.process-grid > .process-card-small > p .text-strong {
  color: var(--text--secondary);
}

@media screen and (max-width: 767px) {
  /* At the collapsed breakpoint the rows stack in one column; keep the separators so they still read
     as a list rather than a run-on paragraph. */
  .process-grid > .process-card-small {
    padding: 12px 0;
  }
}

/* Testimonial / Roadmap slider: the template's `.testimonial-mask-overflow` keeps
   `overflow: visible` on purpose so the next slides peek out of the 1180px container.
   Nothing upstream clipped that, so the slides reached the document and gave the whole
   page a horizontal scrollbar (measured: scrollWidth 2211px vs clientWidth 1425px).
   Fix at the section, the first full-width ancestor: `overflow-x: clip` — unlike
   `hidden` it is NOT a scroll container, so the container keeps its max-width and its
   auto-centering and the peek still renders up to the viewport edge, but the page can
   no longer scroll sideways. (MDN: overflow-x; Kilian Valkhof, "Do you know about
   overflow: clip?" — `clip` trims overflow without creating a scroll box.) */
.section-large:has(.testimonial-slider) {
  overflow-x: clip;
}

/* The footer legal row is Privacy, read as a tight horizontal pair — the same 12px gap the React footers
   use. The template's own rule is display:flex with grid-column-gap:40px and it STACKS to
   flex-direction:column at max-width:479px; this unlayered rule is loaded after the template stylesheet,
   so (equal specificity, later source) it wins at every width. */
.footer-legal-links {
  flex-direction: row;
  align-items: center;
  grid-column-gap: 12px;
  grid-row-gap: 12px;
}

/* Header "$PEXODUS" link (target="_blank"): the "opens in a new tab" mark — the SVG glyph ALONE. There is
   no chip behind it: no background fill, no border, no circle, no fixed box. Scoped to
   `.nav-link[target="_blank"]`, which in this export is the $PEXODUS link alone, so no other nav item is
   affected, and the mark adds nothing to that link's own box.

   Two layouts:
   - WIDE ROW (>=992px, the export's own collapse breakpoint, and a hover-capable pointer): the glyph
     floats in the whitespace between $PEXODUS and the next label and fades in on hover (pad(16) + the
     container's 4px column-gap + pad(16) = 36px; a 16px glyph at `margin-left:-6px` leaves 10px
     clear either side). TOPS ALIGNED with the sibling text: the text node's own box top measures
     `linkTop + 9px` (`.nav-link`'s `padding: 8px` plus the half-leading of 13px at the template's
     `line-height: 1.5`), so `top: 9px` puts the glyph's top edge exactly on the text's top edge and
     it never bleeds above the text.
   - COLLAPSED COLUMN (<=991px) and any hover-less device: an absolute glyph would land off-screen, so
     it stays a static inline mark. */
.nav-link[target="_blank"] {
  position: relative;
}
/* The "$PEXODUS" new-tab mark: a FULLY-ROUNDED bubble that REPLACES THE CURSOR on hover (same recipe as
   globals.css in Next, so the header is identical everywhere). The pointer position comes from a
   tiny inline script in each export page that writes `--ptx-cursor-x/y` RELATIVE to the link's box.
   NOTE: deliberately NOT wrapped in `(hover: hover)` — that guard was the exact reason this effect
   worked in Next but never appeared on the Webflow home. Touch simply never hovers. */
.nav-new-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius--round, 999px);
  border: 1px solid var(--border--primary);
  background-color: var(--background--primary);
  color: #fff;
}
.nav-new-tab svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}
.nav-link[target="_blank"]:hover {
  cursor: none;
}
.nav-link[target="_blank"] .nav-new-tab {
  position: absolute;
  left: var(--ptx-cursor-x, 50%);
  top: var(--ptx-cursor-y, 50%);
  z-index: 100;
  margin-left: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.nav-link[target="_blank"]:hover .nav-new-tab,
.nav-link[target="_blank"]:focus-visible .nav-new-tab {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* Collapsed menu: no cursor to replace, so the mark is a static inline bubble after the label. */
@media screen and (max-width: 991px) {
  .nav-menu .nav-new-tab {
    position: static;
    opacity: 1;
    transform: none;
    margin-left: 8px;
  }
}

/* Mobile nav (<=991px, the export's own collapse breakpoint): the open menu is a full-width
   popover anchored to the menu-button, wearing the process-card-small surface (1px border,
   large radius, secondary background, 12px blur, inset highlight) instead of the template's
   4px orange bottom border. Padding is 24px top and bottom (mirrored). Scoped to the open
   state so the desktop row is untouched.

   HEIGHT CAP: the menu is a DROPDOWN — it hangs from `top: 100%` of the nav, i.e. it begins
   BELOW the header, not at the top of the screen. So the space it may occupy is the viewport
   MINUS that offset. Capping at plain `100dvh` overshoots by exactly the header height and the
   bottom still falls off-screen. The offset is measured, not guessed, and it is two values
   because the export's banner disappears below 768px:
     - <=767px: banner `display:none`, nav 84px  -> menu starts at 84px
     - 768..991px: banner 41px + nav 92px         -> menu starts at 133px
   The 24px BOTTOM GAP is part of the cap too. This menu is absolutely positioned with `top` set
   and `height: auto`, so `margin-bottom` does NOT shrink it — the gap has to come out of the
   max-height, or the menu's box would reach the viewport edge. Hence `- 84px - 24px` (= 108px)
   and `- 133px - 24px` (= 157px). The `margin-bottom` is kept as the declaration of intent.
   The base height is untouched — a max only engages when the content would exceed it, so normal
   portrait phones/tablets render exactly as before.
   `100vh` is declared first as the fallback, then `100dvh` (dynamic viewport, which shrinks
   with mobile browser chrome) — the same `vh`-then-`dvh` pairing used on the live surface.
   NOTE: do NOT use `calc(100dvh - 100%)` here. The menu's containing block is Webflow's
   `.w-nav-overlay`, whose height is set inline to the PAGE height (~6900px), so `100%` is not
   the header offset — it made the cap negative and collapsed the menu to its 48px padding.
   `overscroll-behavior: contain` stops a flick at the end of the list from scrolling the page
   underneath. */
@media screen and (max-width: 991px) {
  .nav-menu.w-nav-menu[data-nav-menu-open] {
    left: 0;
    right: var(--_structure---section--page, 5%);
    width: auto;
    max-width: none;
    margin-left: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border: 1px solid var(--border--primary);
    border-radius: var(--_structure---radius--large);
    background-color: var(--background--secondary);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 2px #ffffff14, inset 0 .5px .5px #ffffff1f;
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    /* NO visible scrollbar, but scrolling still works. `scrollbar-width: none` (Firefox) and a
       zero-size `::-webkit-scrollbar` (WebKit/Blink) hide the bar; the element remains a scroll
       container, so touch/wheel/keys all still scroll it. This deliberately does NOT use
       `overflow: hidden` (that would make the lower items unreachable). */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-menu.w-nav-menu[data-nav-menu-open]::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

/* >=768px the export shows its banner above the nav (41px) and the nav is 92px -> 133px, plus
   the 24px bottom gap = 157px. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .nav-menu.w-nav-menu[data-nav-menu-open] {
    max-height: calc(100vh - 157px);
    max-height: calc(100dvh - 157px);
  }
}

/* SHORT VIEWPORTS (landscape phones, e.g. 844x390). The cap above keeps the menu on-screen and
   scrollable, but a full-size list in a ~390px-tall window still needs a lot of scrolling. So
   the contents compact: narrower menu (it would otherwise span the whole landscape width),
   tighter vertical padding and smaller type, which lets the whole list fit without scrolling on
   most landscape phones. These are pure overrides — the base values above are unchanged.

   ANCHORING: the base rule sets BOTH `left:0` and `right:5%` with `width:auto`. Adding a
   `max-width` makes the box over-constrained, and CSS resolves that in LTR by honouring `left`
   and DISCARDING `right` — so the menu shrank from its right edge and sat against the left of
   the display instead of under the toggle. `left:auto` puts the right edge back in charge, so
   the narrowed menu stays flush with the menu-button (both are inset by the page gutter).
   With `left:auto` the used width also becomes shrink-to-fit, which gave a different width on
   every screen (measured 200-259px). So the width is stated explicitly: the containing block
   minus the right inset (`5%`, same as the base rule) minus the base rule's 32px left gutter,
   capped at 420px. On a phone narrower than that the gutter is preserved and the menu simply
   gets narrower; on landscape it lands on the 420px cap. */
@media screen and (max-width: 991px) and (max-height: 620px) {
  .nav-menu.w-nav-menu[data-nav-menu-open] {
    left: auto;
    width: calc(100% - 5% - 32px);
    max-width: 420px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .nav-menu.w-nav-menu[data-nav-menu-open] .nav-menu-inner {
    grid-row-gap: 2px;
    row-gap: 2px;
  }
  .nav-menu.w-nav-menu[data-nav-menu-open] .nav-link {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 17px;
  }
  .nav-menu.w-nav-menu[data-nav-menu-open] .nav-perpetuals-toggle {
    padding-top: 8px;
    padding-bottom: 2px;
    font-size: 12px;
  }
  .nav-menu.w-nav-menu[data-nav-menu-open] .nav-perpetuals-item {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 17px;
  }
}

/* Home feature-tab ART (the replaced tab-pane images).
   The Mooni placeholder was a FULL-BLEED image whose warm orange glow was PAINTED INTO ITS PIXELS,
   living on the CARD SURFACE (edges of the pane) rather than hugging any object. Our replacement art is
   a transparent cut-out PNG, so that glow is re-created as a REAL ELEMENT inside the pane:
     - .tab-glow  = an absolutely-positioned child of the pane, BEHIND the image, a warm gradient that
                    fades toward the LEFT (the placeholder glow sat along the left/upper edges).
     - .tab-art   = the cut-out image, right-aligned and vertically centred in the pane, capped at 72%
                    of the pane width, object-fit: contain so it never crops or distorts (true 1:1).
   Deliberately NO filter/drop-shadow on the image: the earlier attempt wrapped the puppy in an outline,
   which is not the effect. Scoped by class so untouched placeholder panes are unaffected.

   THE PANE CLIPS ITS CHILDREN - deliberately, and this MUST stay `hidden`. The dashboard card is a
   SIBLING of .tab-art (layering: glow z0, art z1, dashboard z2) and is positioned to bleed past ONE
   edge of the pane (Tab 1 `left:-48px`; Tab 2 `top:-48px`). The pane's own rounded frame is what trims
   that overhang, so the screenshot reads as sliding out from under the card border. Setting
   `overflow: visible` here (which a previous turn did) lets the cards AND the glow spill onto the page
   background - that is the exact regression this comment exists to prevent. Webflow's `.w-tab-content`
   also clips; it is left at its base `overflow: hidden` for the same reason. */
.tab-pane { position: relative; overflow: hidden; }

/* MOBILE / TABLET PANE HEIGHT - the pane must own its own height once the grid stacks.
   The template's `.tabs` is a 2-column grid whose columns share ONE row, so on desktop the pane's
   `height: 100%` is stretched to the menu column's height and everything is fine. At `<=991px` the
   template collapses the grid to `grid-template-columns: 1fr` - the menu and the content become two
   SEPARATE rows. Every child of panes 1-3 is absolutely positioned (`.tab-glow`, `img.tab-art`,
   `.tab-dash-card`), so the content row has NO in-flow content and its `height: 100%` resolves
   against an auto row: the pane collapsed to ~2px (its borders) and the "3 tab images + dashboard"
   simply did not render. Tab 4 looked fine only because `.pex-tweet` happens to be in flow.
   The fix is an explicit aspect box on the pane, matching the desktop composition (581x610), so the
   percentage-sized art and dashboard keep their proportions instead of needing new numbers.
   Scoped to panes 1-3: Tab 4's `.pex-tweet` is IN FLOW, so that pane already derives its own height
   and must not be stretched by a ratio. Desktop is untouched - this is scoped to the template's own
   stacking breakpoint. */
@media screen and (max-width: 991px) {
  .tab-pane:not([data-w-tab="Tab 4"]) {
    height: auto;
    aspect-ratio: 581 / 610;
  }
}

.tab-pane > .tab-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 42%, rgba(255, 76, 31, .42) 0%, rgba(255, 76, 31, .16) 34%, rgba(255, 76, 31, 0) 68%),
    linear-gradient(90deg, rgba(255, 92, 51, .20) 0%, rgba(255, 92, 51, 0) 55%);
}

.tab-pane > img.tab-art {
  position: absolute;
  right: 0;                         /* aligned to the pane's right edge */
  bottom: 0;                        /* flush to the pane's bottom edge */
  top: auto;
  transform: none;
  z-index: 1;
  height: 65%;                      /* 50% + 30% of that (the user asked for +30%) */
  width: auto;                      /* width follows the natural aspect - never stretched */
  max-width: 72%;
  object-fit: contain;
  pointer-events: none;
}

.tab-pane[data-w-tab="Tab 2"] > img.tab-art {
  height: 52%;                      /* 65% reduced by 20% (65 * 0.8); right/bottom anchor unchanged */
}

/* TAB 3 (the live stage): the stage photo, placed like tabs 1/2 - RIGHT-aligned, anchored to the
   BOTTOM, capped at 72% of the pane width. The pane stays at its normal 610px height: 72% of 581px
   is 418px wide, which at this 456x517 crop is ~474px tall, so it FITS the pane and nothing is
   cropped.
   - the IMAGE carries `z-index: 1` (the user's spec). No mask: the art is a plain rectangle again
     (the elliptical mask that used to curve its edges away was removed on request).
   - the SHADOW keeps the warm-orange glow language of tabs 1/2 and is pinned `inset: 0` so the
     gradient's bright origin lands on the pane edge. It sits at `z-index: 0` - BEHIND the art, filling
     the empty left band the 72%-wide photo leaves. It is ALIVE via `background-position` + opacity
     (never a transform, which could slide off an edge), and the motion is unconditional: the
     reduced-motion opt-out was removed on request. */
.tab-pane[data-w-tab="Tab 3"] > img.tab-art {
  position: absolute;
  right: 0;                         /* aligned to the pane's RIGHT edge (as tabs 1/2) */
  bottom: 0;                        /* same bottom position - flush to the pane's bottom */
  top: auto;
  left: auto;
  transform: none;
  width: 72%;
  max-width: 72%;
  height: auto;
  object-fit: contain;
  z-index: 1;
}
.tab-pane[data-w-tab="Tab 3"] > .tab-glow {
  inset: 0;                         /* anchor the gradient on the pane edge (as tabs 1/2) */
  z-index: 0;                       /* BEHIND the art (the user's spec) - fills the empty left band */
  background-size: 135% 135%;
  background-repeat: no-repeat;
  background-position: 0% 50%;
}

/* TAB 3's dashboard: anchored BOTTOM with a POSITIVE left offset of 32px, so it sits inside the pane
   (not bleeding past the left edge). `z-index: 2` like the other dashboards, above the art (1) and
   the glow (0). */
.tab-pane[data-w-tab="Tab 3"] > .tab-dash-card {
  top: auto;
  bottom: -24px;
  left: 32px;
}

/* The DASHBOARD shot - the app screenshot, nested in the SAME surface the live stage nests its
   "market cap + rows" panel in: a bare card (rounded, --background--secondary, inset highlight,
   backdrop blur) with the image carrying its own inset margin. That is the `mx-1 my-1
   rounded-[5px] bg-background-secondary` idiom from src/components/live/market-cap.tsx, expressed in
   the export's tokens (--background--secondary = the white-6 surface, one step up from the pane's
   own --background--primary white-4).
   Placement, per pane:
     - BASE (Tab 1): aligned LEFT, nudged -48px further left, dropped 32px from the pane top.
     - TAB 2 (override below): horizontally centred (left 50% + translateX(-50%), NO negative left
       offset), raised to top -24px.
   Both are capped at 72% of the pane width, z-index 2 so the card sits above the glow (0) and the
   art (1).
   The card is positioned to bleed past ONE edge; the PANE'S OWN ROUNDED FRAME trims that overhang
   (`.tab-pane { overflow: hidden }` - see the block above), so the dashboard reads as sliding out
   from under the card border rather than floating loose on the page. */
.tab-pane > .tab-dash-card {
  position: absolute;
  top: 32px;
  left: -48px;
  z-index: 2;
  max-width: 72%;
  border-radius: var(--_structure---radius--small, 8px);
  background-color: var(--background--secondary);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px #ffffff14, inset 0 .5px .5px #ffffff1f;
  padding: 4px;                     /* the market-cap nested-card inset, on ALL FOUR sides */
  overflow: hidden;
  pointer-events: none;
}

/* Tab 2's dashboard: horizontally MIDDLE (no negative left), lifted to top -24px.
   `width: 72%` is required: an abs-positioned box with `left: 50%` and no width shrink-to-fits
   against the space to the RIGHT of 50%, which collapsed it to ~half the size Tab 1's card gets.
   The definite width keeps Tab 2's card the SAME size as Tab 1's, just centred. */
.tab-pane[data-w-tab="Tab 2"] > .tab-dash-card {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
}
.tab-pane > .tab-dash-card > img.tab-dash {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;                        /* the inset now comes from the card's own 4px padding */
  border-radius: calc(var(--_structure---radius--small, 8px) - 3px);
}

/* TAB 4 - the live tweet card (1:1 with the "Pexodus Approved." reference, minus the dog).
   A self-contained HTML card in the export's own surface recipe (rounded, --background--secondary,
   1px --border--primary, inset highlight, blur) so it reads like the nested panels elsewhere.
   It fills the pane and is scroll-safe; the composer row is the only interactive part. */
/* NOTE the `.w--tab-active` in the selector: Webflow hides inactive panes with
   `.w-tab-pane { display:none }` and reveals the active one. A bare `.tab-pane[data-w-tab="Tab 4"]`
   would out-specify that and show Tab 4 even when another tab is selected, so the flex layout is
   scoped to the ACTIVE pane only. */
.tab-pane[data-w-tab="Tab 4"].w--tab-active {
  display: flex;                    /* the card centres in the pane */
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pex-tweet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  padding: 22px;
  border: 1px solid var(--border--primary, #ffffff0f);
  border-radius: var(--_structure---radius--medium, 16px);
  background-color: var(--background--secondary, #ffffff0f);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px #ffffff14, inset 0 .5px .5px #ffffff1f;
}

.pex-tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pex-tweet-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}
.pex-tweet-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pex-tweet-name {
  color: var(--text--primary, #fff);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.pex-tweet-handle {
  color: var(--text--tertiary, #ffffffa3);
  font-size: 13px;
  line-height: 1.3;
}

.pex-tweet-meta {
  margin: 0;
  color: var(--text--tertiary, #ffffffa3);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Engagement row: a hairline rule above, matching the reference's divider. */
.pex-tweet-stats {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border--primary, #ffffff0f);
  color: var(--text--tertiary, #ffffffa3);
  font-size: 12.5px;
}
.pex-tweet-stats b {
  color: var(--text--primary, #fff);
  font-weight: 600;
}

/* The composer row. NO pill: the bordered/filled box that used to wrap it is gone, so the text
   starts on the SAME horizontal edge as the card's other siblings (head / meta / stats all sit on
   the .pex-tweet 22px padding). The send button is the header's new-tab pill. */
.pex-compose {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* The Lexical editor surface. X's composer is a rich-text editor (Lexical), so this is a
   contenteditable div, not an <input>. */
.pex-compose-editor {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text--primary, #fff);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Lexical theme hooks (set in createEditor). */
.pex-compose-p {
  margin: 0;
}
.pex-compose-bold {
  font-weight: 700;
}
.pex-compose-send {
  flex: none;
  cursor: pointer;
}
.pex-compose-send:hover {
  color: var(--text--brand, #ff4c1f);
  border-color: var(--text--brand, #ff4c1f);
}

/* ---- Hero art (replaces the Webflow Hero Background.svg + Stars.webp) ---- */

/* The art is a CSS BACKGROUND, not an <img>, and that is deliberate.
 *
 * This mirrors Ray J.'s popover backdrop, which is the implementation that
 * visibly works: `background-size: 100% 100%` maps ONE DITHER CELL TO ONE CSS
 * PIXEL. An <img> with `object-fit: cover` resamples the bitmap to fit the box,
 * which averages neighbouring cells together and turns the 4x4 ordered pattern
 * back into a flat wash — technically "applied", visually invisible. That is why
 * the earlier <img> approach looked like it did nothing.
 *
 * `cover` is still the right fit for the ART (crop, never distort), so the box
 * uses background-size: cover for geometry while `image-rendering: pixelated`
 * keeps the cells crisp. Right edge pinned so the crop happens on the left. */
.background-lights .hero-eclipse {
  position: absolute;
  inset: 0;
  /* The dithered variants are stored SMALL (640x360) with one dither cell per pixel
     and upscaled here, because a 1:1 1920-wide bitmap gets downscaled by `cover`
     and averages the cells back into a photograph. `pixelated` is what makes that
     upscale produce hard squares instead of blurred gradients.
     See scripts/dither-variants.py.

     The UNDITHERED hero (`none`, the default) is a full-resolution 1920x1080 render
     and must NOT be pixelated: nearest-neighbour on a smooth 1080p image looks
     crunchy for no reason. The rule below only applies `pixelated` when the page is
     actually serving a dithered variant. */
  background-size: cover;
  /* `100% 0`, NOT `100% 50%`, when a dithered variant is active.
   *
   * `cover` renders the 640x360 art at 1280x720 inside a 633px-tall box, so the
   * vertical crop offset at `50%` is (720 - 633) / 2 = 43.5px — a HALF PIXEL.
   * Nearest-neighbour sampling then straddles every cell boundary vertically:
   * measured on the live page, 2x2 blocks held 98% horizontally but only 26-38%
   * vertically, so the crosshatch looked streaky instead of square. Anchoring to
   * the top makes the offset exactly 0 and every cell lands on whole pixels —
   * re-measured at the same 633px height: 98% horizontal, 100% vertical.
   *
   * For the undithered hero the offset is irrelevant (no cells to align), so one
   * value serves both. */
  background-position: 100% 0;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Pixelate ONLY the dithered variants. `none` is full-resolution and stays smooth. */
.background-lights .hero-eclipse[data-dither]:not([data-dither="none"]) {
  image-rendering: pixelated;
}

/* The eclipse glow sits ABOVE the art so the warm top edge still reads.
   It keeps its own shape - a 1440x282 near-black plate with a warm arc along the
   top - so it stays pinned to the top edge at natural height. Stretching it to
   the full viewport height (as the first pass did) repaints the whole hero in
   flat orange and buries the artwork. Its own artwork is near-black with a warm
   arc, so painted normally it lays a flat band over the art and leaves a hard
   seam where it ends (measured: y=376 at 1920x1080). `screen` is the identity
   for black, so the plate drops out and only the warm glow adds. */
.background-lights .bg-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Stars.webp is painted from the Webflow template CSS on both of these; the
   template stylesheet comes from Webflow's CDN and cannot be edited, so it is
   overridden here. The four statistic cards keep the class but paint nothing.

   `none` alone was not enough: the template rule loads a remote image, so the
   browser still fetched it even though it painted nothing. `background: none`
   resets the whole shorthand (image included) and `!important` beats the
   template's own `background-image` regardless of source order. */
.page-wrapper,
.stars {
  background: none !important;
  background-image: none !important;
}

/* THE HERO ART WAS NOT RENDERING AT ALL — this is the fix.
 *
 * `.background-lights` gets `position: absolute; inset: 0% 0% auto` from the
 * template, i.e. top/left/right 0 and BOTTOM AUTO, so its height comes from its
 * in-flow children. `.bg-lights` (the eclipse glow <img>) is taken OUT of flow by
 * the rule below, which left the box with no in-flow child at all: measured
 * height 0px at a 1280px viewport. `.hero-eclipse` is `inset: 0` inside it, so it
 * resolved to 1280x0 and the artwork was never painted — the hero rendered flat
 * black with the dither technically present and visually absent.
 *
 * Pinning the box to the viewport gives the absolutely-positioned child a real
 * box to fill. Verified: height 0 -> 633px at 1280x633, art visible. */
.background-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
  width: 100%;
}

/* ---- Store badges, beside the Pexodus wordmark ---------------------------- */

/* Logo first, then the two store cards, as one lockup.
 *
 * THE CONSTRAINT IS WIDTH, NOT PREFERENCE. Webflow sizes `.nav-left` with
 * `flex: 1 0 0%`, so it gets an equal third of the bar (~300px at 1280 next to a
 * 504px menu and 300px right side). The logo takes 111px of that, leaving ~189px;
 * two badges at 32px tall need ~224px. An earlier `display:none` below 1400px hid
 * the overflow instead of solving it — which is why the badges "didn't appear" on
 * every normal laptop.
 *
 * `flex-basis: auto` lets the box take its CONTENT width instead of an equal
 * share, and `flex-shrink: 0` stops the flex line from compressing the artwork.
 * The menu absorbs the remainder; it has slack at these widths.
 */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: max-content;
}

.hero-store-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hero-store-badges a {
  display: inline-flex;
  border-radius: 5px;
  transition: opacity 0.3s, transform 0.3s;
}

.hero-store-badges a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* Scaled by HEIGHT only, so the official aspect ratios (180x53, 135x40) are kept.
   32px matches the header row; the intrinsic ratio sets the width. */
.hero-store-badges img {
  display: block;
  height: 32px;
  width: auto;
}

/* Below 992px Webflow collapses the nav into a hamburger; the lockup goes with it,
   because there is genuinely no room beside the menu button. */
@media (max-width: 991px) {
  .nav-left .hero-store-badges {
    display: none;
  }
}

/* ---- Header: justify content BETWEEN -------------------------------------- */

/* The Webflow template centres the whole nav as one block:
     .navigation-container { justify-content: center; max-width: 1152px }
   so at wide viewports the logo is inset by half the leftover space instead of
   sitting on the container's left edge, and Create stops hugging the right edge.
   Measured at 1920: container 384→1536, items total 1104px, leaving 48px that
   `center` splits into 24px either side. `space-between` pins the lockup left and
   Create right, with the menu absorbing the slack between them. */
.navigation-container {
  justify-content: space-between;
}

/* ---- Hero logo strip: no shadow, no edge darkening ------------------------ */

/* The Webflow template lays a gradient over the launchpad carousel:
     .hero-logo-overlay { background: linear-gradient(90deg, #050100, transparent
       14%, transparent 86%, #050100) }
   which is what reads as a dark smudge behind the logos at both ends. It is a
   cosmetic edge fade, not a shadow, and it is removed here so the strip sits on
   the hero art cleanly. Any residual softness on individual marks is in the PNGs
   themselves, which are transparent PNGs and are not restyled. */
.hero-logo-overlay {
  display: none;
}

/* Nothing in this strip should inherit a shadow or blur from the template. */
.hero-logo-wrapper,
.hero-logo-wrapper .carousel-horizontal,
.hero-logo-wrapper .carousel-horizontal-content,
.hero-logo-wrapper .icon,
.hero-logo-wrapper .icon img {
  box-shadow: none;
  text-shadow: none;
  filter: none;
}

/* ---- Hero: two columns, natural-height dashboard, aligned on their bottom edges ------ */

/* THE HERO IS TWO COLUMNS.
 *
 * LEFT — the copy (eyebrow / h1 / paragraph / buttons) and, below it, the "Introducing
 * competition from 20+ launchpads" strip. Left-aligned, bled 64px left so the text starts at the
 * viewport edge while the header stays inset at 64 — the "narrower header, wider hero" offset.
 *
 * RIGHT — the tabbed dashboard. NATURAL HEIGHT: no viewport-sized box, no clip, no negative
 * offsets. It is simply the card's own height. The two columns are aligned on their BOTTOM edges
 * with `align-items: end`, which is the only alignment that matters here.
 *
 * The strip is pushed RIGHT by a negative right margin so it slides UNDER the dashboard column and
 * its logos appear to emerge from beneath it. That is why the dashboard carries a z-index and an
 * opaque background, and why the strip is first in the stacking order.
 *
 * Scoped with `:has()` because the export gives the hero <section> no class of its own. Everything
 * is nested under `.hero-dash`, which exists only here; the feature section's
 * `.tab-pane` / `.tab-dash-card` rules are untouched.
 */
@media screen and (min-width: 992px) {
  .section-large:has(> .container-medium > .hero-dash) > .container-medium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--_structure---spacing--2x-large, 40px);
    /* THE WRAPPER IS A TALL BOX; only the SECOND COLUMN is bottom-pinned.
     *
     * `align-items: end` here was wrong: it aligns EVERY item to the floor, so the copy was
     * dragged down with the dashboard and the title floated ~134px below the nav with dead space
     * above it. The wrapper's job is only to be tall enough to have a floor — the left column
     * starts at the top (`align-items: start`) and `.hero-dash` pins itself with
     * `align-self: end`.
     *
     * The grid's bottom edge lands exactly on the 100vh floor via `min-height`. `--hero-band-top`
     * is measured by public/hero-dash.js. Note there is deliberately NO local
     * `--hero-band-top` declaration: declaring it here would SHADOW the value the script sets on
     * <html> and the fallback would win forever (measured: <html> read 165px, the grid 125px, and
     * the height never updated). The fallback lives inside the `var()` call. */
    min-height: calc(100vh - var(--hero-band-top, 165px));
    align-items: start;
    /* Cancel the section's 96px top padding but keep a 40px gutter under the nav. */
    margin-top: calc(-1 * (var(--_structure---section--large, 96px) - var(--_structure---spacing--2x-large, 40px)));
  }

  /* --- LEFT COLUMN ----------------------------------------------------------------- */
  /* `.hero-title` and `.hero-logo-wrapper` are SIBLINGS (verified in the DOM:
   * `.container-medium` has exactly three element children — `hero-title`, `hero-dash`,
   * `hero-logo-wrapper`). They differ in ONE respect: only the copy bleeds left. The strip stays
   * capped at the header's own left edge, so the two rules are separate. */
  .section-large:has(> .container-medium > .hero-dash) > .container-medium > .hero-title {
    grid-column: 1;
    /* BLEED LEFT PAST THE HEADER.
     * A negative `margin-left` ALONE is wrong: it also pulls the box's right edge in, because the
     * grid track is a fixed width (the gutter blew out to 168px when this was tried). The bleed
     * must WIDEN the box, so `width: calc(100% + 64px)` grows it leftward from its own left edge
     * while `justify-self: start` pins the track's right edge.
     * 64px, not 128: the container starts at x=64, so 64 lands the text at exactly x=0 (flush to
     * the viewport). 128 pushed it to -64 and `.page-wrapper`'s `overflow: hidden` genuinely cut
     * the eyebrow and the h1's first glyphs off. */
    /* BLEED LEFT BY A FIXED 64px PAST THE HEADER — "header narrower than hero".
     *
     * The container is `max-width: 1180px` CENTRED inside `section-large`'s 5% padding, so its own
     * left gutter is `max(5vw, (100vw - 1180px) / 2)`: 58px @1152, 64 @1280, 130 @1440,
     * **370 @1920**. Bleeding by that WHOLE gutter (an earlier attempt) drives the copy to x=0 at
     * 1920 — jammed against the screen edge and 370px away from the nav, which reads as broken
     * rather than as an offset.
     *
     * The offset is meant to be a small, constant step: the hero's text starts 64px left of the
     * header's, at any width. So bleed `min(64px, gutter)`:
     *   - wide screens  → exactly 64px left of the nav (the classic narrower-header look);
     *   - narrow screens → the gutter itself, so the bleed never goes past x=0 and gets clipped
     *     by `.page-wrapper` (at 1152 the gutter is only 58px, so the step is 58).
     * `width` grows by the same amount, keeping the RIGHT edge on the grid track so the 40px
     * gutter to the dashboard is untouched. */
    --hero-left-gutter: max(5vw, (100vw - 1180px) / 2);
    /* THE BLEED MUST NEVER EAT THE WHOLE GUTTER.
     *
     * `min(64px, gutter)` looked right at 1440+ but was wrong on a 13" MacBook: at 1280 the gutter
     * is exactly 64px, so the bleed consumed all of it and the copy landed at x=0 — flush against
     * the screen edge with no margin at all, while the logo strip (which does not take the bleed)
     * stayed at 64. Measured: title 0 / nav 64 at 1280 versus title 66 / nav 130 at 1440.
     *
     * Reserving a 24px margin fixes it at every width:
     *   gutter 64  (1280) -> bleed 40 -> text at 24
     *   gutter 130 (1440) -> bleed 64 -> text at 66
     *   gutter 370 (1920) -> bleed 64 -> text at 306
     * So the text always keeps a real margin, and on wide screens the offset from the nav stays
     * the intended constant 64px. */
    --hero-left-bleed: min(64px, calc(var(--hero-left-gutter) - 24px));
    width: calc(100% + var(--hero-left-bleed));
    justify-self: start;
    margin-left: calc(-1 * var(--hero-left-bleed));
    margin-right: 0;
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  /* THE STRIP IS NOT BLEED LEFT — it stays at the header's left edge (x=64), capped as it was
   * before. It DOES still bleed right so its logos pass behind the dashboard card.
   * The width must state the right bleed: an explicit `width` overrides `margin-right`, which is
   * exactly why the -240px did nothing until the width said so too. */
  .section-large:has(> .container-medium > .hero-dash) > .container-medium > .hero-logo-wrapper {
    grid-column: 1;
    width: calc(100% + 240px);
    justify-self: start;
    margin-left: 0;
    margin-right: -240px;
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  /* Un-centre the template's centred wrappers. `.column-center` is the real culprit for the
   * eyebrow — it sets `text-align/align-items/justify-content: center`, so overriding the badge
   * alone left the pill floating mid-column. */
  .section-large:has(> .container-medium > .hero-dash) .hero-title .column-medium,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .column-center {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .section-large:has(> .container-medium > .hero-dash) .hero-title .text-balance,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .max-width-x-large,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .max-width-small,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .badge-primary,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .hero-button-wrapper,
  .section-large:has(> .container-medium > .hero-dash) .hero-logo-wrapper p {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  /* `text-align` on the container does not reach the paragraph: `.text-balance` and the
   * `max-width-*` wrappers carry their own alignment from the template's centred hero. */
  .section-large:has(> .container-medium > .hero-dash) .hero-title p,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .text-balance *,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .h1-heading {
    text-align: left;
  }

  /* --- THE "INTRODUCING COMPETITION" STRIP ------------------------------------------ */
  /* It sits UNDER the copy in the same column and runs BEHIND the dashboard: a negative RIGHT
   * margin pulls it across into column 2, so its logo carousel emerges from beneath the card.
   * `z-index: 0` (below `.hero-dash`'s 1) plus the card's opaque background produce that. */
  .section-large:has(> .container-medium > .hero-dash) > .container-medium > .hero-logo-wrapper {
    grid-row: 2;
    position: relative;
    z-index: 0;
    /* WIDTH IS OVERRIDDEN HERE, and it has to be. The shared rule above sets an explicit
     * `width: calc(100% + 64px)`, and an explicit width wins over `margin-right` — so the strip's
     * right edge stayed at 620 and the -240px always failed silently. Re-stating the width with
     * BOTH bleeds included is what actually makes it slide under the card. */
    width: calc(100% + 64px + 240px);
    /* The template gives this strip `margin-top: 200px` and `padding: 56px 0`. All of it is
     * removed: no padding on any side, and 48px of margin above so it sits just under the buttons. */
    margin-top: 48px;
    padding: 0;
    /* BEHIND THE DASHBOARD. The strip is bled right so the card covers its right-hand end. */
    margin-right: -240px;
    /* A generous gap between the caption line and the logo carousel. */
    grid-row-gap: var(--_structure---spacing--large, 24px);
    row-gap: var(--_structure---spacing--large, 24px);
  }
  .section-large:has(> .container-medium > .hero-dash) .hero-title {
    grid-row: 1;
    /* The template paces the hero at 40px; a step tighter keeps the strip in view. */
    grid-row-gap: var(--_structure---spacing--large, 24px);
    row-gap: var(--_structure---spacing--large, 24px);
  }

  /* --- RIGHT COLUMN: the dashboard -------------------------------------------------- */
  .hero-dash {
    grid-column: 2;
    grid-row: 1 / span 2;
    /* NATURAL HEIGHT. No `height`, no `calc(100vh …)`, no `min-height` — the card is as tall as
     * its own content. `align-self: end` puts its bottom edge level with the left column's. */
    align-self: end;
    position: relative;
    /* ABOVE the logo strip so the strip reads as passing underneath it. */
    z-index: 1;
    /* RIGHT EDGE 176px off the viewport: the container's right edge is 1216 at a 1280 viewport, so
     * -240px lands the card's right edge at 1456 = 1280 + 176. */
    margin-right: -240px;
    margin-top: var(--_structure---spacing--2x-large, 40px);
    /* 64px ABOVE THE 100vh FLOOR.
     *
     * The grid's bottom edge is now on the floor (its `min-height` is `100vh - --hero-band-top`),
     * and this card is `align-self: end`, so a POSITIVE bottom margin lifts it exactly 64px off
     * that floor — the same visual result as `bottom: 64px`, but expressed as a margin because
     * `position: absolute` would take the card out of flow and it could no longer size the column.
     * Positive = up from the floor. */
    margin-bottom: 64px;
    align-self: end;
  }
  /* The card surface — the repo's nested-card idiom, same as `.tab-dash-card`. Fully rounded:
   * with natural height there is no cut-off edge to square off. */
  .hero-dash-frame {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: var(--_structure---radius--x-large, 24px);
    background-color: var(--background--secondary);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 2px #ffffff14, inset 0 .5px .5px #ffffff1f;
  }

  .hero-dash-stage {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--_structure---radius--large, 16px) - 2px);
    background-color: var(--background--tertiary, #0b0202);
    /* The stage takes the ACTIVE SHOT'S aspect (published by hero-dash.js) so `object-fit: cover`
     * is an exact fit and nothing is cropped. The three shots are NOT the same shape: 01 and 03
     * are 840x525 (1.600) but 02 is 840x599 (1.402), so a single fixed ratio would crop one tab. */
    aspect-ratio: var(--hero-dash-ratio, 840 / 525);
  }

  .hero-dash-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
  }
  .hero-dash-img.is-active {
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-dash-img {
      transition: none;
    }
  }
}

/* --- The tab row: ABOVE the images, inside the card -------------------------------- */
.hero-dash-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background-color: var(--background--primary);
  box-shadow: inset 0 1px 2px #ffffff0f;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-dash-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text--quartenary);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms, background-color 200ms;
}
.hero-dash-tab:hover {
  color: var(--text--secondary);
}
.hero-dash-tab.w--current {
  color: var(--text--primary);
  background-color: var(--background--secondary);
}
.hero-dash-tab:focus-visible {
  outline: 2px solid var(--text--brand, #ff4c1f);
  outline-offset: 2px;
}

/* --- Mobile / tablet: stacked, dashboard bleeds 96px past the right edge ------------ */
@media screen and (max-width: 991px) {
  .section-large:has(> .container-medium > .hero-dash) > .container-medium {
    display: flex;
    flex-direction: column;
  }

  /* The desktop un-centring lives in a `min-width` query, so the template's centred hero comes
   * back below 992px — including `.column-center`, which is what kept re-centring the EYEBROW on
   * mobile after the desktop fix. Repeat the whole un-centring here, ancestor included. */
  .section-large:has(> .container-medium > .hero-dash) .hero-title,
  .section-large:has(> .container-medium > .hero-dash) .hero-logo-wrapper {
    text-align: left;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
  .section-large:has(> .container-medium > .hero-dash) .hero-title .column-medium,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .column-center {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .section-large:has(> .container-medium > .hero-dash) .hero-title p,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .text-balance,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .text-balance *,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .h1-heading,
  .section-large:has(> .container-medium > .hero-dash) .hero-logo-wrapper p {
    text-align: left;
  }
  .section-large:has(> .container-medium > .hero-dash) .hero-title .max-width-x-large,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .max-width-small,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .badge-primary,
  .section-large:has(> .container-medium > .hero-dash) .hero-title .hero-button-wrapper,
  .section-large:has(> .container-medium > .hero-dash) .hero-logo-wrapper {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  /* THE "INTRODUCING COMPETITION" STRIP: no padding at all, 48px above it.
   *
   * This was only in the `min-width: 992px` block, so mobile kept the template's `padding: 56px 0`
   * and `margin-top: 200px` — a 250px hole above the logos. Stated here as well, which is what
   * makes it apply on mobile. */
  .section-large:has(> .container-medium > .hero-dash) .hero-logo-wrapper {
    margin-top: 48px;
    padding: 0;
  }

  /* THE DASHBOARD BLEEDS 96px PAST THE RIGHT EDGE ON MOBILE, retaining its fixed column width.
   * `width: 100%` plus a negative right margin keeps the card the same size and slides it over the
   * edge, so the tab row keeps its normal pill sizing instead of being squeezed.
   * `.page-wrapper`'s `overflow: hidden` trims it — check `scrollWidth === innerWidth`. */
  .hero-dash {
    position: relative;
    /* In a flex COLUMN, `align-self: stretch` makes the item fill the cross axis, and a negative
     * `margin-right` then just shrinks nothing — the item still ends at the container's edge
     * (measured: right edge 19px INSIDE the viewport instead of 96px past it). Taking the item out
     * of the stretch and giving it an explicit width wider than the container is what produces a
     * real bleed. */
    align-self: flex-start;
    width: calc(100% + 96px);
    margin-top: clamp(40px, 8vw, 72px);
    margin-left: 0;
    margin-right: 0;
  }
  .hero-dash-frame {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px;
    border-radius: var(--_structure---radius--large, 16px);
    background-color: var(--background--secondary);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 2px #ffffff14, inset 0 .5px .5px #ffffff1f;
  }
  .hero-dash-stage {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--_structure---radius--medium, 12px) - 2px);
    background-color: var(--background--tertiary, #0b0202);
    aspect-ratio: var(--hero-dash-ratio, 840 / 525);
  }
  /* The card bleeds past the right edge, so a tab sitting in the bled part is unreachable
   * (measured: the "Live" pill ended outside the viewport at both 390 and 768). Inset the tab ROW
   * by the same 96px so all three stay on screen; the image underneath still bleeds. */
  .hero-dash-tabs {
    margin-right: 96px;
  }
  .hero-dash-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
  }
  .hero-dash-img.is-active {
    opacity: 1;
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-dash-img {
      transition: none;
    }
  }
}


/* ---- The hero background is OFF ------------------------------------------------ */

/* `.background-lights` holds BOTH the hero artwork (`.hero-eclipse`) AND the eclipse glow plate
 * (`.bg-lights`), so hiding the band switches the whole hero backdrop off rather than leaving a
 * stray glow behind.
 *
 * This does NOT disturb the dashboard's flush-to-floor maths: the "floor" is 100vh measured from
 * the DOCUMENT top by `public/hero-dash.js`, not a measurement of this element. Nothing else in
 * this file positions against the band (checked — the only other references are the
 * `.hero-eclipse` / `.bg-lights` rules themselves).
 *
 * To keep the warm glow while the artwork stays off, target `.hero-eclipse { display: none }`
 * instead of the band. */
.background-lights {
  display: none;
}

/* ---- NO SCROLL-REVEAL FADE ANYWHERE ON THE PAGE --------------------------------- */

/* Every `[data-w-id]` element in this Webflow export is an IX2 interaction target. The runtime
 * writes INLINE `opacity: 0` and `transform: translate3d(0, 16px, 0)` onto each one and fades the
 * block in when a scroll trigger fires.
 *
 * That is pure delay on content that is already in the DOM and already painted — and when the
 * trigger does not fire (a refresh that restores scroll position, reduced motion, a slow tunnel,
 * an embedded viewport) the block stayed INVISIBLE. That is the "I saw it for one second, then it
 * disappeared" report recorded for the footer, and the same 16px translate silently biased the
 * hero logo strip's bottom edge.
 *
 * ONE rule, all 28 targets, no JS, no per-element list, no rAF loop — this is the efficient form.
 * `!important` is required because IX2 sets INLINE styles, which otherwise win over any sheet.
 *
 * NOT scoped to `.page-wrapper`: measured, the reveal targets are SECTIONS that sit as direct
 * children of `<body>`, outside the wrapper (21 of the 28 were still at `opacity: 0` when this was
 * scoped under it). Scope to the body instead.
 *
 * `.header` is EXCLUDED deliberately: the nav's dropdown and chevron hover motion run on
 * transforms too, and freezing them would break a working interaction. Nothing in the header is a
 * scroll-reveal target. */
body [data-w-id]:not(.header *) {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---- "Pexodus looks (pepe) ...familiar?" — the inline Pepe pill ------------------- */

/* A FULLY ROUNDED WHITE PILL around the Pepe face, sitting inline inside the h3.
 *
 * Sizing is in `em`, not px, so the pill scales with the heading at every breakpoint — the h3 is
 * a clamp() and a fixed-pixel pill would drift out of proportion on smaller screens.
 *
 * `vertical-align` is nudged so the pill's optical centre sits on the text's x-height rather than
 * its baseline; without it the face hangs low next to the lowercase letters.
 *
 * The image carries `alt=""` semantics via `aria-hidden` on the wrapper: it is decorative, and a
 * screen reader should read the sentence as "Pexodus looks … familiar?" without announcing "Pepe".
 */
.pepe-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Optical centring on the x-height. -0.12em hung the face low next to the lowercase letters;
   * -0.08em lines its centre up with theirs. */
  vertical-align: -0.08em;
  margin: 0 0.12em 0 0.16em;
  padding: 0.09em;
  border-radius: 999px; /* fully rounded at any height */
  background-color: #fff;
  /* A hairline edge keeps the white pill from bleeding into a white background on light displays
     and gives it definition against the dark hero. */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.pepe-pill-icon {
  display: block;
  /* Slightly smaller so the pill does not push the heading onto a third line at 1440. */
  width: 0.95em;
  height: 0.95em;
  /* The source is 400x326 (wider than tall); `contain` keeps the frog undistorted inside the
     square box instead of stretching its face. */
  object-fit: contain;
  border-radius: 999px;
}

@media screen and (max-width: 479px) {
  /* The heading is smallest here; a slightly larger pill keeps the frog legible. */
  .pepe-pill-icon {
    width: 1.15em;
    height: 1.15em;
  }
}

/* ---- Footer: back-to-top ---------------------------------------------------------- */

/* A bare upward arrow under the footer blurb, in the same column.
 *
 * `.footer-heading` is already `flex-flow: column` with a 16px row gap and `max-width: 256px`, so
 * this lands directly beneath the paragraph with no positioning and no extra wrapper — it inherits
 * the column's width and alignment.
 *
 * No text, per the request: the label lives in `aria-label` for screen readers only. The glyph is
 * the house up-arrow, the same path the nav Perpetuals items use (`M12 19V5` + `M5 12l7-7 7-7`,
 * 24x24, stroke 2.5, round caps), so it reads as the same component language rather than a new icon.
 *
 * Sized to a 36px hit target while the glyph stays 18px — a bare 18px link is a poor tap target, and
 * `padding` inside the box keeps the arrow visually the same size. */
.footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;      /* the column stretches children; keep the box tight to the glyph */
  width: 36px;
  height: 36px;
  margin-top: 4px;
  border: 1px solid var(--border--primary);
  border-radius: 999px;
  background-color: transparent;
  color: var(--text--tertiary);
  text-decoration: none;
  flex: none;
  transition: color 200ms, border-color 200ms, background-color 200ms;
}

.footer-top svg {
  width: 18px;
  height: 18px;
  flex: none;
  /* Nudge the glyph onto the optical centre of the circle; the path's stroke sits 0.5px low. */
  display: block;
}

.footer-top:hover {
  color: var(--text--primary);
  border-color: var(--border--secondary);
  background-color: var(--background--secondary);
}

.footer-top:focus-visible {
  outline: 2px solid var(--text--brand, #ff4c1f);
  outline-offset: 2px;
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .footer-top {
    transition: none;
  }
}
