/* ============================================================
   MYlodia, dedicated product page
   Biel × Cxzy · Auralis Audio

   Self-contained: this page deliberately does NOT load the shared
   site stylesheet. It is a detached funnel with its own material.

   Structure
     00  Tokens & scenes
     01  Reset & base type
     02  Print material (paper, halftone, four-colour field)
     03  Primitives (cta, eyebrow, wrap, rise)
     04  Header + sticky purchase bar
     05  Hero
     06  Thesis
     07  Listening desk
     08  Signal path
     09  Console
     10  Folders
     11  Origin
     12  License
     13  Purchase
     14  Footer
     15  Responsive
     16  Accessibility preferences
============================================================ */


/* ============================================================
   00 · TOKENS & SCENES
============================================================ */
:root {
  /* Locked palette */
  --paper-base:   #F1EBDD;
  --paper-lift:   #F5EFE3;
  --paper-mid:    #ECE4D2;
  --paper-deep:   #E4DBC6;
  --ink:          #151512;
  --rule:         #34342F;
  --red:          #D92B6A;   /* character  · the hit */
  --yellow:       #D4CF16;   /* movement   · the melody */
  --green:        #56B86A;   /* diffusion  · the instrument */
  --blue:         #2CBFD0;   /* texture    · the atmosphere */
  --orange:       #F15A28;   /* licensing */
  --silver:       #D6D0C3;   /* console */

  /* Readable variants of the four plate colours, for type and rims on
     paper. The raw plate colours are for fills and light, not for text. */
  --red-ink:      #C41F5C;
  --yellow-ink:   #8F8B0C;
  --green-ink:    #358C49;
  --blue-ink:     #17808E;

  /* Surface + ink. These are now CONSTANT for the whole document: the
     page is one continuous paper environment, it no longer flips between
     a light and a dark palette as sections cross the viewport. Local dark
     objects (.my-stage-dark) re-declare them for their own subtree only. */
  --bg:           var(--paper-base);
  --fg:           var(--ink);
  --fg-soft:      color-mix(in srgb, var(--ink) 76%, transparent);
  --fg-faint:     color-mix(in srgb, var(--ink) 56%, transparent);
  --hair:         color-mix(in srgb, var(--rule) 24%, transparent);
  --accent:       var(--red-ink);
  --grain:        0.055;
  --halftone:     0.05;
  --field:        0.62;

  /* Type, platform-native only. No Apple font files are bundled here:
     each family below resolves to the real system font on Apple devices
     and to a legible, legally distributable fallback everywhere else. */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
             system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
                  system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                  "Arial Rounded MT Bold", "Helvetica Neue", system-ui, sans-serif;
  --script: "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  /* Legacy aliases kept during the redesign so any un-migrated rule still
     resolves to something sane rather than the browser default. */
  --sans: var(--font-ui);
  --display: var(--font-display);

  /* Motion, strong curves; the built-ins are too weak */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Liquid Glass primitive tokens */
  --glass-radius-lg: 28px;
  --glass-radius-sm: 18px;
  --glass-tint: color-mix(in srgb, var(--bg) 55%, transparent);
  --glass-border: color-mix(in srgb, #fff 40%, transparent);
  --glass-highlight: color-mix(in srgb, #fff 65%, transparent);
  --glass-shadow: color-mix(in srgb, var(--ink) 32%, transparent);
  --glass-blur: 20px;
  --glass-saturation: 165%;
  --glass-mx: 50%;
  --glass-my: 0%;

  /* Vertical rhythm. One pair of tokens drives every story section, so
     the compactness of the whole funnel is tuned in one place. */
  --sec-pad: clamp(52px, 7vw, 104px);
  --sec-pad-lg: clamp(60px, 8vw, 116px);
  --head-gap: clamp(26px, 3.4vw, 44px);

  /* Layout */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 92px;
}

/* --- Scene accents ------------------------------------------------
   [data-scene] no longer touches the surface or the ink. The page is
   ONE continuous paper environment from the header to the footer. The
   scene attribute survives only to retune the accent colour, which
   moves the nav underline and the small coloured details through the
   story without ever repainting the page from cream to black. ------ */
body[data-scene="hero"]     { --accent: var(--red-ink); }
body[data-scene="thesis"]   { --accent: var(--yellow-ink); }
body[data-scene="listen"]   { --accent: var(--yellow-ink); }
body[data-scene="path"]     { --accent: var(--orange); }
body[data-scene="console"]  { --accent: var(--blue-ink); }
body[data-scene="folders"]  { --accent: var(--red-ink); }
body[data-scene="origin"]   { --accent: var(--green-ink); }
body[data-scene="license"]  { --accent: var(--orange); }
body[data-scene="buy"]      { --accent: var(--red-ink); }

/* --- Local dark stage --------------------------------------------
   Darkness is an OBJECT now, not a page state: a smoked slab placed
   inside the paper world, with its own ink so type stays legible in
   its subtree only. Used by the thesis, the console and the final
   purchase block. Nothing outside it changes colour. -------------- */
.my-stage-dark {
  --bg: #1A1613;
  --fg: #F5EFE3;
  --fg-soft:  color-mix(in srgb, #F5EFE3 82%, transparent);
  --fg-faint: color-mix(in srgb, #F5EFE3 62%, transparent);
  --hair:     color-mix(in srgb, #F5EFE3 22%, transparent);
  --glass-tint: color-mix(in srgb, #F5EFE3 10%, transparent);
  --glass-highlight: color-mix(in srgb, #fff 26%, transparent);
  --glass-border: color-mix(in srgb, #fff 16%, transparent);
  position: relative;
  isolation: isolate;
  color: var(--fg);
  border-radius: clamp(20px, 2.6vw, 34px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(217,43,106,.16), transparent 58%),
    radial-gradient(110% 80% at 92% 100%, rgba(44,191,208,.13), transparent 60%),
    linear-gradient(168deg, #221C18 0%, #1A1613 46%, #14110E 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 40px 90px -46px rgba(21,21,18,.62);
}
/* Print fibre continues across the dark slab, it is the same sheet. */
.my-stage-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: .07;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0.9px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
  z-index: -1;
}

/* On a dark stage the hierarchy inverts: the LIGHTER material is the
   one that draws attention, so a control keeps dark ink on a bright
   glass plate rather than becoming light-on-light. */
.my-stage-dark .my-glass-control {
  --gc-tint: rgba(255,255,255,.8);
  --gc-ink: #171310;
  --gc-rim: rgba(255,255,255,.95);
  --gc-edge: rgba(0,0,0,.24);
  --gc-gloss: .6;
}
.my-stage-dark .my-glass-control-primary {
  --gc-tint: rgba(252,248,240,.94);
  --gc-ink: #14110E;
  --gc-gloss: .55;
}
.my-stage-dark .my-glass-control-secondary {
  --gc-tint: rgba(255,255,255,.12);
  --gc-ink: #F5EFE3;
  --gc-rim: rgba(255,255,255,.3);
  --gc-gloss: .16;
}
@media (hover: hover) and (pointer: fine) {
  .my-stage-dark .my-glass-control-secondary:hover { --gc-tint: rgba(255,255,255,.2); }
}
.my-stage-dark .my-glass-control:focus-visible { outline-color: #F5EFE3; }
@media (prefers-reduced-transparency: reduce) {
  .my-stage-dark .my-glass-control { --gc-tint: #FBF6EC; }
  .my-stage-dark .my-glass-control-secondary { --gc-tint: #2A231E; --gc-ink: #F5EFE3; }
}

/* The two narrative dark stages. The console rig has its own padding. */
.my-thesis-stage { padding: clamp(30px, 4.4vw, 62px) clamp(24px, 4vw, 60px); }
.my-buy-stage { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); }


/* ============================================================
   01 · RESET & BASE TYPE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

/* One sheet of paper, top to bottom. The gradient is painted on <body>
   (not on a fixed layer) so it spans the whole document height: warm
   ivory at the header, slightly deeper parchment by the footer, with no
   step anywhere along the way. */
body.my {
  margin: 0;
  background-color: var(--paper-base);
  background-image: linear-gradient(180deg,
    #F6F0E4 0%,
    #F2ECDE 14%,
    #EFE8D9 34%,
    #ECE4D2 56%,
    #E8DFCD 76%,
    #E4DBC6 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--fg);
  font: 400 100%/1.6 var(--font-ui);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure, dl, dd, ul, ol, p, h1, h2, h3, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Leading and tracking are size-specific, one value is wrong somewhere. */
.my-h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 1.15rem + 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.my-eyebrow {
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

/* Section ledes: 18px on small screens up to 21px on desktop. */
.my-sec-lede {
  font-size: clamp(1.0625rem, 1rem + 0.34vw, 1.3125rem);
  line-height: 1.56;
  letter-spacing: -0.004em;
  color: var(--fg-soft);
  max-width: 48ch;
  margin-top: 16px;
}

/* Body copy: 16.5px small, 19px desktop. */
.my-body {
  font-size: clamp(1.03125rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  color: var(--fg-soft);
}

/* Focus is always visible and always on-brand */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Available to assistive tech, invisible on screen. Used wherever a
   decorative or animated presentation replaces readable text. */
.my-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.my-skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper-base);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.my-skip:focus-visible { transform: translateY(0); }


/* ============================================================
   02 · PRINT MATERIAL
   Fixed behind everything. Purely decorative, hidden from AT.
============================================================ */
.my-paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Paper fibre, fine monochrome grain, never coloured noise */
.my-paper-fibre {
  position: absolute;
  inset: -50%;
  opacity: var(--grain);
  background-image:
    repeating-linear-gradient(0deg,   rgba(0,0,0,.5) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(0,0,0,.5) 0 1px, transparent 1px 4px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: multiply;
}

/* Halftone, stipple dots at print scale */
.my-paper-halftone {
  position: absolute;
  inset: 0;
  opacity: var(--halftone);
  background-image: radial-gradient(circle at 50% 50%, rgba(21,21,18,.9) 0.9px, transparent 1px);
  background-size: 5px 5px;
}

/* Four-colour territories, the risograph plates. Two counter-drifting
   layers keep the environment alive without any of it ever reading as
   an animation: each cycle is far longer than half a minute, the motion
   is transform-only, and the plates sit between 6% and 14% strength so
   nothing competes with text sitting on top of them. */
.my-paper-field,
.my-paper-field::after {
  position: absolute;
  inset: -22%;
  content: "";
  filter: blur(30px);
  will-change: transform;
}
.my-paper-field {
  opacity: var(--field);
  background:
    radial-gradient(58% 44% at 10% 12%, color-mix(in srgb, var(--red)    14%, transparent) 0%, transparent 70%),
    radial-gradient(52% 40% at 90% 24%, color-mix(in srgb, var(--yellow) 13%, transparent) 0%, transparent 70%);
  animation: my-drift-a 41s var(--ease-in-out) infinite;
}
.my-paper-field::after {
  background:
    radial-gradient(62% 46% at 80% 78%, color-mix(in srgb, var(--blue)  12%, transparent) 0%, transparent 70%),
    radial-gradient(54% 42% at 16% 90%, color-mix(in srgb, var(--green) 11%, transparent) 0%, transparent 70%),
    radial-gradient(46% 38% at 52% 48%, color-mix(in srgb, var(--orange) 6%, transparent) 0%, transparent 72%);
  animation: my-drift-b 53s var(--ease-in-out) infinite;
}

/* Registration drift, a barely-perceptible plate misalignment. Driven
   entirely by transform: animating background-position would repaint a
   full-viewport blurred layer on every single frame. */
@keyframes my-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(1.4%, -1.1%, 0) scale(1.035); }
}
@keyframes my-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.02); }
  50%      { transform: translate3d(-1.2%, 1.3%, 0) scale(1); }
}


/* ============================================================
   03 · PRIMITIVES
============================================================ */
.my-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

main { position: relative; z-index: 1; }

section { position: relative; }

/* Scroll reveal. Elements start 14px low, never from scale(0), because
   nothing in the real world appears out of nothing.
   Gated on html.js: if the script never runs, the page is simply visible. */
.js [data-rise] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: var(--rise-delay, 0ms);
  /* No will-change here: 53 elements would each be promoted to their own
     layer at page load. transform/opacity transitions composite anyway. */
}
.js [data-rise].is-in {
  opacity: 1;
  transform: none;
}
/* Once it has arrived, clear the stagger delay. */
.js [data-rise].is-settled { transition-delay: 0ms; }

/* --- Named reveals -----------------------------------------------
   Hidden only while the script is running, and only until GSAP takes
   over. reveals() in mylodia.js sets opacity back to 1 immediately if
   the motion layer is unavailable, so nothing can stay invisible. */
.js [data-reveal] { opacity: 0; }

/* Masked upward line reveal. The outer span is the mask, the inner one
   is what moves. A little vertical breathing room keeps descenders from
   being clipped by the mask. */
.my-rl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.my-rl-i { display: block; }

/* ============================================================
   03a · LIQUID GLASS CONTROL
   ONE material for every control on the page, rather than styling
   each button separately. The layer recipe, bottom to top:

     1  translucent tint                       background-color
     2  backdrop blur + saturation             backdrop-filter
     3  glossy specular sweep                  background-image
     4  bright pointer-facing rim              inset shadow, top
     5  soft darker lower edge                 inset shadow, bottom
     6  inner light bloom                      inset shadow, spread
     7  external shadow carrying nearby colour box-shadow
     8  fine 1px optical edge                  ::before, masked ring
     9  press bloom from the click point       ::after, radial

   The result reads as polished optical glass, not a transparent box.
============================================================ */
.my-glass-control {
  --gc-tint: rgba(255,255,255,.46);
  --gc-ink: var(--fg);
  --gc-rim: rgba(255,255,255,.9);
  --gc-edge: rgba(21,21,18,.16);
  --gc-glow: transparent;
  --gc-gloss: .55;
  --gc-blur: 16px;
  --gc-mx: 50%;
  --gc-my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background-color: var(--gc-tint);
  /* Specular sweep. background-image paints UNDER the label, so the
     gloss can be strong without ever washing out the text. */
  background-image: linear-gradient(180deg,
    rgba(255,255,255,calc(var(--gc-gloss) * 1)) 0%,
    rgba(255,255,255,calc(var(--gc-gloss) * 0.22)) 44%,
    rgba(255,255,255,0) 47%,
    rgba(255,255,255,calc(var(--gc-gloss) * 0.12)) 100%);
  -webkit-backdrop-filter: blur(var(--gc-blur)) saturate(180%);
  backdrop-filter: blur(var(--gc-blur)) saturate(180%);
  color: var(--gc-ink);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.004em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 -1px 1px var(--gc-edge),
    inset 0 8px 18px -12px rgba(255,255,255,.8),
    0 1px 0 rgba(255,255,255,.45),
    0 10px 22px -12px rgba(21,21,18,.34),
    0 0 0 0 var(--gc-glow);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background-color 260ms ease;
}

/* Fine optical edge, a masked 1px ring: transparent in the middle, so
   it never tints the label. */
.my-glass-control::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--gc-rim), transparent 42%, transparent 66%, var(--gc-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Press bloom: one short inner light from where the pointer actually
   landed. Not a loop, not a ripple that outlives the gesture. */
.my-glass-control::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90px 90px at var(--gc-mx) var(--gc-my),
    rgba(255,255,255,.5), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
.my-glass-control.is-pressed::after { opacity: 1; transition-duration: 90ms; }

/* Press: scale down, compress the gloss, then spring back from JS. */
.my-glass-control:active,
.my-glass-control.is-pressed {
  transform: scale(0.978);
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 2px 8px var(--gc-edge),
    0 1px 0 rgba(255,255,255,.4),
    0 4px 10px -8px rgba(21,21,18,.3),
    0 0 0 0 var(--gc-glow);
}

@media (hover: hover) and (pointer: fine) {
  .my-glass-control:hover {
    transform: translate3d(0, -1.5px, 0);
    background-color: color-mix(in srgb, var(--gc-tint) 88%, #fff);
    box-shadow:
      inset 0 1px 0 var(--gc-rim),
      inset 0 -1px 1px var(--gc-edge),
      inset 0 8px 20px -12px rgba(255,255,255,.9),
      0 1px 0 rgba(255,255,255,.5),
      0 16px 30px -14px rgba(21,21,18,.36),
      0 0 0 3px var(--gc-glow);
  }
  .my-glass-control:hover::after { opacity: .55; }
  .my-glass-control:active { transform: scale(0.978); }
}

/* Keyboard focus is exactly as loud as hover, never quieter. */
.my-glass-control:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  transform: translate3d(0, -1.5px, 0);
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 8px 20px -12px rgba(255,255,255,.9),
    0 16px 30px -14px rgba(21,21,18,.36),
    0 0 0 3px var(--gc-glow);
}

/* --- Weights ----------------------------------------------------- */
.my-glass-control-primary {
  --gc-tint: rgba(26,22,19,.88);
  --gc-ink: #F8F3E8;
  --gc-rim: rgba(255,255,255,.34);
  --gc-edge: rgba(0,0,0,.4);
  --gc-gloss: .18;
}
.my-glass-control-secondary {
  --gc-tint: rgba(255,255,255,.34);
  --gc-gloss: .42;
}

/* Whole-kit purchase: a restrained four-colour rim, because this one
   button buys all four folders. Four soft directional shadows, one per
   plate, never a rainbow fill. */
.my-glass-control-kit {
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 -1px 1px var(--gc-edge),
    inset 0 8px 18px -12px rgba(255,255,255,.8),
    0 -3px 14px -7px color-mix(in srgb, var(--red) 62%, transparent),
    3px 1px 14px -7px color-mix(in srgb, var(--yellow) 58%, transparent),
    0 4px 14px -7px color-mix(in srgb, var(--blue) 58%, transparent),
    -3px 1px 14px -7px color-mix(in srgb, var(--green) 58%, transparent),
    0 12px 26px -14px rgba(21,21,18,.4);
}
@media (hover: hover) and (pointer: fine) {
  .my-glass-control-kit:hover {
    box-shadow:
      inset 0 1px 0 var(--gc-rim),
      inset 0 8px 22px -12px rgba(255,255,255,.9),
      0 -5px 20px -8px color-mix(in srgb, var(--red) 78%, transparent),
      5px 1px 20px -8px color-mix(in srgb, var(--yellow) 72%, transparent),
      0 6px 20px -8px color-mix(in srgb, var(--blue) 72%, transparent),
      -5px 1px 20px -8px color-mix(in srgb, var(--green) 72%, transparent),
      0 18px 34px -16px rgba(21,21,18,.44);
  }
}

/* Icon-only: circular, no label, still 44px+ on touch. */
.my-glass-control-icon {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  gap: 0;
}
.my-glass-control-icon svg { width: 17px; height: 17px; }

/* Selected, for segmented controls and tabs. */
.my-glass-control.is-selected {
  --gc-tint: rgba(255,255,255,.7);
  --gc-gloss: .7;
}
/* Entrance glow, added once when a section arrives, then removed. */
.my-glass-control.is-glowing { --gc-glow: color-mix(in srgb, var(--accent) 40%, transparent); }

/* --- Sizes ------------------------------------------------------- */
.my-cta-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.my-cta-lg { min-height: 56px; padding: 0 10px 0 28px; font-size: 1.125rem; }
.my-cta-xl { min-height: 60px; padding: 0 40px; font-size: 1.125rem; }

.my-cta-price {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gc-ink) 16%, transparent);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 0.9375em;
}

/* No checkout URL configured. The button must still look finished:
   same glass, same press feedback, no dashed developer border, no
   debug copy. The warning goes to the console only. */
.my-glass-control.is-unconfigured { cursor: pointer; }

.my-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--font-rounded);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-soft);
  text-decoration: none;
  transition: color 180ms ease;
}
.my-link-btn svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .my-link-btn:hover { color: var(--fg); }
  .my-link-btn:hover svg { transform: translateY(3px); }
}

/* Fallbacks: the material degrades to a solid, high-contrast control
   rather than an unreadable transparent one. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .my-glass-control { --gc-tint: rgba(255,255,255,.92); }
  .my-glass-control-primary { --gc-tint: rgba(26,22,19,.96); }
}
@media (prefers-reduced-transparency: reduce) {
  .my-glass-control {
    --gc-tint: #FBF6EC;
    --gc-gloss: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-glass-control-primary { --gc-tint: #1A1613; }
  .my-glass-control::after { display: none; }
}
@media (prefers-contrast: more) {
  .my-glass-control {
    --gc-tint: #fff;
    --gc-gloss: 0;
    outline: 2px solid var(--fg);
    outline-offset: -2px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-glass-control-primary { --gc-tint: #121110; --gc-ink: #fff; }
}

/* --- Firefly indicators -------------------------------------------
   Circular points of light replace the old flat colour squares.
   A crisp core reads at a glance; a soft blurred halo gives it depth;
   an irregular, non-synced shimmer (driven from JS, see §hero-fireflies
   in mylodia.js) keeps four of them from ever pulsing in lockstep. --- */
.my-firefly {
  --fc: var(--red);
  position: relative;
  display: inline-block;
  width: 11px; height: 11px;
  flex: none;
}
.my-firefly::before {
  /* halo */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fc) 75%, transparent) 0%, transparent 72%);
  filter: blur(2.5px);
  opacity: var(--fly-glow, .65);
  transition: opacity 900ms var(--ease-in-out);
}
.my-firefly::after {
  /* crisp core */
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--fc) 55%, color-mix(in srgb, var(--fc) 70%, #000) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 40%, transparent);
}
.my-firefly-red    { --fc: var(--red); }
.my-firefly-yellow { --fc: var(--yellow); }
.my-firefly-blue   { --fc: var(--blue); }
.my-firefly-green  { --fc: var(--green); }




