/* ── EXPERIMENTS PAGE ─────────────────────────────────────
   plain HTML/CSS feed. inherits typography + chrome from
   ../style.css (nav, footer, cursor, grain, backdrop). */

/* hero ─ shorter than the landing hero, no specimen image */
.exp-hero {
  position: relative;
  /* default for 14" laptops + smaller — current spec Ivy approved */
  min-height: 62svh;
  padding: clamp(140px, 18vh, 200px) clamp(24px, 5vw, 72px) clamp(30px, 4vh, 50px);
  display: flex;
  flex-direction: column;
  z-index: 1;
  isolation: isolate;
}
/* on tall desktop monitors (1080p+ effective viewport), bump the
   hero close to viewport height so the next section ("Always in
   motion") doesn't peek through underneath the scroll arrow */
@media (min-height: 950px) {
  .exp-hero { min-height: 90svh; }
}

/* hero row — VOLCANO on the left now, text right-aligned on the right */
.exp-hero__row {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 5vw, 100px);
  align-items: end;
}
.exp-hero__stage {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  /* dialed back from the over-lifted 80-150 to a moderate 50-110 —
     keeps the title baseline lined up with the new emoji position */
  padding-bottom: clamp(50px, 8vh, 110px);
  padding-right: clamp(8px, 1.5vw, 28px);
}
/* the title block sits at the right of the stage, sized to its
   widest child (the title). eyebrow + lede left-align WITHIN the
   block — so eyebrow + lede share the title's left edge, and the
   eyebrow naturally lands above "Play" instead of above "io". */
.exp-hero__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

/* volcano column — on the LEFT. column is positioning context for
   the emoji + particles. emoji is absolutely positioned just above
   the column bottom so its base aligns with the title baseline on
   the right. */
