/* ===========================================================
   ECHO — design tokens
   Ink & Signal: dark-first theme built around one motif — the
   equalizer bar — echoed in the hero waveform, the rating
   picker, and every card's rating badge. Light mode inverts
   ink -> paper while keeping the same accent system.
=========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  color-scheme: dark;
  --ink-900: #0F1216;
  --ink-850: #14181E;
  --ink-800: #1A1F27;
  --ink-750: #212733;
  --ink-line: rgba(245, 241, 232, 0.09);
  --ink-line-strong: rgba(245, 241, 232, 0.16);

  --glass-surface: rgba(26, 31, 39, 0.55);
  --glass-surface-strong: rgba(33, 39, 51, 0.72);
  --glass-highlight: rgba(255, 255, 255, 0.06);

  --paper: #F5F1E8;
  --paper-dim: #C9C4B8;
  --paper-faint: #9B978D;

  --signal: #F2A73B;
  --pulse: #FF6B5B;
  --wave: #ac7221;
  --violet: #8C8CF2;

  --on-accent: #241605;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink-900: #EFEBE0;
  --ink-850: #F4F1E7;
  --ink-800: #FBF9F2;
  --ink-750: #FFFFFF;
  --ink-line: rgba(30, 27, 18, 0.08);
  --ink-line-strong: rgba(30, 27, 18, 0.14);

  --glass-surface: rgba(255, 255, 255, 0.55);
  --glass-surface-strong: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.5);

  --paper: #221E14;
  --paper-dim: #48432F;
  --paper-faint: #6E6850;

  --signal: #C3810F;
  --pulse: #E1483A;
  --wave: #1E9C82;
  --violet: #6A63D1;

  --on-accent: #FBF6EA;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

/* No blue/gray flash on tap, no double-tap-zoom delay on anything interactive */
a,
button,
.btn,
.fcard,
.pill,
input,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection {
  background: var(--signal);
  color: var(--on-accent);
}

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

/* ===========================================================
   Smooth 2026 Loader System (No Green, No Jerk)
=========================================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ink-900, #0B0D11);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft 1.1s cubic-bezier exit to prevent jerks */
  transition:
    opacity 1.1s cubic-bezier(.16, 1, .3, 1),
    visibility 1.1s cubic-bezier(.16, 1, .3, 1),
    transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 48px;
}

.loader__bars .bar {
  width: 8px;
  height: 100%;
  background: var(--signal, #F2A73B);
  border-radius: 4px;
  transform-origin: bottom;
  animation: bar-build 1.2s infinite ease-in-out alternate;
  will-change: transform, background-color, opacity;
}

.loader__bars .bar:nth-child(1) {
  animation-delay: 0.0s;
}

.loader__bars .bar:nth-child(2) {
  animation-delay: 0.15s;
}

.loader__bars .bar:nth-child(3) {
  animation-delay: 0.3s;
  background: #E08A2A;
}

.loader__bars .bar:nth-child(4) {
  animation-delay: 0.45s;
}

.loader__bars .bar:nth-child(5) {
  animation-delay: 0.6s;
}

.loader__status {
  font-family: monospace, sans-serif;
  font-size: .8rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--paper-dim, #8A92A6);
  text-transform: uppercase;
}

#loader-text {
  display: inline-block;
  animation: text-pulse .8s infinite alternate ease-in-out;
}

@keyframes bar-build {
  0% {
    transform: scaleY(0.15);
    opacity: 0.3;
    background: var(--ink-line-strong, #2A303C);
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
    background: var(--signal, #F2A73B);
  }

  100% {
    transform: scaleY(0.6);
    opacity: 0.8;
    background: var(--pulse, #FF6B5B);
    /* strictly theme coral/orange */
  }
}

@keyframes text-pulse {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

.loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-40px) scale(0.98);
}

/* Site Content Initial Hidden State */
body>main,
.container,
#app {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(4px);
  transition:
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

/* Site Reveal Active State */
.site-visible body>main,
.site-visible .container,
.site-visible #app {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ===========================================================
   Ambient background — drifting aurora blobs + grain
=========================================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(242, 167, 59, .05) 50%, transparent 58%);
  background-size: 240% 240%;
  animation: bg-sweep 16s ease-in-out infinite;
}

