@font-face {
  font-family: "Office Serif";
  src: url("media/NotoSerif.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f9eddc;
  --muted: #d4baa3;
  --gold: #efc68b;
  --line: #ffffff24;
  --serif: "Office Serif", Georgia, serif;
  color: var(--ink);
  background: #241914;
  font-family: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffd9a1; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell { width: min(1380px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }

.masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}
.bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  margin-inline-end: auto;
  font: 620 1.37rem/1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--gold); }
.site-nav, .footer nav { display: flex; flex-wrap: wrap; gap: 14px clamp(14px, 2.8vw, 36px); }
.site-nav a, .footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  font-size: .88rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.language {
  --language-background: #291d17;
  --language-text: #f9eddc;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 10px 3px;
  border: 1px solid #f9eddc55;
  border-radius: 3px;
  background: var(--language-background);
}
.language select {
  max-width: min(180px, 27vw);
  min-height: 36px;
  padding-inline-end: 5px;
  border: 0;
  color-scheme: dark;
  color: var(--language-text);
  background: var(--language-background);
  font-size: .83rem;
  cursor: pointer;
}
.language option {
  color: var(--language-text);
  background: var(--language-background);
}
.language select:focus { outline: none; }
.language select:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.globe {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.globe::before, .globe::after { content: ""; position: absolute; }
.globe::before { inset: -1px 3px; border: 1px solid var(--gold); border-radius: 50%; }
.globe::after { inset: 5px 0 auto; border-top: 1px solid var(--gold); }

.room {
  position: relative;
  isolation: isolate;
  min-height: max(680px, 91svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: transparent;
}
.scenery, .scene { position: absolute; inset: 0; pointer-events: none; }
.scenery { z-index: -2; }
.scene {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 58% 57%;
  transition: opacity .65s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.scene-close {
  opacity: 0;
  transform: scale(1.09);
}
.room.is-inside .scene-close {
  opacity: 1;
  transform: scale(1);
}
.room-layout {
  position: relative;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  padding-block: 109px 87px;
}
.room-copy { z-index: 1; max-width: 720px; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 650;
  font-size: .72rem;
  margin-block-end: 16px;
}
h1 {
  font: 520 clamp(3.55rem, 8.4vw, 9.25rem)/.97 var(--serif);
  letter-spacing: -.073em;
  text-shadow: 0 6px 38px #21120cca;
}
.intro {
  margin-block-start: 21px;
  max-width: 34ch;
  color: #f6e7d3;
  font-size: clamp(1rem, 1.8vw, 1.31rem);
  line-height: 1.52;
}
.brass-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-block-start: 29px;
  padding: 11px 18px;
  min-height: 48px;
  border: 1px solid #f9dbac;
  border-radius: 3px;
  color: #2c1a0d;
  background: linear-gradient(#f5dbab, #e1b779);
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}
.brass-button:hover { background: #ffe2ab; }
.enter-arrow { font-size: 1.16em; }
.is-inside .enter-arrow { rotate: 180deg; }

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-block: 13px;
}
.legal { max-width: 750px; padding-block: 55px; }
.legal h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-block-end: 22px; }
.legal article { line-height: 1.65; overflow-wrap: anywhere; }
.legal article h2 { margin-block: 1.75em .5em; font: 600 1.35rem/1.3 var(--serif); }
.legal article p + p { margin-block-start: .85em; }
.legal-draft { padding: .7em .9em; border-inline-start: 2px solid var(--gold); background: #ffffff0b; }

@media (max-width: 760px) {
  .bar { min-height: 66px; flex-wrap: wrap; gap: 8px 18px; padding-block: 10px; }
  .masthead .site-nav { display: none; }
  .language select { max-width: 145px; }
  .room { min-height: max(430px, 92svh); }
  .room.is-inside { min-height: max(695px, 96svh); }
  .room-layout { grid-template-columns: 1fr; align-items: start; padding-block-start: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


.section-layout { display: grid; align-items: center; }
.section-copy h2 { font: 530 clamp(2rem, 4vw, 3.2rem)/1.2 var(--serif); letter-spacing: -.02em; }
.section-copy p { color: var(--muted); margin-block-start: 8px; }

.radio-section {
  background: #301c10;
}
.radio {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 264;
  container-type: inline-size;
}
.radio > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.radio-copy {
  position: absolute;
  inset: 13% auto auto 15.67%;
  width: 29.1%;
  color: #f7e7cf;
  pointer-events: none;
}
.radio-copy h2 {
  font: 650 3.43cqw/1.05 var(--serif);
  letter-spacing: -.045em;
}
.radio-copy p {
  margin-block-start: 1.02cqw;
  font-size: 1.23cqw;
  line-height: 1.36;
}
html[lang="en"] .radio-copy {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html:not([lang="en"]) .radio-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.55cqw -1.05cqw -1.6cqw -1.2cqw;
  background: radial-gradient(ellipse at 55% 44%, #3b2314, #2b190f 88%);
  mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
}
.radio-copy { isolation: isolate; }
.radio-button, .radio-dial, .knob-mark, .station-needle, .volume-fader, .volume-level {
  position: absolute;
}
.radio-button, .radio-dial, .knob-mark {
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  aspect-ratio: 1;
}
.radio-button, .radio-dial {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.radio-dial { width: 4.25%; height: auto; top: 31.1%; touch-action: none; }
.radio-dial::-webkit-slider-thumb { appearance: none; }
.radio-dial::-moz-range-thumb { opacity: 0; }
.station, .station-mark { left: 52.24%; }
.tone, .tone-mark { left: 85.83%; }
.knob-mark { width: 2.65%; top: 31.1%; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); pointer-events: none; }
.knob-mark::before { content: ""; position: absolute; inset: 7% 47% auto; height: 14%; background: #f8d795; border-radius: 2px; opacity: 0; }
.is-on .knob-mark::before { opacity: 1; }
.radio-button { width: 2.9%; top: 68.75%; }
.previous { left: 54.25%; }
.play {
  left: 58.82%;
  width: 3.15%;
  display: grid;
  place-items: center;
  background: linear-gradient(#f6ddb0, #dca361);
  box-shadow: inset 0 1px #fff5d7;
}
.is-on .play { background: transparent; box-shadow: none; }
.next { left: 63.39%; }
.radio :is(button,input):disabled { cursor: default; }
.radio :is(button,input):enabled:hover, .radio :is(button,input):focus-visible {
  outline: 1px solid #fff5e7;
  outline-offset: 1px;
  box-shadow: 0 0 9px #fff9;
}
.play-symbol { width: 28%; height: 35%; background: #2c190d; clip-path: polygon(13% 0,100% 50%,13% 100%); }
.is-on .play-symbol { visibility: hidden; }
.needle-cover, .station-needle { visibility: hidden; }
.radio.is-retuned :is(.needle-cover,.station-needle) { visibility: visible; }
.needle-cover {
  position: absolute;
  left: 68.86%;
  top: 29.5%;
  width: .24%;
  height: 12.1%;
  background: url("media/desk-radio-strip.png") -68.55cqw -4.66cqw / 100cqw auto no-repeat;
  pointer-events: none;
}
.station-needle {
  top: 30%;
  left: var(--station-position, 68.96%);
  height: 11.4%;
  width: max(1px, .115cqw);
  background: #9a3524;
  pointer-events: none;
}
.dial-label {
  display: none;
  position: absolute;
  top: 48.65%;
  width: 8%;
  text-align: center;
  transform: translateX(-50%);
  font-size: 1.03cqw;
  line-height: 1.2;
  color: #f5d6a6;
  background: linear-gradient(90deg, #47230e00, #47230e 15% 85%, #47230e00);
  pointer-events: none;
}
html:not([lang="en"]) .dial-label { display: block; }
.station-label { left: 52.14%; }
.tone-label { left: 85.73%; }
.fader-cover {
  display: none;
  position: absolute;
  left: 73.82%;
  top: 64.1%;
  width: 13.4%;
  height: 10%;
  background: linear-gradient(90deg, #45220f, #4a260f);
  pointer-events: none;
}
.volume-fader {
  left: 74.05%;
  top: 68.75%;
  width: 9.73%;
  height: max(3px, .47cqw);
  transform: translateY(-50%);
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}
.volume-fader::-webkit-slider-thumb { appearance: none; width: 1.28cqw; aspect-ratio: 1; border-radius: 50%; background: transparent; }
.volume-fader::-moz-range-thumb { width: 1.28cqw; height: 1.28cqw; border: 0; border-radius: 50%; background: transparent; }
.volume-level {
  display: none;
  left: 84.75%;
  top: 68.75%;
  transform: translateY(-50%);
  color: #f7d8ad;
  font-size: 1.04cqw;
}
.is-volume-adjusted :is(.fader-cover,.volume-level) { display: block; }
.is-volume-adjusted .volume-fader { background: linear-gradient(90deg, #f2c98c var(--volume), #23130b var(--volume)); }
.is-volume-adjusted .volume-fader::-webkit-slider-thumb { background: #edc58e; box-shadow: 0 2px 4px #160b06; }
.is-volume-adjusted .volume-fader::-moz-range-thumb { background: #edc58e; }
.radio-display { position: absolute; top: 90%; left: 48%; width: 42%; color: #f3d3a9; font-size: .92cqw; text-align: center; }

.room + .downloads {
  margin-block-start: clamp(24px, 5.5vw, 78px);
}
.desk-trial {
  position: relative;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  height: clamp(235px, 30vw, 390px);
  direction: ltr;
}
.desk-slot {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px dashed #f7d2a0ab;
  border-radius: 5px;
  background: #f2c38914;
  color: #f7d2a0cc;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
}
.desk-slot:hover, .desk-slot:focus-visible {
  border-color: #fff6e5;
  color: #fff6e5;
  box-shadow: 0 0 12px #ffe1ab9c, inset 0 0 9px #ffe1ab67;
}
.folder-slot {
  width: 47%;
  height: 78%;
  left: 45%;
  top: 8%;
  transform: rotate(.11rad);
}
.note-slot {
  width: 23%;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1;
  left: 12%;
  top: 36%;
  transform: rotate(-.08rad);
}
.slot-plus { font: 300 clamp(1.25rem, 2.5vw, 2.25rem)/1 system-ui; }
.folder-tab, .note-preview { display: none; }
.desk-slot.occupied {
  border-color: transparent;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
}
.desk-slot.occupied:hover, .desk-slot.occupied:focus-visible {
  filter: drop-shadow(0 0 5px #fff4d8);
}
.desk-slot.occupied .slot-plus { display: none; }
.folder-slot.occupied { background-image: url("media/trial-folder.png"); }
.note-slot.occupied { background-image: url("media/trial-note.png"); }
.folder-slot.occupied .folder-tab, .note-slot.occupied .note-preview {
  display: block;
  position: absolute;
  color: #4d331e;
  text-align: start;
  overflow: hidden;
}
.folder-tab { inset: 4% 62% auto 11%; font-size: clamp(.52rem, 1vw, .84rem); text-overflow: ellipsis; white-space: nowrap; }
.note-preview { inset: 18% 15% 18% 15%; font: clamp(.7rem, 1.6vw, 1.14rem)/1.08 "Desk Hand", cursive; white-space: pre-wrap; overflow-wrap: anywhere; }

@font-face {
  font-family: "Desk Hand";
  src: url("media/PatrickHand-Regular.ttf") format("truetype");
  font-display: swap;
}
dialog:is(.trial-name, .trial-note, .trial-document) {
  color: #302012;
  border: 0;
  padding: 0;
  max-height: 92dvh;
  color-scheme: light;
}
dialog::backdrop { background: #1a100bc9; }
.trial-name {
  width: min(420px, calc(100% - 32px));
  border-radius: 24px;
  background: #ebba71 url("media/trial-folder.png") center / 130% 180%;
  box-shadow: 0 10px 32px #140c07aa;
}
.trial-name form { padding: 20px; }
.trial-name h2 {
  padding-block-end: 12px;
  margin-block-end: 13px;
  border-bottom: 1px solid #bc9054;
  font-size: 1.1rem;
  text-align: center;
}
.trial-name label { display: block; margin-block-end: 5px; font-size: .86rem; }
.trial-name input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a57a47;
  border-radius: 10px;
  background: #ffebc8;
  color: #302012;
}
.trial-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-block-start: 12px; }
.trial-actions button, .place-document, .document-cancel {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #b98b4a;
  border-radius: 12px;
  background: #ffe5b5;
  color: #322014;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}
.trial-name button[type="submit"], .trial-note button[type="submit"], .place-document {
  color: #fff5dc;
  background: #5f3d20;
}
.trial-document {
  width: min(900px, 96vw, 119dvh);
  max-width: none;
  background: transparent;
  overflow: visible;
}
.document-art { position: relative; aspect-ratio: 1447 / 1087; background: url("media/trial-document.png") center / 100% 100% no-repeat; }
.document-tab {
  position: absolute;
  left: 30%;
  top: 1.4%;
  width: 17.8%;
  height: 6%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(.66rem, 1.55vw, 1rem);
  text-align: center;
}
.document-art textarea {
  position: absolute;
  left: 24.4%;
  top: 10.6%;
  width: 53%;
  height: 86%;
  padding: clamp(5px, 2vw, 23px);
  background: #fff;
  font: clamp(1rem, 1.6vw, 1.18rem)/1.6 var(--serif);
}
.document-art textarea, .trial-note textarea {
  color: #302012;
  border: 0;
  resize: none;
}
.document-art textarea:focus, .trial-note textarea:focus { outline: 1px solid #b9935c; outline-offset: -2px; }
.place-document, .document-cancel { position: absolute; left: 81.2%; width: 12.5%; padding: 2px; font-size: clamp(.62rem, 1.15vw, .89rem); line-height: 1.13; }
.place-document { top: 83.7%; }
.place-document span + span { margin-inline-start: 3px; }
.document-cancel { top: 75%; }
.trial-note {
  width: min(390px, calc(100% - 32px));
  border-radius: 2px 2px 18px 2px;
  background: #ffe896;
  box-shadow: 0 10px 32px #140c07aa;
}
.trial-note form { padding: 16px; }
.trial-note textarea {
  display: block;
  width: 100%;
  height: min(280px, 43dvh);
  padding: 3px;
  background: transparent;
  font: 1.38rem/1.2 "Desk Hand", cursive;
}
@media (max-width: 760px) {
  .room.is-inside .room-layout { align-content: start; gap: 15px; }
  .desk-trial { width: min(100%, 440px); height: 230px; justify-self: center; }
  .folder-slot { top: 15%; }
  .note-slot { top: 41%; }
  .place-document, .document-cancel { min-height: 36px; }
  .document-cancel { top: 66%; }
}
@media (max-width: 500px) {
  .trial-document { width: min(92vw, 420px); }
  .document-art { aspect-ratio: 3 / 4; }
  .document-art textarea { left: 18%; width: 64%; top: 11%; height: 72%; }
  .place-document, .document-cancel { width: auto; min-width: 29%; top: 87%; padding-inline: 4px; }
  .document-cancel { left: 17%; }
  .place-document { left: auto; right: 16%; }
}


/* Download cards and support */
.section-layout {
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: clamp(22px, 3.5vw, 58px);
}
.downloads, .support {
  padding-block: clamp(30px, 4.2vw, 62px) clamp(38px, 5vw, 74px);
}
.section-copy { border-inline-end: 1px solid #a9865b66; padding-inline-end: clamp(18px, 2.5vw, 38px); }
.section-copy .eyebrow { color: var(--gold); margin: 0 0 10px; font-size: .72rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.section-copy .eyebrow::after { content: ""; display: block; width: 43px; height: 1px; margin-block-start: 8px; background: var(--gold); }
.section-copy h2 { font-size: clamp(2.45rem, 4.5vw, 4rem); }
.section-copy p { line-height: 1.48; }
.downloads .platforms {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 465px);
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.downloads .platforms > li {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 13px 15px;
  border: 1px solid #c69762a8;
  border-radius: 10px;
  background: linear-gradient(143deg, #443020, #302017);
  box-shadow: 0 5px 13px #1b100a45;
  text-align: start;
}
.platform-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  color: #f8deba;
}
.platform-title svg { flex: 0 0 auto; }
.platform-title strong { font: 560 clamp(.95rem, 1.5vw, 1.25rem)/1.2 var(--serif); }
.mobile-stores summary { list-style: none; cursor: pointer; }
.mobile-stores summary::-webkit-details-marker { display: none; }
.store-chevron {
  width: 7px;
  height: 7px;
  margin-inline-start: auto;
  border: solid #f8deba;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.mobile-stores[open] .store-chevron { transform: translateY(2px) rotate(225deg); }
.store-list { display: grid; gap: 5px; padding: 7px 0 0; margin: 0; }
.store-list > li { list-style: none; padding: 0; }
.platforms .store-name { color: #f3d6ac; font-size: .85rem; }
.platforms small { display: block; color: #d5b99e; font-size: .72rem; margin-block-start: 4px; }
@media (max-width: 1000px) {
  .section-layout { grid-template-columns: 1fr; gap: 23px; }
  .section-copy { border: 0; padding-inline-end: 0; }
}
@media (max-width: 540px) {
  .downloads .platforms { grid-template-columns: 1fr; }

}

/* The desk targets track the fixed close-up while the room scrolls. */
.room .scene-close {
  inset-block: -48px -16px;
  transform: scale(1.09);
}

.desk-trial { position: absolute; width: 46%; height: min(52%, 390px); inset: calc(27% + 17px) 5% auto auto; }
.room.is-inside .room-layout { pointer-events: none; }
.room.is-inside .room-copy { pointer-events: auto; }
.room.is-inside .desk-slot { pointer-events: auto; }
.folder-tab {
  inset: 4.8% 62% auto 10.5%;
  height: 6.9%;
  align-content: center;
  font: 400 clamp(.49rem, .8vw, .72rem)/1.06 "Segoe UI", system-ui, sans-serif;
}
.folder-slot.occupied .folder-tab, .note-slot.occupied .note-preview { text-align: center; }
.note-preview { display: none; }
.note-slot.occupied .note-preview { font-size: clamp(.55rem, 1.35vw, 1.02rem); }
.trial-note textarea { text-align: center; }
.trial-note textarea:focus { outline: none; }
.trial-note .delete-trial-note { color: #702f23; background: transparent; border-color: transparent; }
.trial-note .delete-trial-note:hover { background: #eac567; }
.document-tab {
  left: 30.1%;
  top: 1.38%;
  width: 18%;
  height: 6.35%;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  color: #49341f;
  background: transparent;
  font: 400 clamp(.56rem, 1.02vw, .88rem)/1.1 "Segoe UI", system-ui, sans-serif;
  cursor: text;
}
.document-tab:hover { background: #fff1ca55; }
.delete-trial-folder {
  position: absolute;
  left: 81.2%;
  top: 91%;
  width: 12.5%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 3px;
  border: 0;
  background: none;
  color: #702f23;
  font-size: clamp(.58rem, .95vw, .78rem);
  cursor: pointer;
}
.delete-trial-folder svg { flex: 0 0 14px; }
.delete-trial-folder:hover { background: #ffe5b5; border-radius: 8px; }
@media (max-width: 760px) {
  .desk-trial { inset: calc(53% + 2px) 6% auto 6%; width: auto; height: clamp(190px, 40vw, 290px); }
}
@media (max-width: 500px) {
  .document-tab { font-size: .71rem; }
  .delete-trial-folder { top: 94%; left: 18%; width: 64%; min-height: 24px; font-size: .75rem; }
}

body:has(.room) {
  isolation: isolate;
  --desk-shade:
    linear-gradient(0deg, #241914 0%, transparent 34%, transparent 73%, #1f150fe0 100%),
    linear-gradient(var(--desk-shade-direction, 90deg), #231710ee 0%, #2b1c13ad 34%, #2b1c1338 61%, #1f150f10 100%);
  --desk-photo: url("media/desk.jpg");
}
[dir="rtl"] body:has(.room) { --desk-shade-direction: 270deg; }
body:has(.room)::before,
body:has(.room)::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -64px 0;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
}

body:has(.room)::before {
  z-index: -2;
  background-image: var(--desk-shade), linear-gradient(115deg, #170e08a8, #22150e8f), var(--desk-photo);
  background-position: 58% 57%;
}
body:has(.room)::after {
  background-image: linear-gradient(115deg, #170e0878, #22150e63), url("media/desk-close.jpg");
  background-position: center 35%;
  translate: 0 var(--desk-backdrop-offset, 0px);
  transform: scale(1.09);
  opacity: 0;
  transition: opacity .65s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
body:has(.room.is-inside)::after {
  transform: scale(1);
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.room)::before {
      animation: desk-scroll 1s linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes desk-scroll {
  from { transform: translateY(24px); }
  to { transform: translateY(-56px); }
}
@media (max-width: 760px) {
  body:has(.room) {
    --desk-shade: linear-gradient(0deg, #241914 0%, transparent 33%, #23171013 47%, #231710b8 75%, #20150fe8 100%);
    --desk-photo: url("media/desk-phone.jpg");
  }
  body:has(.room)::before,
  body:has(.room)::after {
    /* A stable height keeps the photo crop steady as mobile browser chrome moves. */
    inset-block-end: auto;
    height: calc(100lvh + 128px);
    scale: 1.1;
  }
  body:has(.room)::before { background-position: center 56%; }
  body:has(.room)::after { background-position: 65% 49%; }
}

.downloads .platforms {
  justify-self: end;
  width: min(100%, 575px);
  gap: clamp(12px, 1.4vw, 20px);
}
.downloads .platforms > li {
  padding: clamp(11px, 1.3vw, 17px);
  border: 1px solid #e0b27a;
  border-radius: 15px;
  background: linear-gradient(143deg, #48301e, #332016);
  box-shadow: inset 0 0 0 2px #291a12, 0 6px 12px #170d084d;
}
.platform-title {
  min-height: 56px;
  gap: 12px;
}
.platform-title svg { width: clamp(26px, 3vw, 41px); height: auto; }
.platform-title strong { font-size: clamp(1.1rem, 1.85vw, 1.55rem); }
.downloads .store-action {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 23px 6px 9px;
  border-radius: 8px;
  background: linear-gradient(155deg, #ffe7bf, #eab775);
  color: #332013;
  text-align: center;
  font-size: clamp(.74rem, 1vw, .88rem);
  font-weight: 600;
}
.store-action > span:last-child { position: absolute; inset-inline-end: 9px; }
.windows-store, .mobile-stores summary { display: grid; gap: 8px; }

.mobile-stores summary:hover .store-action { background: #ffe1ae; }
.mobile-stores .store-chevron { border-color: #332013; }
.mobile-stores { position: relative; }
.mobile-stores[open] .store-list {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 7px) 0 auto;
  padding: 5px 11px;
  border: 1px solid #d6a771;
  border-radius: 8px;
  background: #3a271c;
  box-shadow: 0 9px 20px #1a0d08b3;
}
.mobile-stores ul li { padding: 5px 2px; border-bottom: 1px solid #d9a96538; }
.radio > img.radio-still-life {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: min(12.1%, 230px);
  height: 100%;
  object-fit: fill;
  clip-path: polygon(0 0, 69% 0, 69% 51%, 100% 51%, 100% 100%, 0 100%);
  mask-image: linear-gradient(90deg, #000 0 81%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 540px) {
  .platform-title { min-height: 44px; }
}


.radio-mobile-title { display: none; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .bar { column-gap: 12px; row-gap: 7px; }
  .room-layout { padding-block: 98px 42px; }
  .room.is-inside .room-layout { padding-block: 120px 36px; }
  .room-copy h1 { font-size: clamp(2.85rem, 11vw, 4.7rem); }
  .room-copy .intro { max-width: 31ch; }
  .room.is-inside .room-copy h1 { font-size: clamp(1.8rem, 6.5vw, 2.8rem); }
  .room.is-inside .room-copy .brass-button { margin-block-start: 10px; }
  .desk-trial {
    inset: calc(49% + 10px) 9% auto 46%;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 18px;
    height: auto;
    width: auto;
  }
  .desk-trial .desk-slot {
    position: relative;
    inset: auto;
    height: auto;
  }
  .desk-trial .folder-slot { width: clamp(112px, 37vw, 162px); aspect-ratio: 3 / 3.65; }
  .desk-trial .note-slot { width: clamp(61px, 20vw, 85px); }
  .folder-tab { font-size: .63rem; }

  .room + .downloads { margin-block-start: 8px; }
  .downloads { gap: 12px; padding-block: 14px 30px; }
  .section-copy h2 { font-size: clamp(1.8rem, 7.8vw, 2.45rem); }
  .downloads .platforms { width: 100%; }

  .radio-section {
    padding: 30px 12px 24px;
    background: radial-gradient(ellipse at 55% 42%, #482819, #301c10 76%);
    overflow: clip;
  }
  .radio-mobile-title {
    display: block;
    margin: 0 0 15px;
    font: 650 clamp(1.65rem, 6vw, 2.4rem)/1.08 var(--serif);
    text-align: center;
  }
  .radio-frame { width: min(100%, 570px); margin-inline: auto; overflow: hidden; direction: ltr; }
  .radio {
    /* Keep the original control coordinates while showing the cabinet alone. */
    width: 214.36%;
    min-width: 0;
    margin-left: -97.44%;
  }
  .radio > img.radio-still-life, .radio .radio-copy { display: none; }
  .radio-button { min-width: 24px; }
  .radio-dial { min-width: 32px; }
  .radio-display { font-size: clamp(.63rem, 2.65vw, .84rem); }
}

.support {
  margin-block-start: clamp(12px, 2vw, 24px);
}
.support .section-copy h2 { font-size: clamp(1.75rem, 2.85vw, 3.1rem); }
.support-action { justify-self: end; margin-block-start: 0; text-decoration: none; }
.footer {
  border-top: 1px solid #9d754957;
  background: #392418 linear-gradient(#1b100b54, #1b100b75);
  background-image: linear-gradient(#1b100b54, #1b100b75), url("media/desk-edge.png");
  background-position: center;
  background-size: cover;
  font-size: .73rem;
  color: #f8e7d0;
}
.footer nav a { font-size: inherit; color: inherit; }
@media (max-width: 760px) {
  .support { gap: 12px; margin-block-start: 16px; padding-block: 17px 30px; }
  .support .section-copy h2 { font-size: clamp(1.65rem, 6.7vw, 2.15rem); }
  .support-action { justify-self: center; }
  .footer { font-size: .7rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-block: 17px; }
  .footer nav { justify-content: center; gap: 4px 18px; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
}

@media (min-width: 360px) and (max-width: 540px) {
  .downloads .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .downloads .platforms > li { padding: 9px; }
  .platform-title { gap: 6px; min-height: 36px; }
}

.contact-page address { margin-block-start: 22px; font-style: normal; text-align: start; }
.contact-page address ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.contact-page address li {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff0a;
  overflow-wrap: anywhere;
}
