/* Reset – interface
 * Interface colours follow the current place: body[data-ui="dark"|"light"].
 * All motion shares the same curves (--ease, --spring) so everything feels of a piece.
 */
:root {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}
body[data-ui="dark"] {
  --fg: #f1f4f8;
  --fg-soft: rgba(241, 244, 248, 0.74);
  --fg-faint: rgba(241, 244, 248, 0.45);
  --glass: rgba(10, 14, 24, 0.5);
  --glass-line: rgba(255, 255, 255, 0.12);
  --field: rgba(255, 255, 255, 0.08);
  --field-line: rgba(255, 255, 255, 0.18);
  --btn-bg: #f1f4f8;
  --btn-fg: #0d1220;
  --shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 0, 0, 0.6);
  --scrim: rgba(2, 4, 10, 0.55);
  --accent: #9fe0ff;
  --glow: rgba(159, 224, 255, 0.35);
  color-scheme: dark;
}
body[data-ui="light"] {
  --fg: #1a2030;
  --fg-soft: rgba(26, 32, 48, 0.74);
  --fg-faint: rgba(26, 32, 48, 0.45);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-line: rgba(255, 255, 255, 0.7);
  --field: rgba(255, 255, 255, 0.55);
  --field-line: rgba(26, 32, 48, 0.14);
  --btn-bg: #1a2030;
  --btn-fg: #ffffff;
  --shadow: 0 0 2px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 255, 255, 0.8);
  --scrim: rgba(255, 255, 255, 0.4);
  --accent: #2a6bb0;
  --glow: rgba(42, 107, 176, 0.25);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--sans); color: var(--fg); -webkit-font-smoothing: antialiased; transition: color .8s var(--ease); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- World & transitions ---------- */
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; transition: filter .9s var(--ease), transform 1.2s var(--ease); }
#world.switching { filter: blur(16px) saturate(1.3) brightness(1.05); transform: scale(1.04); transition-duration: .42s; }
/* Subtle scrim behind session text so it stays readable in every place */
#scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 70% 55% at 50% 48%, var(--scrim), transparent 75%); transition: opacity 1.6s var(--ease); }
body[data-phase="session"] #scrim { opacity: 1; }
#veil { position: fixed; inset: 0; background: #000; opacity: 1; pointer-events: none; transition: opacity .7s var(--ease), background-color .4s; z-index: 1; }

#app {
  position: relative; z-index: 2; height: 100%;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* ---------- Glass panel ---------- */