@keyframes bg-sweep {

  0%,
  100% {
    background-position: 0% 20%;
  }

  50% {
    background-position: 100% 80%;
  }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .28;
  animation: blob-drift 26s ease-in-out infinite alternate;
}

.bg-glow--a {
  width: 640px;
  height: 640px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--signal), transparent 70%);
}

.bg-glow--b {
  width: 560px;
  height: 560px;
  top: 480px;
  right: -220px;
  background: radial-gradient(circle, var(--wave), transparent 70%);
  opacity: .16;
  animation-duration: 32s;
  animation-delay: -8s;
}

.bg-glow--c {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: 20%;
  background: radial-gradient(circle, var(--pulse), transparent 70%);
  opacity: .12;
  animation-duration: 38s;
  animation-delay: -16s;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, -40px) scale(1.12);
  }

  100% {
    transform: translate(-40px, 30px) scale(0.96);
  }
}

.bg-grain {
  position: absolute;
  inset: -100px;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink-line-strong) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .6;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  filter: blur(60px);
  opacity: .14;
  animation: orb-float linear infinite;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(var(--ox, 30px), var(--oy, -30px));
  }

  100% {
    transform: translate(0, 0);
  }
}

.bg-icon {
  position: absolute;
  color: var(--paper-faint);
  opacity: .1;
  animation: icon-float ease-in-out infinite;
  pointer-events: none;
}

.bg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes icon-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(var(--ix, 18px), var(--iy, -22px)) rotate(var(--ir, 10deg));
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.bg-sidebar {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .4;
}

.bg-sidebar--left {
  left: 28px;
}

.bg-sidebar--right {
  right: 28px;
}

.bg-sidebar__track {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--signal), var(--wave), var(--pulse), transparent);
  background-size: 100% 300%;
  animation: sidebar-flow 9s linear infinite;
}

@keyframes sidebar-flow {
  0% {
    background-position: 0 0%;
  }

  100% {
    background-position: 0 100%;
  }
}

@media (max-width: 1180px) {
  .bg-sidebar {
    display: none;
  }
}

/* ===========================================================
   Layout helpers
=========================================================== */
main,
header,
footer {
  position: relative;
  z-index: 1;
}

.hero,
.composer-section,
.feed-section,
.spotlight-section,
.nav__inner,
.site-footer__inner {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}

.section-head::after {
  content: "";
  display: block;
  width: 44px;
  height: 2.5px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--signal), var(--pulse));
}

/* ===========================================================
   Scroll-reveal (driven by IntersectionObserver in script.js)
=========================================================== */
[data-reveal],
[data-reveal-words] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].in-view,
[data-reveal-words].in-view {
  opacity: 1;
  transform: translateY(0);
}

.fcard[data-reveal-card] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.fcard[data-reveal-card].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* word-by-word hero title reveal */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotate(2deg);
  transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
  transition-delay: calc(var(--w) * 60ms);
}

.hero__title.in-view .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Parent EM tag normal container rahega */
#heroTitle em,
.hero h1 em {
  font-style: italic !important;
  display: inline-block !important;
  visibility: visible !important;
  background: none !important;
  color: inherit !important;
}

/* Gradient strictly EM ke andar wale spans par load hoga */
#heroTitle em .word,
.hero h1 em .word {
  background: linear-gradient(100deg, var(--signal), var(--pulse) 65%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-style: italic !important;
  display: inline-block !important;
  -webkit-transform: translateZ(0);
  /* Prevents mobile disappearing bug */
}

/* ===========================================================
   NAV
=========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}

.nav.is-scrolled {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--paper);
}

.nav__logo--small {
  font-size: 1.1rem;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.mbar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--signal), var(--pulse));
  height: calc(6px + var(--i) * 3px);
  transition: transform .3s var(--ease-spring);
}

.nav__logo:hover .mbar {
  transform: scaleY(1.25);
}

.nav__links {
  display: flex;
  gap: 26px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--paper-dim);
}

.nav__links a {
  text-decoration: none;
  transition: color .2s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--signal), var(--pulse));
  transition: right .25s var(--ease);
}

.nav__links a:hover {
  color: var(--paper);
}

.nav__links a:hover::after {
  right: 0;
}

/* theme toggle */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-surface);
  border: 1px solid var(--ink-line-strong);
  backdrop-filter: blur(10px);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s var(--ease), transform .35s var(--ease-spring), background .2s var(--ease), box-shadow .2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--signal);
  transform: scale(1.12) rotate(10deg);
  background: var(--glass-surface-strong);
  box-shadow: 0 0 0 6px rgba(242, 167, 59, .12), 0 8px 18px -8px rgba(242, 167, 59, .4);
}