/* ============================================================
   03b · LIQUID GLASS PRIMITIVE
   One reusable material rather than manually-styled boxes. Layer
   recipe per handoff §10: translucent tint → backdrop blur/saturate →
   fine edge → pointer-facing rim highlight → inset shadow → external
   shadow carrying nearby colour → optional pointer sheen.
============================================================ */
.my-glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--glass-radius-lg);
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 color-mix(in srgb, var(--ink) 10%, transparent),
    0 1px 0 var(--glass-border),
    0 24px 60px -28px var(--glass-shadow);
  transition: box-shadow 260ms var(--ease-out), background-color 900ms var(--ease-in-out);
}
.my-glass::before {
  /* fine 1px light edge, all the way around */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, var(--glass-highlight), transparent 40%, transparent 70%, color-mix(in srgb, var(--ink) 14%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Pointer-driven sheen, desktop only, cheap: one radial-gradient,
   position updated via quickSetter-style inline custom properties. */
@media (hover: hover) and (pointer: fine) {
  .my-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(180px 180px at var(--glass-mx) var(--glass-my),
      color-mix(in srgb, #fff 22%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
  }
  .my-glass:hover::after,
  .my-glass:focus-within::after { opacity: 1; }
}
.my-glass-sm { border-radius: var(--glass-radius-sm); }
.my-glass-pressed { box-shadow: inset 0 2px 6px color-mix(in srgb, var(--ink) 22%, transparent), 0 1px 0 var(--glass-border); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .my-glass { background: color-mix(in srgb, var(--bg) 92%, var(--ink) 6%); }
}
@media (prefers-reduced-transparency: reduce) {
  .my-glass {
    background: color-mix(in srgb, var(--bg) 94%, var(--ink) 4%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--hair);
  }
  .my-glass::after { display: none; }
}
@media (prefers-contrast: more) {
  .my-glass {
    background: var(--bg);
    border: 2px solid var(--fg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* ============================================================
   04 · HEADER + STICKY BAR
============================================================ */
.my-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 900ms var(--ease-in-out),
              box-shadow 300ms ease;
}
/* Scroll edge effect instead of a hard 1px divider */
.my-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 22px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.my-header.is-stuck::after { opacity: 1; }

.my-header-in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gut) 10px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.my-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.my-back svg { width: 13px; height: 13px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .my-back:hover { color: var(--fg); }
  .my-back:hover svg { transform: translateX(-3px); }
}

.my-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.my-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  font-family: var(--font-rounded);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0em;
  color: var(--fg-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}
.my-nav a.is-current { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .my-nav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
}

.my-header-buy {
  display: flex;
  align-items: center;
  gap: 14px;
}
.my-header-price {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg-soft);
}

.my-header-license {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut) 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--fg-soft);
}
.my-header-license strong {
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--fg);
}