.sheet {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: grid; gap: 14px;
  padding: 26px 24px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  transition: background .8s var(--ease), border-color .8s var(--ease);
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.enter { animation: sheetIn 1s var(--ease) both; }
.sheet.enter > *:not(.done-orb) { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + 120ms); }
.sheet.leaving { animation: sheetOut .7s var(--ease-in) forwards; pointer-events: none; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.sheet.compact { max-width: 420px; text-align: center; padding: 34px 24px 26px; overflow: hidden; }

.brand { display: grid; gap: 2px; margin-bottom: 4px; }
.brand h1 { font-family: var(--serif); font-weight: 400; font-size: 2.7rem; line-height: 1; letter-spacing: -0.01em; }
.brand p { color: var(--fg-soft); font-size: 0.95rem; }
.letters .l { display: inline-block; animation: letterIn 1.1s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 200ms); }
@keyframes letterIn { from { opacity: 0; transform: translateY(.5em) rotate(6deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

.label { white-space: nowrap; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; min-width: 0; }
.place-hint { font-size: 0.85rem; color: var(--fg-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity .3s; }
.place-hint.swap { animation: hintSwap .5s var(--ease); }
@keyframes hintSwap { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.field { position: relative; border-radius: 16px; }
.field::after { content: ""; position: absolute; inset: -1px; border-radius: 17px; pointer-events: none; box-shadow: 0 0 0 0 var(--glow); transition: box-shadow .5s var(--ease); }
.field:focus-within::after { box-shadow: 0 0 0 4px var(--glow), 0 0 30px var(--glow); }
textarea {
  display: block; width: 100%; resize: none;
  font: inherit; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--fg);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 16px;
  padding: 12px 14px; transition: background .4s, border-color .4s;
}
textarea:focus { outline: none; border-color: var(--accent); }
textarea::placeholder { color: var(--fg-faint); font-style: italic; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: -24px; padding: 6px 24px 8px;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.gallery::-webkit-scrollbar { display: none; }
.tile {
  position: relative; height: 80px; border-radius: 15px; overflow: hidden;
  scroll-snap-align: start; text-align: left;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform .45s var(--spring), box-shadow .35s var(--ease);
  animation: tileIn .8s var(--ease) both; animation-delay: calc(var(--t, 0) * 40ms + 420ms);
}
@keyframes tileIn { from { opacity: 0; transform: translateX(26px) scale(.9); } to { opacity: 1; transform: none; } }
.tile::before { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.38) 50%, transparent 60%); transform: translateX(-60%); transition: transform .9s var(--ease); z-index: 1; pointer-events: none; }
.tile:hover::before { transform: translateX(60%); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.45)); }
.tile span { position: absolute; left: 10px; right: 8px; bottom: 8px; z-index: 2; color: #fff; font-size: 0.82rem; font-weight: 500; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-3px) scale(1.03); }
.tile:active { transform: scale(.96); }
.tile[aria-checked="true"] { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--accent), 0 8px 24px var(--glow); }
.tile[aria-checked="true"] span { transform: translateY(-2px); }
.tile.surprise { background: conic-gradient(from var(--spin, 200deg) at 70% 30%, #7a5cc7, #38f0a0, #ffc98a, #ff8a3a, #3fa9c9, #7a5cc7); }
.tile.surprise svg { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; z-index: 2; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); transition: transform .6s var(--spring); }
.tile.surprise:hover svg { transform: rotate(-18deg) scale(1.1); }
.tile.surprise.roll svg { animation: roll .7s var(--ease); }
@keyframes roll { 0% { transform: rotate(0); } 60% { transform: rotate(400deg) scale(1.2); } 100% { transform: rotate(360deg); } }

/* ---------- Segmented controls with a sliding pill ---------- */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.segmented { position: relative; display: flex; align-items: center; gap: 4px; background: var(--field); border: 1px solid var(--field-line); border-radius: 999px; padding: 4px; isolation: isolate; }
.segmented .pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--btn-bg); transition: transform .55s var(--spring), width .55s var(--spring), background .6s; }
.segmented button { min-width: 44px; height: 34px; border-radius: 999px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-soft); transition: color .35s; }
.segmented button[aria-checked="true"], .segmented button[aria-pressed="true"] { color: var(--btn-fg); }
.segmented .unit { padding: 0 10px 0 4px; font-size: 0.85rem; color: var(--fg-faint); }
.segmented.small { padding: 3px; }
.segmented.small button { min-width: 36px; height: 28px; font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; }
.segmented.small .pill { top: 3px; bottom: 3px; }