.theme-toggle svg {
  position: absolute;
  transition: opacity .3s var(--ease), transform .4s var(--ease-spring);
}

.icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.icon-moon {
  opacity: 0;
  transform: rotate(-70deg) scale(.5);
}

html[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(70deg) scale(.5);
}

html[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ===========================================================
   Buttons (Material You Wavy & Asymmetric System)
=========================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 22px;
  /* Material You 8-point asymmetric wavy border-radius */
  border-radius: 28px 12px 26px 10px / 14px 26px 12px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform .4s var(--ease-spring),
    box-shadow .25s var(--ease),
    background .25s var(--ease),
    border-color .25s var(--ease),
    border-radius .5s var(--ease-spring);
  white-space: nowrap;
  will-change: transform, border-radius;
}

/* Wavy morphing on hover */
.btn:hover {
  border-radius: 12px 28px 10px 26px / 28px 14px 26px 12px;
  animation: wavy-morph 3s ease-in-out infinite alternate;
}

.btn svg {
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
}

.btn:hover svg {
  transform: translateX(4px) scale(1.1);
}

.btn:active {
  transform: scale(.94);
  border-radius: 18px 18px 18px 18px / 18px 18px 18px 18px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 34px 14px 30px 12px / 16px 30px 14px 34px;
}

.btn--lg:hover {
  border-radius: 14px 34px 12px 30px / 30px 16px 34px 14px;
}

/* Ripple effect adaptation for organic shapes */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transform: scale(0);
  opacity: .8;
  pointer-events: none;
  animation: ripple-out .6s var(--ease) forwards;
}

@keyframes ripple-out {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Material You Primary - Elevated Wavy Tone */
.btn--primary {
  background: linear-gradient(135deg, var(--signal), #E08A2A, var(--pulse));
  background-size: 200% 200%;
  color: var(--on-accent);
  /* box-shadow: 0 8px 24px -6px rgba(242, 167, 59, .6), inset 0 1px 1px rgba(255, 255, 255, 0.4); */
}

.btn--primary:hover {
  background-position: 100% 50%;
  /* box-shadow: 0 14px 32px -4px rgba(255, 107, 91, .7), inset 0 1px 2px rgba(255, 255, 255, 0.6); */
  transform: scale(1.04) translateY(-2px);
}

.btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  animation: none;
}

/* Material You Ghost/Secondary - Wavy Outline */
.btn--ghost {
  background: var(--glass-surface);
  border: 1.5px solid var(--ink-line-strong);
  color: var(--paper);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
}

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: scale(1.04) translateY(-2px);
  background: var(--glass-surface-strong);
  box-shadow: 0 8px 20px -6px rgba(242, 167, 59, .3);
}

.nav__cta {
  padding: 10px 18px;
  font-size: .85rem;
  border-radius: 20px 8px 18px 6px / 8px 18px 6px 20px;
}

/* Continuous Wavy Morph Animation */
@keyframes wavy-morph {
  0% {
    border-radius: 12px 28px 10px 26px / 28px 14px 26px 12px;
  }

  50% {
    border-radius: 26px 10px 28px 12px / 14px 26px 12px 28px;
  }

  100% {
    border-radius: 16px 24px 14px 22px / 24px 16px 22px 14px;
  }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 60px;
  text-align: center;
}

.hero__canvas {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 480px;
  z-index: -1;
  opacity: .8;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "◆ ";
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  overflow: hidden;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--signal), var(--pulse) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.06rem;
  color: var(--paper-dim);
  max-width: 480px;
  margin: 0 auto 34px;
}

.hero__cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 64px;
  margin: 0 auto 46px;
}

.waveform .wbar {
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--signal), var(--pulse));
  opacity: .85;
  animation: wave-idle 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * -0.09s);
}

@keyframes wave-idle {

  0%,
  100% {
    transform: scaleY(var(--min, .3));
  }

  50% {
    transform: scaleY(var(--max, 1));
  }
}

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 0;
  padding-top: 34px;
  border-top: 1px solid var(--ink-line);
}

