/* ==========================================================================
   Senvori Radio — Senvori Pure / Sound Object
   1. Tokens   2. Base   3. Atmosfera   4. Cabeçalho   5. Hero
   6. Sound Object (player)   7. Rodapé   8. Tablet   9. Mobile
   10. Movimento reduzido e contraste
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
}

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --cream: #FAF5F1;
  --ink: #101427;
  --muted: #65636D;
  --peach: #FF835C;
  --purple: #775BFF;
  --blue: #2D54FF;
  --lilac: #B79CFF;
  --rose: #FF3E72;
  --alert: #C2264F;

  --glass-hi: rgba(255, 255, 255, .72);
  --glass-lo: rgba(255, 255, 255, .60);
  --rim: rgba(255, 255, 255, .93);
  --blur: 26px;
  --hair: rgba(16, 20, 39, .12);

  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(26px, 6.5vw, 100px);
  --max: 1510px;

  --object-radius: 100px;
  --play: 128px;
  --logo-h: clamp(36px, 2.9vw, 46px);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --level: 0; /* energia do áudio (0–1), escrita pelo app.js com envelope lento */
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas { display: block; }

[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

/* 3. Atmosfera ------------------------------------------------------------- */

.atmo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.atmo__halo {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.atmo__halo--violet {
  width: 74vmax;
  height: 74vmax;
  right: -24vmax;
  top: -34vmax;
  background: radial-gradient(closest-side, rgba(119, 91, 255, .34), rgba(119, 91, 255, .12) 56%, rgba(119, 91, 255, 0));
  animation: halo-a 18s ease-in-out infinite alternate;
}

.atmo__halo--peach {
  width: 66vmax;
  height: 66vmax;
  left: -26vmax;
  bottom: -36vmax;
  background: radial-gradient(closest-side, rgba(255, 131, 92, .40), rgba(255, 131, 92, .13) 56%, rgba(255, 131, 92, 0));
  animation: halo-b 18s ease-in-out infinite alternate;
}

.atmo__halo--blue {
  width: 48vmax;
  height: 48vmax;
  right: 2vmax;
  bottom: -24vmax;
  background: radial-gradient(closest-side, rgba(45, 84, 255, .17), rgba(45, 84, 255, 0));
  animation: halo-a 18s ease-in-out infinite alternate-reverse;
}

.atmo__ribbon {
  position: absolute;
  left: -6%;
  top: -6%;
  width: 112%;
  height: 112%;
  will-change: transform;
  animation: ribbon 18s ease-in-out infinite alternate;
}

.atmo__grain {
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .08 0 0 0 0 .15 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes halo-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3vmax, 2.5vmax, 0) scale(1.08); }
}

@keyframes halo-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(3.5vmax, -2vmax, 0) scale(1); }
}

@keyframes ribbon {
  from { transform: translate3d(-1.4%, .8%, 0) rotate(-.7deg) scale(1.02); }
  to   { transform: translate3d(1.4%, -1.2%, 0) rotate(.6deg) scale(1.06); }
}

/* 4. Cabeçalho ------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(20px, 3.4vh, 40px) clamp(8px, 1.4vh, 16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 16px);
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

/* O arquivo oficial tem respiro interno: 1,76% à esquerda. A margem negativa
   alinha o símbolo ao eixo do título sem tocar nos vetores. */
.brand__logo {
  height: var(--logo-h);
  width: auto;
  margin-left: calc(var(--logo-h) * -.089);
}

.brand__qualifier {
  position: relative;
  padding-left: clamp(10px, 1.1vw, 16px);
  font-family: var(--font-ui);
  font-size: clamp(.625rem, .32rem + .5vw, .75rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
  transform: translateY(.06em);
}

.brand__qualifier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.7em;
  background: var(--hair);
  transform: translateY(-50%);
}

.top__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.top__tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple) 55%, var(--peach));
}

/* 5. Hero ------------------------------------------------------------------ */

.stage {
  display: grid;
  align-content: center;
  gap: clamp(34px, 6.4vh, 80px);
  padding-block: clamp(20px, 3.6vh, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 22rem);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: end;
}

.eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2.6vh, 30px);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple) 45%, var(--peach));
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, min(1.2rem + 7.4vw, 17.5vh), 8.25rem);
  line-height: .95;
  letter-spacing: -.048em;
  margin-left: -.045em; /* compensa o recuo lateral do "S" */
  text-wrap: balance;
}

.headline span { display: block; }

