/* Headroom's listening room: record-sleeve typography, real screens, quiet rules. */
body.home-page {
  --home-rule: #3d4135;
  --home-panel: #1c2118;
  --home-serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

body.home-page .wrap {
  width: min(1280px, calc(100% - 96px));
}
body.home-page .site-header {
  position: relative;
  border-bottom-color: var(--border);
}
body.home-page .site-header .wrap {
  height: 86px;
}
body.home-page .brand {
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}
body.home-page .brand img {
  width: 36px;
  height: 36px;
}
body.home-page .site-nav a {
  font-size: 0.875rem;
  letter-spacing: 0;
}
body.home-page .site-nav .nav-cta {
  display: inline-flex;
  gap: 16px;
}

.listening-room {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 52px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.room-label,
.stage-label,
.stage-side,
.room-product figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.045em;
}
.room-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  color: var(--accent);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
body.home-page .room-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(3.5rem, 6.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 500;
}
.room-copy h1 em {
  color: var(--accent);
  font-family: var(--home-serif);
  font-weight: 400;
  letter-spacing: -0.065em;
}
.room-intro {
  max-width: 37ch;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.55;
}
.room-description {
  max-width: 42ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
}
.room-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 32px;
}
body.home-page .btn {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  min-height: 48px;
  gap: 28px;
  padding: 13px 22px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}
.text-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.room-note {
  margin: 24px 0 0;
  color: var(--text-faint);
  font-size: 0.875rem;
  line-height: 1.7;
}
.room-product {
  min-width: 0;
  margin: 0;
}
.room-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(500px, 47vw, 635px);
  overflow: hidden;
  padding: 55px 40px 0;
  background: var(--home-panel);
  border: 1px solid #303928;
}
.stage-label {
  position: absolute;
  top: 21px;
  left: 24px;
  color: #bbc5ad;
}
.stage-side {
  position: absolute;
  right: 16px;
  top: 130px;
  color: #bbc5ad;
  writing-mode: vertical-rl;
}
.hero-screen {
  width: 77%;
  max-width: 310px;
  height: auto;
  border: 1px solid #58624f;
  border-radius: 34px;
  box-shadow: 0 20px 45px #080b0773;
  transform: rotate(-5deg);
}
.room-product figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  color: var(--text-faint);
  letter-spacing: 0;
}

/* Compatibility lives beside the invitation, not at the bottom of a spec sheet. */
.server-shelf {
  padding-top: 25px;
  padding-bottom: 28px;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}
.shelf-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
body.home-page .shelf-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.shelf-heading p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.server-directory {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.server-directory a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 6px 16px;
  border-right: 1px solid var(--border);
  color: var(--text);
  transition: color 0.15s ease;
}
.server-directory a:first-child {
  padding-left: 0;
}
.server-directory a:last-child {
  border-right: 0;
}
.server-directory a:hover {
  color: var(--accent);
  text-decoration: none;
}
.server-directory span {
  font-size: clamp(0.875rem, 1.3vw, 1.125rem);
  letter-spacing: -0.025em;
  font-weight: 650;
}
.server-directory small {
  color: var(--text-faint);
  font-size: 0.75rem;
}