.stats__item dt {
  font-size: .76rem;
  color: var(--paper-faint);
  margin-bottom: 6px;
}

.stats__item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--paper);
}

.stats__unit {
  font-size: .9rem;
  color: var(--paper-faint);
}

/* ===========================================================
   PULSE TICKER (marquee)
=========================================================== */
.pulse {
  padding-top: 6px;
  padding-bottom: 26px;
}

.pulse__label {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto 16px;
  padding-left: 28px;
  padding-right: 28px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.pulse-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--glass-surface);
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--paper-dim);
  white-space: nowrap;
}

.pulse-chip strong {
  color: var(--paper);
  font-weight: 600;
}

.pulse-chip .pc-icon {
  font-size: .9em;
}

/* ===========================================================
   GLASS + GLOW BORDER (shared signature treatment)
=========================================================== */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--signal), var(--pulse), var(--wave), var(--signal));
  animation: border-spin 6s linear infinite;
  opacity: .55;
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  to {
    --angle: 360deg;
  }
}

.composer-card.glow-border:focus-within::before {
  opacity: .9;
  animation-duration: 3s;
}

/* ===========================================================
   SPOTLIGHT
=========================================================== */
.spotlight-section {
  padding-bottom: 70px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-surface-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 48px clamp(22px, 5vw, 56px) 32px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .55), inset 0 1px 0 var(--glass-highlight);
  min-height: 260px;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .08), transparent 55%);
  transition: opacity .5s var(--ease);
}

.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-quotemark {
  color: var(--signal);
  opacity: .35;
  margin-bottom: 6px;
}

.spotlight-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
}

.spotlight-eq span {
  width: 3px;
  border-radius: 2px;
  display: block;
  background: linear-gradient(180deg, var(--signal), var(--wave));
  opacity: .6;
  animation: spotlight-eq-bounce 1.2s ease-in-out infinite;
}

.spotlight-eq span:nth-child(1) {
  height: 8px;
  animation-delay: -0.9s;
}

.spotlight-eq span:nth-child(2) {
  height: 14px;
  animation-delay: -0.6s;
}

.spotlight-eq span:nth-child(3) {
  height: 10px;
  animation-delay: -0.3s;
}

.spotlight-eq span:nth-child(4) {
  height: 16px;
  animation-delay: 0s;
}

@keyframes spotlight-eq-bounce {

  0%,
  100% {
    transform: scaleY(.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.spotlight-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink-line);
  overflow: hidden;
}

.spotlight-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--pulse));
}

.spotlight-progress__fill.is-filling {
  animation: spotlight-progress-fill 5s linear forwards;
}

.spotlight-card:hover .spotlight-progress__fill.is-filling {
  animation-play-state: paused;
}

@keyframes spotlight-progress-fill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.spotlight-track {
  position: relative;
  min-height: 170px;
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}

.spotlight-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.spotlight-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-height: calc(1.4em * 2);
  overflow: hidden;
}

.spotlight-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-person .fname {
  display: block;
  font-weight: 600;
  font-size: .95rem;
}

.spotlight-person .ftime {
  display: block;
  color: var(--paper-faint);
  font-size: .8rem;
  margin-top: 2px;
}

.spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.spotlight-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-surface);
  border: 1px solid var(--ink-line-strong);
  color: var(--paper);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .4s var(--ease-spring), box-shadow .18s var(--ease);
}

.spotlight-arrow:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 8px 20px -10px rgba(242, 167, 59, .5);
}

.spotlight-dots {
  display: flex;
  gap: 8px;
}

.spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease-spring), width .25s var(--ease);
}

.spotlight-dot.is-active {
  background: linear-gradient(90deg, var(--signal), var(--pulse));
  width: 20px;
  border-radius: 4px;
}

.spotlight-empty {
  display: none;
  text-align: center;
  color: var(--paper-faint);
  font-size: .95rem;
  padding: 30px 10px;
  line-height: 1.6;
}

.spotlight-card.is-empty .spotlight-empty {
  display: block;
}

.spotlight-card.is-empty .spotlight-controls {
  display: none;
}

.spotlight-card.is-empty .spotlight-quotemark,
.spotlight-card.is-empty .spotlight-eq {
  opacity: .15;
}

/* ===========================================================
   COMPOSER
=========================================================== */
.composer-section {
  padding-bottom: 64px;
}