/* --- Sticky purchase bar (mobile-weight, appears after the hero) --- */
.my-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  transform: translateY(100%);
  transition: transform 420ms var(--ease-drawer);
}
.my-bar.is-up { transform: translateY(0); }
.my-bar-in {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.my-bar-name { display: flex; flex-direction: column; line-height: 1.25; }
.my-bar-name b { font-size: 0.9375rem; font-weight: 650; }
.my-bar-name span { font-size: 0.75rem; color: var(--fg-soft); }
.my-bar-price {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   05 · HERO
============================================================ */
.my-hero {
  padding: clamp(28px, 3.4vw, 52px) 0 var(--sec-pad);
}
.my-hero-grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.my-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 20px;
}
.my-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 88%, #fff 4%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 2px rgba(0,0,0,.18),
    0 6px 16px -8px color-mix(in srgb, var(--red) 70%, transparent);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 0.8125em;
  letter-spacing: 0.005em;
  text-transform: none;
}

/* --- The wordmark ------------------------------------------------
   MY: extremely heavy grotesque. lodia: high-contrast italic.
   Tracking goes negative as the type grows. ---------------------- */
.my-wordmark {
  display: flex;
  align-items: baseline;
  font-size: clamp(3.4rem, 1.4rem + 8.6vw, 7.6rem);
  line-height: 0.9;
  margin-bottom: 16px;
}
.my-word-my {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.055em;
}
.my-word-lodia {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-left: -0.03em;
}

.my-hero-sub {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.my-hero-lede {
  margin-top: 10px;
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  line-height: 1.55;
  color: var(--fg-soft);
}

.my-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.my-swatches li { display: inline-flex; align-items: center; gap: 8px; }
.my-swatches b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }

.my-hero-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}

.my-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.my-specs dt {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.my-specs dd {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* --- Cover ------------------------------------------------------- */
.my-cover {
  position: relative;
  perspective: 1400px;
}
.my-cover-img {
  position: relative;
  width: 100%;
  border-radius: 4px;
  /* Cut-paper edge: the artwork lifts off the page */
  box-shadow:
    0 1px 0 rgba(255,255,255,.5),
    0 18px 40px -18px rgba(21,21,18,.45),
    0 60px 90px -60px rgba(21,21,18,.5);
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, var(--tilt-lift, 0px), 0);
  transform-style: preserve-3d;
}
.my-cover-shadow {
  position: absolute;
  inset: 8% 6% -4%;
  border-radius: 40px;
  background: radial-gradient(ellipse at 50% 60%, rgba(21,21,18,.28), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.my-cover-cap {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: right;
}

.my-scroll-hint {
  max-width: var(--wrap);
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding-inline: var(--gut);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.my-scroll-hint span { position: relative; padding-left: 26px; }
.my-scroll-hint span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: currentColor;
  transform-origin: left;
  /* Three beats, then it stops. A hint that keeps pulsing forever stops
     being a hint and becomes noise. */
  animation: my-hint 3.2s var(--ease-in-out) 3;
}
@keyframes my-hint {
  0%, 70%, 100% { transform: scaleX(1); opacity: .5; }
  35%           { transform: scaleX(1.7); opacity: 1; }
}


/* ============================================================
   06 · THESIS
============================================================ */
.my-thesis {
  padding: var(--sec-pad) 0;
}
.my-statement {
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.1rem + 5vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.my-statement em {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  /* the one coloured phrase, fresh ink on the black plate */
  color: var(--yellow);
}
.my-thesis-body {
  max-width: 52ch;
  margin-top: 22px;
  font-size: clamp(1.03125rem, 0.98rem + 0.32vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-soft);
}
.my-thesis-body + .my-thesis-body { margin-top: 18px; }


/* ============================================================
   07 · LISTENING DESK
============================================================ */
.my-listen { padding: var(--sec-pad) 0; }
.my-sec-head { margin-bottom: var(--head-gap); }
.my-sec-head-center { text-align: center; margin-bottom: clamp(18px, 2.2vw, 28px); }
.my-sec-head-center .my-sec-lede { margin-inline: auto; }

.my-desk {
  border-top: 1px solid var(--hair);
}

.my-track {
  --c: var(--fg);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  transition: background-color 260ms ease;
}
.my-track[data-folder="red"]    { --c: var(--red); }
.my-track[data-folder="yellow"] { --c: #A8A40F; }
.my-track[data-folder="blue"]   { --c: #1B98A7; }
.my-track[data-folder="green"]  { --c: #3E9B52; }

.my-track.is-playing {
  background: color-mix(in srgb, var(--c) 7%, transparent);
}

.my-play {
  position: relative;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--c);
  cursor: pointer;
  transition: transform 150ms var(--ease-out),
              background-color 200ms ease,
              border-color 200ms ease;
}
.my-play:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .my-play:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
}
.my-play svg { width: 22px; height: 22px; }
/* Play/pause crossfade, blur bridges the swap so it reads as one shape */
.my-ico-play, .my-ico-pause {
  grid-area: 1 / 1;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out);
}
.my-ico-pause { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.my-track.is-playing .my-ico-play  { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.my-track.is-playing .my-ico-pause { opacity: 1; filter: blur(0);   transform: none; }
/* Loading: a slow ring, only while the file is actually fetching */
.my-play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--c);
  opacity: 0;
  transition: opacity 200ms ease;
}
.my-track.is-loading .my-play::after {
  opacity: 1;
  animation: my-spin 720ms linear infinite;
}
@keyframes my-spin { to { transform: rotate(360deg); } }

.my-track-body { min-width: 0; }
.my-track-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.my-folder-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c);
}
.my-track-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.my-track-name i { font-style: normal; font-weight: 400; color: var(--fg-faint); }

.my-wave {
  position: relative;
  height: 56px;
  cursor: pointer;
  touch-action: pan-y;
  border-radius: 4px;
}
.my-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.my-wave:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; }
.my-wave.is-scrubbing { cursor: grabbing; }

.my-track-time {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}
.my-t-now { color: var(--c); }

.my-track.is-error .my-play { opacity: .4; cursor: not-allowed; }

.my-desk-note {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-faint);
}


