/* ethan-site. Page job: SHOW (that sells). World: the glass coffee pavilion at golden hour (REDESIGN, PLAN-redesign.md).
   Look: light and real: limewash plaster, oak, brushed steel, brass, espresso ink. Real CC0 textures in assets/tex/.
   Roles follow his design tokens: ground 60 / structure 30 / action 10 (action = brushed brass). */

:root {
  color-scheme: light;

  /* GROUND: warm limewash plaster (the pavilion's inside walls) */
  --ground: #F1E9DC;
  --surface: #FBF6EC;
  --surface-2: #E8DCC8;

  /* STRUCTURE: espresso ink, hairlines */
  --ink: #2A2520;
  --ink-soft: #66574A;
  --line: rgb(42 37 32 / 0.16);

  /* ACTION: brushed brass. Text links + focus rings use the deep brass (reads on the plaster). */
  --action: #7A5716;
  --brass: linear-gradient(#f0dcaa, #d4b067 38%, #b48d46 62%, #dcbd7a);
  --brass-mid: #c9a45c;
  --brass-ink: #2b2110;

  --font-display: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif; /* Ethan 2026-11-26: the serif looked AI; his ref = Squarespace cards */
  --font-body: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace; /* thermal print only: tickets, stubs */

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --step-2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-display: clamp(3rem, min(1.5rem + 7vw, 13vh), 6.5rem); /* 13vh: short laptop screens keep the street on one screen */

  --gutter: 16px;
  --radius: 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.in-room, html.in-room body { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

/* ---------- top bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(10px);
}

.top-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-decoration: none;
}


/* ---------- sections ---------- */

section {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) 4rem;
}

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; }

/* ---------- the stage: one locked screen ----------
   With JavaScript the page never scrolls. The four scenes sit on top of each other and main.js sets
   data-at = past | here | next on each. The overlays fade while pavilion.js moves the camera.
   Without JavaScript none of this applies: a normal page. */

.js, .js body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.js .stage { position: fixed; inset: 0; height: 100dvh; overflow: clip; } /* clip, not hidden: a typed #register made the browser scroll the stage sideways to the scene mid-pan */
/* the 3D pavilion (pavilion.js) under every scene; the old line-art house is gone (PLAN-redesign.md item 12) */
.js .stage > canvas.pavilion { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.js #street .street-still { display: none; }
/* the 0-second picture: a still render of the street stop shows until the 3D has drawn its first frame. The 3D is framed by the
   window's HEIGHT, so the still (12:5, wider than any usual window) is too; `cover` made the shop jump ~10% smaller when the 3D came in (walk P5) */
.js .stage { background: #e9dcc7 url("assets/pavilion-still.jpg") center / max(100%, 240dvh) auto no-repeat; }
.js .stage > canvas.pavilion { opacity: 0; transition: opacity 0.6s ease-out; }
.js .stage.lit > canvas.pavilion { opacity: 1; }
/* Visibility also keeps the waiting overlays out of keyboard focus and the accessibility tree. */
.gl .stage:not(.lit) > :is(#inside, #bar, #register) > * { visibility: hidden; }

/* REDESIGN, Phase 1 (PLAN-redesign.md): over a light 3D shop the dark bar and cream words cannot be read. Everything
   that floats over the scene is a frosted glass pill with espresso ink (coffee-3d's look). Phase 5 sets the full tokens. */
:root { --glass: rgba(250, 246, 239, 0.72); --glass-ink: #2a2520; --glass-soft: #2a2520a6; --glass-line: rgba(42, 37, 32, 0.14); }
.js .top { background: none; backdrop-filter: none; pointer-events: none; }
.js .top > * { pointer-events: auto; }
.js :is(.top-name, .plain-link, .corner-links, .step-cue, .back, .room-tabs) { /* .back + .room-tabs: Ethan 2026-11-28 "make it just white like the others" */
  background: var(--glass); color: var(--glass-ink); border: 1px solid var(--glass-line); border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.js .top-name { padding: 8px 18px; font: italic 500 20px/1.15 var(--font-display); letter-spacing: -0.01em; /* Ethan 2026-11-26: his name in italic */ }
.js .plain-link { font-family: var(--font-body); color: var(--glass-ink); text-decoration: none; }
.js .corner-links a { color: var(--glass-ink); }
.js .corner-links a:hover { color: #000; }
.js [data-scene] .step-cue { position: absolute; left: 0; right: 0; bottom: 24px; width: fit-content; margin: 0 auto; /* centred by margins: cue-hop owns translate */ padding: 10px 18px; font: 500 13px/1.2 var(--font-body); }
@media (max-width: 600px) { .js [data-scene] .step-cue { bottom: 84px; } } /* phones: above the corner icons (bar.mjs S1) */
.js [data-scene] .step-cue::after { display: none; }
.js [data-scene] .step-cue:hover { color: #000; }
.js [data-scene] {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: flex;               /* not grid + centre: a tall scene must scroll from its top, never lose it */
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 5rem;        /* room for the bottom controls */
  opacity: 0;
  visibility: hidden;
  /* the 3D camera does the moving (pavilion.js); a scene's words and buttons only fade: out at once, so nothing
     floats over the walk, and in as the camera lands (main.js sets --arrive = the walk's length minus 0.35 s) */
  transition: opacity 0.25s ease-out, visibility 0s linear 0.25s;
}
.js [data-scene]::-webkit-scrollbar { display: none; }
.js [data-scene] > .wrap { margin-block: auto; }
.js [data-scene][data-at="here"],
.js .stage:not(.ready) > [data-scene]:first-child { /* before main.js runs: the street shows */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease-out var(--arrive, 0.15s), visibility 0s linear var(--arrive, 0.15s);
}
.js .stage.instant [data-scene] { transition: none; }

/* LinkedIn / GitHub / Instagram (PLAN-links.md): 44px tap boxes; colours follow their corner or register. */
.links { display: flex; justify-content: center; }
.links a { display: grid; place-items: center; width: 44px; height: 44px; transition: color 0.15s; }
.links svg { width: 22px; height: 22px; }

/* the corner: the icons, on the inside and the counter only (not the street: Ethan's ask; the register has its own).
   The small coffee button that sat here is gone (Ethan, 2026-11-19). right: the glyphs line up with the gutter. */
.corner { display: none; }
.js .corner {
  position: fixed;
  z-index: 15;
  right: calc(var(--gutter) - 11px);
  bottom: calc(var(--gutter) - 11px);
  display: block;
  transition: opacity 0.3s, translate 0.3s var(--ease-out);
}
.js:not([data-scene="inside"], [data-scene="bar"]) .corner-links { display: none; }
.js[data-scene="register"] .corner {
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  visibility: hidden;
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: var(--step-display); line-height: 0.95; }
h2 { font-size: var(--step-2); line-height: 1.1; }
h3 { font-size: var(--step-1); line-height: 1.2; }

/* read by screen readers, not shown */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.button:active { transform: scale(0.97); }

/* Brushed brass (REDESIGN Chat 5; was black liquid metal, Ethan 2026-11-20): "Let's get coffee!" only, like the till and
   the plaque in 3D (Back + the tabs = white glass: Ethan 2026-11-28 "i dont like the filled in gold").
   Fine horizontal brush lines over a lit-from-above gradient, a bright top edge, a dark bottom lip, a soft shadow. */
.button {
  position: relative; border: 0; color: var(--brass-ink);
  background: repeating-linear-gradient(0deg, #ffffff14 0 1px, transparent 1px 3px), var(--brass);
  background-color: var(--brass-mid);
  box-shadow: inset 0 1px 0 #fff6dccc, inset 0 -1px 0 #6e501e99, 0 1px 0 #6e501e, 0 10px 20px -10px #4a300c99;
  transition: filter 0.15s;
}
.button:hover { filter: brightness(1.08) saturate(1.05); }

/* "Open Crema": clear inside, a sharp polished gold METAL frame: a gradient of hard light and dark bands, as polished metal
   mirrors a room, masked to its edge; a dark hairline each side. Only on paper: the tabs wore it for an hour and their
   words vanished over a dark picture scrolling behind them (Ethan 2026-11-28 "camouflage"). */
:root { --gold-metal: linear-gradient(115deg, #7a5416 0%, #d9ae52 12%, #fff3c9 21%, #c08f35 30%, #8c611a 44%, #e8c873 56%, #fffbe6 63%, #b98a33 73%, #6f4b12 88%, #cfa24a 100%);
  --gold-ink: #64450c; --frame: 2px; }
.bag-link {
  position: relative; border-radius: 12px; color: var(--gold-ink); background: none;
  box-shadow: 0 0 0 0.5px #5b3d0a, inset 0 0 0 calc(var(--frame) + 0.5px) #5b3d0a99, 0 2px 3px -1px #4a300c66;
}
.bag-link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--frame); pointer-events: none;
  background: var(--gold-metal) 0 0 / 220% 100%;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (prefers-reduced-motion: no-preference) { /* the light runs along the metal */
  .bag-link::after { transition: background-position 0.7s cubic-bezier(.3, 0, .2, 1); }
}
.bag-link:is(:hover, :focus-visible)::after { background-position: 100% 0; }


/* ---------- 1. the street (outside the shop) ---------- */

/* no JS: the still render of the pavilion stands in for the 3D street */
.js #street { padding-block: 4.75rem 0.75rem; }
/* Ethan's motto: large upright text in the sky over the roof. */
.motto { margin: 0 0 1rem; text-align: center; font: 500 clamp(2.1rem, 3.7vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.motto em { font-style: normal; } /* Ethan 2026-11-26: "done" upright, no italic */
.js #street .street-words { position: absolute; left: 16px; right: 16px; top: max(4.5rem, 12vh); }
.js #street .motto { margin: 0; }
/* the top bar's coffee button (GATE Mirror test, Ethan 2026-12-01): left of Quick view (main.js sets --qv = its width);
   phones: the top right (Quick view sits bottom left). links.mjs TC1-TC3 */
.top-coffee { display: none; }
.js:not(.in-room):is([data-scene="street"], [data-scene="inside"], [data-scene="bar"]) .top-coffee { display: inline-grid; }
.top-coffee { position: fixed; z-index: 31; top: 10px; right: calc(var(--gutter) + var(--qv, 7rem) + 8px); margin: 0; padding: 0 1.1rem;
  min-height: 44px; place-items: center; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 600px) { .top-coffee { right: var(--gutter); } }
.street-still { display: block; width: min(100%, 64rem); height: auto; margin-inline: auto; border-radius: var(--radius); }

/* The step cue: a glass pill with JS; a plain link with a static line below it without JS. */
.step-cue {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0.6rem auto 0;
  padding: 2px 0 20px; /* room for the static line below the no-JS cue */
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.step-cue:hover, .step-cue:focus-visible { color: var(--action); }
/* inside + counter (Ethan 2026-11-20): the cue takes the bottom of the scene's 5rem padding (so nothing grows or
   scrolls); on phones it sits higher, above the corner icons it would otherwise cross. */
.js :is(#inside, #bar) { padding-bottom: 1.6rem; }
.js :is(#inside, #bar) > .step-cue { flex: none; margin-top: 0.4rem; }
@media (max-width: 600px) { .js :is(#inside, #bar) { padding-bottom: 3.75rem; } }
.step-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 1px;
  height: 14px;
  translate: -50% 0;
  transform-origin: top;
  background: linear-gradient(currentColor, transparent);
}


/* phones: room at the bottom for the corner icons */
@media (max-width: 859px) {
  .js [data-scene] { padding-top: 5rem; }
  .js #street { padding-bottom: 5rem; }
}

/* The street cue hops; the inside and counter cues fade in on arrival, then hop. */
@media (prefers-reduced-motion: no-preference) {
  .js #street .step-cue { animation: cue-hop 2.2s 1s infinite; } /* readable at 0 s (GATE): no fade-in. Ethan 2026-11-26 "jump more": hop + bounce */
  /* the same cue under the inside room and the counter: it starts when its scene arrives, not at page load */
  .js :is(#inside, #bar)[data-at="here"] > .step-cue { animation: appear 0.6s ease-out 0.9s both, cue-hop 2.2s 1.5s infinite; } /* PLAN-feedback-2026-12-01 B4: hops like the street cue (was cue-bob) */

}
@keyframes appear { from { opacity: 0; } }
/* the street cue (Ethan 2026-11-26, his ref): a hop that lands with 2 small bounces, then rests; (bar.mjs C1). Each keyframe sets its own easing: up = slowing, down = speeding */
@keyframes cue-hop {
  0% { translate: 0 0; animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  20% { translate: 0 calc(var(--hop, 1) * -22px); animation-timing-function: cubic-bezier(.6, 0, .9, .45); }
  36% { translate: 0 0; animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  45% { translate: 0 calc(var(--hop, 1) * -8px); animation-timing-function: cubic-bezier(.6, 0, .9, .45); }
  53% { translate: 0 0; animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  58% { translate: 0 calc(var(--hop, 1) * -2.5px); animation-timing-function: cubic-bezier(.6, 0, .9, .45); }
  63%, 100% { translate: 0 0; }
}
.js #street .step-cue { padding: 10px 20px; font-size: 15px; } /* just the pill + words (Ethan 2026-11-27: the mouse icon went) */
/* "N of 4" in the cue pill: where you are in the walk (PLAN-feedback-2026-12-01 B4; bar.mjs C1, S1, S4) */
.cue-count { margin-left: 0.6em; padding-left: 0.6em; border-left: 1px solid var(--glass-line); color: var(--glass-soft); font-weight: 500; }

/* The book card: paper fixed to the window, placed by main.js beside the book. */
.inside { position: relative; }
.shelf-card { position: fixed; z-index: 5; display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.8rem; align-items: center;
  width: 15rem; padding: 0.7rem; text-align: left; background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 10px;
  box-shadow: var(--paper-shadow); }
.shelf-card[hidden] { display: none; }
.shelf-card-cover { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 4px 12px rgb(70 45 20 / 0.3); }
.shelf-card-words { display: grid; gap: 0.3rem; }
.shelf-card :is(.shelf-card-label, .shelf-card-author) { color: var(--paper-soft); font-family: var(--font-body); }
.shelf-card-label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.shelf-card-title { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.15; }
.shelf-card-author { font-size: 0.85rem; }
.shelf-card-note { margin: 0.2rem 0 0; font-size: 0.85rem; line-height: 1.35; }
.shelf-card-link { justify-self: start; font-size: 0.85rem; color: var(--paper-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.shelf-card-note[hidden], .shelf-card-link[hidden] { display: none; }
.shelf-card:has(.shelf-card-note:not([hidden]), .shelf-card-take:not([hidden])) { width: 18rem; }
/* a book from the Reading list: room for its main takeaway (content.js takeaway; "Coming soon." until Ethan writes it) */
.shelf-card-take { grid-column: 1 / -1; display: grid; gap: 0.25rem; padding-top: 0.6rem; border-top: 1px dashed var(--paper-line); }
.shelf-card-take[hidden] { display: none; }
.shelf-card-take p { margin: 0; font-size: 0.875rem; line-height: 1.4; }
/* the Reading list's titles are buttons (main.js): look like the title, a dotted underline says "click me" */
.list-book { all: unset; flex-basis: 100%; cursor: pointer; }
.list-book cite { text-decoration: underline dotted #5E4E3F88; text-underline-offset: 0.2em; }
.list-book:hover cite { text-decoration-color: currentColor; }
.list-book:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 2px; }
/* no JavaScript: Ethan's own book as a plain line under the list */
.wrote-line { margin: 1rem auto 0; text-align: center; color: var(--ink-soft); }
.wrote-line a { color: var(--action); }
.js .wrote-line { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .shelf-card, .email-card { transition: opacity 0.3s ease-out, translate 0.3s var(--ease-out); }
  @starting-style { .shelf-card, .email-card:popover-open { opacity: 0; translate: 0 8px; } }
}
/* the Reading list (PLAN-alex-feedback.md 4.3): a slip of paper, like the receipt. Phones and no JS: under the room.
   Laptops with WebGL: a paper card on the left of the 3D table (placed in the redesign styles below). Sized in rem: it grows with
   the reader's text (13px+ at 100%). */
.shelf-list { margin: 1rem auto 0; padding: 0.9rem 1.2rem 1.1rem; max-width: 22rem; text-align: left;
  background: var(--paper); color: var(--paper-ink); border-radius: 3px; box-shadow: var(--paper-flat); rotate: -1.2deg; }
.list-head { margin: 0 0 0.7rem; padding-bottom: 0.55rem; border-bottom: 1px dashed currentColor;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #5E4E3F; }
.shelf-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.shelf-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.5rem; }
.shelf-list cite { flex-basis: 100%; font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; line-height: 1.2; }
.shelf-list .by { font-size: 0.875rem; color: #5E4E3F; }
.shelf-list .now { font-family: var(--font-mono); font-size: 0.8125rem; padding: 0 0.35rem; border-radius: 2px; background: var(--ground); color: var(--ink); }
.shelf-list .why { flex-basis: 100%; margin: 0.15rem 0 0; font-size: 0.875rem; line-height: 1.35; }

/* ---------- 2. the counter ---------- */
/* The flat slate (no WebGL, phones via ?shop, no JS): sized from --k (the board is 4.2 k wide), so it scales as one
   picture. On laptops with WebGL the board sits over the 3D chalkboard instead (pavilion.js, .stage.anchored). */
/* --k: kept from when two shelves stood beside the board (6.94 k across), so the board and tabs keep their size */
:root { --k: min(calc((100vw - 2 * var(--gutter)) / 6.94), 200px); }

#bar { overflow-x: clip; }
.js #bar { padding-top: calc(64px + 1vh); } /* clear of the top bar */
.bar-room { position: relative; width: min(100%, calc(var(--k) * 4.2)); margin-inline: auto; }

/* the menu board: slate in a thin wood frame, hung from two strings, chalk writing (#chalk in the BACKBAR block) */
.menu-board {
  position: relative; z-index: 1;
  margin: calc(var(--k) * 0.04) calc(var(--k) * 0.04) 0;
  padding: calc(var(--k) * 0.3) calc(var(--k) * 0.12);
  background:
    radial-gradient(ellipse 30% 40% at 22% 70%, #F2E8DA0A, transparent 70%),
    radial-gradient(ellipse 26% 34% at 78% 30%, #F2E8DA08, transparent 70%),
    #1A1D1A;
  border: 7px solid #4A3121;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #00000080, inset 0 0 0 2px #F2E8DA12, 0 12px 26px #0009;
}
.menu-board::before, .menu-board::after { content: ""; position: absolute; bottom: calc(100% + 7px); width: 1px; height: 100vh; background: #F2E8DA45; }
.menu-board::before { left: 31%; }
.menu-board::after { right: 31%; }
/* the h2 "What can I get you?" is for screen readers only (Ethan, 2026-11-19): the board holds just the tabs */
.menu-board .stop-name { filter: url(#chalk); }

/* the three tabs: chalk-ringed buttons on the board, left to right */
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--k) * 0.1); margin: 0; padding: 0; list-style: none; }
.stop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  min-height: 44px;
  padding: calc(var(--k) * 0.14) 0.5rem;
  text-align: center;
  text-decoration: none;
  color: #EFEAE1;
  transition: color 0.2s;
}
.stop::before { /* the chalk ring */
  content: ""; position: absolute; inset: 0; border: 2px solid #F2E8DA8C; border-radius: 12px;
  filter: url(#chalk); transition: border-color 0.2s; pointer-events: none;
}
.stop-name { font-family: var(--font-display); font-size: min(2.5rem, calc(var(--k) * 0.18)); line-height: 1.1; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .stop:hover { color: var(--action); } .stop:hover::before { border-color: var(--action); } }
.stop:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
/* Glare (ReactBits GlareHover, ported by hand): a band of lamp light waits off the tab's corner and sweeps across it
   on hover / focus, and back out on leave. The 300% image keeps the band out of sight at both ends. */
.stop::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(-45deg, #F2E8DA00 40%, #F2E8DA14 45%, #F2E8DA59 50%, #F2E8DA14 55%, #F2E8DA00 60%) 100% 100% / 300% 300% no-repeat;
}
@media (prefers-reduced-motion: no-preference) { .stop::after { transition: background-position 0.7s cubic-bezier(.45, 0, .55, 1); } }
@media (hover: hover) and (pointer: fine) { .stop:hover::after { background-position: 0% 0%; } }
.stop:focus-visible::after { background-position: 0% 0%; }
/* "click me" (Ethan 2026-11-25: people did not know the tabs open): a chalk hint under the tabs, and the glint
   sweeps each tab in turn every 6 s while the counter is on screen; hover / focus take over the glint */
.board-hint { margin: calc(var(--k) * 0.1) 0 0; text-align: center; color: var(--ink-soft); font-size: max(13px, 0.95rem); filter: url(#chalk); }
@media (prefers-reduced-motion: no-preference) {
  #bar[data-at="here"] .stop::after { animation: tab-glint 6s ease-in-out 1.2s infinite; }
  #bar[data-at="here"] li:nth-child(2) .stop::after { animation-delay: 1.5s; }
  #bar[data-at="here"] li:nth-child(3) .stop::after { animation-delay: 1.8s; }
  #bar .stop:is(:hover, :focus-visible)::after { animation: none; }
}
@keyframes tab-glint { 0% { background-position: 100% 100%; } 18%, 100% { background-position: 0% 0%; } }


/* phones: the board fills the width, the tabs stack */
@media (max-width: 600px) {
  :root { --k: calc((100vw - 2 * var(--gutter)) / 4.2); }
  .js #bar { padding-top: 4.25rem; }
  .bar-room { width: 100%; }
  .stops { grid-template-columns: 1fr; gap: 0.75rem; }
  .stop { padding-block: 0.9rem; }
  .stop-name { font-size: var(--step-2); }
}

/* the chalk filter's sprite svg: in the page, never seen */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- the rooms ---------- */

.room { align-content: start; }
.room-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }

.back {
  display: none;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1.5rem;
  padding: 8px 18px;
  transition: background 0.15s;
  font: 500 var(--step--1)/1.2 var(--font-body);
  cursor: pointer;
}
.js .back:hover { background: #fffdf8; }
.back:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* With JavaScript a room is a full-screen layer. Without it, rooms are plain sections in the page. */
.js .room {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 5.5rem;
}
/* the room's wall: limewash plaster (CC0 texture, multiplied lightly into the warm ground) lit by the low sun from
   the left (the pavilion's golden hour), a little darker at the floor. A STILL layer fixed to the window (2026-12-03,
   Ethan's 2nd lag video): on the scroll box itself (`local`, multiply) Safari repainted the wall as the room scrolled;
   still, it is painted once and the shelves glide over it. rooms.mjs K1 + K11 */
.js .room::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-color: var(--ground);
  background-image: linear-gradient(100deg, #fff4dc80, transparent 45%, #6b4a2a14), linear-gradient(transparent 70%, #6b4a2a1f), linear-gradient(#f1e9dc8c 0 0), url("assets/tex/plaster.jpg");
  background-size: auto, auto, auto, 512px;
  background-blend-mode: normal, normal, normal, multiply;
}
/* nothing under an open room is seen, yet Safari still put the 3D canvas and its glass labels on screen every scroll
   frame: hide them once the room has faded in (0.35 s); Back shows them at once (no delay on the way out). K11 */
.js.in-room :is(.stage, .corner, .stage > [data-scene] > *) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .js.in-room :is(.stage, .corner, .stage > [data-scene] > *) { transition: visibility 0s 0.35s; } } /* reduced motion: hidden at once (bar.mjs R1). The scene ON screen sets its own visible: hide its children, never the scene (its fade-in waits for the walk) */
/* the pills over a room are 93% solid (below), so their blur showed nothing, yet Safari redid it every scroll frame */
.js.in-room :is(.top-name, .plain-link, .back, .room-tabs) { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* golden-hour sun through the pavilion's mullions: three soft slanted bars of light on the wall. Still (no motion),
   fixed to the window, under everything, never takes a click */
.js .room::before {
  content: ""; position: fixed; inset: -10% -20%; z-index: -1; pointer-events: none;
  /* plain alpha, not soft-light (a blend is redone whenever anything under it moves): #fff8e84d over the wall gives
     what #ffe3ad59 soft-light gave (measured: within 2 levels) */
  background: repeating-linear-gradient(90deg, transparent 0 9%, #fff8e84d 11% 19%, transparent 22% 31%);
  transform: skewX(-24deg); filter: blur(18px);
  mask: linear-gradient(100deg, #000 10%, transparent 75%);
}
.js .room { isolation: isolate; }
.js .room.open { display: grid; }
/* wide screens (2026-11-28): "Back to the bar" stands in the top row beside his name, the same place in all three rooms
   and on the register, so the room starts higher and fits a laptop screen with no scroll (about.mjs A14, experience.mjs
   E12, rooms.mjs K3). --drop: no room in the row (big reader text, a narrow window) = it steps down under the name. */
@media (min-width: 640px) {
  .js .room { --drop: clamp(0px, (1rem - 20px) * 99, 4.5rem); padding: calc(5rem + var(--drop)) var(--gutter) 0; }
  .js .room > .wrap { display: grid; grid-template-columns: 1fr auto; align-content: start; }
  .js .room > .wrap > * { grid-column: 1 / -1; }
  .js .room > .wrap > .back { position: fixed; z-index: 31; top: calc(10px + var(--drop)); left: calc(var(--gutter) + 140px); margin: 0; }
  .js .room > .wrap > .room-head { grid-row: 1; min-height: 56px; margin-bottom: clamp(1rem, 2.6vh, 2rem); }
}
@media (min-width: 640px) and (max-width: 1000px) { .js .room { --drop: 3.5rem; } .js .room > .wrap > .back { left: var(--gutter); } }
.js .back { display: inline-flex; }
/* the register's "Back to the bar" (Ethan 2026-11-21): in the top bar right after "Ethan Yap", on the register only */
.top-back { margin: 0 auto 0 1rem; }
.js .top-back { display: none; }
.js[data-scene="register"]:not(.in-room) .top-back { display: inline-flex; }

/* the three tabs on top of an open room (JS only): one white glass pill; the open one stands on a dark pill that slides.
   rooms.mjs K7 */
/* dark pictures scroll behind the top row in a room: the glass is nearly solid there, so every pill stays white */
:root.in-room { --glass: rgba(250, 246, 239, 0.93); }
.room-tabs { display: none; }
.js.in-room .room-tabs {
  position: fixed; z-index: 30; top: 5px; left: 50%; translate: -50% 0;
  display: flex; gap: 0.25rem; padding: 0.25rem;
}
.room-tabs a {
  position: relative; color: var(--glass-ink); border-radius: 999px; transition: color 0.3s, background 0.15s;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
  font: 500 var(--step--1)/1.2 var(--font-body); white-space: nowrap; text-decoration: none;
}
.room-tabs a[aria-current] { color: #fbf6ec; }
.room-tabs a:not([aria-current]):hover { background: #2a252014; }
.room-tabs::before { content: ""; position: absolute; inset: 0.25rem auto 0.25rem 0; width: var(--w, 0); translate: var(--x, 0) 0; border-radius: 999px; background: #2a2520; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .room-tabs.placed::before { transition: translate 0.45s cubic-bezier(.3, 1.2, .4, 1), width 0.45s cubic-bezier(.3, 1.2, .4, 1); }
}
.room-tabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* phones: no room beside the name, so the name steps aside while a room is open (the tab row takes the top) */
@media (max-width: 600px) { .js.in-room .room-tabs { gap: 0; } .room-tabs a { padding: 0 0.6rem; font-size: 0.72rem; } .js.in-room .top-name { visibility: hidden; } }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 4px); }

.tag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.line { color: var(--ink-soft); }

/* ---------- About Me cards (PLAN-about-bar.md Phase 1) ---------- */

/* the latte timeline: 9 round cups stacked, one shows; a slider under it */
.timeline { display: grid; gap: 0.5rem; }
.tl-cups { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 6px #F2E8DA, 0 0 0 7px var(--line), 0 14px 30px rgb(0 0 0 / 0.5); overflow: hidden; background: #3A2418; }
.tl-cups img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 0.18s ease-out; }
.tl-cups img.on { opacity: 1; }
.tl-date { margin: 0.6rem 0 0; text-align: center; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink); }
.timeline input[type="range"] { width: 100%; margin: 0; accent-color: var(--action); cursor: pointer; }
.tl-ends { display: flex; justify-content: space-between; margin: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }

/* the holo card: tilts toward the pointer, no shine (main.js sets --x / --y, 0..1) */
.holo { perspective: 900px; width: min(100%, 260px); margin: 0 auto; }
.holo-tilt { position: relative; border-radius: 4.5% / 3.3%; overflow: hidden; box-shadow: 0 16px 34px rgb(0 0 0 / 0.55); }
.holo-tilt img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .holo-tilt { transition: transform 0.6s var(--ease-out); }
  .holo.live .holo-tilt { transform: rotateX(calc((0.5 - var(--y, 0.5)) * 22deg)) rotateY(calc((var(--x, 0.5) - 0.5) * 26deg)); transition-duration: 0.12s; }
  /* no pointer on it (and on phones): a slow sway */
  .holo:not(.live) .holo-tilt { animation: holo-sway 7s ease-in-out infinite; }
}
@keyframes holo-sway { 0%, 100% { transform: rotateY(-7deg) rotateX(3deg); } 50% { transform: rotateY(7deg) rotateX(-2deg); } }

/* his sister's drawing: the plain photo (the King of Spades and sparks on top went 2026-11-21, pick 22) */
.duel { position: relative; aspect-ratio: 1200 / 791; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.duel img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes spark-spin { to { rotate: 360deg; } }
.tl-hint { margin: 0.4rem 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.watched { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.watched li + li { margin-top: 0.15rem; }
.credit { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); }


/* ---------- the fanned tarot card stack ----------
   main.js sets --n (cards), --i (each card's place) and --turn (card i is in front when --turn = i). Every card's
   place, size, stacking order and dimming come from those, so gliding --turn moves the whole fan. No cq units here
   (see the Gotchas: never transition anything computed from them). */
@property --turn { syntax: "<number>"; inherits: true; initial-value: 0; }
.js .ring {
  --R: min(380px, 30vw);           /* the floor sigil's radius */
  --W: min(300px, 100vw - 6rem);   /* a card's width */
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: end;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.5rem 0 2.5rem;
  overflow-x: clip;                /* back cards peek at the screen's edge, never make it scroll */
  perspective: 1400px;
  perspective-origin: 50% 0%;      /* the floor sigil is still a 3D plane */
  touch-action: pan-y;
}
@media (prefers-reduced-motion: no-preference) { .js .ring { transition: --turn 1.1s var(--ease-out); } }
.js .ring.dragging { transition: none; user-select: none; cursor: grabbing; }
.js .ring > .card {
  --o: calc(mod(var(--i) - var(--turn) + var(--n) / 2, var(--n)) - var(--n) / 2);
  --a: abs(var(--o));
  grid-area: 1 / 1;
  width: var(--W);
  transform-origin: 50% 130%;      /* a hand holds the fan below the cards */
  transform: translate(calc(var(--o) * var(--W) * 0.5), calc(var(--a) * -64px)) /* lifted: the low pivot drops the side cards */
    rotate(calc(var(--o) * 12deg)) scale(calc(1 - var(--a) * 0.38));
  z-index: calc(100 - var(--a) * 10);
  opacity: clamp(0, calc((1.75 - var(--a)) * 1.2), 1); /* invisible before the offset wraps at +/-2 */
  filter: brightness(calc(1 - var(--a) * 0.2));
  cursor: pointer;
}
.js .ring > .card.front { cursor: auto; box-shadow: none; }

/* tarot cards (Ethan, 2026-11-19, plan A): in the fan every card is ONE size, like a deck. A thin spell-orange
   frame inside the edge, the numeral at the foot (main.js), and the tall pictures packed a little tighter so the
   deck can be short. Short cards keep the spare room between their words and the numeral. min-height, not height:
   with bigger reader text a card grows instead of spilling. about.mjs A15. */
.js .ring > .card { min-height: var(--H, 566px); padding: 1.1rem 1.1rem 0.7rem; }
@media (max-width: 600px) { .js .ring > .card { min-height: var(--H, 586px); } } /* phones: the grotesk (2026-11-26) wraps Coffee craft one line longer; all 4 stay one size (about.mjs A15) */
.js .ring > .card::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--spell) 30%, transparent); border-radius: calc(var(--radius) - 4px);
}
.card-num {
  display: flex; align-items: center; gap: 0.7rem; margin: auto 0 0;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--spell);
}
.card-num::before, .card-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--spell) 45%, transparent)); }
.card-num::after { scale: -1 1; }
/* coffee: a smaller cup, the date sits on the cup's rim, the end dates either side of the slider */
.js .ring .timeline { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 0.6rem; row-gap: 0.4rem; }
.js .ring .timeline > :not(input, .tl-ends) { grid-column: 1 / -1; }
.js .ring .tl-cups { grid-row: 1; width: 226px; margin-top: 0.35rem; }
.js .ring .tl-date { grid-row: 1; z-index: 1; align-self: end; justify-self: center; margin: 0 0 -0.55rem;
  padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.js .ring .timeline input { grid-row: 2; grid-column: 2; margin-top: 0.6rem; }
.js .ring .tl-ends { display: contents; }
.js .ring .tl-ends > span { grid-row: 2; margin-top: 0.6rem; white-space: nowrap; }
.js .ring .tl-ends > span:last-child { grid-column: 3; }
.js .ring .tl-hint { grid-row: 3; margin: 0; }
/* Darkrai: a little smaller. */
.js .ring .holo { width: 214px; }
/* Movies: the credit sits under the drawing as its caption; dashed lines separate the list's rows. */
.js .ring .card > :first-child { order: -2; }
.js .ring .credit { order: -1; margin-top: -0.25rem; }
.js .ring .watched li { padding: 0.38rem 0; border-bottom: 1px dashed #F2E8DA22; }
.js .ring .watched li + li { margin-top: 0; }
.js .ring .watched li:last-child { border-bottom: 0; }

/* Doctor Strange orange (Ethan's ask, 2026-11-18): the spell circle and the portal use their OWN gold-orange,
   not --action, by his choice. Glow = a wider see-through copy of the lines under the thin bright ones, no blur
   filter (a blur repaints every frame while it turns). */
.js .ring { --spell: #FFB43A; --spell-glow: #FF7A1A; }
/* The About me nook (Ethan 2026-11-28: a FULL arch). On the light plaster wall the cards and the fire would wash out, so
   they stand in an arched niche: a plaster bead, a brass line, dark walnut slats (the bar front's), an oak sill. Inside
   it the old dark tokens still hold (the cards were made for them). A real element (.arch, main.js), whole inside the
   ring's own box: Safari cut whatever rose over that box flat. rooms.mjs K6, K8. */
.js #offclock :is(.ring, .ring-nav) {
  --ground: #14100D; --surface: #1D1814; --surface-2: #272019; --ink: #F2E8DA; --ink-soft: #B9AA97; --line: #3A3026;
  --action: #E9A24D; color: var(--ink);
}
.arch {
  --aw: min(820px, 64vw, 100vw - 4rem); --bead: 15px;  /* the opening's width, the plaster bead round it */
  position: absolute; z-index: -1; left: 50%; top: 2px; bottom: 20px; width: calc(var(--aw) + 2 * var(--bead)); translate: -50% 0;
  border-radius: calc(var(--aw) / 2 + var(--bead)) calc(var(--aw) / 2 + var(--bead)) 0 0; pointer-events: none; /* exactly half the width: a true half circle */
  background: linear-gradient(100deg, #fffaf0, #efe5d4 40%, #ddcfb8);
  box-shadow: inset 0 0 0 1px #fff8, inset 0 0 0 1.5px #bfae9366, 3px 4px 12px -2px rgb(70 45 20 / 0.32);
}
.arch::before {
  content: ""; position: absolute; inset: var(--bead) var(--bead) 0; border-radius: calc(var(--aw) / 2) calc(var(--aw) / 2) 0 0;
  background-color: #150e09;
  background-image:
    radial-gradient(ellipse 60% 26% at 50% 100%, #ff8a2a5c, transparent 70%),
    radial-gradient(ellipse 60% 55% at 50% 52%, #c4621a2e, transparent 75%),
    linear-gradient(90deg, #000b, transparent 16% 84%, #0007),
    repeating-linear-gradient(90deg, #2c1c11 0 11px, #1b110a 14px, #0d0805 16px, #22150c 18px);
  box-shadow: 0 0 0 1px #a8935f66, inset 0 0 0 2px #a67c34, inset 0 30px 50px -12px #000c, inset 30px 0 50px -24px #000d;
}
.arch::after { /* the oak sill */
  content: ""; position: absolute; left: -28px; right: -28px; top: 100%; height: 18px; border-radius: 2px; background: url("assets/tex/oak.jpg") 0 0 / 420px;
  box-shadow: inset 0 1px 0 #ffe9c799, inset 0 -6px 8px -4px #3a200c88, 0 10px 14px -6px rgb(70 45 20 / 0.5);
}
/* the side cards: a picture and a name. Their small words ran under the fire and could not be read */
.js .ring > .card :is(.line, .watched, .credit, .tl-date, .tl-ends span, .tl-hint, input) { transition: opacity 0.35s 0.25s; }
.js .ring > .card:not(.front) :is(.line, .watched, .credit, .tl-date, .tl-ends span, .tl-hint, input) { opacity: 0; }
.js .ring .card.front :is(.line, .watched) { color: #dccfbd; }
@media (prefers-reduced-motion: reduce) { .js .ring > .card * { transition: none; } }
/* the ring of fire lights when the room opens */
@media (prefers-reduced-motion: no-preference) { .js #offclock.open .ring-portal { animation: ignite 1.1s 0.3s var(--ease-out) backwards; } }
@keyframes ignite { from { opacity: 0; scale: 0.3; rotate: -120deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* the spell circle: a real floor centred under the stack at the front card's feet.
   The svg inside turns slowly (still in reduced motion). */
.spell {
  position: absolute; left: 50%; bottom: 2.5rem; z-index: 0;   /* bottom = the ring's padding-bottom = the feet line */
  width: calc(2.4 * var(--R)); aspect-ratio: 1;
  translate: -50% 50%;
  transform: translateZ(calc(-1 * var(--R))) rotateX(90deg);
  pointer-events: none; overflow: clip; /* the turning svg's corners poke out and made the room scroll */
}
.spell svg { display: block; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spell .spell-lines { stroke: var(--spell); stroke-width: 0.4; }
.spell .runes { stroke-width: 0.3; }
.spell .spell-glow { stroke: var(--spell-glow); stroke-width: 2; opacity: 0.3; }
.spell .spell-sparks { stroke: var(--spell); stroke-width: 1.2; stroke-dasharray: 0.3 2.2; opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) { .spell-turn { animation: spell-spin 60s linear infinite; } }
@keyframes spell-spin { to { rotate: 360deg; } }

/* the sling-ring portal behind the front card: centred on it (the feet line + half the card), a bit taller than
   the card so its sparks show on both sides. main.js sets --h = the front card's height. */
.ring-portal {
  --d: max(calc(var(--h, 400px) * 1.06), calc(var(--W) * 1.4));
  position: absolute; left: 50%; bottom: calc(2.5rem + var(--h, 400px) / 2);
  z-index: 99; /* in front of the side cards (the fire is the point), under the front card (100) */
  width: var(--d); aspect-ratio: 1;
  translate: -50% 50%;
  pointer-events: none; overflow: clip; /* same: the spinning spark squares' corners */
  /* the warm haze of the ring: a still gradient, so it never repaints while the sparks spin */
  background: radial-gradient(circle closest-side, transparent 72%, #FF7A1A30 79%, #FFB43A50 82%, #FF7A1A26 89%, transparent 99%);
}
.ring-portal svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.ring-portal .phot { stroke: #FFF4D6; stroke-width: 0.5; }
.ring-portal .pcore { stroke: #FFD27A; stroke-width: 0.6; }
.ring-portal .pmid { stroke: var(--spell); stroke-width: 0.45; opacity: 0.85; }
.ring-portal .pfar { stroke: var(--spell-glow); stroke-width: 0.4; opacity: 0.7; }
.ring-portal .dim { opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .ring-portal svg { will-change: transform; }
  /* slow on purpose (Ethan, 2026-11-18: "too fast, less distracting"): the cards are the point, not the fire */
  .ring-portal .p1 { animation: spark-spin 10s linear infinite; }
  .ring-portal .p2 { animation: spark-spin 15s linear infinite; }
  .ring-portal .p3 { animation: spark-spin 22s linear infinite; }
}

.ring-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.ring-nav button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--action); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.ring-nav button:hover, .ring-nav button:focus-visible { outline: none; border-color: var(--action); }
/* PLAN-feedback-2026-12-01 B5 (a peer missed the arrows): big cream discs with espresso arrows on the dark nook (about.mjs A20) */
.ring-nav :is(.ring-prev, .ring-next) { width: 56px; height: 56px; border: 2px solid #F2E8DA; background: #F2E8DA; color: #14100D;
  font-size: 2.2rem; font-weight: 600; line-height: 1; padding-bottom: 0.2rem; box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.ring-nav :is(.ring-prev, .ring-next):hover, .ring-nav :is(.ring-prev, .ring-next):focus-visible { border-color: var(--action); background: #fff; }
.ring-at { min-width: 14ch; margin: 0; text-align: center; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
/* wide screens (Ethan, 2026-11-19): the arrows stand left and right of the front card, in the ring's own row, so
   nothing hangs under the ring. The count stays for screen readers (aria-live), the card's own title shows which. */
@media (min-width: 640px) {
  .js .room > .wrap > :is(.ring, .ring-nav) { grid-row: 2; }
  .js .room > .wrap > .ring-nav {
    position: relative; z-index: 1; align-self: center; justify-self: center; justify-content: space-between;
    width: min(780px, 52vw); min-width: calc(300px + 2 * 44px + 1rem); /* the arrows stand at the arch's two sides, off the cards */
    margin: 0; padding-bottom: 2.5rem; pointer-events: none;
  }
  .js .room > .wrap > .ring-nav button { pointer-events: auto; }
  .js .room > .wrap > .ring-nav .ring-at { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; min-width: 0; }
  /* fit with no scroll (Ethan, 2026-11-20; about.mjs A14): first the space above the stack goes (the room's top
     padding down to just under the tab row, almost no gap under the title), then only laptops shorter than his
     770 px Safari get a smaller stack, never under 85% (his 2026-11-19 note: 76% was too small) */
  .js #offclock { padding-top: calc(4.5rem + var(--drop)); }
  /* the title sits left and the card in the middle, so the stack can rise beside the title's foot (negative margin
     on the head = the whole ring row, arrows included, moves up). The floor sigil is a 3D plane whose near edge
     reaches ~12 px under the ring, so that counts too. */
  .js #offclock > .wrap > .room-head { margin-bottom: -1.25rem; }
  /* the arch's head is INSIDE the ring's box (padding), and the box rises to just under the tabs (margin). --up x zoom = 44 px */
  .js #offclock .ring { --up: 44px; margin-top: calc(-1 * var(--up)); padding-top: 63px; overflow: visible; }
}
@media (min-width: 640px) and (max-height: 741px) { .js #offclock .ring { zoom: 0.93; --up: 47px; } }
@media (min-width: 640px) and (max-height: 704px) { .js #offclock .ring { zoom: 0.89; --up: 50px; } }
@media (min-width: 640px) and (max-height: 678px) { .js #offclock .ring { zoom: 0.86; --up: 54px; } } /* the floor: lower = a little scroll */

/* Marks words Ethan has not approved yet. Remove "draft: true" in content.js to clear it. */
[data-draft]::after {
  content: "draft";
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ---------- the Experience room: order tickets on a steel rail (PLAN-experience.md) ----------
   Each .hang carries its piece of the rail (::before, half a gap past each side, so side by side the pieces join
   into one rail; on a phone each ticket gets its own short rail) and its clip (::after). The ticket is the same
   thermal paper as the receipt. Drawings: every part's own style is its finished frame; animations only run FROM. */
.tickets {
  --gap: 1.25rem;
  display: grid;
  gap: 2rem var(--gap);
  grid-template-columns: 1fr;
  align-items: stretch; /* every ticket as long as the longest in its row (Ethan, 2026-11-19) */
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Five readable tickets on one rail at laptop widths; narrower screens use 3 + 2. */
@media (min-width: 1400px) {
  #shifts > .wrap { max-width: 1440px; }
  .tickets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.hang { position: relative; display: flex; flex-direction: column; padding-top: 14px; }
.hang::before {
  /* brushed stainless (CC0 texture), lit from above: a bright top lip, the shadow it throws on the plaster */
  content: ""; position: absolute; top: 3px; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); height: 8px;
  background: linear-gradient(#ffffffa0, transparent 30%, #0000 60%, #00000059), url("assets/tex/steel.jpg") 0 0 / 256px;
  box-shadow: 0 1px 0 #5a554f, 0 6px 8px -2px rgb(70 45 20 / 0.35); /* square ends: side by side the pieces meet with no seam */
}
.hang::after { /* the steel clip that holds the ticket: same brushed steel, a darker throat */
  content: ""; position: absolute; z-index: 1; top: 0; left: calc(50% - 12px); width: 24px; height: 22px;
  border-radius: 3px 3px 6px 6px;
  background: linear-gradient(#ffffff8c, transparent 35%, #00000026 70%, #0000004d), url("assets/tex/steel.jpg") 40px 0 / 256px;
  box-shadow: inset 0 -5px 0 -2px #4e4a45, 0 3px 5px rgb(70 45 20 / 0.4);
}
.ticket {
  position: relative;
  flex: 1;
  padding: 1rem 1rem 1.8rem;
  /* thermal paper: the CC0 paper fibre, a faint curl of shade at the top (the clip bends it), ink printed on it */
  background: linear-gradient(#0000000f, transparent 1.2rem), url("assets/tex/paper.jpg") 0 0 / 384px;
  background-color: var(--surface);
  color: var(--ink);
  transform-origin: 50% -8px;
}
.hang { filter: drop-shadow(0 1px 1px rgb(70 45 20 / 0.3)) drop-shadow(0 0 1px rgb(70 45 20 / 0.15)); } /* a thin edge on the wall, zigzag and all: only the punch card lifts (GATE, rooms.mjs K9) */
/* Count Up (main.js bold() + countUp()): the number counts up as plain text on the line. An invisible copy of the
   final number holds the width, so the words around it never shift while it counts. */
.count { display: inline-block; position: relative; } /* no tabular-nums: it gave the comma and the dot a digit's width ("1 , 500+") */
.count > [data-live] { position: absolute; right: 0; top: 0; white-space: nowrap; }
.count > [data-final] { visibility: hidden; }
.t-top { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0 0.5rem; border-bottom: 1px dashed currentColor;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket h3 { margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.t-role { margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.4; }
.t-items { display: grid; gap: 0.6rem; margin-top: 0.8rem; padding: 0.7rem 0 0; border-top: 1px dashed currentColor; list-style: none; font-size: 0.88rem; line-height: 1.4; }
.t-items li { position: relative; padding-left: 1em; }
.t-items li::before { content: "•"; position: absolute; left: 0; }
.t-items b { font-weight: 800; }
.ticket[data-draft]::after { top: auto; bottom: 1.1rem; background: var(--ink); color: var(--surface); }

/* The tear-off stub (main.js tearable, pick 18): the ticket's last strip, under a dotted perforation, pushed to the
   bottom of the (stretched) ticket so the stubs line up. Its paper is the ticket's; the zigzag edge is the stub's. */
.ticket:has(.stub) { display: flex; flex-direction: column; padding-bottom: 0; }
.ticket:has(.stub) h3 { margin-top: 0.2rem; } /* flex margins do not collapse: 0.2 + the drawing's 0.2 = the old 0.4 */
.ticket:has(.stub) .t-items { margin-bottom: calc(var(--tooth) + 0.6rem); } /* room for the zigzag once the stub is torn off */
.stub {
  display: grid; gap: 0.2rem; margin: auto -1rem 0; padding: 0.75rem 1rem calc(0.8rem + var(--tooth));
  border: 0; border-top: 2px dotted currentColor; background: url("assets/tex/paper.jpg") 0 100% / 384px var(--surface); color: var(--ink);
  font: inherit; text-align: left; cursor: grab; touch-action: none; /* a finger drag tears; it never scrolls or swipes out */
}
.stub:active { cursor: grabbing; }
.stub:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.stub-tag { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.stub-tag::after { content: " · tear off"; letter-spacing: 0.02em; text-transform: none; }
.stub-text { font-size: 0.88rem; line-height: 1.35; font-weight: 600; }
.stub:disabled { cursor: default; }
/* torn (or mid-drag): the ticket's paper ends at the perforation, with the same zigzag */
.ticket:is(.torn, .tearing) {
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) - var(--cut)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) left 0 bottom var(--cut) / calc(2 * var(--tooth)) var(--tooth) repeat-x;
}
/* the copy that rips off and falls: ripped zigzag on top, the ticket's zigzag at its foot */
.stub-fly {
  position: fixed; z-index: 5; margin: 0; pointer-events: none; transform-origin: 50% 50%; box-shadow: none;
  --tooth: 9px;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 5px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 5px - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x;
}
/* the coffee punch card (PLAN-feedback-2026-12-01 D; was the order spike): a paper loyalty card in the title row with
   one dashed hole per stub; a torn stub flies into the next hole and punches it. Full: content.js punch.done + the brass button. */
.punch { flex: none; display: flex; align-items: center; gap: 0.75rem; margin-left: auto; padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-radius: 10px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--paper-shadow); rotate: 1.2deg;
  outline: 1.5px dashed rgb(42 37 32 / 0.22); outline-offset: -5px; }
.punch-hint, .punch-done { margin: 0; max-width: 9.5rem; font: 600 0.875rem/1.25 var(--font-body); color: var(--paper-soft); }
.punch-done { max-width: none; font-size: 1.0625rem; color: var(--paper-ink); white-space: nowrap; }
.punch.full .punch-hint, .punch [hidden] { display: none; }
.punch-holes { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.hole { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgb(42 37 32 / 0.45); }
.hole.punched:not(.landing) { border: 0; background: #3a2e24; box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.6), 0 1px 0 #fff; }
.punch .punch-prize:not([hidden]) { margin: 0; padding: 0 1rem; min-height: 44px; display: inline-grid; place-items: center; font-size: 0.9375rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hole.punched:not(.landing) { animation: punch-in 0.25s ease-out; }
  .punch.full { animation: punch-full 0.45s var(--ease-out); }
}
@keyframes punch-in { from { scale: 1.4; } }
@keyframes punch-full { 40% { scale: 1.06; } }
canvas.sparks { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; } /* the punch card confetti (main.js sparkle) */
#shifts .room-head { flex-wrap: wrap; row-gap: 0.75rem; }
.punch { max-width: 100%; flex-wrap: wrap; row-gap: 0.5rem; } /* phones: the full card wraps its button under (experience.mjs S14) */

.t-art { display: block; width: 100%; height: auto; margin: 0.6rem 0 0.2rem; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-art * { transform-box: fill-box; transform-origin: center; }
.t-art text { fill: currentColor; stroke: none; font-family: var(--font-mono); font-size: 8px; }
.t-art text.big { font-size: 13px; font-weight: 700; }
.t-art .soft, .t-art .faint { opacity: 0.55; }
.t-art .thick { stroke-width: 2.4; }
.t-art .dot, .t-art .real { fill: currentColor; }
.t-art .tile { fill: currentColor; fill-opacity: 0.18; stroke-width: 1; }
.t-art .lit { fill: currentColor; fill-opacity: 0.16; stroke-width: 2.2; } /* never animate fill to a color-mix(currentColor): it hangs Chrome 158 */
.t-art .bean, .t-art .drip { fill: currentColor; stroke: none; opacity: 0; } /* finished: all fallen through */
.t-art .fake { opacity: 0.15; }                                               /* finished: the team's own, faded */
@media (prefers-reduced-motion: no-preference) {
  .t-art * { --at: calc(1.1s + var(--i, 0) * 0.15s + var(--d, 0s)); }
  .t-art :is(path, rect, polyline) { stroke-dasharray: 1 3; animation: t-draw 0.9s ease-out var(--at) backwards; }
  .t-art .pop { animation: t-pop 0.5s var(--ease-out) var(--at) backwards; stroke-dasharray: none; }
  .t-art .pop * { stroke-dasharray: none; animation: none; } /* a popping group's parts pop with it, no draw-in */
  .t-art .bean { animation: t-fall 0.9s ease-in var(--at) backwards; }
  .t-art .drip { animation: t-drip 0.6s ease-in var(--at) backwards; }
  .t-art .lit { animation: t-draw 0.9s ease-out var(--at) backwards, t-lit 0.6s ease-out calc(var(--at) + 0.9s) backwards; }
  .t-art .heart { stroke-dasharray: none; animation: t-rise 2.2s ease-out var(--at) backwards; }
  .t-art .fake { animation-name: t-rise-fade; }
  .hang:hover .ticket { animation: t-swing 1.1s ease-out; }
}
@keyframes t-draw { from { stroke-dashoffset: 1.02; } }
@keyframes t-pop { from { opacity: 0; scale: 0.6; } }
@keyframes t-fall { from { opacity: 1; translate: 0 -6px; } 80% { opacity: 1; } to { opacity: 0; translate: 0 18px; } }
@keyframes t-drip { from { opacity: 1; } 80% { opacity: 1; } to { opacity: 0; translate: 0 12px; } }
@keyframes t-lit { from { fill-opacity: 0; stroke-width: 1.6; } }
@keyframes t-rise { from { opacity: 0; translate: 0 16px; } 35% { opacity: 1; translate: 0 0; } }
@keyframes t-rise-fade { from { opacity: 0; translate: 0 16px; } 35% { opacity: 1; translate: 0 0; } 65% { opacity: 1; } }
@keyframes t-swing { 30% { rotate: 2deg; } 60% { rotate: -1.2deg; } 85% { rotate: 0.4deg; } }

/* ---------- My Builds: OPEN coffee bags on a roaster's shelf (PLAN-blends.md, PLAN-open-bags.md) ----------
   Each slot carries its piece of the wood shelf (::after, half a gap past each side, so side by side the pieces join
   into one shelf; the ticket rail's trick). Nothing to click: every bag shows it all. Seal + valve, the screenshot in
   the bag's clear window, a paper label (colour band: tag, name, drawing; cream sheet: line, roast notes, link).
   Laptops (pick 14, 2026-11-21: screenshots 2x bigger): ONE wide bag per shelf, the screenshot big on the left, the
   label on the right. Tablet 2 a shelf; phone 1, the window nearly the bag's full width. */
.bags {
  --gap: 1.5rem;
  display: grid;
  gap: 3rem var(--gap);
  grid-template-columns: 1fr;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .bags { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bags { grid-template-columns: 1fr; } }
.js #specials { align-content: stretch; }
.js #specials > .wrap { display: grid; grid-template-rows: auto auto 1fr; justify-items: start; }
.js #specials .bags { justify-self: stretch; align-self: start; padding: 2rem 0 8vh; }
@media (min-width: 640px) {
  .js #specials > .wrap { grid-template-rows: auto 1fr; }
  /* wider than its grid cell: a grid item does not centre past its cell, so equal negative margins centre it */
  .js #specials .bags { --shelf: min(1240px, 100vw - 4rem); justify-self: start; width: var(--shelf); margin-inline: calc((100% - var(--shelf)) / 2); }
}
.bag-slot, .roaster-slot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 16px; }
/* the oak shelf (CC0 white-oak texture): a lit top face, the front edge, a soft shadow on the plaster under it */
.bag-slot::after, .roaster-slot::after {
  content: ""; position: absolute; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); bottom: 0; height: 16px;
  background: linear-gradient(#fff5e04d 0 4px, #5a3a1f40 4px 5px, transparent 5px 75%, #3a24122e), url("assets/tex/oak.jpg") 0 0 / 512px;
  background-color: #b98a57;
  box-shadow: 0 1px 0 #6b4a2a66, 0 14px 18px -8px rgb(70 45 20 / 0.45);
}
/* a kraft coffee bag (CC0 kraft card texture): darker folds at the side gussets, a lit middle, a crimped heat seal
   along the top, the foil degassing valve under it. It stands on the shelf: a contact shadow at its foot. */
.bag {
  --seal: 18px;
  position: relative; display: flex; flex-direction: column; flex: 1; width: min(100%, 370px); margin: 0 auto;
  padding: var(--seal) 4.5% 8%; color: var(--ink); border-radius: 4px 4px 7px 7px;
  background: linear-gradient(90deg, #3a22102e, transparent 4%, #fff3d81f 10%, transparent 28% 74%, #3a22101f 93%, #3a221047),
    linear-gradient(#3a221026, transparent 8%, transparent 88%, #3a22102e), url("assets/tex/kraft.jpg") 0 0 / 420px;
  background-color: #b48a5c;
  box-shadow: inset 0 0 0 1px #6b4a2a33, 0 2px 3px rgb(70 45 20 / 0.3), 0 16px 26px -14px rgb(70 45 20 / 0.5);
}
@media (min-width: 1100px) {
  .bags { row-gap: 1.75rem; }
  .bag { display: grid; grid-template-columns: 1.6fr 1fr; align-items: start; column-gap: 1.5rem; width: 100%; padding: var(--seal) 5% 1%; }
  .bag > :is(.bag-seal, .bag-valve) { grid-column: 1 / -1; }
  .bag > .bag-label { align-self: start; margin-top: 0; }
  .bag > .bag-valve { margin-block: 6px 8px; }
}
/* the crimped heat seal: the bag's top 18 px pressed into fine ridges */
.bag-seal { position: absolute; inset: 0 0 auto; height: var(--seal); border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, #fff3d826 0 2px, #3a221033 2px 4px), linear-gradient(#3a22101f, transparent 40%, #3a221040);
  box-shadow: 0 1px 0 #fff3d84d, 0 2px 0 #3a22102e; }
/* the one-way degassing valve: a pressed foil disc with a white plastic ring and its centre vents */
.bag-valve { display: block; width: 20px; height: 20px; margin: 10px auto 12px; border-radius: 50%;
  background: radial-gradient(circle, #5f5b56 0 1.6px, transparent 2.2px) 50% 50% / 6px 6px no-repeat,
    radial-gradient(circle at 38% 32%, #ffffff, #e4e1db 38%, #a9a49c 62%, #f2efe9 66%, #c9c4bb 80%, #8d877f);
  box-shadow: 0 1px 1px #3a221066, inset 0 -1px 1px #0003; }
/* the clear window: the site's screenshot behind clear film (an edge, a soft glare) */
.bag-window { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #e9e2d5;
  box-shadow: inset 0 0 0 1px #3a22104d, 0 0 0 2px #fff3d81a; }
.bag-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, #ffffff2e 38%, transparent 46%, transparent 70%, #ffffff1a 76%, transparent 82%);
  box-shadow: inset 0 0 0 1px #ffffff59, inset 0 2px 6px #3a221026; }
.bag-window img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
/* a build with a link: the screenshot opens it (PLAN-feedback-2026-12-01 C). Inset outline: the window clips outside */
.bag-shot { display: block; cursor: pointer; }
.bag-shot img { transition: scale 0.35s ease-out; }
.bag-shot:hover img { scale: 1.03; }
.bag-shot:focus-visible { outline: 3px solid var(--action); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .bag-shot img { transition: none; } }
/* the printed label, glued on: a colour band over a paper sheet (CC0 paper fibre) */
.bag-label { position: relative; display: flex; flex-direction: column; flex: 1; margin-top: 12px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(58 34 16 / 0.35), 0 0 0 1px rgb(58 34 16 / 0.08); }
.bag-band { padding: 0.7rem 0.9rem 0.65rem; background: var(--label); color: #1E1712; }
.bag-tag { margin: 0; font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.bag-name { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.bag-sheet { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 0.8rem 0.9rem 0.9rem;
  background: url("assets/tex/paper.jpg") 0 0 / 384px var(--surface); color: #1E1712; }
.bag-line { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.bag-sheet .bag-notes, .roast-tag .bag-notes { margin-top: auto; }
.bag-notes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; }
.bag-notes li { padding: 0.15rem 0.55rem; border: 1px solid #1E171240; border-radius: 999px; }
/* the one thing to click on a bag: the tabs' clear gold frame, smaller */
.bag-link { align-self: flex-start; padding: 0.45rem 0.85rem; border-radius: 10px; font: 600 0.85rem/1.2 var(--font-body); text-decoration: none; }
.bag-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Crema's case study (crema.html): a plain underlined link under the gold frame, so the frame stays the one button */
.bag-case { align-self: flex-start; margin-top: -0.2rem; font: 600 0.85rem/1.2 var(--font-body); color: var(--gold-ink); text-underline-offset: 3px; }
.bag-case:hover { color: #3f2b06; }
.bag[data-draft]::after { top: 7%; }

/* the drum roaster: what Ethan is building now, the whole idea printed on its paper tag. Solid (REDESIGN Chat 5): navy
   enamel body (the machine's navy), brushed steel hopper + chimney, brass bezel + knobs, the drum glowing behind its
   glass. The drum turns, a thin smoke thread rises; that is all that moves. Gradients: the svg's defs in index.html. */
.roaster { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 370px); margin: 0 auto; color: var(--ink); }
.roaster-art { display: block; width: min(100%, 250px); height: auto; overflow: visible; filter: drop-shadow(0 12px 10px rgb(70 45 20 / 0.3));
  fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; }
.roaster-art .metal { fill: url(#r-steel); }
.roaster-art .metal.body { fill: url(#r-navy); }
.roaster-art .window { fill: url(#r-glow); }
.roaster-art .bezel { stroke: url(#r-brass); stroke-width: 3.2; }
.roaster-art .drum { stroke: #3a1d0c; stroke-width: 2; opacity: 0.75; }
.roaster-art .knob { fill: url(#r-brass); }
.roaster-art .legs { stroke: #5a554f; stroke-width: 3; }
.roaster-art .beans { stroke: #6b3f1d; stroke-width: 3.6; }
.roaster-art .smoke { stroke: url(#smoke-fade); stroke-width: 1.6; }
.roaster-art .smoke.two { opacity: 0.6; }
.roaster-art .drum { transform-box: fill-box; transform-origin: center; }
.roast-tag {
  order: -1; display: flex; flex-direction: column; gap: 0.45rem; margin: 0 0 0.4rem; padding: 0.75rem 0.9rem 0.9rem;
  background: url("assets/tex/paper.jpg") 0 0 / 384px var(--surface); color: #1E1712; rotate: -1.5deg; border-radius: 2px;
  box-shadow: 0 1px 2px rgb(70 45 20 / 0.3), 0 10px 18px -6px rgb(70 45 20 / 0.35);
}
.roast-head { font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.roast-what { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.roast-line { font-size: 0.9rem; line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .roaster-art .drum { animation: drum-turn 9s linear infinite; }
  /* one wisp per path rides up the curve and thins out (the stroke's gradient fades it); 30 + 46 = 76 = one loop */
  .roaster-art .smoke { stroke-dasharray: 30 46; animation: smoke-rise 4.2s linear infinite; }
  .roaster-art .smoke.two { animation-duration: 5.7s; animation-delay: -2.4s; }
}
@keyframes drum-turn { to { rotate: 360deg; } }
@keyframes smoke-rise { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -46; } }


/* ---------- 3. the receipt ---------- */

/* torn zigzag bottom edge, like paper ripped off the printer (the receipt and the order tickets: one paper) */
.paper, .ticket {
  --tooth: 9px;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) var(--tooth) repeat-x;
}
.paper-head { text-align: center; }
/* ---------- 4. the register (REDESIGN Chat 4, PLAN-redesign.md Phase 4) ----------
   The brass till, the printer, the cork board and the wall plaque are 3D (pavilion.js). The base rules below are the plain
   column (no JS, no WebGL, phones until the phone pass): photo + bio on a cork, the receipt, the links + the button.
   .anchored: each part is placed over its 3D twin (placeAnchors): .cork = the cork board, .paper = standing in the
   printer's slot, .desk = the oak plaque. Words in rem: they grow with the reader's text size (the card then scrolls). */
#register > .wrap { display: grid; justify-items: center; gap: 2rem; }
.cork { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; width: min(46rem, 100%); padding: 1.5rem;
  border: 12px solid #b98a55; border-radius: 3px; background: #b98d5f;
  --dot: 9px; /* cork grain: two layers of small dots */
  background-image: radial-gradient(#8a6038 18%, transparent 22%), radial-gradient(#d4ab7a 14%, transparent 18%);
  background-size: var(--dot) var(--dot), calc(var(--dot) * 1.45) calc(var(--dot) * 1.45); background-position: 0 0, calc(var(--dot) * 0.45) calc(var(--dot) * 0.65); }
/* his photo: a white print, taped, a little tilted */
.bio-photo { position: relative; margin: 0; width: min(13rem, 100%); padding: 0.6rem 0.6rem 2rem; background: #EFE4CF; rotate: -3deg; }
.bio-photo, .bio-card {
  background-image: linear-gradient(125deg, transparent 3%, #f0c9760a 17%, transparent 34%, #f0c9760d 52%, transparent 69%, #f0c97608 85%, transparent 100%), url("assets/tex/paper.jpg");
  background-size: auto, 384px; background-blend-mode: multiply;
  box-shadow: 1px 2px 3px rgb(70 42 20 / 0.3); } /* lies flat on the cork: only the brass button lifts (GATE, rooms.mjs K9) */
.bio-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.tape { position: absolute; z-index: 1; left: -1rem; top: 0.3rem; width: 4rem; height: 1.2rem; background: #f3ead9cc; rotate: -38deg; box-shadow: 0 1px 2px #0002; }
/* the card on one brass pin */
.bio-card { position: relative; flex: 1 1 18rem; padding: 1.55rem 1.4rem 1.4rem; background-color: #F3E7CF; color: #2a2520; rotate: -0.6deg; }
.bio-card h2 { margin: 0 0 0.6rem; font: 600 2.2rem/1 var(--font-display); letter-spacing: -0.025em; }
.bio-card p { margin: 0; font: 400 0.875rem/1.5 var(--font-body); }
.bio-card p + p { margin-top: 0.55em; }
.bio-pin { position: absolute; left: 50%; top: 0.35rem; translate: -50% 0; width: 0.9rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3d0, #d9b46a 45%, #7a5a24); box-shadow: 0 2px 3px rgb(0 0 0 / 0.4); }
.bio-photo.two { rotate: 4deg; } /* content.js bio.photo2, when it has a photo */
/* the receipt: thermal paper, torn along the TOP (that edge was ripped off the roll) */
#register .paper { width: min(18rem, 100%); max-width: none; margin: 0; padding: 1.4rem 1rem 1rem; background: #FDFBF6; color: #2a2520;
  font: 500 0.8125rem/1.4 var(--font-body); box-shadow: 0 4px 10px rgb(60 35 10 / 0.25);
  mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) var(--tooth) repeat-x; }
#register .paper-head { padding-bottom: 0.4em; border-bottom: 0; line-height: 1.7; }
/* the links + the brushed BRASS "Let's get coffee!" (Ethan's materials pick: navy + brass; Phase 5 brings brass to Back + tabs) */
.desk { display: grid; justify-items: center; gap: 0.5rem; }
#register .desk .links a { color: #2a2520; }
#register .desk .links a:hover, #register .desk .links a:focus-visible { color: #000; }
#register .desk .button { margin: 0; padding: 14px 24px; min-height: 48px; white-space: nowrap; font: 600 1rem/1.2 var(--font-body); } /* brass: the shared .button rule */
#register .desk .button:focus-visible { filter: brightness(1.08) saturate(1.05); outline: 2px solid #2a2520; outline-offset: 3px; }
/* the click cue under the button: a pointing hand + words, the street cue's hop (Ethan 2026-11-30), 14 px so it never reaches the button; it rests for good after the first click */
.click-cue { --hop: 0.64; display: none; margin-top: 8px; align-items: center; gap: 0.35rem; cursor: pointer; white-space: nowrap; font: 500 0.875rem/1.3 var(--font-body); color: #2a2520; }
.js .click-cue { display: inline-flex; }
.click-cue svg { width: 1.15em; height: 1.15em; }
@media (prefers-reduced-motion: no-preference) {
  .js #register[data-at="here"] .desk:not(.clicked) .click-cue { animation: cue-hop 2.2s 1.5s infinite; }
}
/* over the 3D the plaque is navy: cream words, icons and focus rings */
.anchored #register .desk :is(.click-cue, .links a) { color: #F3E9D6; }
.anchored #register .desk .links a:is(:hover, :focus-visible) { color: #fff; }
.anchored #register .desk { grid-template-columns: minmax(0, 1fr); }
.anchored #register .desk > * { max-width: 100%; white-space: normal; text-align: center; } /* 200% text: wraps inside the plaque's width (it ran off a 1280 screen) */
.anchored #register .desk :is(.button, .links a):focus-visible { outline-color: #F3E9D6; }
/* the email card: the book card's paper, a native popover (main.js places it under the plaque; else the middle of the screen) */
.email-card { display: none; width: min(20rem, 100vw - 24px); max-height: calc(100dvh - 76px); margin: auto; padding: 0.6rem 0.75rem 0.5rem 1.25rem; overflow-y: auto; overscroll-behavior: contain;
  grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--paper-shadow); font-family: var(--font-body); }
.email-card:popover-open { display: grid; }
.email-card:focus { outline: none; }
.email-card > :not(h3, .email-close) { grid-column: 1 / -1; }
.email-card h3 { margin: 0; font: 600 1.35rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.email-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--paper-soft); cursor: pointer; }
.email-close:hover { color: var(--paper-ink); }
.email-close svg { width: 1rem; height: 1rem; }
.email-address { margin: 0 0 0.85rem; font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.email-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); gap: 0.5rem; margin-right: 0.5rem; }
.email-ways > * { display: grid; place-items: center; min-height: 46px; margin: 0; padding: 0.4rem 0.6rem; border-radius: 999px; font: 600 0.9375rem/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; }
.email-gmail { border: 1.5px solid var(--paper-ink); color: var(--paper-ink); }
.email-gmail:hover { background: rgb(42 37 32 / 0.07); }
.email-app { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: var(--paper-soft); text-underline-offset: 0.2em; }
.email-app:hover { color: var(--paper-ink); }
.email-card :focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 2px; }

/* .anchored (laptops with WebGL): over the 3D. The cork's own picture shows through; the photo + card are pinned on it */
.anchored #register :is(.cork, .paper, .desk) { z-index: 3; }
.anchored #register .cork { display: block; padding: 0; border: 0; background: none; }
.anchored #register .bio-photo { position: absolute; left: 6%; top: 10%; width: 32%; padding: 3% 3% 9%; }
.anchored #register .bio-photo.two { left: 14%; top: 56%; width: 22%; }
.anchored #register .bio-card { position: absolute; right: 2.2%; top: 2.8%; width: 55.5%; max-height: 95%; overflow-y: auto; scrollbar-width: none; padding: 1.25rem 0.75rem 0.6rem; }
.anchored #register .bio-card h2 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.anchored #register .bio-card p { font-size: max(0.9375rem, calc(var(--aw) * 0.02925)); line-height: 1.3; }
@media (max-height: 740px) { .anchored #register .bio-card p { font-size: 0.875rem; line-height: 1.3; } }
.anchored #register .paper { width: auto; padding: 0.9rem 0.55rem 0.55rem; --tooth: 6px; overflow-y: auto; scrollbar-width: none; text-align: center; }
.anchored #register .desk { align-content: center; }
/* over the 3D the receipt is real paper (pavilion.js REG.feed): the HTML words lie over it, unseen, for screen readers */
.anchored:not(.flat-paper) #register .paper { opacity: 0; pointer-events: none; mask: none; overflow: hidden; }

/* ---------- people who ask for less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-scene], .js [data-scene][data-at="here"] { transition: none; }
  .button, .stop, .stop::before, .js .corner { transition: none; }
}

/* ---------- "See everything" + the Phase 6 slots (PLAN-alex-feedback.md 2.4, 6) ---------- */

/* a small plain link to everything.html on every screen. Laptops: the top bar's right end. Phones: bottom left (a
   room's tab row takes the top), on a dark pill so it reads over a scrolling room. everything.mjs SE1-SE5. */
.plain-link {
  position: fixed; z-index: 31; top: 10px; right: var(--gutter);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  font-size: var(--step--1); color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.plain-link:hover, .plain-link:focus-visible { color: var(--action); }
@media (max-width: 600px) {
  .plain-link { top: auto; right: auto; left: calc(var(--gutter) - 6px); bottom: calc(var(--gutter) - 6px); padding: 0 0.7rem;
    border-radius: 999px; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(10px); }
}

/* his handwriting: a traced pen scan (content.js hand) in place of the printed words, as tall as the words were.
   Cue + tabs sit on dark: trace them cream (#F2E8DA). Ticket notes sit on cream paper: trace them dark (#14100D). */
img.hand { display: inline-block; height: 1.3em; width: auto; vertical-align: middle; }
.t-hand { display: block; width: auto; max-width: min(70%, 12rem); max-height: 3.5rem; margin: 0.6rem 0 0 auto; rotate: -2deg; }
/* ---------- REDESIGN, Chat 2 (PLAN-redesign.md Phases 2 + 3 board): HTML placed over the 3D ----------
   The two books on the oak table and the chalkboard behind the bar are 3D (pavilion.js). Each [data-anchor] element is
   placed over its 3D object by pavilion.js placeAnchors (fixed, in px, once per window size) and the stage gets
   .anchored. Book buttons are see-through real buttons: a mouse click, the keyboard and a screen reader all reach them.
   No WebGL or a phone (≤ 600 px, not built yet): no .anchored, so the book buttons hide, the plain "I wrote" line
   shows and the counter keeps the flat slate board. */
:root { --paper: #fbf6ec; --paper-ink: #2a2520; --paper-soft: #6b5a4a; --paper-line: rgb(42 37 32 / 0.16);
  --paper-shadow: 0 1px 0 #fff inset, 0 18px 40px rgb(70 45 20 / 0.28), 0 2px 6px rgb(70 45 20 / 0.16);
  /* paper that just lies there (GATE "Front, middle, back", Ethan 2026-12-01): a thin contact edge, no lift (rooms.mjs K9) */
  --paper-flat: 0 1px 0 #fff inset, 0 1px 2px rgb(70 45 20 / 0.3), 0 0 0 1px rgb(70 45 20 / 0.08); }
.js #inside > .wrap { flex: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: none; margin: 0;
  padding-inline: max(24px, 3vw); text-align: left; color: var(--paper-ink); }
/* the Reading list: a paper card on the left, level with the table (auto margins centre it, and give way to a scroll
   when big text makes it taller than the screen) */
.js #inside .shelf-list { margin: auto 0; width: min(17rem, 30vw); rotate: -1.5deg; background: var(--paper); color: var(--paper-ink); box-shadow: var(--paper-flat); }
.js #inside :is(.list-head, .shelf-list .by) { color: var(--paper-soft); }
.js #inside .list-head { font-family: var(--font-body); font-weight: 600; }
.js #inside .shelf-list cite { font-family: var(--font-display); font-size: 1.25rem; }
.js #inside .shelf-list .now { font-family: var(--font-body); background: var(--paper-ink); color: var(--paper); }
/* PLAN-feedback-2026-12-01 B2 + B3 (a peer did not know the books open): a hint under the list heading, and both 3D
   books glow softly a few times once the camera lands (each arrival; none under reduced motion). inside.mjs I16, I17, R1. */
.list-hint { display: none; }
.js .list-hint { display: block; margin: -0.25rem 0 0.7rem; font: 500 0.875rem/1.3 var(--font-body); color: var(--paper-soft); }
@media (prefers-reduced-motion: no-preference) {
  .anchored #inside[data-at="here"] [data-anchor] { animation: book-glow 1.6s ease-in-out calc(var(--arrive, 0.15s) + 0.5s) 3; }
}
@keyframes book-glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(240 200 120 / 0); }
  50% { box-shadow: 0 0 0 2px rgb(240 200 120 / 0.95), 0 0 30px 10px rgb(255 214 140 / 0.55); } }
.js #inside .list-book cite { text-decoration-color: rgb(42 37 32 / 0.45); }
.js #inside .list-book:focus-visible { outline-color: var(--paper-ink); }
/* no WebGL: Life Stories as a plain line under the list, on glass so it reads over the still picture */
.js #inside .wrote-line { display: block; margin: 0 0 1rem; padding: 0.6rem 1rem; max-width: 34rem; border-radius: 12px; text-align: left;
  color: var(--glass-ink); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.js #inside .wrote-line a { color: var(--glass-ink); }
.anchored #inside .wrote-line, #inside [data-anchor] { display: none; } /* no JS too: an empty see-through button is just a dot */
.anchored [data-anchor] { position: fixed; margin: 0; }
.anchored #inside [data-anchor] { display: block; z-index: 3; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.anchored #inside [data-anchor]:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 4px; }
/* the counter: the 3 tabs chalked on the 3D board (sized by the board's width on screen, --aw) */
.anchored #bar .menu-board { z-index: 1; display: grid; align-content: center; gap: calc(var(--aw) * 0.025); padding: 0 calc(var(--aw) * 0.035);
  background: none; border: 0; border-radius: 0; box-shadow: none; }
.anchored #bar .menu-board::before, .anchored #bar .menu-board::after { display: none; }
.anchored #bar .stops { gap: calc(var(--aw) * 0.03); }
.anchored #bar .stop { padding: calc(var(--aw) * 0.028) 0.5rem; }
.anchored #bar .stop-name { font-size: calc(var(--aw) * 0.05); }
.anchored #bar .board-hint { margin: 0; color: #e9e6dcb3; font-size: max(13px, calc(var(--aw) * 0.024)); }
/* ponytail: phones are not built yet (Chat 6 sends them to everything.html); until then the inside stop stays empty there, as in Chat 1 */
@media (max-width: 600px) { .js #inside > .wrap { display: none !important; } }
/* paper is the CC0 fibre multiplied into the warm paper colour (alone it reads grey) */
:is(.ticket, .stub, .bag-sheet, .roast-tag) { background-blend-mode: multiply; }