.player-stories {
  padding-top: 108px;
  padding-bottom: 80px;
}
.section-label {
  margin: 0 0 26px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chapter-heading {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 0 52px;
  align-items: end;
  margin-bottom: 64px;
}
.chapter-heading > .section-label {
  grid-column: 1 / -1;
}
body.home-page .chapter-heading h2,
body.home-page .road-heading h2,
body.home-page .details-heading h2,
body.home-page .maker-note h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.chapter-heading > p:last-child {
  margin: 0 0 5px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: clamp(50px, 8vw, 112px);
  padding: 64px 0;
  border-top: 1px solid var(--home-rule);
}
.story-copy {
  min-width: 0;
}
.chapter-number {
  margin-right: 18px;
  color: var(--text-faint);
}
.story-copy h3 {
  margin: 0 0 26px;
  font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.story-copy h3 em,
.road-heading h2 em,
.maker-note h2 em {
  color: var(--accent);
  font-family: var(--home-serif);
  font-weight: 400;
}
.story-copy > p:not(.section-label),
.story-detail p {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
}
.story-copy > p:not(.section-label) {
  margin: 0 0 16px;
}
.story-detail {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 1px solid #687650;
}
.story-detail h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
}
.story-detail p {
  margin: 0;
}
.story-copy > .text-link {
  margin-top: 24px;
}
.story-art {
  margin: 0;
  min-width: 0;
}
.screen-mat {
  position: relative;
  height: 555px;
  overflow: hidden;
  border: 1px solid var(--home-rule);
  display: flex;
  justify-content: center;
  padding: 38px 24px 0;
  background: #20241d;
}
.screen-mat img {
  width: 290px;
  max-width: 86%;
  height: fit-content;
  border: 1px solid #4a5143;
  border-radius: 27px;
  box-shadow: 0 16px 36px #070a0666;
}
.mixes-art .screen-mat {
  background: #29271f;
  border-color: #454031;
}
.mixes-art img {
  transform: rotate(4deg);
}
.story-art figcaption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 13px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.75rem;
}
.sound-story {
  column-gap: clamp(50px, 8vw, 112px);
}
.eq-art .screen-mat {
  height: 620px;
  background: #1b251d;
  padding-top: 34px;
}
.eq-art img {
  width: 330px;
  max-width: 88%;
}
.sound-specs {
  margin: 30px 0 0;
}
.sound-specs > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--home-rule);
}
.sound-specs dt {
  color: var(--accent);
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.sound-specs dt span {
  display: block;
  margin-top: 9px;
  max-width: 16ch;
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0;
}
.sound-specs dd {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}
.library-art .screen-mat {
  background: #20251e;
}
.library-art img {
  transform: rotate(-3deg);
}
.spoken-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0 70px;
  padding: 40px;
  background: #1d2119;
  border-left: 2px solid var(--accent);
}
.spoken-note > .section-label {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}
.spoken-note h3 {
  margin: 0;
  font-family: var(--home-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
.spoken-note div > p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}

.road-section {
  padding: 88px 0 52px;
  background: #1a1b16;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}
.road-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 46px;
}
.road-heading > p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.dashboard-grid figure {
  margin: 0;
  min-width: 0;
}
.dashboard-screen {
  display: flex;
  align-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #3c3f36;
  background: #0a0b09;
}
.dashboard-screen img {
  width: 100%;
  height: auto;
}
.dashboard-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--home-rule);
}
.dashboard-grid figcaption strong {
  font-size: 1rem;
  font-weight: 550;
}
.dashboard-grid figcaption span {
  align-self: center;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.output-line {
  display: flex;
  align-items: baseline;
  gap: 30px;
  margin-top: 36px;
}
.output-line > span {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.875rem;
}
.output-line p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.7;
}