/* ============================================================
   08 · SIGNAL PATH
============================================================ */
.my-path { padding: var(--sec-pad) 0; }

.my-chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 20px;
  padding-top: 34px;
}
/* The trace: a hairline that draws itself across the nodes as you arrive */
.my-chain::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px; right: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--orange), var(--green), var(--blue), var(--ink));
  transform: scaleX(var(--trace, 0));
  transform-origin: left;
  transition: transform 1400ms var(--ease-out);
}

.my-node { position: relative; }
.my-node-dot {
  position: absolute;
  top: -34px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
  transform: scale(0.55);
  opacity: .35;
  transition: transform 420ms var(--ease-out), opacity 420ms ease, background-color 420ms ease;
}
.my-node.is-lit .my-node-dot {
  transform: scale(1);
  opacity: 1;
  background: var(--accent);
  border-color: var(--accent);
}
.my-node h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.014em;
  margin-bottom: 8px;
}
.my-node p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-soft);
}
.my-node-end h3 { color: var(--accent); }

.my-chain-note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 2px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
  font-size: 0.9375rem;
  color: var(--fg-soft);
  max-width: 62ch;
}

.my-plates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(30px, 4vw, 56px);
  align-items: start;
}
.my-plate { grid-column: span 1; }
.my-plate-wide { grid-column: span 2; }
/* Parallax lives on the image, not the figure: the figure carries
   [data-rise], whose transform would otherwise cancel this one out. */
.my-plate img {
  width: 100%;
  transform: translate3d(0, var(--par, 0px), 0);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5),
    0 12px 30px -14px rgba(21,21,18,.4);
}
.my-plates-nav {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.my-plates-dot {
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.my-plates-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 26%, transparent);
  transition: background-color 220ms ease, transform 220ms var(--ease-out);
}
.my-plates-dot.is-active::before {
  background: var(--accent);
  transform: scale(1.3);
}

.my-plate figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
   09 · CONSOLE
   The signature interaction: a real Web Audio graph. The panel is a
   smoked optical instrument, not a grey slab: warm obsidian with a
   burgundy undertone, translucent enough to pick up the paper behind
   it, a specular top edge, an internal vignette, four channel lights
   wired to the four real DSP amounts, and one diffuse underglow in the
   colour of the sound currently loaded.

   --track-color is the single source of truth for the active sound.
   It is registered with @property so a track change CROSSFADES the
   play button, the panel glow and the arrow glow together, instead of
   snapping all three at once.
============================================================ */
@property --track-color {
  syntax: '<color>';
  inherits: true;
  initial-value: #D92B6A;
}
/* The same colour, darkened enough to carry a white glyph. */
@property --track-deep {
  syntax: '<color>';
  inherits: true;
  initial-value: #B92258;
}
/* 0 = idle, 1 = the user is actually touching this control. */
@property --engage {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.my-console {
  padding: clamp(42px, 5.2vw, 78px) 0;
  --track-color: #F04B84;
  --track-deep: #B92258;
  --character: 18;
  --movement: 12;
  --diffusion: 10;
  --texture: 22;
}

.my-console-rig {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 316px);
  gap: clamp(20px, 2.8vw, 42px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 34px);
  margin-bottom: clamp(14px, 1.6vw, 20px);
  transition: --track-color 620ms var(--ease-in-out),
              box-shadow 620ms var(--ease-in-out);
  /* Smoked instrument. Alpha on every layer so the paper environment
     still shows through: this is glass over the sheet, not a cut-out. */
  background:
    radial-gradient(86% 130% at 50% -22%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(120% 96% at 6% 112%, color-mix(in srgb, var(--track-color) 30%, transparent), transparent 64%),
    linear-gradient(166deg, rgba(44,32,29,.90) 0%, rgba(28,21,18,.93) 48%, rgba(18,14,12,.95) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -34px 64px -42px rgba(0,0,0,.92),
    0 40px 88px -46px rgba(21,21,18,.6),
    0 0 54px -26px color-mix(in srgb, var(--track-color) 42%, transparent);
}

/* Four channel lights. Each one's brightness is the real amount of its
   DSP module, so the strip is a readout, not decoration. */
.my-console-lights {
  position: absolute;
  top: clamp(14px, 1.8vw, 20px);
  right: clamp(16px, 2vw, 24px);
  display: flex;
  gap: 7px;
}
.my-console-lights i {
  --lit: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lc);
  opacity: calc(0.2 + var(--lit) * 0.008);
  box-shadow: 0 0 calc(2px + var(--lit) * 0.09px) color-mix(in srgb, var(--lc) 80%, transparent);
  transition: opacity 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.my-console-lights i:nth-child(1) { --lc: var(--red);    --lit: var(--character); }
.my-console-lights i:nth-child(2) { --lc: var(--yellow); --lit: var(--movement); }
.my-console-lights i:nth-child(3) { --lc: var(--green);  --lit: var(--diffusion); }
.my-console-lights i:nth-child(4) { --lc: var(--blue);   --lit: var(--texture); }

/* --- Player: track head, transport, waveform ----------------------- */
.my-console-player { min-width: 0; }

.my-console-head { margin-bottom: 14px; }
.my-console-index {
  font-family: var(--font-rounded);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}
.my-console-name {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.my-console-folder {
  margin-top: 3px;
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--track-color);
  transition: --track-color 620ms var(--ease-in-out);
}

.my-console-transport {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

/* Arrows: neutral smoked glass, the track colour appears only when the
   user actually reaches for them. */
.my-console-arrow {
  --gc-tint: rgba(255,255,255,.1);
  --gc-ink: #F5EFE3;
  --gc-rim: rgba(255,255,255,.28);
  --gc-edge: rgba(0,0,0,.36);
  --gc-gloss: .14;
  width: 46px;
  min-height: 46px;
}
@media (hover: hover) and (pointer: fine) {
  .my-console-arrow:hover {
    --gc-tint: rgba(255,255,255,.17);
    --gc-glow: color-mix(in srgb, var(--track-color) 44%, transparent);
  }
}
.my-console-arrow:focus-visible { --gc-glow: color-mix(in srgb, var(--track-color) 50%, transparent); }
.my-console-arrow.is-pressed { --gc-glow: color-mix(in srgb, var(--track-color) 60%, transparent); }

/* Play: the current track's folder colour, as glass rather than a flat
   disc. The colour crossfades with --track-color. */
.my-console-play {
  --gc-tint: var(--track-deep);
  --gc-ink: #fff;
  --gc-rim: rgba(255,255,255,.62);
  --gc-edge: rgba(0,0,0,.34);
  --gc-gloss: .42;
  --gc-glow: color-mix(in srgb, var(--track-color) 34%, transparent);
  width: 58px;
  min-height: 58px;
  transition:
    --track-color 620ms var(--ease-in-out),
    --track-deep 620ms var(--ease-in-out),
    transform 200ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background-color 620ms var(--ease-in-out);
}
.my-console-play svg {
  width: 23px; height: 23px;
  grid-area: 1/1;
  position: absolute;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out);
}
.my-console-play .my-ico-pause { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.my-console.is-playing .my-console-play .my-ico-play { opacity: 0; filter: blur(3px); transform: scale(0.9); }
.my-console.is-playing .my-console-play .my-ico-pause { opacity: 1; filter: blur(0); transform: none; }

.my-cwave {
  position: relative;
  height: 66px;
  min-width: 0;
  cursor: pointer;
  touch-action: pan-y;
  border-radius: 8px;
  overflow: hidden;
}
.my-cwave canvas { display: block; width: 100%; height: 100%; }
.my-cwave:focus-visible { outline: 2px solid var(--track-color); outline-offset: 4px; }
.my-cwave.is-scrubbing { cursor: grabbing; }

.my-console-time {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}
.my-console-live {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- The knobs --------------------------------------------------- */
.my-knobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.my-ab {
  grid-column: 1 / -1;
  display: inline-flex;
  align-self: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.my-ab-btn {
  --gc-tint: transparent;
  --gc-ink: var(--fg-soft);
  --gc-rim: transparent;
  --gc-edge: transparent;
  --gc-gloss: 0;
  --gc-blur: 0px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  box-shadow: none;
}
.my-ab-btn::before { opacity: 0; transition: opacity 200ms ease; }
.my-ab-btn.is-selected {
  --gc-tint: rgba(255,255,255,.86);
  --gc-ink: #171310;
  --gc-rim: rgba(255,255,255,.95);
  --gc-edge: rgba(0,0,0,.24);
  --gc-gloss: .6;
  --gc-blur: 12px;
}
.my-ab-btn.is-selected::before { opacity: 1; }
.my-ab-btn.is-selected {
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 -1px 1px var(--gc-edge),
    0 4px 12px -4px rgba(0,0,0,.5);
}
@media (hover: hover) and (pointer: fine) {
  .my-ab-btn:not(.is-selected):hover { --gc-tint: rgba(255,255,255,.1); --gc-ink: var(--fg); transform: none; box-shadow: none; }
}

.my-reset {
  --gc-tint: rgba(255,255,255,.1);
  --gc-ink: #F5EFE3;
  --gc-rim: rgba(255,255,255,.26);
  --gc-edge: rgba(0,0,0,.34);
  --gc-gloss: .14;
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.9375rem;
}

/* Web Audio failed to initialise: dry playback and seeking still work,
   only the four processing knobs go visibly inert. */
.my-knob.is-disabled { opacity: .4; pointer-events: none; }
.my-knob.is-disabled::after {
  content: "unavailable";
  display: block;
  margin-top: 4px;
  font-family: var(--font-rounded);
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.my-knob {
  --ch: var(--red);
  --engage: 0;
  text-align: center;
}
.my-knob[data-knob="character"] { --ch: var(--red); }
.my-knob[data-knob="movement"]  { --ch: var(--yellow); }
.my-knob[data-knob="diffusion"] { --ch: var(--green); }
.my-knob[data-knob="texture"]   { --ch: var(--blue); }

.my-knob-dial {
  position: relative;
  width: 84px; height: 84px;
  margin-inline: auto;
  cursor: grab;
  touch-action: none;
  border-radius: 50%;
  transition: transform 180ms var(--ease-out);
}
.my-knob-dial:active { cursor: grabbing; }
.my-knob-dial.is-grabbed { transform: scale(0.96); }

/* Halo under the dial. It exists only while the control is engaged,
   and its strength follows the VALUE, so a knob turned up glows more
   than one barely open. On release --engage springs back to 0 from JS,
   so the halo settles instead of snapping off. */
.my-knob-dial::before {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ch) 58%, transparent) 0%, transparent 66%);
  filter: blur(7px);
  opacity: calc(var(--engage) * (0.28 + var(--v, 0) * 0.006));
  pointer-events: none;
}

.my-knob-face {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--silver) 94%, #fff) 0%, var(--silver) 46%, #A29A8D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -2px 4px rgba(0,0,0,.32),
    0 5px 12px -3px rgba(0,0,0,.62);
  transform: rotate(calc(-140deg + var(--v, 0) * 2.8deg));
  /* No transition on the rotation: the dial tracks the pointer 1:1 and
     is spring-animated from JS on release. */
}
/* Internal light inside the knob face while engaged. */
.my-knob-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 56%, color-mix(in srgb, var(--ch) 72%, transparent) 0%, transparent 68%);
  opacity: calc(var(--engage) * 0.7);
  pointer-events: none;
}
.my-knob-pointer {
  position: absolute;
  top: 7px; left: 50%;
  width: 2.5px; height: 17px;
  margin-left: -1.25px;
  border-radius: 2px;
  background: #17130F;
  z-index: 1;
}