.lede {
  max-width: 22rem;
  padding-bottom: .5em;
  font-size: clamp(1rem, .82rem + .42vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* 6. Sound Object ---------------------------------------------------------- */

.object {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  column-gap: clamp(22px, 2.8vw, 48px);
  min-height: 180px;
  padding: 26px clamp(30px, 3.4vw, 56px) 26px 26px;
  border: 1px solid var(--rim);
  border-radius: var(--object-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(118deg, var(--glass-hi), var(--glass-lo));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  /* De dentro para fora: fio de luz no topo, espessura do vidro, refração na base, sombra de contato e halo. */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 0 26px rgba(255, 255, 255, .50),
    inset 0 -2px 0 rgba(255, 255, 255, .70),
    inset 0 -20px 34px -22px rgba(119, 91, 255, .34),
    inset 0 30px 44px -34px rgba(255, 255, 255, .95),
    0 1px 1px rgba(16, 20, 39, .05),
    0 10px 22px -14px rgba(34, 28, 96, .38),
    0 28px 56px -28px rgba(52, 44, 130, .40),
    0 70px 120px -58px rgba(255, 112, 92, .50);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .object { background: rgba(255, 255, 255, .9); }
}

/* Aresta iridescente: um fio de luz na borda do vidro. */
.object::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(102deg,
    rgba(45, 84, 255, .50) 0%,
    rgba(119, 91, 255, .34) 22%,
    rgba(255, 255, 255, .95) 46%,
    rgba(255, 255, 255, .95) 58%,
    rgba(255, 131, 92, .50) 82%,
    rgba(255, 62, 114, .42) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Luz interna: acende devagar com a energia do áudio (envelope lento, sem flash). */
.object__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(46% 130% at 9% 52%, rgba(119, 91, 255, .26), rgba(119, 91, 255, 0) 70%),
    radial-gradient(40% 130% at 92% 60%, rgba(255, 131, 92, .26), rgba(255, 131, 92, 0) 70%);
  opacity: calc(.35 + var(--level) * .65);
  transition: opacity .5s linear;
  pointer-events: none;
}

/* Play --------------------------------------------------------------------- */

.play {
  position: relative;
  isolation: isolate;
  flex: none;
  width: var(--play);
  height: var(--play);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(120% 120% at 30% 16%, #323a63 0%, #171c38 44%, #0b0f22 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -12px 26px rgba(119, 91, 255, .30),
    0 2px 2px rgba(16, 20, 39, .22),
    0 14px 26px -10px rgba(16, 20, 39, .50),
    0 30px 56px -20px rgba(92, 70, 220, .50);
  transition: transform .2s var(--ease-out), box-shadow .3s var(--ease-out);
  touch-action: manipulation;
}

/* Anel de brilho: repousa discreto, pulsa em ciclo lento quando há som. */
.play::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 215deg, #2D54FF, #775BFF, #CDBBFF, #FF835C, #FF3E72, #775BFF, #2D54FF);
  filter: blur(11px);
  opacity: .30;
  transition: opacity .6s var(--ease-out);
}

/* Aro fino que define a borda da esfera. */
.play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 40%, rgba(183, 156, 255, .5) 78%, rgba(255, 131, 92, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

@media (hover: hover) {
  .play:hover {
    transform: scale(1.035);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .30),
      inset 0 -12px 26px rgba(119, 91, 255, .36),
      0 2px 2px rgba(16, 20, 39, .22),
      0 20px 34px -12px rgba(16, 20, 39, .52),
      0 40px 70px -22px rgba(92, 70, 220, .62);
  }
  .play:hover::before { opacity: .52; }
}

.play:active {
  transform: scale(.963);
  transition-duration: .07s;
}

.play:focus-visible {
  outline-offset: 7px;
  border-radius: 50%;
}

.play__icon {
  grid-area: 1 / 1;
  width: 34%;
  height: 34%;
  fill: currentColor;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}

.play__icon--play { margin-left: 5%; }
.play__icon--busy { width: 44%; height: 44%; fill: none; }

.object[data-state="idle"] .play__icon--play,
.object[data-state="paused"] .play__icon--play,
.object[data-state="error"] .play__icon--play,
.object[data-state="playing"] .play__icon--pause,
.object[data-state="connecting"] .play__icon--busy,
.object[data-state="reconnecting"] .play__icon--busy {
  opacity: 1;
  transform: scale(1);
}

.object[data-state="connecting"] .play__icon--busy,
.object[data-state="reconnecting"] .play__icon--busy {
  animation: spin .95s linear infinite;
}

.object[data-state="playing"] .play::before {
  animation: ring 3.2s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes ring {
  0%, 100% { opacity: .42; transform: scale(.97); }
  50%      { opacity: .78; transform: scale(1.06); }
}

/* Identificação ------------------------------------------------------------ */

.ident { min-width: 0; }

.ident__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}

.object[data-state="playing"] .ident__status { color: var(--ink); }
.object[data-state="error"] .ident__status { color: var(--alert); }

.led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 20, 39, .30);
  box-shadow: 0 0 0 3px rgba(16, 20, 39, .06);
  transition: background .3s, box-shadow .3s;
}

.object[data-state="playing"] .led {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 0 3px rgba(119, 91, 255, .18), 0 0 12px rgba(119, 91, 255, .75);
}

.object[data-state="connecting"] .led,
.object[data-state="reconnecting"] .led {
  background: var(--peach);
  box-shadow: 0 0 0 3px rgba(255, 131, 92, .20);
  animation: led 1.6s ease-in-out infinite;
}

.object[data-state="error"] .led {
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(194, 38, 79, .16);
}

@keyframes led {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.ident__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.02rem + 1.05vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -.028em;
  white-space: nowrap;
}

.ident__track {
  margin-top: 8px;
  font-size: clamp(.9375rem, .86rem + .2vw, 1.0625rem);
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ident__track.is-new { animation: track-in .28s var(--ease-out); }

@keyframes track-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.object[data-state="error"] .ident__track { display: none; }

.fault {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
}

.fault__text {
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--muted);
}

.fault__retry {
  position: relative;
  padding: 7px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s;
  touch-action: manipulation;
}

.fault__retry::after { content: ""; position: absolute; inset: -8px -4px; } /* alvo de toque de 44 px */

@media (hover: hover) {
  .fault__retry:hover { background: var(--ink); color: #fff; }
}

/* Onda --------------------------------------------------------------------- */

.wave {
  min-width: 0;
  height: 104px;
}

.wave__canvas {
  width: 100%;
  height: 100%;
}

/* Aviso do modo sem análise: uma linha na base do objeto, à vista sem competir com a onda. */
.wave__mode {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
  animation: mode-in .5s .5s both;
}

@keyframes mode-in { from { opacity: 0; } to { opacity: 1; } }

/* Volume ------------------------------------------------------------------- */

.volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mute {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
  touch-action: manipulation;
}

@media (hover: hover) {
  .mute:hover { background: rgba(16, 20, 39, .06); }
}

.mute svg { width: 22px; height: 22px; }
.mute__body { fill: currentColor; }

.mute__w1,
.mute__w2,
.mute__x {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: opacity .15s;
}

.mute__x { opacity: 0; }
.mute[data-level="low"] .mute__w2 { opacity: 0; }
.mute[data-level="off"] .mute__w1,
.mute[data-level="off"] .mute__w2 { opacity: 0; }
.mute[data-level="off"] .mute__x { opacity: 1; }

.volume__range {
  --v: .8;
  -webkit-appearance: none;
  appearance: none;
  width: clamp(96px, 9.4vw, 148px);
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.volume__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right,
    var(--ink) 0,
    var(--ink) calc(10px + (100% - 20px) * var(--v)),
    rgba(16, 20, 39, .16) calc(10px + (100% - 20px) * var(--v)),
    rgba(16, 20, 39, .16) 100%);
}

.volume__range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(16, 20, 39, .16);
}

