@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Questrial&display=swap");

:root {
  --bg: #ece6d7;
  --bg-soft: #e3dccb;
  --bg-elev: #f5f0e6;
  --ink: #191511;
  --ink-soft: rgba(25, 21, 17, 0.7);
  --ink-faint: rgba(25, 21, 17, 0.46);
  --line: rgba(25, 21, 17, 0.14);
  --line-strong: rgba(25, 21, 17, 0.24);
  --white: #ffffff;
  --ok: #3f8d66;
  --danger: #b44e48;
  --shadow: 0 18px 40px rgba(29, 23, 18, 0.06);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(920px 380px at -8% -8%, rgba(255, 255, 255, 0.22), transparent 62%),
    radial-gradient(720px 320px at 104% 12%, rgba(25, 21, 17, 0.04), transparent 58%),
    linear-gradient(180deg, #efe9db 0%, #ece6d7 36%, #e5dfd0 100%);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Questrial", "Helvetica Neue", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 400;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(25, 21, 17, 0.12) 0.35px, transparent 0.35px);
  background-size: 3px 3px;
  z-index: -6;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(96px);
  pointer-events: none;
  z-index: -5;
}

.glow--a {
  width: 340px;
  height: 340px;
  top: 4%;
  left: -120px;
  background: rgba(255, 255, 255, 0.2);
}

.glow--b {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: 10%;
  background: rgba(25, 21, 17, 0.05);
}

.container {
  width: min(1280px, calc(100% - 2.4rem));
  margin: 0 auto;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 233, 219, 0.84);
  backdrop-filter: blur(10px);
}

.home .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(23, 19, 16, 0.16), rgba(23, 19, 16, 0.06) 62%, transparent);
  border-bottom-color: rgba(25, 21, 17, 0.12);
}

.home .brand__wordmark,
.home .brand__subline,
.home .topbar__note {
  color: #efe9db;
}

.home .brand__subline,
.home .topbar__note {
  opacity: 0.92;
}

.topbar__inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__lockup {
  display: grid;
  gap: 0.08rem;
}

.brand__wordmark {
  font-family: "Questrial", sans-serif;
  font-size: clamp(0.96rem, 1.7vw, 1.26rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.brand__subline {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.brand__logo {
  display: block;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  object-fit: contain;
}

.topbar__note {
  justify-self: end;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(25, 21, 17, 0.62);
}

main > section {
  animation: fade-up 520ms ease both;
}

main > section:nth-of-type(2) {
  animation-delay: 60ms;
}

main > section:nth-of-type(3) {
  animation-delay: 120ms;
}

.hero {
  padding: 0;
}

.hero__inner {
  display: block;
}

.hero__copy {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.14), rgba(22, 18, 14, 0.06) 22%, rgba(22, 18, 14, 0.12) 100%),
    url("/images/user/mvmnt_visual.jpeg") center center / cover no-repeat;
}

.hero__copy::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(236, 230, 215, 0.06), rgba(236, 230, 215, 0) 18%),
    linear-gradient(180deg, rgba(17, 13, 9, 0.12), rgba(17, 13, 9, 0) 24%, rgba(17, 13, 9, 0.22) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  align-content: end;
  min-height: 100svh;
  padding: clamp(7.4rem, 14vh, 9rem) clamp(1.2rem, 5vw, 4.8rem) clamp(2rem, 5vh, 3rem);
}

.hero__content > * {
  animation: fade-up 600ms ease both;
}

.hero__content > *:nth-child(1) {
  animation-delay: 80ms;
}

.hero__content > *:nth-child(2) {
  animation-delay: 140ms;
}

.label,
.topbar__note,
.format-pill,
.eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
}

.hero__actions {
  grid-column: 9 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.format-pills--inline {
  margin-top: 0.35rem;
}

.format-pill {
  padding: 0.44rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 21, 17, 0.14);
  background: rgba(255, 255, 255, 0.34);
  color: rgba(25, 21, 17, 0.86);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  min-height: 46px;
  padding: 0.82rem 1.24rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.78);
  color: #120f0c;
  font-family: "Questrial", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}

.btn--primary {
  background: rgba(255, 255, 255, 0.88);
  color: #120f0c;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.98);
}

.home .hero__actions .btn--primary {
  background: #efe9db;
  border-color: rgba(239, 233, 219, 0.78);
  color: #171310;
}

.home .hero__actions .btn--primary:hover {
  background: #f5f0e6;
  border-color: rgba(245, 240, 230, 0.88);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.2);
}

.btn--block {
  width: 100%;
}

