:root {
  color-scheme: dark;
  --bg: #10130f;
  --panel: #171b15;
  --panel-2: #1d211b;
  --line: rgba(231, 238, 216, 0.14);
  --muted: #9fa593;
  --text: #f0f2e9;
  --acid: #c7f36b;
  --acid-soft: #dff9a7;
  --orange: #e69b65;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(199, 243, 107, 0.045), transparent 26rem),
    var(--bg);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

button,
select {
  color: inherit;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(199, 243, 107, 0.55);
  border-radius: 50%;
}

.brand-mark i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 4px;
  background: var(--acid);
}

.brand-mark i:nth-child(2) {
  height: 11px;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63695c;
  box-shadow: 0 0 0 4px rgba(99, 105, 92, 0.12);
  transition: 300ms ease;
}

body.playing .status-dot {
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(199, 243, 107, 0.12);
}

.hero {
  padding: 78px 0 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 25px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: var(--acid);
}

h1 {
  max-width: 890px;
  margin: 0;
  font-size: clamp(48px, 7.1vw, 92px);
  font-weight: 470;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 480px;
  margin: 34px 0 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.player-shell {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(330px, 0.72fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: 0 28px 90px var(--shadow);
}

.player-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 44%, rgba(199, 243, 107, 0.075), transparent 38%),
    #131712;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
}

.orb-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(199, 243, 107, 0.12);
  border-radius: 50%;
}

.orb-ring-two {
  inset: 31px;
  border-color: rgba(199, 243, 107, 0.18);
}

.orb {
  position: relative;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 37%, #f1ffc8 0, var(--acid-soft) 11%, #91b742 42%, #4f6429 72%, #1f2914 100%);
  box-shadow:
    0 0 46px rgba(199, 243, 107, 0.24),
    inset -16px -20px 38px rgba(17, 24, 11, 0.58);
  transition: transform 500ms ease;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(4px);
}

.orb::before {
  width: 20px;
  height: 11px;
  top: 25px;
  left: 35px;
  transform: rotate(-28deg);
}

.orb::after {
  width: 7px;
  height: 7px;
  top: 48px;
  left: 26px;
}

.orb-core {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(16, 19, 15, 0.4);
  border-radius: 50%;
}

body.playing .orb {
  animation: breathe 5s ease-in-out infinite;
}

body.playing .orb-ring-one {
  animation: ring 4.7s ease-out infinite;
}

body.playing .orb-ring-two {
  animation: ring 4.7s 1.4s ease-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); filter: saturate(0.9); }
  50% { transform: scale(1.05); filter: saturate(1.15); }
}

@keyframes ring {
  0% { transform: scale(0.76); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: scale(1.08); opacity: 0; }
}

.time-block {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  text-align: center;
}

.time-block span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 36px;
  font-weight: 420;
  letter-spacing: -0.05em;
}

.time-block small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-button {
  position: relative;
  z-index: 1;
  min-width: 174px;
  margin-top: 30px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(199, 243, 107, 0.38);
  border-radius: 99px;
  background: rgba(199, 243, 107, 0.08);
  color: var(--acid-soft);
  cursor: pointer;
  font-size: 13px;
  transition: 200ms ease;
}

.play-button:hover {
  background: rgba(199, 243, 107, 0.14);
  transform: translateY(-1px);
}

.play-button:focus-visible,
.segmented button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--acid);
}

body.playing .play-icon {
  width: 8px;
  height: 10px;
  border: 0;
  border-left: 3px solid var(--acid);
  border-right: 3px solid var(--acid);
}

.controls {
  display: flex;
  flex-direction: column;
  padding: 50px 39px 36px;
  background: var(--panel-2);
}

.control-group {
  padding: 0 0 30px;
  margin-bottom: 29px;
  border-bottom: 1px solid var(--line);
}

.control-heading {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.control-heading label {
  color: #daddd2;
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.control-heading output {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
}

.segmented button {
  padding: 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.segmented button.active {
  background: rgba(199, 243, 107, 0.12);
  color: var(--acid-soft);
}

.range {
  width: 100%;
  height: 16px;
  margin: 2px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--acid) 0 50%, #4c5148 50%);
}

.range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  appearance: none;
  border: 3px solid var(--panel-2);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.range::-moz-range-track {
  height: 2px;
  background: #4c5148;
}

.range::-moz-range-progress {
  height: 2px;
  background: var(--acid);
}

.range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid var(--panel-2);
  border-radius: 50%;
  background: var(--acid);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #73796d;
  font-size: 9px;
  text-transform: uppercase;
}

select {
  width: 100%;
  padding: 11px 34px 11px 12px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 16px) 52% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 11px) 52% / 5px 5px no-repeat,
    rgba(0, 0, 0, 0.12);
  color: #daddd2;
  font-size: 12px;
}

.session-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.session-data div {
  min-width: 0;
}

.session-data span,
.session-data strong {
  display: block;
}

.session-data span {
  margin-bottom: 6px;
  color: #73796d;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-data strong {
  overflow: hidden;
  color: #dfe2d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.local-note {
  display: flex;
  gap: 8px;
  margin: 27px 0 0;
  color: #777d70;
  font-size: 10px;
  line-height: 1.5;
}

.local-note span {
  color: var(--acid);
  font-size: 6px;
  line-height: 16px;
}

.principles {
  padding: 130px 0 125px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}

