/* Keep the selfie visual stable while the comparison changes only audio. */
@media (min-width: 58.001rem) {
  .proof {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    padding: 0;
    background: var(--flow-paper);
  }

  .proof-visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: clamp(31rem, 50vw, 43rem);
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .proof-visual video { object-position: 50% 32%; }

  .proof-inner {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 5vw, 6rem);
  }

  .proof-heading { margin-bottom: clamp(2rem, 4vw, 3rem); }
  .proof-heading h2 { max-width: 13ch; font-size: clamp(2.5rem, 3.8vw, 4rem); }
  .comparison-player { width: 100%; margin: 0; }
  .comparison-head { justify-items: start; }
  .comparison-controls { align-items: flex-start; width: 100%; }
  .comparison-caption { text-align: left; }
}

/* Local material comparison: the composition stays the same in every option. */
:root { --material-color: var(--flow-paper); --material-image: none; --material-size: auto; }
:root[data-material="paper"] {
  --material-color: #f3f0e8;
  --material-image: url('/placeholder/paper-grain.svg');
  --material-size: 160px 160px;
}
:root[data-material="satin"] {
  --material-color: #edece6;
  --material-image: radial-gradient(ellipse at 24% 8%, #fffefa 0%, transparent 65%), linear-gradient(125deg, transparent 25%, #e4e3dd 100%);
}
:root[data-material="glass"] {
  --material-color: #e5e9e4;
  --material-image: radial-gradient(ellipse at 18% 65%, #b8cec0 0%, transparent 60%), radial-gradient(ellipse at 85% 10%, #e8d7c9 0%, transparent 65%);
}
:root[data-material="metal"] {
  --material-color: #dedfdd;
  --material-image: repeating-linear-gradient(0deg, #fff2 0 1px, #25282306 1px 2px, transparent 2px 4px), linear-gradient(110deg, #c7cac7, #f2f3ef 38%, #d7dad6 70%, #ebede8);
}
:root[data-material="mesh"] {
  --material-color: #e9e6ef;
  --material-image: url('/placeholder/feralui-iridescent-cloud.svg');
  --material-size: cover;
}
html[data-material] :is(.proof, .latency, .walk-story, .walk-story-stage, .walk-story-panel, .walk-story-product, .walk-story-selfie, .ear, .fit, .discord-band, .interlude) {
  background-color: var(--material-color);
  background-image: var(--material-image);
  background-size: var(--material-size);
  background-attachment: fixed;
}
html[data-material="glass"] .walk-story-panel {
  background: rgb(255 255 255 / .42);
  backdrop-filter: blur(20px) saturate(.8);
  border-left: 1px solid rgb(255 255 255 / .65);
}
.material-picker {
  position: fixed;
  z-index: 100;
  top: .75rem;
  right: .75rem;
  display: grid;
  gap: .3rem;
  padding: .6rem .8rem;
  color: #343b34;
  background: #faf9f6;
  border: 1px solid #cfcec7;
  border-radius: .5rem;
  font-size: .65rem;
}
.material-picker select { max-width: 10rem; padding: .35rem; color: #202820; background: transparent; border: 0; font: inherit; font-size: .8rem; }
.material-picker select:focus-visible { outline: 2px solid #477051; outline-offset: 2px; }

.proof-visual { background: var(--flow-paper) url('/placeholder/proof-selfie.jpg') center 32% / cover no-repeat; }
.proof-visual > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.latency-video { position: relative; min-height: 0; margin: 0; overflow: hidden; background: var(--flow-paper); }
.latency-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ear-photo { position: relative; overflow: hidden; background: var(--flow-paper); }
.ear-photo video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@media (min-width: 58.001rem) {
  .ear-intro { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .ear-photo { width: min(100%, 25.6rem); max-height: 32rem; aspect-ratio: 4 / 5; justify-self: center; }
}

@media (min-width: 58.001rem) {
  .latency {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    padding: 0;
    background: var(--flow-paper);
  }
  .latency > .section-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(2rem, 3vw, 3rem) clamp(2.5rem, 5vw, 6rem);
    align-self: center;
  }
  .latency-video { align-self: center; height: min(35rem, 72vh); }
}

#controls .latency-head,
#controls .mode-families,
#controls .latency-more { max-width: 27rem; }
#controls .latency-head { gap: 1.1rem; margin-bottom: 1.25rem; }
#controls .latency-head h2 { font-size: clamp(2rem, 3vw, 2.6rem); }
#controls .latency-head p { max-width: 32ch; font-size: .94rem; line-height: 1.55; }
#controls .mode-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .28rem 1rem;
  padding-block: .5rem;
  border-bottom: 1px solid #d5d4d0;
}
#controls .mode-list > div:first-child { border-top: 1px solid #d5d4d0; }
#controls .mode-list dt { grid-column: 1; font-size: 1.02rem; font-weight: 600; }
#controls .mode-ms { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.2rem; font-weight: 500; }
#controls .mode-role { grid-column: 1; grid-row: 2; font-size: .82rem; }
#controls .latency-more { margin: .9rem 0 0; font-size: .8rem; line-height: 1.5; }
#controls .latency-cta { min-height: 3.5rem; margin-top: 1rem; }

.walk-story { position: relative; background: var(--flow-paper); }
.walk-story-intro {
  min-height: 15rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 4vw, 3rem);
  background: #171b18;
  color: #f5f5ef;
}
.walk-story-intro .eyebrow { color: #a9b7a9; }
.walk-story-intro h2 { max-width: 13ch; margin: 1.2rem 0 0; font-size: clamp(2.5rem, 4.4vw, 4.8rem); line-height: 1.05; }
.walk-story-intro a { flex: none; padding-bottom: .3rem; color: #e6e9df; font-size: .84rem; text-decoration: none; border-bottom: 1px solid #667067; }
.walk-story-intro a:hover { border-color: currentColor; }
.walk-story-track { position: relative; }
.walk-story.is-scrolling .walk-story-track { height: 225svh; }
.walk-story.is-scrolling .walk-story-stage { --carry-progress: 0%; position: sticky; top: 8svh; height: 78svh; overflow: hidden; background: var(--flow-paper); }
.walk-story-rail { display: none; position: absolute; z-index: 3; top: 50%; right: 1.3rem; width: 2rem; transform: translateY(-50%); pointer-events: none; }
.walk-story.is-scrolling .walk-story-rail { display: block; }
.walk-story-rail-inner { display: grid; justify-items: center; gap: .6rem; }
.walk-story-rail svg { width: 1.25rem; height: 7.5rem; overflow: visible; }
.walk-story-rail path { stroke: #aeb7ac; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: stroke 220ms ease, stroke-width 220ms ease; }
.walk-story[data-active-step="1"] [data-wave="1"],
.walk-story[data-active-step="2"] [data-wave="2"],
.walk-story[data-active-step="3"] [data-wave="3"] { stroke: #55955d; stroke-width: 2.2; }
.walk-story-counter { color: #727a72; font-size: .6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.walk-story-step { display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 48%); min-height: clamp(36rem, 76vh, 52rem); border-bottom: 1px solid #d9d8d4; }
.walk-story.is-scrolling .walk-story-step { position: absolute; inset: 0; height: 100%; min-height: 0; border: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.walk-story.is-scrolling .walk-story-step.is-leaving { z-index: 3; visibility: visible; opacity: 0; transition: opacity 240ms ease-out; }
.walk-story.is-scrolling .walk-story-step.is-current { z-index: 2; visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
.walk-story-visual { position: relative; min-width: 0; min-height: 100%; margin: 0; overflow: hidden; background: #171b18; }
.walk-story-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.walk-story-selfie { background: var(--flow-paper); }
.walk-story-selfie img { object-fit: cover; object-position: 50% 25%; }
.ear-carry { position: fixed; z-index: 20; display: none; object-fit: cover; object-position: 50% 25%; pointer-events: none; }
.ear-carry-target { overflow: visible; isolation: isolate; }
.ear-carry-target > video { z-index: 1; border-radius: inherit; }
.landing-paint { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: 0; pointer-events: none; fill: #87a775; opacity: 0; transform: scale(.8); }
.has-landed .landing-paint { animation: landing-splat 1100ms cubic-bezier(.16, 1, .3, 1) both; }
.has-landed > video { animation: landing-plop 520ms cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 65%; }
@keyframes landing-splat {
  0% { opacity: 0; transform: scale(.8); }
  12% { opacity: .95; transform: scale(1.23, 1.13) rotate(-3deg); }
  35% { opacity: .75; transform: scale(1.14, 1.09) rotate(-2deg); }
  100% { opacity: .5; transform: scale(1.1, 1.06) rotate(-2deg); }
}
@keyframes landing-plop {
  0% { transform: scale(1.025, .975) rotate(-.6deg); }
  28% { transform: scale(.99, 1.012) rotate(.25deg); }
  55% { transform: scale(1.005, .995) rotate(-.1deg); }
  78% { transform: scale(.998, 1.002) rotate(.04deg); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .has-landed .landing-paint, .has-landed > video { animation: none; } }
#ear { position: relative; --handoff-line: 0%; }
#ear::before { content: ''; position: absolute; top: 0; left: 0; width: var(--handoff-line); height: 1px; background: #63836a; pointer-events: none; }
.walk-story-product { display: grid; place-items: center; padding: clamp(1rem, 2vw, 2rem); background: var(--flow-paper); }
.walk-story-product img { position: static; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.walk-story-panel { display: flex; align-items: center; padding: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 9rem) clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 6rem); background: var(--flow-paper); }
.walk-story-copy { max-width: 27rem; }
.walk-story-copy .eyebrow { color: #687267; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.walk-story-copy h3 { max-width: 12ch; margin: 1.2rem 0 1.5rem; color: #1c231d; font-size: clamp(2.2rem, 3.3vw, 3.7rem); line-height: 1.08; }
.walk-story-copy > p:not(.eyebrow) { max-width: 37ch; margin: 0; color: #686e68; font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.65; }
.walk-story-next { display: inline-block; margin-top: 2rem; padding-bottom: .3rem; color: #244d2c; font-size: .86rem; text-decoration: none; border-bottom: 1px solid #8aa28d; }
.walk-story-next:hover { border-color: currentColor; }

@media (max-width: 58rem) {
  .proof-visual { height: clamp(17rem, 39svh, 21rem); aspect-ratio: auto; }
  .proof-visual > video { object-position: 50% 24%; }
  .latency { padding: 0; border: 0; }
  .latency-video { height: clamp(17rem, 44svh, 25rem); }
  .latency-video video { left: 0; width: 100%; }
  .latency > .section-inner { padding-block: 2rem 2.5rem; }
  .ear-photo { height: clamp(17rem, 38svh, 21rem); max-height: none; aspect-ratio: auto; }
  .ear-photo video { object-position: 50% 23%; }
  .walk-glide { display: none; }
  .walk-story-intro { min-height: 12rem; align-items: end; padding: 2.5rem 1.5rem; }
  .walk-story-intro h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
  .walk-story-intro a { font-size: .75rem; }
  .walk-story-rail { display: none !important; }
  .walk-story-step { display: block; min-height: 0; }
  .walk-story-visual { height: clamp(20rem, 63vw, 32rem); min-height: 0; }
  .walk-story-panel { min-height: 18rem; padding: 3rem 1.5rem 4rem; }
  .walk-story-copy h3 { font-size: clamp(2.2rem, 7vw, 3.3rem); }
  .walk-story.is-scrolling .walk-story-stage { top: 0; height: 80svh; background: var(--flow-paper); }
  .walk-story.is-scrolling .walk-story-visual { height: 44%; }
  .walk-story.is-scrolling .walk-story-panel { height: 56%; min-height: 0; padding: 1.5rem 1.5rem 3rem; }
}

@media (max-width: 36rem) {
  .walk-story-intro { display: block; }
  .walk-story-intro a { display: inline-block; margin-top: 2rem; }
  .walk-story-copy h3 { margin-block: .8rem 1rem; }
  .walk-story-next { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .walk-story-rail path { transition: none; }
  .proof-visual > video, .latency-video video, .ear-photo video { display: none; }
  .latency-video { background: var(--flow-paper) url('/placeholder/controls-selfie.jpg') center / contain no-repeat; }
  .ear-photo { background: var(--flow-paper) url('/placeholder/ear-selfie.jpg') center 45% / cover no-repeat; }
}
/* Live Flow renderer exported from https://feralui.dev/gradients. */
.live-material { display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--flow-paper); }
.live-material canvas { width: 100%; height: 100%; display: block; }
html[data-material^="live-"] .live-material { display: block; }
html[data-material="live-soft"] .live-material canvas { opacity: .18; }
html[data-material^="live-"] :is(.proof, .latency, .walk-story, .walk-story-stage, .walk-story-panel, .walk-story-product, .walk-story-selfie, .ear, .fit, .discord-band, .interlude) { background: transparent; }
html[data-material^="live-"] main { position: relative; z-index: 1; }
html[data-material^="live-"] :is(.proof, .latency, .walk-story, .walk-story-stage, .walk-story-panel, .walk-story-product, .walk-story-selfie, .ear, .fit, .discord-band, .interlude) { background: transparent !important; }
html[data-material="live-flow"] .live-material canvas { opacity: .32; }