.exp-hero__volcano {
  position: relative;
  width: clamp(160px, 18vw, 240px);
  /* dialed back from the over-shrunk 280-400 — we still want the
     row shorter than the original 380-560 so the ticker lifts, but
     not so short that everything looks crammed at the top */
  height: clamp(340px, 44vw, 480px);
  margin-left: clamp(80px, 10vw, 180px);
  margin-right: 0;
}
.exp-hero__emoji {
  position: absolute;
  /* micro nudge down (140-200 → 128-184) */
  bottom: clamp(128px, 13vh, 184px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: clamp(96px, 12vw, 160px);
  line-height: 1;
  filter: drop-shadow(0 14px 28px oklch(0 0 0 / 0.5));
  user-select: none;
}
.exp-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.exp-hero__particle {
  position: absolute;
  /* spawn near the emoji's top edge — micro nudge from 62% → 65%
     to follow the slightly-lowered emoji */
  top: 65%;
  left: 50%;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  line-height: 1;
}
@media (max-width: 760px) {
  .exp-hero__row { grid-template-columns: 1fr; }
  .exp-hero__volcano {
    width: 100%;
    height: clamp(220px, 32vh, 300px);
    margin-top: 16px;
  }
}

/* hero ticker — same scroll mechanic as the about-page ticker, but
   ornaments are lilac instead of pink so it reads as its own thing.
   chained selector beats .ticker__row span:nth-child(even) { color: pink } */
.exp-hero__ticker .ticker__row span:nth-child(even) {
  color: var(--lilac);
}
/* push the ticker down from the row so it (+ scroll below it) sit
   lower in the viewport. overrides only margin-top from the global
   .hero__ticker shorthand. */
.exp-hero__ticker {
  margin-top: clamp(94px, 11vh, 150px);
}

/* ── experiments-page-only chrome overrides: lilac signature ───────
   the experiments page leans lilac as its signature color (the rest
   of the site keeps pink). these rules ride on top of the global
   chrome via cascade — only loaded when experiments.css is loaded,
   which is only on /experiments/. */

/* back-to-top: lilac border on hover. Glow retired 2026-06-06 — no
   bottom-right halo (the AI-glow tell); the disc stays dark glass. */
.to-top:hover {
  border-color: var(--lilac) !important;
  box-shadow: none !important;
}

/* footer mail CTA: lilac border + lilac glow on hover */
.foot__mail:hover {
  border-color: var(--lilac) !important;
  box-shadow:
    0 0 22px -2px color-mix(in oklch, var(--lilac) 70%, transparent),
    0 0 52px -8px color-mix(in oklch, var(--lilac) 35%, transparent) !important;
}

/* "w/ soul" gradient: orange entry → lilac mid → lilac-2 vibrant end.
   matches the hero "Play Studio" gradient exactly so opener + closer
   rhyme. */
.foot__title em {
  background: linear-gradient(92deg, var(--orange) 0%, var(--lilac) 30%, var(--lilac-2) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* email CTA hover on experiments — gradient STROKE in the same
   orange → lilac → lilac-2 we use for "w/ soul" + the hero title.
   void fills the interior, text stays default, no glow. */
.foot__mail:hover {
  background:
    linear-gradient(var(--void), var(--void)) padding-box,
    linear-gradient(92deg, var(--orange) 0%, var(--lilac) 30%, var(--lilac-2) 100%) border-box !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.exp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.exp-hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text);
  /* matches the "w/ soul" gradient in the footer (orange → lilac →
     lilac-2) so opener and closer rhyme. inline-block so the bounding
     box hugs the text width — without it, the h1 spans the full
     section and the gradient stretches past the glyphs, never
     reaching the full lilac-2 end on the visible characters. */
  display: inline-block;
  background: linear-gradient(92deg,
    var(--orange) 0%,
    var(--lilac) 30%,
    var(--lilac-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* gradient text clips below the baseline at tight line-heights —
     pad the descender room without pushing the lede further down */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  /* AND the gradient render extends a sliver past the glyph's right
     edge — without padding-right, the final "o" gets visually clipped.
     Negative margin-right keeps the layout width unchanged. */
  padding-right: 0.12em;
  margin-right: -0.12em;
}

.exp-hero__lede {
  font-family: var(--f-mono);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0;
}

/* shared section title */
.exp-section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 12px 0 0;
}
.exp-section-lede {
  font-family: var(--f-mono);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 52ch;
  margin: 14px 0 0;
}

/* ── BADGE CARD (in the feed as #01) ─────────────── */
/* the dangling-badge canvas lives inside a standard .exp-card__media
   figure now, so it inherits the same 4:3 aspect ratio + radius +
   masking as every other card. only difference: lilac glow background. */
.exp-badges-media {
  /* lilac glow now actually visible (8% → 22%) so the badge card reads
     as the page's signature-color moment.
     solid hex background-color (NOT a var, NOT in the shorthand) so the
     card NEVER renders lighter than dark — even if color-mix() or the
     CSS variables fail to resolve during first paint, the dark base
     still shows. fixes the white-rectangle flash on page navigation. */
  background-color: #0e0e14;
  background-image: radial-gradient(ellipse 75% 65% at 50% 30%, color-mix(in oklch, var(--lilac) 22%, transparent) 0%, transparent 65%);
  cursor: grab;
}
.exp-badges__stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.exp-badges__stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
  /* canvas stays invisible until the badge is fully prepped offstage:
     GLB loaded, all textures GPU-uploaded via the auto-cycle, physics
     settled into its gentle sway. then fades in over 0.8s. before
     this, the user saw a lone lanyard string, the badge popping in,
     and the auto-cycle visibly flipping between textures. */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.exp-badges__stage canvas.is-ready {
  opacity: 1;
  pointer-events: auto;
}
/* description has an inline link to vercel — give it the same hover
   treatment as the previous standalone credit had */
.exp-card__desc a {
  color: var(--text-dim);
  /* dotted underline removed 2026-06-07 — colour shift on hover carries it */
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.exp-card__desc a:hover {
  color: var(--lilac);
}

/* ── HERO ───────────────────────────────────────── */
/* the hero is its own viewport-tall stage. the cursor-reactive glyph
   field lives inside it (canvas fills the wrap), and the scroll cue
   sits pinned to the bottom edge — matching the landing-page hero. */
.exp-hero-wrap {
  position: relative;
  isolation: isolate;
  padding: 0 clamp(24px, 5vw, 72px);
}
/* golden-hour center glow retired 2026-06-07 — the constellation stands
   on the plain void; star hover colors unchanged. */
.exp-hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* push canvas to its own GPU layer so the slow constellation
     fade can't get stuck behind main-thread work (Unicorn Studio
     embeds in the cards below init heavy WebGL on the same load) */
  transform: translateZ(0);
  will-change: opacity;
}
.exp-hero-wrap .hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin-top: 0;
}

/* HOVER HINT — small floating tooltip in the upper-middle of the hero.
   designed to be the FIRST thing a visitor reads on landing, so the
   constellation interaction is discovered before they scroll. matches
   the scroll-cue type (mono uppercase tiny). appears immediately with
   the page, auto-fades after a comfortable read window, or instantly
   on first scroll. */
.exp-hint {
  position: absolute;
  top: clamp(260px, 36vh, 400px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  /* 2s fade so the exit feels slow + intentional, not snapped */
  transition: opacity 2s cubic-bezier(.83, 0, .17, 1);
}
.exp-hint.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .exp-hint { transition: none; }
}

/* ── FEED ───────────────────────────────────────── */
.exp-feed {
  /* the cards section now starts below the hero wrap. bottom padding
     zeroed because the badges section below picks up the spacing. */
  padding: clamp(80px, 13vh, 160px) clamp(24px, 5vw, 72px) 0;
}
.exp-feed__head {
  /* head occupies the full first viewport (inside the hero wrap) so
     card 01 always starts below the fold. content sits in the
     lower-third (align-content: end + bottom padding). z-index lifts
     it above the cursor-reactive canvas. */
  position: relative;
  z-index: 1;
  min-height: 100svh;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: clamp(120px, 22vh, 260px);
  display: grid;
  align-content: end;
  gap: 14px;
}
.exp-feed__list {
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: clamp(150px, 20vh, 240px);
}

.exp-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.exp-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}
.exp-card:nth-child(even) .exp-card__media { order: 2; }
.exp-card:nth-child(even) .exp-card__body { order: 1; }

