/* Ways to watch (owner note 38): someone at their laptop in a glasshouse after rain (Greenhouse's light), and you
   choose what's on its screen. The room is an illustration; the screen plays only real recordings of the app. */
:root { --bg: #111511; --ink: #EEF0E6; --dim: #C3C9BA; --faint: #8E978A; --gold: #FFC867; --line: rgba(238, 240, 230, .12); }
body.ways { margin: 0; color: var(--ink); background: var(--bg); }

.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(18px, 3vw, 48px); }
.bar .wordmark { font-family: var(--pixel); font-size: 18px; letter-spacing: .08em; color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.bar-links { display: flex; align-items: center; gap: 22px; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .85; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.bar .get { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915;
  background: var(--gold); padding: 8px 12px; border-radius: 8px; }
.bar a:focus-visible, .modes button:focus-visible, .cta:focus-visible, .again:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The scene: the 2560x1440 illustration on a "plate" that ways.js scales to cover, focused on the laptop. */
.scene { position: relative; height: max(560px, min(100vh, 62vw)); height: max(560px, min(100svh, 62vw)); overflow: hidden; background: #0d110e; }
.view { position: absolute; inset: 0; overflow: hidden; }
.plate { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; transform-origin: 0 0; }
.plate .room { width: 2560px; height: 1440px; }
.dim { position: absolute; inset: 0; background: #04070a; opacity: var(--dimv, 0); transition: opacity 1.2s var(--ease); }
/* the screen's light on the desk, the keyboard and the hands (sampled from what's playing) */
.spill { position: absolute; left: 1080px; top: 360px; width: 1240px; height: 900px; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(48% 46% at 52% 44%, rgb(var(--spill, 60 70 110) / .55), rgb(var(--spill, 60 70 110) / 0) 100%);
  opacity: .55; transition: background .6s linear; }
.glass { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; }
.screen { position: absolute; left: 0; top: 0; width: 1600px; height: 1034px; transform-origin: 0 0; background: #000; overflow: hidden; }
.screen .sv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0; transition: opacity .55s linear; }
.screen .sv.on { opacity: 1; }
.screen .glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .12)); }

.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 12, 10, .82) 0, rgba(9, 12, 10, .62) 24%, rgba(9, 12, 10, .18) 44%, rgba(9, 12, 10, 0) 56%),
    linear-gradient(to bottom, rgba(9, 12, 10, .55) 0, rgba(9, 12, 10, 0) 16%, rgba(9, 12, 10, 0) 78%, var(--bg) 100%); }

/* The choice, on the left over the dark of the room. */
.panel { position: absolute; z-index: 5; left: clamp(18px, 4vw, 72px); top: max(88px, calc(50% - 210px)); width: min(400px, 34vw); } /* anchored at the top, so a longer line never moves the choice */
.kicker { margin: 0 0 10px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 26px; font-family: var(--pixel); font-weight: 500; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.modes { display: flex; flex-direction: column; gap: 6px; }
.modes button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0); color: var(--dim); text-align: left; font-size: 16px; transition: background .3s, color .3s; }
.modes button:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.modes button[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 200, 103, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modes svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.modes button[aria-selected="true"] svg { stroke: var(--gold); }
.modes .nm { font-weight: 600; }
.modes .bar-p { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold); opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
.modes.cycling button[aria-selected="true"] .bar-p { opacity: .55; animation: prog var(--dur, 12s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.line { margin: 14px 4px 0; }
.say { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.say a { color: var(--gold); text-underline-offset: 3px; }
.note { margin: 0; font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.line.swap .say, .line.swap .note { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

/* Little touches */
.touches { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) clamp(18px, 3vw, 48px) 0; }
.sub-h { margin: 0 0 16px; font-family: var(--tiny); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card figure { margin: 0; }
.card .media { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0a0d0b;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .35); }
.card .media video, .card .media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.card figcaption b { display: block; margin-bottom: 2px; font-family: var(--pixel); font-weight: 400; font-size: 18px; color: var(--ink); }
.again { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; font-size: 16px;
  background: rgba(10, 13, 11, .62); color: var(--ink); opacity: 0; transition: opacity .3s; }
.card:hover .again, .again:focus-visible, .again.show { opacity: 1; }
.also { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 14.5px; color: var(--dim); }
.also svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }

.next { max-width: 1180px; margin: clamp(36px, 6vh, 64px) auto 0; padding: 22px clamp(18px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-top: 1px solid var(--line); }
.next p { margin: 0; font-family: var(--pixel); font-size: clamp(20px, 2vw, 26px); }
.cta { font-family: var(--tiny); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915; background: var(--gold);
  padding: 12px 18px; border-radius: 10px; white-space: nowrap; }
.fine { max-width: 1180px; margin: 10px auto 0; padding: 0 clamp(18px, 3vw, 48px) 36px; font-size: 12px; color: var(--faint); }
.draft { opacity: .7; }

@media (max-width: 900px) {
  .scene { height: auto; overflow: visible; background: none; }
  .view { position: relative; inset: auto; height: min(94vw, 60svh); }
  .scrim { display: none; }
  .panel { position: static; transform: none; width: auto; padding: 18px 18px 0; }
  h1 { font-size: 30px; margin-bottom: 16px; }
  .modes { flex-direction: row; gap: 6px; }
  .modes button { flex: 1; flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; font-size: 13.5px; }
  .modes .nm { font-weight: 600; line-height: 1.2; }
  .line { min-height: 0; }
  .touches { padding-top: 44px; }
  .cards { grid-template-columns: 1fr; gap: 26px; }
  .bar .back .lbl { display: none; }
  .next { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Owner notes 41-42: the projection. In screen saver mode the real Screen Saver panel, magnified, hangs above the
   laptop with a soft beam down to its spot on the screen; the screen stays uncovered (ways.js places both). */
.plate { transition: transform .8s var(--ease); }
.beam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0;
  mix-blend-mode: screen; filter: blur(1.2px); transition: opacity .7s linear; }
.beam.on { opacity: 1; }
.loupe { position: absolute; z-index: 4; border-radius: 12px; overflow: hidden; pointer-events: none; background: #282523;
  box-shadow: 0 0 0 1px rgba(205, 222, 255, .3), 0 0 30px 2px rgba(160, 190, 255, .22), 0 22px 50px rgba(0, 0, 0, .55);
  opacity: 0; transform: var(--from, scale(.2)); transform-origin: 50% 50%;
  transition: opacity .5s linear, transform .75s var(--ease); }
.loupe.on { opacity: .97; transform: none; }
.loupe video { width: 100%; height: 100%; object-fit: cover; }

/* Owner note 43: the room's own life (room-life.js): rain on the glass, steam from the mug. Half-resolution canvas. */
.plate .life { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; pointer-events: none; }