.my-knob-arc { position: absolute; inset: 0; transform: rotate(-90deg); }
.my-knob-arc circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.my-arc-track { stroke: rgba(255,255,255,.16); }
.my-arc-fill {
  stroke: var(--ch);
  /* r = 43 → circumference 270.18. The sweep is 280°, so the dash is
     270.18 × 280/360 = 210.14, and the gap swallows the rest. */
  stroke-dasharray: 210.14 270.18;
  stroke-dashoffset: calc(210.14 - 210.14 * var(--v, 0) / 100);
  transform: rotate(-140deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 calc(var(--engage) * 5px) color-mix(in srgb, var(--ch) 85%, transparent));
}

.my-knob-label {
  margin-top: 10px;
  line-height: 1.3;
}
.my-knob-label b {
  display: block;
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.004em;
  color: color-mix(in srgb, var(--fg) calc(72% + var(--engage) * 28%), transparent);
  transition: color 240ms ease;
}
.my-knob.is-engaged .my-knob-label b { color: var(--ch); }
.my-knob-label span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-rounded);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.002em;
  color: var(--fg-soft);
}

.my-knob-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 2px;
}
.my-knob-hint {
  font-size: 0.8125rem;
  color: var(--fg-faint);
  text-align: center;
  max-width: 26ch;
}

.my-console-disclosure {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-faint);
}

/* Engaged glow is light, not motion: keep it under reduced motion, drop
   only the settle animation (JS handles that side). */
@media (prefers-contrast: more) {
  .my-knob-dial::before, .my-knob-face::after { display: none; }
  .my-arc-fill { filter: none; }
}


/* ============================================================
   10 · FOLDERS
   A Finder-like dock of four glossy folders over one Liquid Glass
   viewer. Selecting a folder is a TACTILE act: the front face lifts,
   light builds inside the folder and escapes from the opening, and a
   bloom travels down into the viewer, which takes on the folder colour.
   Content morphs in place, it never navigates away.
============================================================ */
.my-folders { padding: clamp(46px, 6vw, 88px) 0; }

.my-folder-dock {
  display: flex;
  gap: clamp(8px, 1.6vw, 18px);
  justify-content: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.my-folder-dock::-webkit-scrollbar { display: none; }

.my-folder-tab {
  --c: var(--fg);
  --sel: 0;                     /* 0 = resting, 1 = selected */
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px 8px 8px;
  min-width: 88px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  scroll-snap-align: center;
  transition: transform 220ms var(--ease-out);
}
.my-folder-tab[data-folder="red"]    { --c: var(--red);    --ci: var(--red-ink); }
.my-folder-tab[data-folder="yellow"] { --c: var(--yellow); --ci: var(--yellow-ink); }
.my-folder-tab[data-folder="blue"]   { --c: var(--blue);   --ci: var(--blue-ink); }
.my-folder-tab[data-folder="green"]  { --c: var(--green);  --ci: var(--green-ink); }
.my-folder-tab.is-active { --sel: 1; }

.my-folder-icon {
  position: relative;
  width: 60px; height: 48px;
  perspective: 340px;
  transition: transform 260ms var(--ease-out);
}
/* The back wall of the folder, seen through the opening once the front
   face tips forward. This is where the light lives. */
.my-folder-icon-tab {
  position: absolute;
  top: 0; left: 5px;
  width: 44%; height: 24%;
  border-radius: 5px 9px 0 0;
  background: color-mix(in srgb, var(--c) 84%, #000 8%);
}
.my-folder-icon::after {
  content: "";
  position: absolute;
  inset: 16% 2% 6% 2%;
  border-radius: 5px;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--c) 92%, #fff 24%) 0%,
    color-mix(in srgb, var(--c) 70%, #fff 6%) 70%);
  /* Light escaping from the opening, only when selected. */
  box-shadow: 0 0 calc(var(--sel) * 16px) color-mix(in srgb, var(--c) calc(var(--sel) * 70%), transparent);
  opacity: calc(0.55 + var(--sel) * 0.45);
  transition: opacity 260ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
/* The front face. It tips forward on selection, which is what makes the
   inner light readable. */
.my-folder-icon-body {
  position: absolute;
  inset: 26% 0 0 0;
  border-radius: 5px;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--c) 88%, #fff 12%),
    color-mix(in srgb, var(--c) 74%, #000 12%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -7px 12px -7px rgba(0,0,0,.4),
    0 8px 16px -8px color-mix(in srgb, var(--c) 60%, transparent);
  transform-origin: 50% 100%;
  transform:
    translate3d(0, calc(var(--sel) * -2px), 0)
    rotateX(calc(var(--sel) * -22deg));
  transition: transform 320ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.my-folder-tab.is-active .my-folder-icon-body {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -7px 12px -7px rgba(0,0,0,.34),
    0 18px 28px -12px color-mix(in srgb, var(--c) 70%, transparent);
}

.my-folder-tab-label {
  font-family: var(--font-rounded);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--fg-soft);
  transition: color 220ms ease;
}
.my-folder-tab.is-active .my-folder-tab-label { color: var(--ci); font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .my-folder-tab:hover .my-folder-icon { transform: translate3d(0, -3px, 0); }
}
.my-folder-tab:focus-visible {
  outline: 2px solid var(--ci);
  outline-offset: 2px;
}

/* --- The viewer: one Liquid Glass panel, content morphs in place -- */
.my-folder-viewer {
  --c: var(--red);
  --ci: var(--red-ink);
  position: relative;
  padding: clamp(22px, 2.8vw, 34px);
  overflow: hidden;
  /* The panel takes the selected colour: a coloured optical edge, a
     tinted interior and a soft underglow, all crossfaded through
     --c rather than swapped. */
  background:
    radial-gradient(130% 90% at 6% -10%, color-mix(in srgb, var(--c) 16%, transparent), transparent 62%),
    var(--glass-tint);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent),
    0 24px 60px -30px color-mix(in srgb, var(--c) 40%, transparent),
    0 10px 30px -22px rgba(21,21,18,.36);
  transition: --c 480ms var(--ease-in-out), box-shadow 480ms var(--ease-in-out);
}
/* Bloom travelling down from the dock into the viewer on selection.
   One short pass, triggered by a class from JS, then it stops. */
.my-folder-viewer-bloom {
  position: absolute;
  top: 0;
  left: var(--bloom-x, 50%);
  width: 260px;
  height: 160px;
  margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 46%, transparent), transparent 68%);
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
}

