/* The demo stage in Web Landscapes' own look: off-white paper, black type, red as the accent only.
   The devices are dark hardware on the light stage so the screens are what stands out.
   Everything fits one screen from a phone to a wall display; nothing sits below the fold. */
@font-face { font-family: "WL Grotesk"; src: url("../fonts/wl-grotesk/wl-grotesk.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
body.launcher { --ink: #111111; --paper: #f4f2ec; --paper-2: #ebe8df; --paper-3: #dedacd; --white: #ffffff; --red: #e4002b; --red-text: #b0001f; --muted: #5b5a55; --rule: rgb(17 17 17 / 0.16); --focus: #111111;
  background: var(--paper); color: var(--ink); font-family: "WL Grotesk", ui-sans-serif, system-ui, sans-serif; font-size: 1rem; overflow: hidden; }
body.launcher #app { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; height: 100vh; height: 100dvh; max-width: none; margin: 0; padding: 0; }
body.launcher :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.l-top { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); padding: 6px clamp(14px, 2vw, 28px); border-bottom: 1.5px solid var(--ink); }
.l-logo { height: 40px; width: auto; flex: none; mix-blend-mode: multiply; }
.l-title { flex: none; margin: 0; padding-left: clamp(10px, 1.2vw, 18px); border-left: 1.5px solid var(--ink); font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); font-weight: 760; font-stretch: 108%; line-height: 1.15; max-width: 12em; overflow-wrap: normal; }
.scenes { display: flex; gap: 4px; flex: 1; justify-content: center; }
.scene { white-space: nowrap; min-height: 46px; padding: 0 clamp(10px, 1.4vw, 20px); border: 0; border-bottom: 4px solid transparent; background: none; color: var(--muted); font-weight: 760; font-stretch: 110%; font-size: clamp(0.9375rem, 1.25vw, 1.125rem); letter-spacing: 0.005em; }
.scene[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.l-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.l-lang { display: inline-flex; border: 1.5px solid var(--ink); background: var(--white); }
.l-lang button { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); font-weight: 760; }
.l-lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 720; font-size: 1rem; white-space: nowrap; }
.l-btn:disabled { border-color: #a8a69f; color: #77756f; background: var(--paper-2); }
.short { display: none; }
.l-btn-quiet { min-height: 44px; font-weight: 600; font-size: 0.9375rem; }
.l-btn-icon { width: 48px; padding: 0; }
.l-btn-play { background: var(--red-text); border-color: var(--ink); color: #fff; min-width: 140px; font-weight: 820; font-stretch: 112%; font-size: 1.0625rem; box-shadow: 4px 4px 0 var(--ink); }
.l-btn-play:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.l-btn[aria-pressed="true"]:not(.l-btn-play) { background: var(--ink); color: var(--paper); }

.seeing { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 6px clamp(14px, 2vw, 28px) 0; }
.seeing-text { display: flex; align-items: baseline; gap: 14px; min-width: 0; font-size: clamp(0.875rem, 1.05vw, 1rem); color: var(--muted); }
.seeing strong { letter-spacing: 0.01em; flex: none; color: var(--ink); font-weight: 860; font-stretch: 122%; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1; }
.seeing-tools { display: flex; gap: 10px; flex: none; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); background: var(--white); }
.seg button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ink); font-weight: 650; font-size: 0.9375rem; white-space: nowrap; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.pick { height: 46px; padding: 0 10px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 650; }
.pick-design { max-width: 230px; height: 44px; font-weight: 600; font-size: 0.9375rem; }

.stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 56px); min-height: 0; padding: 10px 16px 0; }
.stand { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.stand figcaption { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.stand figcaption .pick { height: 44px; font-size: 0.875rem; }
.l-btn-full { width: 44px; min-height: 44px; padding: 0; flex: none; }
.stand figcaption { max-width: 100%; }
.stand figcaption > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stand figcaption:has(.pick) > span { display: none; }
.stand figcaption .pick { min-width: 0; flex: 0 1 auto; max-width: calc(100% - 54px); }
.stand { overflow: hidden; }
body.is-single .stand figcaption > span { display: none; }
.device { position: relative; flex: none; --s: 1; filter: drop-shadow(0 14px 14px rgb(17 17 17 / 0.22)); }
.device-screen { position: relative; overflow: hidden; background: #0b0b0b; }
.frame { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.device-bar, .device-mount, .device-foot { display: none; }
.device-phone { padding: calc(11px * var(--s) + 3px); border-radius: calc(54px * var(--s) + 4px); background: #141414; box-shadow: inset 0 0 0 1.5px #3b3b38; }
.device-phone .device-screen { border-radius: calc(44px * var(--s)); }
.device-phone::before, .device-phone::after { content: ""; position: absolute; width: 3px; background: #141414; border-radius: 2px; }
.device-phone::before { left: -3px; top: 22%; height: 9%; }
.device-phone::after { right: -3px; top: 27%; height: 13%; }
.device-phone .device-bar { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: calc(44px * var(--s)); padding-top: calc(4px * var(--s)); background: #0b0b0b; }
.device-island { width: calc(96px * var(--s)); height: calc(26px * var(--s)); border-radius: 999px; background: #000; box-shadow: 0 0 0 1px #262624; }
.device-tablet { padding: calc(22px * var(--s) + 4px); border-radius: calc(30px * var(--s) + 4px); background: #141414; box-shadow: inset 0 0 0 1.5px #3b3b38; }
.device-tablet .device-screen { border-radius: calc(8px * var(--s)); }
.device-wall { padding: 22px; border-radius: 22px; background: #141414; box-shadow: inset 0 0 0 1.5px #3b3b38; }
.device-wall .device-screen { border-radius: 6px; }
.device-wall .device-mount { display: block; position: absolute; left: 50%; top: -12px; width: 120px; height: 14px; margin-left: -60px; background: #2a2a28; border-radius: 4px 4px 0 0; }
.device-mount::before, .device-mount::after { content: ""; position: absolute; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #77756f; }
.device-mount::before { left: 14px; } .device-mount::after { right: 14px; }
.device-desktop { padding: 10px 10px 14px; border-radius: 10px; background: #141414; margin-bottom: 30px; }
.device-desktop .device-screen { border-radius: 3px; }
.device-desktop .device-foot { display: block; position: absolute; left: 50%; bottom: -30px; width: 150px; height: 30px; margin-left: -75px; background: #2a2a28; clip-path: polygon(30% 0, 70% 0, 76% 78%, 100% 78%, 100% 100%, 0 100%, 0 78%, 24% 78%); }
.pointer { position: absolute; z-index: 10; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; background: rgb(228 0 43 / 0.8); box-shadow: 0 0 0 2px #111; pointer-events: none; transition: transform 0.18s, left 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.pointer.is-tap { transform: scale(0.62); }
body.is-playing .frame { pointer-events: none; }

/* the caption: a slim light band, there only while a story plays */
.caption-band { padding: 8px clamp(14px, 2vw, 28px); background: var(--white); border-top: 1.5px solid var(--ink); }
.caption { max-width: 1280px; margin: 0 auto; text-align: center; font-weight: 720; font-stretch: 104%; font-size: clamp(1.0625rem, 1.75vw, 1.5rem); line-height: 1.25; text-wrap: balance; }

/* one row: the story menu, the transport, the progress, the footer line */
.deck { display: flex; align-items: center; gap: 12px 20px; padding: 10px clamp(14px, 2vw, 28px) 12px; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.story-pick { min-width: 0; max-width: 360px; flex: 0 1 340px; }
.transport { display: flex; gap: 8px; flex: none; }
.progress { flex: 1; min-width: 60px; }
.beat-count { font-size: 0.8125rem; color: var(--muted); font-weight: 650; margin-top: 4px; min-height: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beats { display: flex; gap: 5px; }
.beats li { flex: 1; height: 8px; background: var(--paper-3); border: 1px solid #8f8d86; }
.beats li.is-done { background: var(--ink); border-color: var(--ink); }
.beats li.is-now { background: var(--red); border-color: var(--ink); }
.demo-by { flex: none; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.demo-by a, .site-links a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; font-weight: 650; text-underline-offset: 3px; }
.site-links { flex: none; display: flex; gap: 4px 14px; font-size: 0.8125rem; white-space: nowrap; }
/* What a visitor (or a search engine) gets before the script has drawn the stage. */
.l-static { max-width: 44rem; max-height: 100dvh; margin: 0 auto; padding: 48px 20px; overflow: auto; }
.l-static h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 860; font-stretch: 118%; line-height: 1.05; }
.l-static p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.5; }
.l-static a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; margin-right: 18px; display: inline-flex; align-items: center; min-height: 44px; }
.l-static-wait { color: var(--muted); }

dialog.more { width: min(880px, calc(100vw - 32px)); max-height: 88dvh; padding: 22px 24px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: 8px 8px 0 var(--ink); }
.more-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.more-head h2 { font-weight: 860; font-stretch: 118%; font-size: 1.5rem; }
.more-links { columns: 250px; column-gap: 28px; margin-top: 14px; }
.more-links li { break-inside: avoid; }
.more-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.more-links .icon { width: 15px; height: 15px; }
.more-qr h3 { margin-top: 16px; font-size: 1.125rem; }
.more-qr-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0; }
.more-qr .qr { width: 140px; height: 140px; }
.more-qr figcaption { margin-top: 4px; font-size: 0.875rem; text-align: center; }
.more-note, .more-qr p { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 1700px) { .demo-by { display: none; } .l-tools .long { display: none; } .l-tools .short { display: inline; } }
@media (max-width: 1240px) { .seeing-text span { display: none; } .l-title { max-width: 9.5em; font-size: 0.875rem; } .scene { font-size: 0.9375rem; padding: 0 10px; } }
@media (max-height: 760px) { .l-logo { height: 34px; } .stand figcaption { min-height: 44px; } }
/* The narrowest two-device width: everything a little tighter so the heading, tabs and tools still share one row. */
@media (min-width: 980px) and (max-width: 1120px) {
  .l-top { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .l-logo { height: 28px; }
  .l-title { max-width: 9.5em; font-size: 0.8125rem; padding-left: 10px; }
  .scene { font-size: 0.875rem; padding: 0 6px; }
  .l-tools { gap: 6px; }
  .l-tools .l-btn-quiet { padding: 0 10px; }
  .seeing strong { font-size: 1.0625rem; }
  .seeing-tools { gap: 8px; }
  .pick-design { max-width: 176px; }
  .seg button { padding: 0 8px; font-size: 0.875rem; }
  .deck { gap: 10px 12px; }
  .story-pick { flex-basis: 250px; }
  .l-btn-play { min-width: 120px; }
  .site-links { gap: 4px 10px; }
}
/* Tablets and phones: one screen at a time, compact controls, still no page scroll. */
@media (max-width: 979px) {
  .l-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 6px 12px 0; }
  .l-logo { grid-row: 1; grid-column: 1; }
  .l-tools { grid-row: 1; grid-column: 2; justify-self: end; min-width: 0; }
  .l-title { grid-row: 2; grid-column: 1 / -1; border-left: 0; padding: 0; max-width: none; font-size: 0.9375rem; }
  .scenes { grid-row: 3; grid-column: 1 / -1; min-width: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .l-logo { height: 32px; }
  .scene { white-space: nowrap; font-size: 1rem; padding: 0 12px; }
  .seeing { flex-wrap: wrap; padding: 6px 12px 0; }
  .seeing-text { display: none; }
  .seeing-tools { flex: 1; justify-content: space-between; flex-wrap: wrap; }
  .seg button { padding: 0 10px; font-size: 0.875rem; }
  .pick-design { order: 3; flex: 1; max-width: none; }
  .stage { padding: 8px 10px 0; }
  .stand figcaption { min-height: 0; }
  .caption-band { padding: 6px 12px; }
  .caption { font-size: 1.0625rem; }
  .deck { flex-wrap: wrap; padding: 8px 12px; gap: 8px 10px; }
  .story-pick { flex: 1 1 100%; max-width: none; }
  .l-btn-play { min-width: 116px; }
  .transport { gap: 6px; }
  .demo-by { display: block; flex: 1 1 auto; text-align: right; }
  .demo-by a { min-height: 44px; }
  .site-links { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .long { display: none; }
  .short { display: inline; }
  .l-tools { gap: 6px; }
  .l-tools .l-btn-quiet { min-width: 44px; padding: 0 10px; }
  .l-logo { width: 104px; height: auto; }
  .demo-by { display: none; }
  .site-links { flex: 1 1 100%; justify-content: center; gap: 4px 18px; }
  .seg-view { display: none; }
  .seeing-tools .seg { flex: 1; }
  .seeing-tools .seg button { flex: 1; }
  .beat-count { display: none; }
}

/* recordings: only the devices on the paper stage */
body.is-clean .l-top, body.is-clean .seeing, body.is-clean .deck, body.is-clean .caption-band, body.is-clean .stand figcaption { display: none; }
body.is-clean #app { grid-template-rows: minmax(0, 1fr); }
body.is-clean .stage { padding: 24px; }