.volume__range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--ink);
}

.volume__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 1px solid rgba(16, 20, 39, .10);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 20, 39, .20), 0 6px 14px -4px rgba(16, 20, 39, .40);
  transition: transform .15s var(--ease-out);
}

.volume__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(16, 20, 39, .10);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 20, 39, .20), 0 6px 14px -4px rgba(16, 20, 39, .40);
}

.volume__range:active::-webkit-slider-thumb { transform: scale(1.12); }

.volume__range:focus-visible { outline: none; }

.volume__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink);
}

.volume__range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink);
}

.volume__value {
  flex: none;
  width: 3ch;
  font-size: .75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  text-align: right;
  color: var(--muted);
}

/* Onde o sistema não deixa a página mexer no volume (iOS sem Web Audio):
   fica só o botão de silenciar; o nível é o dos botões do aparelho. */
.object[data-volume="mute-only"] .volume__range,
.object[data-volume="mute-only"] .volume__value { display: none; }

.noscript {
  margin-top: -12px;
  font-size: .9375rem;
  color: var(--muted);
  text-align: center;
}

/* 7. Rodapé ---------------------------------------------------------------- */

.foot {
  padding-block: clamp(14px, 2.4vh, 26px) max(clamp(18px, 3vh, 34px), env(safe-area-inset-bottom));
}