.my-folder {
  --c: var(--red);
  --ci: var(--red-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  grid-template-areas:
    "index break"
    "title break"
    "count break"
    "desc  break"
    "names names";
  column-gap: clamp(22px, 3vw, 44px);
  align-content: start;
  align-items: start;
}
.my-folder-index { grid-area: index; }
.my-folder-title { grid-area: title; }
.my-folder-count { grid-area: count; }
.my-folder-desc  { grid-area: desc; }
.my-breakdown    { grid-area: break; }
.my-folder-names { grid-area: names; }
/* display:grid above beats the UA's display:none for [hidden], so the
   inactive panels have to be hidden explicitly or all four stack. */
.my-folder[hidden] { display: none; }

/* Blue has no per-type breakdown, so it keeps the full measure. */
.my-folder:not(:has(.my-breakdown)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "index" "title" "count" "desc" "names";
}
.my-folder[data-folder="red"]    { --c: var(--red);    --ci: var(--red-ink); }
.my-folder[data-folder="yellow"] { --c: var(--yellow); --ci: var(--yellow-ink); }
.my-folder[data-folder="blue"]   { --c: var(--blue);   --ci: var(--blue-ink); }
.my-folder[data-folder="green"]  { --c: var(--green);  --ci: var(--green-ink); }

.my-folder-index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-rounded);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-soft);
}
/* Circular and luminous, not a flat square swatch. */
.my-folder-chip {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 34% 30%, #fff, var(--c) 56%, color-mix(in srgb, var(--c) 68%, #000) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent),
    0 0 12px color-mix(in srgb, var(--c) 62%, transparent);
}

.my-folder-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.my-folder-count {
  margin-top: 6px;
  font-size: 1.0625rem;
  color: var(--fg-soft);
}
.my-folder-count b {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ci);
  font-variant-numeric: tabular-nums;
  margin-right: 5px;
}
.my-folder-desc {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.56;
  color: var(--fg-soft);
  max-width: 44ch;
}

.my-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
}
.my-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-family: var(--font-rounded);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
}
.my-breakdown dd { color: var(--fg); font-weight: 650; font-variant-numeric: tabular-nums; }

.my-folder-names {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
}

.my-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 14px;
  margin-top: clamp(28px, 3.6vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  /* Tabular figures, so counting from 0 to 208 never shifts the layout. */
  font-feature-settings: "tnum" 1;
}
.my-total span { color: var(--fg-soft); }
.my-total i { font-style: normal; color: var(--fg-faint); font-weight: 400; }
.my-total b {
  position: relative;
  color: var(--fg);
  transition: text-shadow 600ms var(--ease-out);
}
/* One contained completion bloom when 208 lands: a restrained
   four-colour reflection, then it settles and stays readable. */
.my-total b.is-complete {
  text-shadow:
    0 0 18px color-mix(in srgb, var(--red) 34%, transparent),
    0 -6px 20px color-mix(in srgb, var(--yellow) 26%, transparent),
    6px 4px 20px color-mix(in srgb, var(--blue) 26%, transparent),
    -6px 4px 20px color-mix(in srgb, var(--green) 26%, transparent);
}



/* ============================================================
   11 · ORIGIN
============================================================ */
.my-origin { padding: var(--sec-pad) 0; }
.my-origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.my-origin-art img {
  width: 100%;
  transform: translate3d(0, var(--par, 0px), 0);
  border-radius: 4px;
  /* paper-cut shadow: the plate sits on top of the page */
  box-shadow:
    0 1px 0 rgba(255,255,255,.6),
    0 20px 44px -22px rgba(21,21,18,.5),
    0 70px 100px -70px rgba(21,21,18,.55);
}
.my-origin-art figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.my-origin-body {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(1.03125rem, 0.98rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-soft);
}
.my-origin-body b { color: var(--fg); font-weight: 650; }

.my-quote {
  margin-top: 32px;
  padding-left: 22px;
  border-left: 2px solid var(--green);
  max-width: 44ch;
}
.my-quote p {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.my-quote footer {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.my-origin-handles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
}
.my-origin-handles i { font-style: normal; color: var(--fg-faint); }


/* ============================================================
/* ============================================================
   12 · LICENSE, the Signal Pass
   Not a spreadsheet and not a legal document dropped into a rectangle:
   an optical release pass. A narrative side carries the statement and a
   release-status light; an interactive side is three glass checkpoints
   with ONE dominant detail panel. An amber optical line tracks the
   selected checkpoint.
============================================================ */
.my-license { padding: var(--sec-pad) 0; }

.my-pass {
  --amber: var(--orange);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--glass-radius-lg);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 4% 0%, color-mix(in srgb, var(--amber) 15%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 1px color-mix(in srgb, var(--amber) 26%, transparent),
    0 26px 60px -32px color-mix(in srgb, var(--amber) 34%, transparent),
    0 10px 30px -22px rgba(21,21,18,.32);
}
/* Perforated pass edge between the two halves, the one literal nod to a
   real ticket. Decorative, so it disappears when the grid stacks. */
.my-pass-perf {
  position: absolute;
  top: 12%; bottom: 12%;
  left: calc(46% - 1px);
  width: 2px;
  background: repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--amber) 34%, transparent) 0 5px,
    transparent 5px 11px);
  pointer-events: none;
}

/* --- Narrative side ---------------------------------------------- */
.my-pass-flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--amber) 86%, #000 14%);
}
/* Release-status light: warm, alive, and it means something. It is on
   because there IS a license to read before release. */
.my-pass-light {
  --lit: var(--amber, var(--orange));
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 34% 30%, #fff, var(--lit) 55%, color-mix(in srgb, var(--lit) 66%, #000) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lit) 40%, transparent),
    0 0 calc(8px + var(--fly-glow, .65) * 10px) color-mix(in srgb, var(--lit) 68%, transparent);
}

.my-pass-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 16ch;
  text-wrap: balance;
}
.my-pass-lede {
  margin-top: 14px;
  max-width: 34ch;
  font-size: clamp(1.03125rem, 0.98rem + 0.32vw, 1.125rem);
  line-height: 1.56;
  color: var(--fg-soft);
}

/* The signal line: source → license → release. A quiet illustration of
   why this section exists at all. */
.my-pass-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.my-pass-signal span { white-space: nowrap; }
.my-pass-signal i {
  flex: 1;
  min-width: 14px;
  height: 1px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--amber) 55%, transparent),
    color-mix(in srgb, var(--amber) 22%, transparent));
}

/* --- Interactive side: three glass checkpoints ------------------- */
.my-pass-panel { min-width: 0; }

.my-checks {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: inset 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.my-checks::-webkit-scrollbar { display: none; }

.my-check {
  --gc-tint: transparent;
  --gc-ink: var(--fg-soft);
  --gc-rim: transparent;
  --gc-edge: transparent;
  --gc-gloss: 0;
  --gc-blur: 0px;
  flex: 1 1 0;
  min-width: max-content;
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.9375rem;
  white-space: nowrap;
  box-shadow: none;
}
.my-check::before { opacity: 0; transition: opacity 200ms ease; }
.my-check.is-selected {
  --gc-tint: color-mix(in srgb, var(--amber) 16%, #fff 72%);
  --gc-ink: color-mix(in srgb, var(--amber) 82%, #000 18%);
  --gc-rim: rgba(255,255,255,.95);
  --gc-edge: color-mix(in srgb, var(--amber) 30%, transparent);
  --gc-gloss: .6;
  --gc-blur: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 var(--gc-rim),
    inset 0 -1px 1px var(--gc-edge),
    0 4px 14px -6px color-mix(in srgb, var(--amber) 52%, transparent);
}
.my-check.is-selected::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .my-check:not(.is-selected):hover {
    --gc-tint: color-mix(in srgb, var(--ink) 5%, transparent);
    --gc-ink: var(--fg);
    transform: none;
    box-shadow: none;
  }
}

/* The optical line that moves to the selected checkpoint. Transform
   only, so it slides on the compositor. */
.my-checks-line {
  position: absolute;
  left: 0; bottom: 3px;
  height: 2px;
  width: 100px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--amber) 90%, transparent) 22%,
    color-mix(in srgb, var(--amber) 90%, transparent) 78%,
    transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 62%, transparent);
  transform-origin: left center;
  transform: translate3d(var(--line-x, 0px), 0, 0) scaleX(var(--line-s, 1));
  transition: transform 380ms var(--ease-out);
  pointer-events: none;
}
.my-checks-line[hidden] { display: none; }