.composer-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-surface-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 34px clamp(20px, 4vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 var(--glass-highlight);
}

.composer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .08), transparent 55%);
  transition: opacity .5s var(--ease);
}

.composer-card:hover::after {
  opacity: 1;
}

.composer-card__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.composer-card__head p {
  color: var(--paper-dim);
  margin: 0 0 28px;
  font-size: .95rem;
}

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.field {
  flex: 1;
  margin-bottom: 20px;
}

.field-row .field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper-dim);
  margin-bottom: 8px;
}

.field__hint {
  font-weight: 400;
  color: var(--paper-faint);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--ink-800);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  animation: field-glow-pulse 2.2s ease-in-out infinite;
}

@keyframes field-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(242, 167, 59, .16);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(242, 167, 59, .26);
  }
}

.char-count {
  text-align: right;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--paper-faint);
  margin-top: 6px;
  transition: color .2s var(--ease);
}

.char-count.is-near-limit {
  color: var(--signal);
}

.char-count.is-full {
  color: var(--pulse);
}

.rating-picker {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  transition: box-shadow .3s var(--ease);
}

.rating-picker.is-empty {
  animation: rating-hint-pulse 2.6s ease-in-out infinite;
}

@keyframes rating-hint-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 167, 59, 0);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(242, 167, 59, .1);
  }
}

.rating-picker__bar {
  width: 12px;
  height: calc(14px + var(--value, 1) * 6px);
  border-radius: 4px 4px 2px 2px;
  background: var(--ink-750);
  border: 1px solid var(--ink-line-strong);
  cursor: pointer;
  padding: 0;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .4s var(--ease-spring);
}

.rating-picker__bar:nth-child(1) {
  --value: 1;
}

.rating-picker__bar:nth-child(2) {
  --value: 2;
}

.rating-picker__bar:nth-child(3) {
  --value: 3;
}

.rating-picker__bar:nth-child(4) {
  --value: 4;
}

.rating-picker__bar:nth-child(5) {
  --value: 5;
}

.rating-picker__bar:hover {
  transform: scale(1.12) rotate(-4deg);
}

.rating-picker__bar.is-filled {
  background: linear-gradient(180deg, var(--signal), var(--pulse));
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(242, 167, 59, .6);
}

.rating-picker__value {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--paper-faint);
  margin-left: 6px;
}

.composer-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.avatar-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .85rem;
  background: var(--ink-750);
  color: var(--paper-faint);
  border: 1px solid var(--ink-line-strong);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.guidelines {
  list-style: none;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.guidelines li {
  font-size: .82rem;
  color: var(--paper-faint);
}

.guidelines li span {
  color: var(--paper-dim);
  font-weight: 600;
}

/* ===========================================================
   FEED
=========================================================== */
.feed-section {
  position: relative;
  padding-bottom: 100px;
  overflow: hidden;
}

.feed-section::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  height: 280px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, var(--wave), transparent 70%);
  opacity: .07;
  filter: blur(80px);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sort-pills {
  display: flex;
  gap: 6px;
}

.pill {
  backdrop-filter: blur(12px) saturate(160%);
  background: var(--glass-surface);
  border: 1px solid var(--ink-line-strong);
  color: var(--paper-dim);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .4s var(--ease-spring);
}

.pill:hover {
  color: var(--paper);
  background: var(--glass-surface-strong);
  transform: scale(1.05);
}

.pill.is-active {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--paper);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-surface);
  border: 1px solid var(--ink-line-strong);
  backdrop-filter: blur(12px) saturate(160%);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--paper-faint);
  min-width: 200px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--signal);
  background: var(--glass-surface-strong);
  box-shadow: 0 0 0 3px rgba(242, 167, 59, .15);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: inherit;
  font-size: .87rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--paper-faint);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-empty {
  text-align: center;
  color: var(--paper-faint);
  padding: 40px 0;
  font-size: .92rem;
}

.hidden {
  display: none !important;
}

/* --- feedback card: glass + 3D tilt on hover --- */
.fcard {
  position: relative;
  overflow: hidden;
  background: var(--glass-surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 23px 22px 20px;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease);
  will-change: transform;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 1px 1px rgba(0, 0, 0, .12);
}

.fcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--pulse) 50%, var(--wave));
  background-size: 200% 100%;
  opacity: .75;
  transition: background-position .6s var(--ease);
}

