/* Home hero, Wurmhole/Wurmdrive bullets, glass plugins box (ported from mock C 2026-11-08). */
/* Product-free hero study. All rules belong to this hero. */
.rw-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 72px;
  background: #14051d;
  color: #f2eade;
  font-family: Manrope, sans-serif;
}
.rw-hero .rw-frame {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 72px);
  padding: 3vw 5.2vw 2.2vw;
}
.rw-hero .rw-setting {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: none;
  transform: scaleX(-1);
  pointer-events: none;
}
.rw-hero .rw-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #14051df5 0%, #14051de8 37%, #14051d30 58%, transparent 72%);
  pointer-events: none;
}
.rw-hero p { margin: 0; letter-spacing: normal; }
.rw-hero a { color: inherit; text-decoration: none; }
.rw-hero .rw-copy, .rw-hero .rw-products { width: 47%; }
.rw-hero .rw-eyebrow {
  margin-bottom: 1.35vw;
  font-size: clamp(11px, .72vw, 28px);
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #e4bfd8;
}
.rw-hero h1 {
  margin: 0;
  font: 500 5.2vw/1.02 Antonio, sans-serif;
  letter-spacing: -.035em;
  color: #f2eade;
}
.rw-hero h1 span { display: block; color: inherit; }
.rw-hero .rw-deck {
  margin-top: 1.5vw;
  max-width: 40em;
  font-size: clamp(16px, 1.02vw, 40px);
  line-height: 1.65;
  color: #e1d3de;
  text-wrap: pretty;
}
.rw-hero .rw-products { margin-top: 1.8vw; }
.rw-hero .rw-plugins {
  padding: 1.05vw 1.3vw .6vw;
  color: #271524;
  background: #f2eade;
}
.rw-hero .rw-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rw-hero .rw-product-heading h2 {
  font: 700 1.05vw/1.4 Manrope, sans-serif;
  letter-spacing: -.015em;
  color: inherit;
}
.rw-hero .rw-status {
  flex-shrink: 0;
  font-size: .65vw;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rw-hero .rw-plugins > p {
  margin-top: .3vw;
  font-size: .76vw;
  line-height: 1.6;
}
.rw-hero .rw-plugin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.25vw;
  margin-top: .35vw;
}
.rw-hero .rw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
  min-height: max(44px, 2.5vw);
  padding: .45vw 1vw;
  background: #281326;
  color: #fff4e7;
  font-size: .75vw;
  font-weight: 700;
}
.rw-hero .rw-primary:hover { background: #55304c; }
.rw-hero .rw-detail {
  display: inline-flex;
  align-items: center;
  min-height: max(44px, 2.5vw);
  font-size: .7vw;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.rw-hero .rw-detail:hover { color: #793360; }
.rw-hero .rw-secondary {
  display: block;
  min-height: 44px;
  padding: .85vw 0;
  border-bottom: 1px solid #e6bed444;
}
.rw-hero .rw-secondary:first-of-type { margin-top: .65vw; }
.rw-hero .rw-secondary .rw-product-heading h2 { font-size: .85vw; }
.rw-hero .rw-secondary .rw-status { color: #e4bfd8; font-weight: 500; }
.rw-hero .rw-secondary p {
  margin-top: .28vw;
  max-width: 47em;
  color: #cdbbca;
  font-size: .73vw;
  line-height: 1.6;
}
.rw-hero .rw-secondary:hover { border-color: #f2eade; }
.rw-hero .rw-secondary:hover h2 { color: #f6bfdf; }
.rw-hero .rw-arrow { margin-left: .5em; font-weight: 400; }
.rw-hero a:focus-visible { outline: 3px solid #e5a4cc; outline-offset: 5px; }
.rw-hero .rw-plugins a:focus-visible { outline-color: #793360; }

@media (max-width: 1100px) {
  .rw-hero .rw-frame { padding-top: 48px; padding-bottom: 48px; }
  .rw-hero .rw-copy, .rw-hero .rw-products { width: 52%; }
  .rw-hero .rw-eyebrow { font-size: 11px; margin-bottom: 24px; }
  .rw-hero h1 { font-size: 6.2vw; }
  .rw-hero .rw-deck { margin-top: 24px; font-size: 16px; }
  .rw-hero .rw-products { margin-top: 28px; }
  .rw-hero .rw-plugins { padding: 18px 20px 12px; }
  .rw-hero .rw-product-heading h2 { font-size: 20px; }
  .rw-hero .rw-status { font-size: 11px; }
  .rw-hero .rw-plugins > p { margin-top: 6px; font-size: 13px; }
  .rw-hero .rw-plugin-actions { gap: 0 20px; margin-top: 10px; }
  .rw-hero .rw-primary { padding: 10px 16px; gap: 24px; font-size: 13px; }
  .rw-hero .rw-detail { font-size: 12px; }
  .rw-hero .rw-secondary { padding: 18px 0; }
  .rw-hero .rw-secondary:first-of-type { margin-top: 8px; }
  .rw-hero .rw-secondary .rw-product-heading h2 { font-size: 16px; }
  .rw-hero .rw-secondary p { margin-top: 6px; font-size: 13px; }
}

@media (max-width: 700px) {
  .rw-hero .rw-frame { padding: 36px 24px 32px; }
  .rw-hero .rw-copy, .rw-hero .rw-products { width: 100%; }
  .rw-hero .rw-eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 20px; }
  .rw-hero h1 { font-size: clamp(49px, 12.5vw, 86px); }
  .rw-hero .rw-deck { margin-top: 24px; font-size: 15px; line-height: 1.7; }
  .rw-hero .rw-setting {
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    margin: 24px -24px -32px;
    aspect-ratio: 1672 / 941;
    background-size: 100% 100%;
  }
  .rw-hero .rw-frame::before { display: none; }
  .rw-hero .rw-products { margin-top: 4px; }
  .rw-hero .rw-plugins { padding: 18px 18px 12px; }
  .rw-hero .rw-plugin-actions { column-gap: 20px; }
  .rw-hero .rw-primary { width: 100%; margin-bottom: 4px; min-height: 48px; }
  .rw-hero .rw-secondary { padding: 20px 0; }
}

/* Fade: the cable art's bottom (pink clouds) eases into the top of the Wurmhole sky (#120c10), so the two scenes meet with no edge.
   Sits under the copy and product layers, so text and products stay crisp. */
.rw-hero::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: min(26%, 300px); pointer-events: none; background: linear-gradient(180deg, #120c1000 0%, #120c1055 35%, #120c10c4 70%, #120c10 100%); }
.sky-stage { margin-top: -1px; }
@media (max-width: 900px) { .rw-hero::after { height: 180px; } }
/* The sky under the hero is pinned (sticky), so its colour at the seam changes with scroll: darken the first stretch of the sky too. */
.sky-stage::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: min(38vh, 380px); pointer-events: none; background: linear-gradient(180deg, #120c10 0%, #120c10c4 30%, #120c1055 65%, #120c1000 100%); }
@media (max-width: 700px) { .rw-hero .rw-setting { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); } }
/* The Wurmhole foreground art starts on a hard line; feather its top into the darkened sky. */
.sky-stage > .horizon-hero .horizon-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 min(30vh, 320px)); mask-image: linear-gradient(180deg, transparent 0, #000 min(30vh, 320px)); }
/* Tall screens (phones in desktop mode, portrait tablets): the hero stops at a landscape height instead of filling
   the whole screen, and the art anchors to the plug side so the plug stays in frame. */
@media (min-width: 701px) and (max-aspect-ratio: 4/3) {
  .rw-hero .rw-frame { min-height: min(calc(100svh - 72px), 62vw); }
  .rw-hero .rw-setting { background-position: 0% 100%; }
}
/* Keep the fade under the text: move it inside the frame, below the copy, above the art. */
.rw-hero::after { display: none; }
.rw-hero .rw-frame::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: min(26%, 300px); pointer-events: none; background: linear-gradient(180deg, #120c1000 0%, #120c1055 35%, #120c10c4 70%, #120c10 100%); }
@media (max-width: 900px) { .rw-hero .rw-frame::after { height: 180px; } }
/* Tighter gap: the Wurmhole section slides up under the hero's faded bottom (both are the same dark there), so the
   empty sky above "INTRODUCING" shrinks without any seam. */
.rw-hero { z-index: 2; }
.sky-stage { margin-top: calc(-1 * clamp(40px, 11vw, 210px)); }
/* The overlap hides the top of the sky's dark ramp; start the ramp (and the foreground feather) where the hero ends. */
.sky-stage::before { top: clamp(40px, 11vw, 210px); height: min(30vh, 300px); }
.sky-stage > .horizon-hero .horizon-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent clamp(40px, 11vw, 210px), #000 calc(clamp(40px, 11vw, 210px) + min(26vh, 260px))); mask-image: linear-gradient(180deg, transparent 0, transparent clamp(40px, 11vw, 210px), #000 calc(clamp(40px, 11vw, 210px) + min(26vh, 260px))); }
/* Short feather only, so the WURMHOLE wordmark (part of that art) stays at full brightness. */
.sky-stage > .horizon-hero .horizon-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent clamp(40px, 11vw, 210px), #000 calc(clamp(40px, 11vw, 210px) + min(5vw, 90px))); mask-image: linear-gradient(180deg, transparent 0, transparent clamp(40px, 11vw, 210px), #000 calc(clamp(40px, 11vw, 210px) + min(5vw, 90px))); }

/* Mock C: mock B's text hero with Ray's own rig footage (Verb on the DSP32 screen) in place of the cable art.
   Loaded after rw-hero-b.css; only overrides. Not in the public build. */
.rw-hero { background: #120c10; }
.rw-hero .rw-setting.rw-photo {
  inset: 0 0 0 33%;
  transform: none;
  background: #120c10 url("../assets/hero/dusk-rig.webp?v=2") 30% 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}
.rw-hero .rw-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  filter: saturate(.95) brightness(.92);
}
.rw-hero .rw-frame::before {
  background: linear-gradient(90deg, #120c10 0%, #120c10e6 30%, #120c1040 50%, transparent 62%);
}

/* Phone: copy, then the footage, then the product links. */
@media (max-width: 700px) {
  .rw-hero .rw-frame { display: flex; flex-direction: column; }
  .rw-hero .rw-copy { order: 1; }
  .rw-hero .rw-setting.rw-photo {
    order: 2;
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    margin: 28px -24px 20px;
    aspect-ratio: 16 / 10;
    background-image: url("../assets/hero/dusk-rig-1200.webp?v=2");
    background-position: 40% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .rw-hero .rw-products { order: 3; }
}
/* Tall screens (phone desktop mode, portrait tablets): keep the screen in frame. */
@media (min-width: 701px) and (max-aspect-ratio: 4/3) {
  .rw-hero .rw-setting.rw-photo { inset: 0 0 0 30%; }
  .rw-hero .rw-setting.rw-photo { background-position: 20% 40%; }
}

/* Plugins box: glass purple (Ray 2026-11-08) in place of the cream card. */
.rw-hero .rw-plugins {
  color: #f6eeff;
  background: linear-gradient(135deg, #8a4fd04d, #4a1f7a40);
  border: 1px solid #c9a2ff59;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #ffffff26, 0 18px 40px -22px #000c;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.rw-hero .rw-plugins .rw-status { color: #d9bdff; }
.rw-hero .rw-plugins > p { color: #e6d8f7; }
.rw-hero .rw-primary { background: #f2eade; color: #2a1238; }
.rw-hero .rw-primary:hover { background: #fff; }
.rw-hero .rw-plugins .rw-detail { color: #ecdcff; }
.rw-hero .rw-plugins .rw-detail:hover { color: #fff; }
.rw-hero .rw-plugins a:focus-visible { outline-color: #e5c9ff; }
.drive-measurements[hidden] { display: none !important; }   /* Ray 2026-11-08: no response chart on the home page */
.feature-module[hidden] { display: none !important; }   /* Ray 2026-11-08: feature cards live on the Wurmhole page */
.horizon-hero .hero-tour { width: min(100%, 1200px); }   /* Ray 2026-11-08: Wurmhole demo 25 % bigger (was 960 px) */
/* Wurmhole feature bullets (copy: 4.6 copy session, 2026-11-08) in place of the feature cards on the home page. */
.hole-features { list-style: none; margin: clamp(22px, 2vw, 34px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(24px, 3vw, 56px); max-width: 980px; }
.hole-features li { position: relative; padding-left: 20px; font-size: clamp(15px, 1vw, 18px); line-height: 1.55; color: #d9cfe3; }
.hole-features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #ee9a63; }
.hole-features b { color: #fff3ea; font-weight: 700; }
@media (max-width: 760px) { .hole-features { grid-template-columns: 1fr; } }
.hole-description .hole-features { grid-column: 1 / -1; max-width: none; }
@media (min-width: 1100px) { .hole-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Glass tint matched to the magenta cast on the circuit board in the hero photo (sampled: hue 314, sat .75, glow #c530a2). */
.rw-hero .rw-plugins {
  color: #fbeef7;
  background: linear-gradient(135deg, #c530a252, #4c123f5c);
  border-color: #f23bc861;
  box-shadow: inset 0 1px 0 #ffffff26, 0 18px 44px -22px #c530a266;
}
.rw-hero .rw-plugins .rw-status { color: #ffa6e8; }
.rw-hero .rw-plugins > p { color: #f2dcea; }
.rw-hero .rw-plugins .rw-detail { color: #ffdcf3; }
.rw-hero .rw-primary { color: #3d0f32; }
.rw-hero .rw-plugins a:focus-visible { outline-color: #ff9fe6; }
/* Wurmdrive bullets (4.6 copy session): one column under the deck, teal markers */
.hole-features.drive-features { grid-template-columns: 1fr; gap: 10px; margin: 18px 0 22px; max-width: 520px; }
.drive-features li::before { border-color: #78cdbc; }
.drive-features li { color: #d5e6e2; }
/* Wurmdrive bullets: beside the copy on wide screens, under the plugin picture once the section stacks (<= 1000 px). */
.drive-features-narrow { display: none; }
@media (max-width: 1000px) {
  .drive-features-wide { display: none; }
  .hole-features.drive-features-narrow { display: grid; margin: 22px 0 6px; }
}
/* New ground: the hardware bullets under the deck (copy: 4.6 copy session, 2026-11-08) */
.hole-features.ground-features { grid-template-columns: 1fr; gap: 8px; margin: 14px 0 22px; max-width: 520px; }
.ground-features li { font-size: clamp(14px, .9vw, 16px); color: #f1e3dc; text-shadow: 0 1px 10px #000c; }
.ground-features li::before { border-color: #d9a6ff; }
.ground-features b { color: #fff; }
/* phones: the unit sits right under the headline, so the hardware bullets follow it instead */
.ground-features-narrow { display: none; }
@media (max-width: 760px) {
  .ground-features-wide { display: none; }
  .hole-features.ground-features-narrow { display: grid; margin: 8px 16px 28px; }
  .ground-features-narrow li { text-shadow: none; }
}
.hole-description > h2, .hole-description > p { align-self: center; }   /* paragraph centred on the headline (2026-11-09) */