.section {
  padding: clamp(2.4rem, 6vw, 4rem) 0;
}

.section--aesthetic {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.section--slate {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.flow-block {
  display: grid;
  gap: 1.5rem;
}

.section__head {
  display: grid;
  gap: 0.6rem;
}

.section__head--wide {
  max-width: 78ch;
}

.section__head h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.section__head p {
  max-width: 72ch;
  line-height: 1.55;
}

.muted {
  color: var(--ink-soft);
}

.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line-strong);
}

.subsection-head h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.02;
}

.subsection-head--compact {
  padding-top: 0.2rem;
}

.subsection-head--split {
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 0.75rem;
}

.cards--five {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  min-height: 90px;
  padding: 0.95rem 0.9rem;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
}

.card h3 {
  font-size: 1.02rem;
  line-height: 1.18;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-strong);
}

.category-item__label {
  font-family: "Questrial", sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.05;
}

.category-item__meta {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.station-explorer {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 1rem;
}

.station-explorer__body {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.station-tabs {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: unset;
  gap: 0.7rem;
}

.station-tab {
  appearance: none;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 0.9rem 0;
  text-align: left;
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, padding-left 150ms ease;
  color: var(--ink);
}

.station-tab:hover {
  transform: translateY(-1px);
  color: rgba(25, 21, 17, 0.86);
}

.station-tab.is-active {
  padding-left: 0.85rem;
  border-top-color: rgba(25, 21, 17, 0.28);
  box-shadow: inset 2px 0 0 rgba(25, 21, 17, 0.72);
}

.station-tab__index {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.station-tab__label {
  font-family: "Questrial", sans-serif;
  font-size: 1.02rem;
  line-height: 1.15;
}

.station-tab__volume {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.station-spotlight {
  display: grid;
  gap: 0.7rem;
  min-height: 100%;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--line-strong);
}

.station-spotlight__meta {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.station-spotlight h4 {
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 0.96;
}

.station-spotlight__volume {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.station-weights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.station-weights__item {
  min-height: 90px;
  padding: 0.9rem;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.station-weights__item span {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.station-weights__item strong {
  font-family: "Questrial", sans-serif;
  font-size: 1.1rem;
  line-height: 1.15;
  font-weight: 400;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.panel--portal {
  display: grid;
  gap: 0.65rem;
}

.panel--portal h2,
.panel--portal h3 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.08;
}

.panel--portal-simple {
  max-width: 760px;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.section--cta-image {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(14, 11, 9, 0.54), rgba(14, 11, 9, 0.32) 28%, rgba(14, 11, 9, 0.54) 100%),
    url("/images/user/mvmnt_visual.jpeg") center center / cover no-repeat;
}

.portal-banner {
  min-height: clamp(380px, 52vw, 520px);
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.portal-banner .label,
.portal-banner h2,
.portal-banner .muted {
  color: #efe9db;
}

.portal-banner h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.portal-banner .muted {
  max-width: 52ch;
  color: rgba(239, 233, 219, 0.82);
}

.portal-banner .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(239, 233, 219, 0.26);
  color: #efe9db;
}

.portal-banner .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links a {
  border-bottom: 1px solid transparent;
}

.footer__links a:hover {
  border-bottom-color: currentColor;
}

main.section > .container.panel h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

main.section > .container.panel p {
  line-height: 1.55;
}

.msg {
  min-height: 20px;
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.msg[data-kind="error"] {
  color: var(--danger);
}

.msg[data-kind="success"] {
  color: var(--ok);
}

.is-hidden {
  display: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero__actions {
    grid-column: 7 / -1;
  }

  .category-rail {
    grid-template-columns: 1fr;
  }

  .station-weights {
    grid-template-columns: 1fr;
  }

  .station-explorer__body {
    grid-template-columns: 1fr;
  }

  .station-spotlight {
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 860px) {
  .container {
    width: min(1280px, calc(100% - 1.2rem));
  }

  .topbar__inner {
    min-height: auto;
    padding: 0.8rem 0;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.45rem;
  }

  .topbar__note {
    justify-self: start;
  }

  .hero__copy {
    min-height: max(560px, 100svh);
    background-position: 42% center;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
    padding: clamp(6.4rem, 14vh, 8rem) 1rem 1.4rem;
  }

  .hero__actions {
    grid-column: 1;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel__actions {
    width: 100%;
  }

  .subsection-head,
  .subsection-head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-banner h2 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .station-tab.is-active {
    padding-left: 0.55rem;
  }

  .topbar__note {
    font-size: 0.54rem;
  }

  .panel {
    padding: 0.85rem;
  }
}