.my-check-panel {
  margin-top: clamp(18px, 2.4vw, 26px);
}
.my-check-panel[hidden] { display: none; }
.my-check-h {
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--amber) 82%, #000 18%);
}
.my-check-lede {
  margin-top: 8px;
  font-size: clamp(1rem, 0.96rem + 0.28vw, 1.0625rem);
  line-height: 1.56;
  color: var(--fg-soft);
  max-width: 44ch;
}
.my-check-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.my-check-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg-soft);
}
.my-check-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px color-mix(in srgb, var(--amber) 60%, transparent);
}
.my-check-list b { color: var(--fg); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Without JavaScript every panel is simply visible: no information is
   ever locked behind an interaction. */
html:not(.js) .my-checks { display: none; }
html:not(.js) .my-check-panel { display: block !important; }
html:not(.js) .my-check-panel + .my-check-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--orange) 26%, transparent); }


/* ============================================================
   13 · PURCHASE
   The DOM order IS the mobile reading order, so a screen reader and a
   phone see exactly the same sequence:

     eyebrow → MYlodia → "+208 original sounds..." → cover
     → four coloured points → price → CTA → license reminder

   Desktop only re-places those same nodes into two columns with named
   grid areas. Nothing is reordered visually against the source.
============================================================ */
.my-buy { padding: clamp(46px, 6vw, 88px) 0 var(--sec-pad-lg); }

.my-buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "head  cover"
    "list  cover"
    "price cover"
    "cta   cover"
    "lic   cover";
  column-gap: clamp(28px, 4vw, 60px);
  align-content: center;
  align-items: start;
}
.my-buy-head  { grid-area: head; }
.my-buy-cover { grid-area: cover; align-self: center; }
.my-buy-list  { grid-area: list; }
.my-price     { grid-area: price; }
.my-buy-cta   { grid-area: cta; justify-self: start; }
.my-buy-license { grid-area: lic; }

.my-buy-cover {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.my-buy-cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.28),
    0 24px 54px -24px rgba(0,0,0,.6),
    0 70px 100px -60px rgba(0,0,0,.55);
}
.my-buy-cover-glow {
  position: absolute;
  inset: -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--red) 34%, transparent), transparent 70%);
  filter: blur(40px);
}

.my-buy .my-eyebrow { color: var(--fg-faint); }

.my-buy-title {
  display: flex;
  align-items: baseline;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  line-height: 0.92;
  margin-bottom: 14px;
}

.my-buy-lede {
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--fg);
  max-width: 30ch;
  font-variant-numeric: tabular-nums;
}

.my-buy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 22px;
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-soft);
}
.my-buy-list li { display: inline-flex; align-items: center; gap: 9px; }

.my-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: clamp(22px, 3vw, 34px) 0 20px;
}
.my-price b {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.my-price span {
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-faint);
}

.my-buy-license {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 46ch;
}
.my-buy-license strong { color: var(--fg); font-weight: 650; }


/* ============================================================
   13b · CHECKOUT PANEL

   The purchase moment, kept on the page. The panel is the same
   Liquid Glass material as every other MYlodia control, sized so
   the provider's form is the largest thing in it: the frame gets
   the space, the chrome around it stays quiet.

   Desktop: the card materialises in place, centred, with the page
   dimmed and pushed back behind it (a modal task, so it earns a
   scrim). Phones: it arrives as a sheet from the bottom edge and
   leaves the same way, so the gesture and the motion agree.
============================================================ */
.my-checkout {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3.5vw, 48px);
}
.my-checkout[hidden] { display: none; }

.my-checkout-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 44%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.my-checkout.is-open .my-checkout-scrim {
  opacity: 1;
  transition: opacity 340ms var(--ease-out);
}

.my-checkout-card {
  /* A translucent surface sitting on another translucent surface is
     the one stack Apple's material rules forbid, so this card is
     tinted well past the default glass: readable over anything. */
  --glass-tint: color-mix(in srgb, var(--paper-lift) 90%, transparent);
  --glass-blur: 30px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  /* A committed height, not a content height: the provider's form is
     long, and every extra visible line is a question the buyer does
     not have to scroll a nested frame to find. */
  height: min(88vh, 880px);
  max-height: min(88vh, 880px);
  padding: 18px 18px 16px;
  border-radius: var(--glass-radius-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 color-mix(in srgb, var(--ink) 10%, transparent),
    0 1px 0 var(--glass-border),
    0 60px 120px -40px color-mix(in srgb, var(--ink) 60%, transparent);
  /* Exit: shorter, the system answering. */
  opacity: 0;
  transform: translateY(18px) scale(0.965);
  filter: blur(12px);
  transition: opacity 200ms ease,
              transform 220ms var(--ease-out),
              filter 200ms ease;
}
.my-checkout.is-open .my-checkout-card {
  /* Enter: the material arrives, blur and scale resolving together
     rather than a flat fade. */
  opacity: 1;
  transform: none;
  filter: blur(0px);
  transition: opacity 300ms var(--ease-out),
              transform 420ms var(--ease-out),
              filter 380ms var(--ease-out);
}

/* Sheet grip. Only meaningful on the phone layout. */
.my-checkout-grip {
  display: none;
  width: 42px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}

.my-checkout-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 2px 2px 16px;
}
/* The four plates, as a bloom rather than a legend. */
.my-checkout-head::before {
  content: "";
  position: absolute;
  left: -12px; right: -12px; top: -22px;
  height: 90px;
  border-radius: 999px;
  background:
    radial-gradient(60% 100% at 12% 50%, color-mix(in srgb, var(--red) 24%, transparent), transparent 70%),
    radial-gradient(60% 100% at 38% 50%, color-mix(in srgb, var(--yellow) 22%, transparent), transparent 70%),
    radial-gradient(60% 100% at 64% 50%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 70%),
    radial-gradient(60% 100% at 90% 50%, color-mix(in srgb, var(--green) 22%, transparent), transparent 70%);
  filter: blur(26px);
  opacity: 0.55;
  pointer-events: none;
}
.my-checkout-id { position: relative; flex: 1 1 auto; min-width: 0; }

.my-checkout-eyebrow {
  font-family: var(--font-rounded);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 4px;
}
.my-checkout-title {
  display: flex;
  align-items: baseline;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  line-height: 1;
}
.my-checkout-price {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  padding-top: 14px;
}
.my-checkout-price b {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.my-checkout-price span {
  font-family: var(--font-rounded);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-faint);
  white-space: nowrap;
}
.my-checkout-close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  min-height: 40px;
  margin-top: 10px;
}
.my-checkout-close svg { width: 15px; height: 15px; }

/* --- the provider's frame ---------------------------------- */
.my-checkout-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: var(--glass-radius-sm);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent),
    0 18px 40px -26px color-mix(in srgb, var(--ink) 55%, transparent);
}
.my-checkout-frame iframe {
  /* Absolute, not height:100%. The wrapper is sized by flex, so a
     percentage height has nothing to resolve against and the iframe
     would fall back to its 150px intrinsic default. */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 420ms var(--ease-out);
}
.my-checkout-frame.is-loaded iframe { opacity: 1; }

.my-checkout-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  font-family: var(--font-rounded);
  font-size: 0.9375rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  background: #FFFFFF;
  transition: opacity 300ms var(--ease-out);
}
.my-checkout-frame.is-loaded .my-checkout-status {
  opacity: 0;
  visibility: hidden;
}
.my-checkout-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent);
  animation: my-checkout-pulse 1.6s var(--ease-in-out) infinite;
}
@keyframes my-checkout-pulse {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 14px color-mix(in srgb, var(--red) 0%, transparent); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 0%, transparent); }
}

/* --- foot ---------------------------------------------------- */
.my-checkout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px 0;
}
.my-checkout-micro {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--fg-faint);
}
.my-checkout-micro svg { flex: 0 0 auto; width: 13px; height: 13px; }

.my-checkout-fallback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-family: var(--font-rounded);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.my-checkout-fallback svg { width: 12px; height: 12px; }
.my-checkout-fallback:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.my-checkout-fallback:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll lock. The gutter is replaced by padding so nothing behind
   the scrim shifts sideways as the scrollbar disappears. */
html.my-checkout-open,
html.my-checkout-open body { overflow: hidden; }
html.my-checkout-open body { padding-right: var(--my-sb, 0px); }


/* ============================================================
   14 · FOOTER
============================================================ */
.my-footer {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 10vw, 120px);
  border-top: 1px solid var(--hair);
}
.my-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.my-footer-brand {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.my-footer-h {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.my-footer-line {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--fg-soft);
}
.my-footer-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* comfortable on touch, invisible on desktop */
  text-decoration: none;
  transition: color 180ms ease;
}
.my-footer-line:has(a) { line-height: 1.2; }
@media (hover: hover) and (pointer: fine) {
  .my-footer-line a:hover { color: var(--fg); }
}

.my-footer-sign {
  max-width: var(--wrap);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding-inline: var(--gut);
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  letter-spacing: -0.01em;
  color: var(--fg-faint);
}
.my-footer-copy {
  max-width: var(--wrap);
  margin: 22px auto 0;
  padding-inline: var(--gut);
  font-size: 0.75rem;
  color: var(--fg-faint);
}


/* ============================================================
   15 · RESPONSIVE
============================================================ */
@media (max-width: 1080px) {
  .my-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .my-chain::before { display: none; }
  .my-node-dot { position: static; display: block; margin-bottom: 10px; transform: scale(0.55); }
  .my-pass { grid-template-columns: minmax(0, 1fr); }
  .my-pass-perf { display: none; }
  .my-pass-title { max-width: none; }
  .my-pass-lede { max-width: 52ch; }
}