.foot__line {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 8. Tablet (751–1049) ----------------------------------------------------- */

@media (max-width: 1049px) {
  :root { --play: 96px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(16px, 2.6vh, 26px);
  }

  .headline { font-size: clamp(2.75rem, min(1rem + 8.2vw, 17.5vh), 6.25rem); }

  .lede {
    max-width: 30rem;
    padding-bottom: 0;
  }

  .object {
    grid-template-columns: auto minmax(0, 1.35fr) minmax(0, 1fr) auto;
    column-gap: clamp(16px, 2.4vw, 24px);
    min-height: 136px;
    padding: 20px clamp(20px, 3vw, 30px) 20px 20px;
  }

  .ident__name { font-size: 1.375rem; }
  .ident__track { font-size: .9375rem; }
  .wave { height: 84px; }
  .wave__mode { bottom: 6px; letter-spacing: .18em; }
  .volume { gap: 2px; }
  .volume__range { width: 88px; }
  .volume__value { display: none; }
}

/* 9. Mobile (≤ 750): composição própria, cápsula vertical ------------------ */

@media (max-width: 750px) {
  :root {
    --play: 76px;
    --object-radius: 40px;
    --logo-h: 31px;
  }

  /* No retrato, as ondas sobem para cruzar por trás da cápsula. */
  .atmo__ribbon { top: -21%; }

  .top { padding-block: 18px 6px; }
  .top__tag { letter-spacing: .16em; }

  .stage {
    align-content: start;
    gap: 30px;
    padding-block: clamp(22px, 5vh, 44px) 28px;
  }

  .eyebrow {
    gap: 10px;
    margin-bottom: 0;
    font-size: .6875rem;
    letter-spacing: .2em;
  }

  .eyebrow::before { width: 20px; }

  .hero { row-gap: 16px; }

  .headline {
    font-size: clamp(2.5rem, 13vw, 4.75rem);
    line-height: .97;
  }

  .lede { max-width: 26rem; }

  .object {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "play ident"
      "wave wave"
      "volume volume";
    column-gap: 16px;
    row-gap: 16px;
    min-height: 0;
    padding: 20px 20px 12px;
  }

  .play { grid-area: play; }
  .ident { grid-area: ident; }
  .wave { grid-area: wave; height: auto; }
  .wave__canvas { height: 76px; }
  .volume { grid-area: volume; gap: 8px; margin-inline: -8px -2px; }

  .ident__name { margin-top: 5px; font-size: 1.3125rem; }

  .ident__track {
    margin-top: 5px;
    font-size: .9375rem;
  }

  /* No celular o aviso entra no fluxo, logo abaixo da onda, e pode quebrar em duas linhas. */
  .wave__mode {
    position: static;
    margin-top: 4px;
    font-size: .5625rem;
    letter-spacing: .16em;
    white-space: normal;
  }

  .volume__range { flex: 1; width: auto; min-width: 0; }
  .volume__value { display: block; }

  .object[data-volume="mute-only"] .volume { justify-content: center; }

  .foot__line {
    flex-wrap: wrap;
    justify-content: center;
    font-size: .625rem;
    letter-spacing: .2em;
    text-align: center;
  }

  .foot__line span + span::before {
    content: "·";
    margin-right: 10px;
    margin-left: -14px;
  }
}

@media (max-width: 480px) {
  .top__tag { display: none; }
  .foot__line { flex-direction: column; align-items: center; gap: 4px; }
  .foot__line span + span::before { content: none; }
}

@media (max-width: 350px) {
  :root { --play: 68px; --logo-h: 30px; }
  .object { padding: 16px 16px 10px; column-gap: 12px; }
  .ident__status { letter-spacing: .14em; gap: 8px; }
  .ident__name { font-size: 1.1875rem; }
}

/* Telas baixas (notebook com janela curta): a composição continua em uma tela. */
@media (min-width: 751px) and (max-height: 700px) {
  :root { --play: 96px; }
  .object { min-height: 132px; padding-block: 18px; }
  .wave { height: 80px; }
  .wave__mode { bottom: 5px; }
}

/* 10. Movimento reduzido e contraste -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .atmo__halo,
  .atmo__ribbon { animation: none; }

  .play,
  .play__icon,
  .object__light { transition: none; }

  .play:hover,
  .play:active { transform: none; }

  .object[data-state="playing"] .play::before {
    animation: none;
    opacity: .6;
  }

  .object[data-state="connecting"] .play__icon--busy,
  .object[data-state="reconnecting"] .play__icon--busy { animation-duration: 1.8s; }

  .object[data-state="connecting"] .led,
  .object[data-state="reconnecting"] .led { animation: none; }

  .ident__track.is-new,
  .wave__mode { animation: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #45434C; --hair: rgba(16, 20, 39, .4); }
  .object { background: rgba(255, 255, 255, .94); border-color: var(--ink); }
  .object::before, .object__light { display: none; }
}

@media (forced-colors: active) {
  .object { border: 1px solid CanvasText; }
  .play { border: 2px solid ButtonText; }
  .play__icon { fill: ButtonText; }
}