.fcard:hover::before {
  background-position: -100% 0;
}

.fcard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 55%);
  transition: opacity .5s var(--ease);
}

.fcard:hover {
  border-color: var(--ink-line-strong);
  background: var(--glass-surface-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 26px 52px -26px rgba(0, 0, 0, .55);
}

.fcard:hover::after {
  opacity: 1;
}

.fcard__top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
  color: rgba(15, 18, 22, .85);
  box-shadow: 0 0 0 3px var(--glass-surface), 0 4px 14px -4px rgba(0, 0, 0, .4);
  transition: transform .35s var(--ease-spring);
}

.fcard:hover .avatar {
  transform: scale(1.08) rotate(-4deg);
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: .7rem;
}

.fcard__meta {
  min-width: 0;
  flex: 1;
}

.fcard__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fname {
  font-weight: 600;
  font-size: .94rem;
}

.fbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--wave);
  background: rgba(243, 172, 73, 0.055);
  padding: 2px 8px;
  border-radius: 999px;
}

.fcard__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--paper-faint);
  flex-wrap: wrap;
}

.fcard__sub .dot {
  opacity: .6;
}

.femail {
  font-family: var(--font-mono);
  font-size: .72rem;
}

.rating-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
}

.rating-bars .bar {
  width: 3.5px;
  border-radius: 2px;
  background: var(--ink-750);
  height: calc(6px + var(--i) * 2.6px);
}

.rating-bars .bar.filled {
  background: linear-gradient(180deg, var(--signal), var(--pulse));
}

.fcard__text {
  margin: 0 0 14px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--paper);
  word-wrap: break-word;
}

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

/* ===========================================================
   Action Buttons (Like / Reply in Feed Cards)
=========================================================== */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-800);
  border: 1px solid var(--ink-line);
  color: var(--paper-dim);
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  /* Mini organic wavy shape */
  border-radius: 16px 6px 14px 8px / 8px 14px 6px 16px;
  cursor: pointer;
  transition: all .3s var(--ease-spring);
}

.action-btn:hover {
  color: var(--paper);
  border-color: var(--ink-line-strong);
  background: var(--ink-750);
  transform: translateY(-1.5px);
  /* Invert shape on hover for tactile feel */
  border-radius: 6px 16px 8px 14px / 14px 8px 16px 6px;
}

.action-btn.is-liked {
  color: var(--pulse);
  border-color: rgba(255, 107, 91, 0.3);
  background: rgba(255, 107, 91, 0.08);
  border-radius: 18px 8px 18px 8px / 8px 18px 8px 18px;
}

.action-btn.is-liked svg {
  fill: currentColor;
  transform: scale(1.1);
}

/* ===========================================================
   Sort Pills (Feed Toolbar)
=========================================================== */
.sort-pills {
  display: flex;
  gap: 8px;
  background: var(--glass-surface);
  padding: 6px;
  border-radius: 24px 10px 22px 12px / 12px 22px 10px 24px;
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(10px);
}

.pill {
  background: transparent;
  border: none;
  color: var(--paper-dim);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 16px 6px 14px 8px / 8px 14px 6px 16px;
  cursor: pointer;
  transition: all .3s var(--ease-spring);
}

.pill:hover {
  color: var(--paper);
}

.pill.is-active {
  background: linear-gradient(135deg, var(--signal), #E08A2A);
  color: var(--on-accent);
  box-shadow: 0 4px 12px -2px rgba(242, 167, 59, .4);
  /* Expressive active state morph */
  border-radius: 8px 18px 6px 16px / 16px 6px 18px 8px;
  transform: scale(1.03);
}

.burst {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: var(--pulse);
  opacity: 0;
  pointer-events: none;
}

.burst.is-animating {
  animation: burst-fly .6s var(--ease) forwards;
}

@keyframes burst-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(.3);
  }
}

.reply-btn.is-open svg {
  transform: rotate(180deg);
}

.reply-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .32s var(--ease), opacity .25s var(--ease);
}

.reply-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.reply-panel>div {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.no-replies {
  margin: 0;
  font-size: .85rem;
  color: var(--paper-faint);
  font-style: italic;
}

.reply-add-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-name-input {
  width: 140px;
  background: var(--ink-800);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--paper);
  font-family: inherit;
  font-size: .82rem;
}

.reply-name-input:focus {
  outline: none;
  border-color: var(--signal);
}