.section-number {
  display: block;
  margin-bottom: 22px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.principles h2 {
  max-width: 390px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 470;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
}

.principle-grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.principle-grid h3 {
  margin: 25px 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.line-icon,
.pulse-icon,
.seed-icon {
  height: 18px;
  display: block;
  color: var(--acid);
}

.line-icon {
  width: 31px;
  border-top: 1px solid var(--acid);
  border-bottom: 1px solid rgba(199, 243, 107, 0.35);
}

.pulse-icon {
  width: 33px;
  background: linear-gradient(
    90deg,
    transparent 0 10%,
    var(--acid) 10% 13%,
    transparent 13% 25%,
    var(--acid) 25% 30%,
    transparent 30% 42%,
    var(--acid) 42% 52%,
    transparent 52% 64%,
    var(--acid) 64% 69%,
    transparent 69% 81%,
    var(--acid) 81% 84%,
    transparent 84%
  );
}

.seed-icon {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 15px;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #73796d;
  font-size: 10px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 62px;
  }

  .intro {
    margin-left: 0;
  }

  .player-shell {
    grid-template-columns: 1fr;
  }

  .player-visual {
    min-height: 560px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .controls {
    min-height: 500px;
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    height: 74px;
  }

  .session-status span:last-child {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(43px, 13.5vw, 68px);
  }

  .intro {
    margin-top: 26px;
  }

  .player-visual {
    min-height: 510px;
  }

  .orb-wrap {
    width: 230px;
    height: 230px;
  }

  .controls {
    padding: 38px 24px 30px;
  }

  .principles {
    padding: 88px 0;
    gap: 48px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.taste-lab {
  width: min(1180px, calc(100% - 48px));
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 64px;
  align-items: center;
}

.taste-copy h2 {
  max-width: 560px;
  margin: 18px 0 22px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.taste-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.taste-start {
  margin-top: 28px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--acid);
  border-radius: 4px;
  background: var(--acid);
  color: #10130f;
  font: 700 0.78rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.taste-start:hover {
  transform: translateY(-2px);
  background: #b8ff73;
}

.taste-panel {
  min-height: 470px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(229, 235, 221, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(184, 255, 115, 0.055), transparent 45%),
    #151914;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  display: grid;
  align-items: center;
}

.taste-idle {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.taste-orbit {
  width: 152px;
  aspect-ratio: 1;
  margin-bottom: 22px;
  border: 1px solid rgba(184, 255, 115, 0.45);
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset 0 0 45px rgba(184, 255, 115, 0.08),
    0 0 70px rgba(184, 255, 115, 0.08);
}

.taste-orbit::before,
.taste-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.taste-orbit::before {
  inset: 25px;
  border: 1px dashed rgba(229, 235, 221, 0.3);
}

.taste-orbit::after {
  width: 18px;
  aspect-ratio: 1;
  top: 14px;
  left: calc(50% - 9px);
  background: var(--acid);
  box-shadow: 0 0 24px var(--acid);
}

.taste-idle strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
}

.taste-idle small {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.taste-progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.taste-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(229, 235, 221, 0.14);
}

.taste-progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--acid);
  transition: width 280ms ease;
}

.taste-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.taste-option {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(229, 235, 221, 0.12);
  border-radius: 6px;
  background: rgba(5, 8, 5, 0.22);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.taste-option.playing {
  border-color: rgba(184, 255, 115, 0.72);
  transform: translateY(-3px);
}

.taste-option.heard .taste-letter {
  color: var(--acid);
}

.taste-letter {
  color: rgba(229, 235, 221, 0.34);
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
}

.clip-play,
.clip-choose,
.taste-reset {
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

.clip-play {
  min-height: 48px;
  border: 1px solid rgba(229, 235, 221, 0.2);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.clip-play:hover {
  border-color: var(--acid);
}

.mini-play {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.clip-play.playing .mini-play {
  width: 8px;
  height: 10px;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.clip-choose {
  min-height: 44px;
  margin-top: 10px;
  border-radius: 3px;
  background: rgba(184, 255, 115, 0.12);
  color: var(--acid);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clip-choose:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.clip-choose:not(:disabled):hover {
  background: var(--acid);
  color: #10130f;
}

.taste-versus {
  align-self: center;
  color: rgba(229, 235, 221, 0.34);
  font-family: var(--display);
  font-size: 1.4rem;
}

.taste-hint {
  min-height: 20px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.taste-result {
  text-align: center;
}

.result-kicker {
  color: var(--acid);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.taste-result h3 {
  margin: 12px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.taste-result > p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.profile-bars {
  max-width: 460px;
  margin: 34px auto 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.profile-bars > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
}

.profile-bars span {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-bars i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(229, 235, 221, 0.12);
}

.profile-bars b {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--acid);
  transition: width 500ms ease;
}

.taste-reset {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .taste-lab {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .taste-copy {
    max-width: 640px;
  }
}

@media (max-width: 620px) {
  .taste-lab {
    width: min(100% - 28px, 1180px);
    margin-top: 64px;
  }

  .taste-panel {
    min-height: 0;
    padding: 24px 18px;
  }

  .taste-options {
    grid-template-columns: 1fr;
  }

  .taste-versus {
    justify-self: center;
  }

  .taste-option {
    min-height: 190px;
  }

  .taste-progress-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