@media (max-width: 920px) {
  /* One row less of header, since the license strip below is dropped
     on this layout (it is still stated in the sticky bar, the purchase
     block and the footer). */
  :root { --header-h: 96px; }

  .my-header-license { display: none; }

  .my-header-in { flex-wrap: wrap; gap: 10px 16px; }
  .my-nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .my-nav::-webkit-scrollbar { display: none; }
  .my-nav a { white-space: nowrap; }
  .my-header-buy { margin-left: auto; }

  /* Hero, phone reading order: the name, what it is, what it is made
     of, THEN the object. The cover is the payoff of the sentence above
     it rather than the opening line.

     The copy block becomes display:contents so its children join the
     hero as siblings of the cover and can be ordered around it. The
     desktop DOM, and therefore the reading order a screen reader gets,
     is untouched. */
  .my-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .my-hero-copy { display: contents; }

  .my-kicker    { display: none; }   /* "Out now · Auralis Audio" */
  .my-wordmark  { order: 1; }
  .my-hero-sub  { order: 2; }
  .my-hero-lede { order: 3; max-width: none; }
  .my-cover     { order: 4; width: 100%; max-width: 420px; margin: 28px auto 0; }
  .my-swatches  { order: 5; }
  .my-hero-buy  { order: 6; }
  .my-specs     { order: 7; }
  .my-cover-cap { display: none; }

  /* One reading axis for the whole phone layout. Every section head
     starts on the page gutter, so the eye never has to re-find where
     the line begins; the console was the only centred one. */
  .my-sec-head-center { text-align: start; }

  .my-console-rig { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .my-console-player { max-width: 520px; margin-inline: auto; }
  .my-knobs { max-width: 400px; margin-inline: auto; }
  .my-console-lights { position: static; justify-content: center; margin-bottom: 12px; }

  .my-origin-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .my-origin-art { max-width: 420px; }

  /* One column, in the source order: head, cover, points, price, CTA,
     license. This is the order the handoff specifies for mobile.
     Left-aligned like every other block on this layout: the cover is
     the only thing that stays centred, because it is an image and not
     a line of text. */
  .my-buy-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "cover" "list" "price" "cta" "lic";
    text-align: start;
    row-gap: 0;
  }
  .my-buy-title { justify-content: flex-start; }
  .my-buy-lede, .my-buy-license { margin-inline: 0; }
  .my-buy-list { justify-content: flex-start; }
  .my-buy-cover { margin-top: 24px; max-width: 340px; }
  .my-price { align-items: flex-start; }
  .my-buy-cta { justify-self: start; }

  .my-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-plate-wide { grid-column: span 2; }

  .my-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .my-folder,
  .my-folder:not(:has(.my-breakdown)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "index" "title" "count" "desc" "break" "names";
  }
  .my-breakdown { margin-top: 18px; }
}

@media (max-width: 700px) {
  /* The dock scrolls DELIBERATELY: snap points, an edge-bleed so the
     next folder is clearly peeking in, and JS keeps the selected folder
     scrolled into view. No half-cut fourth folder with no cue. */
  .my-folder-dock {
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  }

  /* Signal path plates: a single-row scroll-snap gallery instead of a
     2600px vertical stack. Native horizontal swipe, no scroll-jacking. */
  .my-plates {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1);
    padding: 0 var(--gut) 8px;
  }
  .my-plates::-webkit-scrollbar { display: none; }
  .my-plate, .my-plate-wide { flex: 0 0 74%; grid-column: auto; scroll-snap-align: center; }
  .my-plate img { transform: none; }
  .my-plates-nav { display: flex; }

  .my-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-header-price { display: none; }
  .my-header-license { font-size: 0.8125rem; }
  .my-bar-name span { display: none; }
  .my-check { flex: 0 0 auto; }

  /* Checkout becomes a sheet: it arrives from the bottom edge and
     leaves the same way, so where it came from is never in doubt.
     No blur on the way in either, a full-width blurred surface is
     the most expensive thing you can animate on a phone. */
  .my-checkout { place-items: end center; padding: 0; }
  .my-checkout-card {
    width: 100%;
    height: 90vh;
    max-height: 94vh;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    transform: translateY(100%);
    filter: none;
    opacity: 1;
    transition: transform 260ms var(--ease-drawer);
  }
  .my-checkout.is-open .my-checkout-card {
    transform: translateY(0);
    filter: none;
    transition: transform 420ms var(--ease-drawer);
  }
  .my-checkout-grip { display: block; }
  .my-checkout-frame { min-height: 0; }
  .my-checkout-head { padding-bottom: 12px; }
  .my-checkout-price { padding-top: 10px; }
  .my-checkout-foot { flex-wrap: wrap; gap: 8px 14px; padding-top: 12px; }
}

@media (max-width: 480px) {
  .my-track { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .my-play { width: 48px; height: 48px; }
  .my-wave { height: 46px; }
  .my-specs { gap: 14px 26px; }

  .my-knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .my-knob-dial { width: 76px; height: 76px; }
  .my-console-rig { padding: 18px 16px; }
  /* Waveform and transport stay together at the top; the arrows sit on
     their own row so nothing shrinks below 44px. */
  .my-console-transport {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "play wave" "prev next";
    row-gap: 10px;
  }
  .my-console-play { grid-area: play; }
  .my-cwave { grid-area: wave; }
  .my-console-arrow:first-child { grid-area: prev; }
  .my-console-arrow:last-child { grid-area: next; justify-self: end; }

  /* 18px, same inner gutter as every other card on this layout, so the
     text inside them all lands on one vertical line. */
  .my-pass { padding: 20px 18px; }
  .my-buy-stage, .my-thesis-stage { padding: 26px 18px; }
  .my-folder-viewer { padding: 20px 18px; }

  /* Processed, Dry and Reset share one row on a phone, so the whole
     control set is understood without a long scroll past the knobs. */
  .my-knob-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
  }
  .my-knob-hint { flex: 1 0 100%; max-width: none; }
  .my-console { padding: 40px 0; }
  .my-knob-label b { font-size: 0.9375rem; }
  .my-console-name { font-size: 1.375rem; }
}

@media (max-width: 360px) {
  .my-chain { grid-template-columns: minmax(0, 1fr); }
  .my-breakdown { grid-template-columns: minmax(0, 1fr); }
  .my-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .my-folder-tab { min-width: 78px; }
  .my-cta-xl { padding: 0 26px; font-size: 1.0625rem; }
}


/* ============================================================
   16 · ACCESSIBILITY PREFERENCES
   Reduced motion means gentler, not absent: light, colour and opacity
   still carry meaning, movement and parallax do not.
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }

  .js [data-rise] { transform: none; transition: opacity 240ms ease; }
  .js [data-rise].is-in { transform: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }

  .my-paper-field, .my-paper-field::after { animation: none; transform: none; }
  .my-cover-img { transform: none !important; }
  .my-plate img, .my-origin-art img { transform: none !important; }
  .my-scroll-hint span::before { animation: none; }
  .my-chain::before { transition: none; }

  /* The knob halo and the folder light are LIGHT, not movement: they
     stay, because they are how the control says "I am being touched".
     Only the travel is removed. */
  .my-folder-icon-body { transform: none; }
  .my-folder-viewer-bloom { display: none; }
  .my-glass-control:hover { transform: none; }
  .my-glass-control:focus-visible { transform: none; }

  .my-bar { transition: opacity 200ms ease; }
  .my-link-btn:hover svg { transform: none; }

  /* The checkout still fades, it just stops travelling and stops
     resolving out of blur. The loading pulse becomes a steady dot. */
  .my-checkout-card,
  .my-checkout.is-open .my-checkout-card {
    transform: none !important;
    filter: none !important;
    transition: opacity 220ms ease;
  }
  .my-checkout-card { opacity: 0; }
  .my-checkout.is-open .my-checkout-card { opacity: 1; }
  .my-checkout-pulse { animation: none; opacity: 0.8; }
}

@media (prefers-reduced-transparency: reduce) {
  .my-header, .my-bar {
    background: var(--paper-base);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-paper-fibre, .my-paper-halftone { opacity: 0.02; }
  .my-paper-field { opacity: 0.16; filter: none; }
  .my-paper-field::after { filter: none; }
  .my-console-rig, .my-pass, .my-folder-viewer {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-console-rig { background: linear-gradient(166deg, #2A201D, #17120F); }
  .my-pass, .my-folder-viewer { background: #F7F1E5; }

  .my-checkout-scrim {
    background: color-mix(in srgb, var(--ink) 72%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-checkout-card {
    background: #F7F1E5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-checkout-head::before { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --fg-soft: var(--fg);
    --fg-faint: color-mix(in srgb, var(--fg) 78%, transparent);
    --hair: color-mix(in srgb, var(--fg) 55%, transparent);
  }
  .my-paper-fibre, .my-paper-halftone, .my-paper-field { opacity: 0.02; }
  .my-header, .my-bar { background: var(--paper-base); }
  .my-folder-viewer, .my-pass { background: #FFFDF8; }
  .my-check.is-selected, .my-ab-btn.is-selected { outline: 2px solid currentColor; outline-offset: -2px; }

  .my-checkout-scrim { background: color-mix(in srgb, var(--ink) 82%, transparent); }
  .my-checkout-card {
    background: #FFFDF8;
    border: 2px solid var(--fg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .my-checkout-head::before { display: none; }
  .my-checkout-fallback { color: var(--fg); border-bottom-color: var(--fg); }
}

@media print {
  .my-paper, .my-bar, .my-header, .my-checkout { display: none; }
  body.my { background: #fff; color: #000; }
  .js [data-rise], .js [data-reveal] { opacity: 1; transform: none; }
  .my-check-panel { display: block !important; }
}