@media (max-width: 720px) {
  .exp-card,
  .exp-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .exp-card:nth-child(even) .exp-card__media { order: 0; }
  .exp-card:nth-child(even) .exp-card__body { order: 0; }
}

.exp-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--void-2);
  position: relative;
  isolation: isolate;
}
/* card-scoped cursor-bloom orchid: bloom frames are only 320x242 —
   cap below native size so the browser only ever downscales (smooth,
   no pixelation), centered on a true-black card background. */
.exp-bloom-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
/* chained selector + !important to defeat the .exp-card__media img
   { width: 100%; height: 100%; object-fit: cover } rule above.
   crucially: explicit width %, not auto — `auto` uses the image's
   native 320px so max-width never kicked in. */
.exp-card__media.exp-bloom-card .exp-bloom-card__img {
  width: 68% !important;
  height: auto !important;
  max-width: 620px !important;
  max-height: 86% !important;
  object-fit: contain !important;
  display: block;
}

/* shapes-to-music card: constant dark veil + glass play/pause button */
.exp-shapes-card { position: relative; }
.exp-shapes-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* always-on dark veil tones the bright AE colors down to match the
   rest of the feed. no transitions — this is what kept causing the
   flash on first hover (gradient → solid background can't lerp). */
.exp-shapes-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--void) 35%, transparent) 0%,
    color-mix(in oklch, var(--void) 55%, transparent) 100%
  );
  pointer-events: none;
}
/* invisible click target spanning the card; the icon is the only
   thing the user sees. play icon shows when paused, pause icon only
   shows on hover when playing — so the video stays unobstructed. */
.exp-shapes-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
}
.exp-shapes-card__icon {
  width: clamp(28px, 3.4vw, 40px);
  height: clamp(28px, 3.4vw, 40px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.exp-shapes-card__play:hover .exp-shapes-card__icon { transform: scale(1.08); }

/* paused → play icon always visible, pause hidden */
.exp-shapes-card__play[data-state="paused"] .exp-shapes-card__icon--play { opacity: 1; }
.exp-shapes-card__play[data-state="paused"] .exp-shapes-card__icon--pause { display: none; }

/* playing → play hidden, pause fades in on hover only */
.exp-shapes-card__play[data-state="playing"] .exp-shapes-card__icon--play { display: none; }
.exp-shapes-card__play[data-state="playing"] .exp-shapes-card__icon--pause {
  display: inline-block;
  opacity: 0;
}
.exp-shapes-card__play[data-state="playing"]:hover .exp-shapes-card__icon--pause { opacity: 1; }
.exp-card__media img,
.exp-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-card__media--unicorn {
  /* hex (not var) — same first-paint anti-flash rationale as above */
  background: #0e0e14;
}
.exp-card__embed {
  width: 100%;
  height: 100%;
}
/* card 04 "Interactive record": the WebGL scene is clipped to a circle
   (a record) centered inside the standard square media frame, so the
   outer shape stays consistent with the other cards. (2026-06-07 — after
   a Unicorn Studio update broke the old square fill.) */
.exp-card__disc {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 84%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #0b0b10;
  /* very faint ring so the circular frame just reads against the dark
     square (softened 0.06 → 0.03, 2026-06-07) */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.exp-card__body {
  display: grid;
  gap: 8px;
  padding: 0 clamp(0px, 1vw, 20px);
}
.exp-card__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.exp-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.exp-card__desc {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 42ch;
  margin: 0;
}