.btn { position: relative; overflow: hidden; height: 52px; border-radius: 999px; padding: 0 26px; font-weight: 600; font-size: 1.02rem; transition: transform .35s var(--spring), box-shadow .4s var(--ease); }
.btn span { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); margin-top: 4px; box-shadow: 0 10px 30px -10px var(--glow); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5.5s var(--ease) 2.5s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.ghost { border: 1px solid var(--field-line); color: var(--fg); }
.btn .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .7s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.setup-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.chip { font-size: 0.85rem; color: var(--fg-soft); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--field-line); display: inline-flex; gap: 8px; align-items: center; transition: background .3s, color .3s; }
.chip:hover { background: var(--field); color: var(--fg); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.chip[aria-pressed="true"] .wave { animation: wave 2.4s ease-in-out infinite; transform-origin: 11px 12px; }
.chip[aria-pressed="true"] .wave.w2 { animation-delay: .3s; }
@keyframes wave { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---------- Session bar ---------- */
#bar { position: fixed; z-index: 3; left: 0; right: 0; top: 0; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; animation: barIn 1s var(--ease) both .4s; }
@keyframes barIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
#bar.leaving { animation: barOut .5s var(--ease-in) forwards; }
@keyframes barOut { to { opacity: 0; transform: translateY(-14px); } }
#progress { position: relative; flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 22%, transparent); overflow: visible; }
#progress-fill { position: relative; display: block; height: 100%; width: 0; border-radius: 3px; background: var(--fg); }
#progress-fill::after { content: ""; position: absolute; right: -3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 12px var(--fg); }
.bar-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .35s var(--spring), background .3s; }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mute-btn .i-off, #mute-btn.muted .i-on { display: none; }
#mute-btn.muted .i-off { display: block; }

/* ---------- Session ---------- */
#session { position: relative; width: 100%; max-width: 660px; height: 100%; display: grid; grid-template-rows: 1fr auto 1.1fr; align-items: center; justify-items: center; text-align: center; text-shadow: var(--shadow); }

#arrive { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; pointer-events: none; }
#arrive.leaving { animation: arriveOut 1.1s var(--ease-in) forwards; }
@keyframes arriveOut { to { opacity: 0; transform: translateY(-20px) scale(1.04); filter: blur(14px); } }
.arrive-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); animation: rise 1.2s var(--ease) both .2s; }
.arrive-name { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 12vw, 5.6rem); line-height: 1; letter-spacing: -0.01em; }
.arrive-name .l { display: inline-block; white-space: pre; animation: nameIn 1.6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 250ms); }
@keyframes nameIn { from { opacity: 0; transform: translateY(.35em) scale(1.1); filter: blur(16px); letter-spacing: .2em; } to { opacity: 1; transform: none; filter: none; } }
.arrive-line { font-size: 1.05rem; color: var(--fg-soft); animation: rise 1.4s var(--ease) both 1.2s; }

#thought {
  align-self: end; padding-bottom: 26px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15;
  max-width: 100%;
  transform-origin: 50% 100%;
  transition: transform var(--shrink, 60s) cubic-bezier(.3, .1, .3, 1), opacity var(--shrink, 60s) linear;
}
#thought.appear .word { animation: thoughtIn 1.5s var(--ease) both; animation-delay: calc(var(--w, 0) * 90ms); }
@keyframes thoughtIn { from { opacity: 0; filter: blur(14px); translate: 0 18px; } to { opacity: 1; filter: none; translate: 0 0; } }
#thought.shrinking { transform: scale(0.16); opacity: 0.4; }
#thought .word { display: inline-block; white-space: nowrap; }
#thought .ch { display: inline-block; }
#thought.dissolve .ch { animation: dissolve 3.4s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes dissolve { to { opacity: 0; filter: blur(12px); transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); } }

.stage { min-height: 300px; display: grid; place-items: center; width: 100%; }
.step { display: grid; gap: 18px; justify-items: center; width: 100%; }
.step.in { animation: rise 1.1s var(--ease) both; }
.step.leaving { animation: stepOut .8s var(--ease-in) forwards; }
@keyframes stepOut { to { opacity: 0; transform: translateY(-12px); filter: blur(10px); } }

.count { font-size: 0.78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); font-variant-numeric: tabular-nums; transition: opacity .4s; }
.count.swap { animation: hintSwap .6s var(--ease); }
.prompt { font-size: clamp(1.3rem, 4.2vw, 1.85rem); line-height: 1.4; max-width: 26ch; text-wrap: balance; min-height: 2.8em; }
.fact { font-size: clamp(1.02rem, 3vw, 1.2rem); line-height: 1.5; max-width: 34ch; text-wrap: balance; min-height: 4.5em; color: var(--fg); }
.soft { color: var(--fg-soft); font-size: 1rem; max-width: 40ch; line-height: 1.5; text-wrap: balance; }
.big { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.8rem); }