.reply-add-row__bottom {
  display: flex;
  gap: 10px;
}

.reply-add-row__bottom textarea {
  flex: 1;
  background: var(--ink-800);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--paper);
  font-family: inherit;
  font-size: .88rem;
  resize: none;
  min-height: 42px;
}

.reply-add-row__bottom textarea:focus {
  outline: none;
  border-color: var(--signal);
}

.reply-add-row__bottom .btn {
  padding: 9px 14px;
  font-size: .82rem;
  align-self: flex-end;
}

.replies {
  padding-left: 20px;
  border-left: 1.5px solid var(--ink-line-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reply {
  display: flex;
  gap: 10px;
}

.reply__meta {
  flex: 1;
  min-width: 0;
}

.reply__name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reply .fname {
  font-size: .86rem;
}

.reply .ftime {
  font-size: .72rem;
  color: var(--paper-faint);
}

.reply__text {
  margin: 4px 0 0;
  font-size: .88rem;
  color: var(--paper-dim);
  line-height: 1.55;
}

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: 40px 0 60px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--paper-faint);
  font-size: .85rem;
}

.txt {
  color: var(--paper-dim);
  font-size: .82rem;
  font-family: var(--font-body)
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-left: -10px;
}

.site-footer__year {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--paper-faint);
}

/* ===========================================================
   TOAST
=========================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 100;
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink-900);
  font-size: .88rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5), 0 0 0 1px var(--ink-line-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__inner {
    height: 60px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__sub {
    font-size: 0.9rem;
  }

  .waveform {
    height: 0px;
  }

  .field-row {
    flex-direction: column;
    gap: 20px;
  }

  .stats {
    gap: 28px;
  }

  .composer-card,
  .spotlight-card {
    padding: 26px 18px;
  }

  .feed-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 0;
  }

  /* particle canvas isn't drawn on mobile (see script.js) — don't reserve its space */
  .hero__canvas {
    display: none;
  }


  /* stop the CPU/GPU-heavy stuff: fewer moving layers = smoother scrolling */
  .bg-glow {
    animation: none;
  }

  .bg-layer::before {
    animation: none;
  }

  .bg-orb,
  .bg-icon {
    display: none;
  }

  .glow-border::before {
    animation: none;
  }

  /* lighter glass everywhere — backdrop-filter blur is one of the priciest things
     a mobile GPU can be asked to do on every frame while scrolling */
  .fcard,
  .composer-card,
  .spotlight-card,
  .nav.is-scrolled,
  .pill,
  .search-box,
  .btn--ghost,
  .theme-toggle,
  .spotlight-arrow {
    backdrop-filter: blur(9px) saturate(140%);
    -webkit-backdrop-filter: blur(9px) saturate(140%);
  }

  .fcard {
    backdrop-filter: blur(11px) saturate(140%);
    -webkit-backdrop-filter: blur(11px) saturate(140%);
  }

  /* 16px stops iOS Safari auto-zooming the page when a field gets focus */
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="password"],
  .field textarea,
  .search-box input,
  .reply-name-input,
  .reply-add-row__bottom textarea {
    font-size: 16px;
  }

  /* comfortable, thumb-sized tap targets */
  .theme-toggle,
  .spotlight-arrow {
    width: 42px;
    height: 42px;
  }

  .action-btn {
    padding: 8px 12px;
  }

  .rating-picker__bar {
    width: 16px;
  }

  .spotlight-dot {
    width: 9px;
    height: 9px;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 60px;
  }

  .hero__cta-row .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 400px) {
  .stats {
    gap: 18px;
  }

  .stats__item dd {
    font-size: 1.15rem;
  }

  .reply-add-row__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .reply-add-row__bottom .btn {
    justify-content: center;
  }
}

/* ===========================================================
   MOTION SAFETY
=========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .waveform .wbar,
  .bg-glow,
  .bg-orb,
  .bg-icon,
  .bg-sidebar__track,
  .bg-layer::before,
  .pulse__dot,
  .glow-border::before,
  .spotlight-eq span,
  .spotlight-progress__fill {
    animation: none !important;
  }

  .fcard,
  [data-reveal],
  [data-reveal-words],
  .hero__title .word,
  .hero__title .word em {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee__track {
    animation-duration: 90s;
  }

  * {
    transition-duration: .01ms !important;
  }
}