.details-section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.listening-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  margin: 42px 0 0;
}
.listening-details > div {
  padding: 25px 0;
  border-top: 1px solid var(--home-rule);
}
.listening-details dt {
  margin-bottom: 10px;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.listening-details dd {
  margin: 0;
  max-width: 48ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}
.beta-invitation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 80px;
  padding-top: 72px;
  padding-bottom: 84px;
  border-top: 1px solid var(--home-rule);
}
.maker-note h2 {
  margin-bottom: 28px !important;
}
.maker-note > p:not(.section-label) {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
}
.maker-note > .text-link {
  margin-top: 10px;
}
.beta-access {
  background: #20271c;
  border: 1px solid #424e36;
  padding: clamp(28px, 4vw, 44px);
}
.beta-access > .section-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}
.beta-access h3 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.beta-access > p:not(.section-label) {
  color: #c2c8b9;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}
.beta-access > .access-platforms {
  margin: 20px 0 0;
  font-size: 0.875rem !important;
  color: #a5b097 !important;
}
.beta-fine-print {
  margin-top: 28px;
}
.beta-fine-print details {
  border-top: 1px solid #4b5640;
  padding: 0;
}
.beta-fine-print summary {
  display: list-item;
  padding: 16px 20px 16px 0;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.beta-fine-print summary::marker {
  color: var(--accent);
  font-size: 0.75rem;
}
.beta-fine-print details p {
  margin: 0 0 20px;
  color: #c2c8b9;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.updates-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-top: 42px;
  padding-bottom: 64px;
  border-top: 1px solid var(--home-rule);
}
.updates-section .section-label {
  margin-bottom: 16px;
}
body.home-page .updates-section h2 {
  margin: 0 0 16px;
  font-family: var(--home-serif);
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.updates-section > div > p:last-child {
  max-width: 46ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}
.updates-form {
  padding-top: 6px;
}
.updates-form > label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.updates-form .inline-form-row {
  display: flex;
  gap: 10px;
}
.updates-form .inline-form-row input {
  min-width: 0;
  flex: 1 1 0;
  font-size: 1rem;
}
.updates-form .inline-form-row .btn {
  gap: 14px;
  white-space: nowrap;
}
.updates-form .check-row {
  display: flex;
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}
body.home-page .site-footer .fine,
body.home-page .site-footer nav a {
  font-size: 0.75rem;
  line-height: 1.7;
}

@media (min-width: 1500px) {
  .listening-room {
    padding-top: 76px;
    padding-bottom: 76px;
  }
}
@media (max-width: 1050px) {
  body.home-page .wrap {
    width: calc(100% - 56px);
  }
  .listening-room {
    gap: 30px;
  }
  .room-stage {
    padding-left: 24px;
    padding-right: 24px;
    height: 550px;
  }
  .hero-screen {
    width: 85%;
  }
  .room-label {
    max-width: 28ch;
  }
  .room-intro {
    font-size: 1.125rem;
  }
  .wide-only {
    display: none;
  }
  .server-directory {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 0;
  }
  .server-directory a:nth-child(3) {
    border-right: 0;
  }
  .server-directory a:nth-child(4) {
    padding-left: 0;
  }
  .server-directory span {
    font-size: 1rem;
  }
  .feature-story {
    column-gap: 40px;
  }
  .screen-mat {
    height: 530px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .screen-mat img {
    max-width: 95%;
  }
  .eq-art .screen-mat {
    height: 600px;
  }
  .sound-specs > div {
    gap: 18px;
  }
  .spoken-note {
    gap: 0 40px;
    padding: 30px;
  }
  .road-heading {
    gap: 32px;
  }
  .dashboard-grid figcaption {
    flex-direction: column;
    gap: 6px;
  }
  .dashboard-grid figcaption span {
    align-self: auto;
  }
  .beta-invitation,
  .updates-section {
    gap: 40px;
  }
  .updates-form .inline-form-row {
    flex-wrap: wrap;
  }
  .updates-form .inline-form-row input {
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  body.home-page .wrap {
    width: calc(100% - 40px);
  }
  body.home-page .site-header .wrap {
    height: auto;
    min-height: 74px;
  }
  body.home-page .site-nav {
    gap: 16px;
  }
  body.home-page .site-nav a[href="./changelog/"],
  body.home-page .site-nav a[href="./roadmap/"],
  body.home-page .site-nav a[href="./community/"] {
    display: none;
  }
  body.home-page .site-nav a {
    font-size: 0.875rem;
  }
  .listening-room {
    grid-template-columns: 1fr;
    padding-top: 44px;
    padding-bottom: 40px;
    gap: 36px;
  }
  .room-label {
    max-width: none;
    margin-bottom: 24px;
  }
  body.home-page .room-copy h1 {
    font-size: clamp(3.5rem, 11vw, 5.5rem);
  }
  .room-description {
    max-width: 48ch;
  }
  .room-stage {
    height: 490px;
    padding-top: 54px;
  }
  .hero-screen {
    width: 270px;
  }
  .stage-side {
    right: 20px;
  }
  .shelf-heading {
    display: block;
  }
  .shelf-heading p {
    margin-top: 8px;
  }
  .server-directory a {
    padding: 6px 10px;
  }
  .server-directory span {
    font-size: 0.875rem;
  }
  .server-directory small {
    font-size: 0.75rem;
  }
  .player-stories {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .chapter-heading {
    display: block;
    margin-bottom: 38px;
  }
  .chapter-heading > p:last-child {
    margin-top: 22px;
    font-size: 1rem;
  }
  .feature-story {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 0;
  }
  .story-copy h3 {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }
  .story-copy > p:not(.section-label),
  .story-detail p {
    max-width: none;
  }
  .sound-story .story-copy {
    grid-row: 1;
  }
  .screen-mat {
    height: 470px;
  }
  .screen-mat img {
    width: 280px;
    max-width: 88%;
  }
  .eq-art .screen-mat {
    height: 560px;
  }
  .eq-art img {
    width: 310px;
  }
  .sound-specs > div {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
  }
  .spoken-note {
    display: block;
    padding: 28px 24px;
  }
  .spoken-note h3 {
    margin-bottom: 22px;
  }
  .road-section {
    padding: 56px 0 32px;
  }
  .road-heading {
    display: block;
    margin-bottom: 32px;
  }
  .road-heading > p {
    max-width: 45ch;
    margin-top: 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dashboard-grid figcaption {
    flex-direction: row;
  }
  .output-line {
    display: block;
    margin-top: 24px;
  }
  .output-line p {
    margin-top: 8px;
  }
  .details-section {
    padding-top: 60px;
    padding-bottom: 50px;
  }
  .listening-details {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .beta-invitation {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .maker-note > p:not(.section-label) {
    max-width: none;
  }
  .beta-access {
    padding: 28px 24px;
  }
  .updates-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .updates-form .inline-form-row {
    flex-wrap: nowrap;
  }
  .updates-form .inline-form-row input {
    flex-basis: 0;
  }
}
@media (max-width: 390px) {
  body.home-page .wrap {
    width: calc(100% - 32px);
  }
  body.home-page .site-nav a[href="#features"] {
    display: none;
  }
  .room-actions {
    gap: 12px;
  }
  .room-product figcaption {
    flex-direction: column;
    gap: 5px;
  }
  .server-directory {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }
  .server-directory a:nth-child(3) {
    border-right: 1px solid var(--border);
  }
  .server-directory a:nth-child(even) {
    border-right: 0;
    padding-left: 16px;
  }
  .server-directory a:nth-child(odd) {
    padding-left: 0;
  }
  .updates-form .inline-form-row {
    flex-wrap: wrap;
  }
  .updates-form .inline-form-row input {
    flex-basis: 100%;
  }
  .dashboard-grid figcaption {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The screen holds its place; the listener moves through the story. */
.journey-stage[hidden],
.motion-control[hidden],
.dashboard-controls[hidden],
.dashboard-screen img[hidden] {
  display: none;
}
.journey-stage {
  min-width: 0;
}
.journey-window {
  position: relative;
  isolation: isolate;
  height: clamp(510px, calc(100svh - 148px), 760px);
  overflow: hidden;
  border: 1px solid #4b503c;
  background: #29271f;
}
.journey-readout {
  position: absolute;
  z-index: 4;
  inset: 24px 26px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d3d5c7;
  font: 0.75rem / 1.5 var(--font-mono);
  letter-spacing: 0.06em;
}
.journey-scenes,
.journey-scene {
  position: absolute;
  inset: 0;
}
.journey-scene {
  opacity: 0;
  background: #29271f;
  contain: paint;
}
.journey-scene:nth-child(2) {
  background: #1a2b20;
}
.journey-scene:nth-child(3) {
  background: #262b20;
}
.journey-word {
  position: absolute;
  top: 16%;
  left: 5%;
  color: #bcbda725;
  font-family: var(--home-serif);
  font-size: clamp(7rem, 13vw, 12.5rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.075em;
  transform: translate3d(var(--word-x, 0px), 0, 0);
}
.journey-scene img {
  position: absolute;
  top: 88px;
  left: 50%;
  width: min(62%, 320px);
  height: auto;
  max-width: none;
  border: 1px solid #78816a;
  border-radius: 29px;
  box-shadow: 0 24px 60px #070c0670;
  transform: translate3d(
      calc(-50% + var(--screen-x, 0px)),
      var(--screen-y, 0px),
      0
    )
    rotate(var(--screen-rotate, -4deg)) scale(var(--screen-scale, 1));
  transform-origin: 50% 70%;
}
.journey-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 75px;
  background: linear-gradient(transparent, #11180dd9);
  pointer-events: none;
}
.journey-screen-note {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  left: 26px;
  color: #d3d5c7;
  font: 0.75rem / 1.5 var(--font-mono);
}
.journey-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 17px 0 15px;
}
.journey-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 180ms ease;
}
.journey-nav a span {
  color: var(--text-faint);
  font: 0.75rem / 1.5 var(--font-mono);
}
.journey-nav a[aria-current="location"],
.journey-nav a:hover {
  color: var(--accent);
}
.journey-nav a[aria-current="location"] span {
  color: var(--accent);
}
.journey-progress {
  height: 2px;
  background: var(--home-rule);
  overflow: hidden;
}
.journey-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--journey-progress, 0));
  transform-origin: left;
}
.motion-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin: -13px 0 -12px;
  padding: 8px 0 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}
.motion-control:hover {
  color: var(--accent);
}
.motion-symbol {
  width: 7px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.motion-control[aria-pressed="false"] .motion-symbol {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 7px solid currentColor;
  border-right: 0;
}
.dashboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-controls > span {
  color: var(--text-faint);
  font-size: 0.875rem;
}
.dashboard-controls > div {
  display: flex;
  padding: 4px;
  border: 1px solid #4a4e40;
  border-radius: 3px;
}
.dashboard-controls button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}
.dashboard-controls button[aria-pressed="true"] {
  color: #17200e;
  background: var(--accent);
}
.dashboard-controls button:hover:not([aria-pressed="true"]) {
  color: var(--text);
  background: #2d3225;
}
.motion-control:focus-visible,
.journey-nav a:focus-visible,
.dashboard-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .feature-journey.is-pinned {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(60px, 7vw, 100px);
    position: relative;
    border-top: 1px solid var(--home-rule);
    margin-bottom: 72px;
  }
  .is-pinned .journey-stage {
    position: sticky;
    top: 24px;
    align-self: start;
    margin-top: 24px;
  }
  .is-pinned .feature-story {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 48px);
    padding: 76px 0;
    border-top: 0;
    scroll-margin-top: 24px;
  }
  .is-pinned .feature-story + .feature-story {
    border-top: 1px solid var(--home-rule);
  }
  .is-pinned .story-copy {
    width: 100%;
  }
  .is-pinned .story-art {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    padding: 0;
    margin: -1px;
    white-space: nowrap;
  }
  .is-pinned .story-copy h3 {
    font-size: clamp(2.15rem, 3.5vw, 3.45rem);
  }
  .is-pinned .sound-specs > div {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-screen {
    transform: perspective(1000px) translate3d(0, var(--hero-y, 0px), 0)
      rotateX(var(--pointer-y, 0deg)) rotateY(var(--pointer-x, 0deg))
      rotate(var(--hero-rotate, -5deg));
    transition: transform 180ms ease-out;
  }
  .motion-ready .room-stage::before {
    content: "PLAY.";
    position: absolute;
    top: 100px;
    left: -12px;
    color: #c6d6b91c;
    font: italic clamp(8rem, 15vw, 15rem) / 1 var(--home-serif);
    letter-spacing: -0.09em;
    transform: translate3d(var(--hero-word-x, 0px), 0, 0);
    pointer-events: none;
  }
  .motion-ready:not(.motion-paused)
    .feature-journey:not(.is-pinned)
    .story-art
    img {
    transform: translate3d(0, var(--art-y, 0px), 0)
      rotate(var(--art-rotate, 0deg));
  }
  .motion-ready .mixes-art {
    --art-rotate: 4deg;
  }
  .motion-ready .library-art {
    --art-rotate: -3deg;
  }
  .motion-ready:not(.motion-paused) .dashboard-screen img:not([hidden]) {
    animation: dashboard-arrive 450ms ease-out both;
  }
  .server-directory a {
    transition:
      color 180ms ease,
      transform 180ms ease;
  }
  .server-directory a:hover {
    transform: translateY(-4px);
  }
  .text-link > span,
  .btn > span,
  .nav-cta > span {
    transition: transform 200ms ease;
  }
  .text-link:hover > span,
  .btn:hover > span,
  .nav-cta:hover > span {
    transform: translate(3px, -2px);
  }
  .motion-paused .hero-screen {
    transform: rotate(-5deg);
    transition: none;
  }
  .motion-paused .room-stage::before,
  .motion-paused .journey-word {
    transform: none;
  }
  .motion-paused .journey-scene img {
    transform: translateX(-50%);
  }
  .motion-paused .server-directory a,
  .motion-paused .text-link > span,
  .motion-paused .btn > span,
  .motion-paused .nav-cta > span {
    transform: none;
    transition: none;
  }
}
@keyframes dashboard-arrive {
  from {
    opacity: 0.35;
    transform: translateY(10px) scale(1.015);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 600px) {
  .dashboard-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .room-product figcaption {
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-control {
    display: none;
  }
}