/* Word-by-word reveal */
.reveal .rw { display: inline-block; opacity: 0; animation: wordIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms); }
.reveal.leaving .rw { opacity: 1; animation: wordOut .65s var(--ease-in) forwards; animation-delay: calc(var(--i) * 15ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-.4em); filter: blur(8px); } }

/* Zoom ladder */
#ladder { display: grid; gap: 10px; justify-items: center; width: min(320px, 86vw); }
#ladder-label { font-size: 0.78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); min-height: 1.2em; }
#ladder-label.swap { animation: labelSwap .7s var(--ease); }
@keyframes labelSwap { from { opacity: 0; letter-spacing: .5em; filter: blur(6px); } to { opacity: 1; } }
.ladder-track { position: relative; width: 100%; height: 12px; }
.ladder-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.ladder-fill { position: absolute; left: 6px; top: 50%; height: 1px; width: 0; background: var(--fg); box-shadow: 0 0 8px var(--fg); transition: width 1.4s var(--ease); }
.ladder-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.ladder-dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 35%, transparent); transition: transform .8s var(--spring), background .6s, box-shadow .6s; }
.ladder-dots i.past { background: var(--fg); }
.ladder-dots i.now { background: var(--fg); transform: scale(1.9); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 18%, transparent), 0 0 14px var(--fg); }

/* Breathing circle */
#breath-ring {
  position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--fg) 24%, transparent) 0%, color-mix(in srgb, var(--fg) 6%, transparent) 62%, transparent 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 35%, transparent), 0 0 60px color-mix(in srgb, var(--fg) 14%, transparent);
  transform: scale(0.55);
}
#breath-ring::before, #breath-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); opacity: 0; }
#breath-ring.go { animation: breathe 8s ease-in-out infinite; }
#breath-ring.go::before { animation: ripple-ring 8s ease-out infinite; }
#breath-ring.go::after { animation: ripple-ring 8s ease-out infinite 0.6s; }
@keyframes breathe { 0% { transform: scale(0.55); } 50% { transform: scale(1); } 100% { transform: scale(0.55); } }
@keyframes ripple-ring { 0% { opacity: 0; transform: scale(1); } 46% { opacity: 0; transform: scale(1); } 52% { opacity: .7; } 85%, 100% { opacity: 0; transform: scale(1.7); } }
#breath-label { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.02em; text-shadow: none; transition: opacity .5s, filter .5s; }
#breath-label.fade { opacity: 0; filter: blur(4px); }

/* ---------- End ---------- */
#done h2 { position: relative; font-family: var(--serif); font-weight: 400; font-size: 2.5rem; }
#done h2 .l { display: inline-block; white-space: pre; animation: letterIn 1.1s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 250ms); }
#done p { position: relative; color: var(--fg-soft); }
.done-orb { position: absolute; left: 50%; top: 30%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); animation: orb 6s ease-in-out infinite, orbIn 1.6s var(--ease) both; pointer-events: none; }
@keyframes orb { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes orbIn { from { transform: scale(.2); opacity: 0; } }
.done-actions { position: relative; display: grid; gap: 10px; margin-top: 12px; }

#stay-hint { position: fixed; z-index: 3; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; color: var(--fg-soft); text-shadow: var(--shadow); font-size: 0.9rem; animation: hintfade 4s var(--ease) forwards; pointer-events: none; }
@keyframes hintfade { 0% { opacity: 0; transform: translateY(8px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.notice { font-size: 0.85rem; color: var(--fg-soft); border-left: 2px solid var(--field-line); padding-left: 10px; }

@media (max-width: 480px) {
  .sheet { padding: 22px 18px 14px; border-radius: 22px; gap: 12px; }
  .gallery { margin-inline: -18px; padding-inline: 18px; grid-auto-columns: 100px; }
  .tile { height: 72px; }
  .brand h1 { font-size: 2.3rem; }
  .stage { min-height: 280px; }
}
@media (max-height: 640px) { .brand p { display: none; } .tile { height: 64px; } .stage { min-height: 240px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  #breath-ring.go { animation: breathe 16s ease-in-out infinite !important; }
  #thought { transition: none !important; }
}
