/* The Fluid Web — staged demo. Calm, dark, cinematic. */
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/Fraunces.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/Fraunces-Italic.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: block; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter.ttf') format('truetype'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/GeistMono.ttf') format('truetype'); font-weight: 100 900; font-display: block; }

:root {
  --fs: 1; --fh: 1; --fu: 1;   /* v7: text-size multipliers (body text / headings / controls); body.big = extra-large */
  --bg: #0b0c0f;
  --ink: #ece6da;
  --ink-2: rgba(236, 230, 218, .72);
  --ink-3: rgba(236, 230, 218, .42);
  --ink-4: rgba(236, 230, 218, .16);
  --amber: #dcaa6a;
  --amber-soft: rgba(220, 170, 106, .55);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --slow: 1.25s;
  --mid: .85s;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
body::after { /* film grain + vignette */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.booting main, .booting .voice, .booting .where, .booting .brand { opacity: 0; }
main, .voice, .where, .brand { transition: opacity 1.6s var(--ease); }

/* ---------- ambient light ---------- */
.atmos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.g1 { width: 60vw; height: 60vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(170,120,70,.20), transparent 65%); animation: drift1 38s ease-in-out infinite alternate; }
.g2 { width: 55vw; height: 55vw; right: -15vw; bottom: -25vw; background: radial-gradient(circle, rgba(80,110,150,.16), transparent 65%); animation: drift2 44s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(1.15); } }

.backdrop { position: fixed; inset: -4%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(.8); transform: scale(1.05); }
body[data-lens="story"] .backdrop { opacity: .22; }

/* ---------- chrome ---------- */
.brand { position: fixed; top: 34px; left: 44px; z-index: 5; }
.brand-name { font-family: 'Fraunces', serif; font-size: calc(15px * var(--fu)); letter-spacing: .02em; font-weight: 400; color: var(--ink-2); }
.brand-tag { font-family: 'Fraunces', serif; font-style: italic; font-size: calc(13px * var(--fu)); color: var(--ink-3); margin-top: 3px; }
.where { position: fixed; top: 36px; right: 44px; z-index: 5; text-align: right; }
.where-lens { font-size: calc(11px * var(--fu)); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.where-k { color: var(--ink-4); margin-right: .9em; }
#lensName { display: inline-block; color: var(--amber-soft); transition: opacity .5s, filter .5s; }
#lensName.swap { opacity: 0; filter: blur(6px); }
.where-dots { display: flex; gap: 7px; justify-content: flex-end; margin-top: 12px; }
.where-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); transition: background .8s, transform .8s; }
.where-dots i.on { background: var(--amber); transform: scale(1.35); box-shadow: 0 0 10px rgba(220,170,106,.6); }

/* ---------- stage ---------- */
main { position: fixed; inset: 0; }

.lens-text {
  position: absolute; left: 50%; top: 47%; width: min(36rem, 84vw);
  transform: translate(-50%, -50%); transform-origin: 0% 50%;
  transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease), filter var(--slow) var(--ease), left var(--slow) var(--ease), width var(--slow) var(--ease);
}
.eyebrow { font-size: calc(11px * var(--fs)); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 14px; }
#chapterNo { color: var(--amber); font-family: 'Geist Mono', monospace; letter-spacing: .1em; }
.sep { display: inline-block; width: 26px; height: 1px; background: var(--ink-4); }
h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: calc(clamp(2.6rem, 5.2vw, 4.6rem) * var(--fh)); line-height: 1.02; letter-spacing: -.02em; margin: .45em 0 .55em; font-variation-settings: 'SOFT' 60, 'WONK' 0; }
.body-text p { font-size: calc(17px * var(--fs)); line-height: 1.75; color: var(--ink-2); margin: 0 0 1.05em; max-width: 34rem; max-height: 16em; transition: opacity .9s var(--ease), max-height 1.2s var(--ease), margin 1.2s var(--ease), font-size 1.2s var(--ease); }
.body-text p:first-child { color: var(--ink); }
.body-text, .body-detail { overflow: hidden; transition: opacity var(--mid) var(--ease), filter var(--mid) var(--ease), transform var(--mid) var(--ease), max-height 1.1s var(--ease); }
.body-text { max-height: 60em; }
.body-detail { max-height: 0; }
body[data-lens="detail"] .body-text { max-height: 0; }
body[data-lens="detail"] .body-detail { max-height: 50em; }
.bodies { display: grid; }
.bodies > * { grid-area: 1 / 1; min-width: 0; }
.body-detail { opacity: 0; pointer-events: none; filter: blur(8px); transform: translateY(10px); }

/* section flow (content swap) */
.lens-text.leaving { opacity: 0 !important; filter: blur(14px); }
.lens-text.leaving .body-text, .lens-text.leaving h1 { transform: translateX(-24px); }
.lens-text h1 { transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease), filter var(--mid) var(--ease); }
.lens-text .body-text { transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease), filter var(--mid) var(--ease), max-height 1.1s var(--ease); }
.lens-text.entering { opacity: 0 !important; filter: blur(14px); }
.lens-text.entering h1, .lens-text.entering .body-text { transform: translateX(28px); }

/* ---------- picture lens ---------- */
.lens-picture {
  position: absolute; margin: 0; right: 1vw; top: 50%; width: 64vw; aspect-ratio: 16 / 10;
  transform: translateY(-50%) scale(1.06); opacity: 0; filter: blur(22px);
  transition: opacity 1.5s var(--ease), transform 1.8s var(--ease), filter 1.5s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 54% 54%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 58% at 54% 54%, #000 45%, transparent 100%);
  pointer-events: none;
}
.lens-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
body[data-lens="picture"] .lens-picture { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }
body[data-lens="picture"] .lens-text { left: 7vw; width: min(27rem, 34vw); transform: translate(0, -50%) scale(.86); opacity: .62; }
body[data-lens="picture"] .lens-text .body-text p { font-size: calc(16px * var(--fs)); }
body[data-lens="picture"] .lens-text .body-text p:nth-child(n+3) { opacity: 0; max-height: 0; margin: 0; }

/* ---------- story lens ---------- */
.lens-story {
  position: absolute; left: 50%; top: 48%; width: min(50rem, 86vw); transform: translate(-50%, -46%);
  text-align: center; opacity: 0; filter: blur(12px); pointer-events: none;
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease);
}
body[data-lens="story"] .lens-story { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
body[data-lens="story"] .lens-text { opacity: 0; filter: blur(16px); transform: translate(-50%, -54%) scale(.96); pointer-events: none; }
.story-eyebrow { font-size: calc(11px * var(--fu)); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.story-eyebrow em { font-style: normal; color: var(--amber-soft); }
.story-line {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: calc(clamp(1.7rem, 2.9vw, 2.55rem) * var(--fh));
  line-height: 1.38; letter-spacing: -.005em; margin: 1.1em auto .9em; min-height: 4.2em; max-width: 46rem;
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
}
.story-line.out { opacity: 0; filter: blur(8px); transform: translateY(-8px); }
.story-line .w { color: rgba(236,230,218,.26); transition: color .35s ease, text-shadow .6s ease; }
.story-line .w.on { color: var(--ink); }
.story-line .w.now { color: #f6dcb4; text-shadow: 0 0 22px rgba(220,170,106,.55); }
#wave { width: 360px; height: 60px; display: block; margin: 0 auto; opacity: .9; }
.story-progress { width: 180px; height: 1px; margin: 18px auto 0; background: var(--ink-4); overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 0; background: var(--amber-soft); }

/* ---------- movie lens ---------- */
.lens-movie {
  position: absolute; left: 50%; top: 47%; width: min(70vw, 118vh, 1180px); transform: translate(-50%, -50%) scale(.94);
  opacity: 0; filter: blur(14px); pointer-events: none;
  transition: opacity 1.3s var(--ease), transform 1.6s var(--ease), filter 1.3s var(--ease);
}
body[data-lens="movie"] .lens-movie { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
body[data-lens="movie"] .lens-text { opacity: 0; filter: blur(16px); transform: translate(-50%, -50%) scale(.9); pointer-events: none; }
.movie-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0e0f12;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(236,230,218,.06), 0 0 80px -20px rgba(220,170,106,.12); }
.movie-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(0,0,0,.45); pointer-events: none; }
.movie-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.movie-caption { margin-top: 18px; font-size: calc(11px * var(--fu)); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 12px; align-items: center; justify-content: center; }
.movie-caption #movieTitle { color: var(--ink-2); }
.movie-caption .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--amber-soft); }

/* ---------- detail lens ---------- */
body[data-lens="detail"] .body-text { opacity: 0; filter: blur(8px); transform: translateY(-10px); pointer-events: none; }
body[data-lens="detail"] .body-detail { opacity: 1; filter: blur(0); transform: translateY(0); pointer-events: auto; }
body[data-lens="detail"] .lens-text { width: min(46rem, 86vw); top: 45%; }
body[data-lens="detail"] h1 { font-size: calc(clamp(2.2rem, 4vw, 3.4rem) * var(--fh)); margin-bottom: .4em; }
.detail-lead { font-family: 'Fraunces', serif; font-style: italic; font-size: calc(19px * var(--fs)); color: var(--ink-2); margin: 0 0 1.3em; }
.spec { display: grid; grid-template-columns: 11.5rem 1fr; border-top: 1px solid var(--ink-4); }
.spec > div { padding: 9px 0; border-bottom: 1px solid rgba(236,230,218,.08); opacity: 0; transform: translateY(6px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
body[data-lens="detail"] .spec > div { opacity: 1; transform: none; }
.spec .k { font-family: 'Geist Mono', monospace; font-size: calc(11px * var(--fs)); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); padding-top: 12px; }
.spec .v { font-size: calc(15.5px * var(--fs)); color: var(--ink); line-height: 1.5; }
.detail-note { margin-top: 1.2em; font-size: calc(11px * var(--fs)); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- explore lens ---------- */
body[data-lens="explore"] .lens-text { transform: translate(-50%, -50%) scale(.92); opacity: .78; transform-origin: 50% 50%; text-align: center; }
body[data-lens="explore"] .lens-text .eyebrow { justify-content: center; }
body[data-lens="explore"] .lens-text .body-text p { opacity: 0; }
body[data-lens="explore"] .lens-text h1 { transform: translateY(var(--xshift, 0px)); }
.lens-text .eyebrow { transition: transform var(--slow) var(--ease); }
body[data-lens="explore"] .lens-text .eyebrow { transform: translateY(var(--xshift, 0px)); }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
body[data-lens="explore"] .bubbles { pointer-events: auto; }
.bubble { position: absolute; left: 50%; top: 47%; width: 0; height: 0; pointer-events: auto; cursor: pointer; }
.bubble .inner { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 1.6s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease); animation: float var(--dur, 11s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.bubble .orb { width: var(--size, 108px); height: var(--size, 108px); border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(236,230,218,.12), 0 18px 50px -12px rgba(0,0,0,.8), 0 0 40px -8px rgba(220,170,106,.18); transition: box-shadow .6s, transform .6s var(--ease); }
.bubble .orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: saturate(.85) brightness(.95); }
.bubble .orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 50%); }
.bubble .name { font-family: 'Fraunces', serif; font-size: calc(16px * var(--fs)); color: var(--ink-2); white-space: nowrap; transition: color .5s; }
.bubble:hover .orb { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(220,170,106,.5), 0 18px 50px -12px rgba(0,0,0,.8), 0 0 50px -6px rgba(220,170,106,.4); }
.bubble:hover .name { color: var(--ink); }
.bubble.hidden .inner { transform: translate(-50%, -50%) translate(0, 0) scale(.3) !important; opacity: 0; filter: blur(10px); }
.bubble.chosen .orb { box-shadow: 0 0 0 1px rgba(220,170,106,.9), 0 0 60px rgba(220,170,106,.5); }
@keyframes float { 0% { translate: 0 0; } 33% { translate: 8px -10px; } 66% { translate: -6px 6px; } 100% { translate: 4px 12px; } }

/* ---------- voice (bottom) ---------- */
.voice { position: fixed; left: 0; right: 0; bottom: 30px; z-index: 10; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.voice > * { pointer-events: auto; }
.hint { font-family: 'Fraunces', serif; font-style: italic; font-size: calc(17px * var(--fs)); color: var(--ink-3); margin-bottom: 14px; opacity: 0; filter: blur(6px); transform: translateY(6px);
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease); pointer-events: none; text-align: center; }
.hint.show { opacity: 1; filter: blur(0); transform: none; }
.hint .say { font-style: normal; font-family: 'Inter', sans-serif; font-size: calc(12px * var(--fs)); letter-spacing: .06em; color: var(--ink-3); }
.hint .say b { font-weight: 400; color: var(--ink-2); }
.transcript { min-height: 26px; font-family: 'Fraunces', serif; font-style: italic; font-size: calc(20px * var(--fs)); color: var(--ink-2); margin-bottom: 12px; text-align: center; max-width: 80vw;
  transition: opacity .8s var(--ease), filter .8s var(--ease); pointer-events: none; }
.transcript .interim { color: var(--ink-3); }
.transcript .q { color: var(--amber-soft); }
.transcript.fade { opacity: 0; filter: blur(4px); }
.transcript .ack { display: block; font-family: 'Inter', sans-serif; font-style: normal; font-size: calc(11px * var(--fs)); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.type-form { height: 0; overflow: hidden; opacity: 0; transition: height .5s var(--ease), opacity .5s var(--ease); margin-bottom: 0; }
.type-form.open { height: 46px; opacity: 1; margin-bottom: 12px; }
.type-form input { width: min(30rem, 80vw); background: transparent; border: none; border-bottom: 1px solid rgba(236,230,218,.18); color: var(--ink);
  font-family: 'Fraunces', serif; font-style: italic; font-size: calc(19px * var(--fs)); padding: 8px 4px; text-align: center; outline: none; }
.type-form input::placeholder { color: var(--ink-4); }
.type-form input:focus { border-bottom-color: var(--amber-soft); }
.mic-row { display: flex; align-items: center; gap: 16px; }
.mic { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(236,230,218,.16); background: rgba(236,230,218,.03); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .5s, background .5s, box-shadow .5s; }
.mic:hover { border-color: rgba(220,170,106,.5); }
.mic-glyph { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: opacity .4s; }
.mic-bars { position: absolute; display: flex; gap: 3px; align-items: center; height: 16px; opacity: 0; transition: opacity .4s; }
.mic-bars i { width: 2px; height: 5px; border-radius: 2px; background: var(--amber); animation: bar 1.1s ease-in-out infinite; }
.mic-bars i:nth-child(2) { animation-delay: .15s; } .mic-bars i:nth-child(3) { animation-delay: .3s; } .mic-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes bar { 0%, 100% { height: 4px; opacity: .6; } 50% { height: 15px; opacity: 1; } }
body.listening .mic { border-color: rgba(220,170,106,.55); background: rgba(220,170,106,.07); box-shadow: 0 0 0 0 rgba(220,170,106,.4); animation: ring 2.4s ease-out infinite; }
body.listening .mic-glyph { opacity: 0; }
body.listening .mic-bars { opacity: 1; }
body.hearing .mic-bars i { animation-duration: .55s; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(220,170,106,.35); } 100% { box-shadow: 0 0 0 16px rgba(220,170,106,0); } }
.mic-label { font-size: calc(11px * var(--fu)); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.mic-label .sep { width: 16px; }
.linkish { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.linkish:hover { color: var(--ink-2); }
kbd { font-family: 'Geist Mono', monospace; font-size: calc(10px * var(--fu)); border: 1px solid var(--ink-4); border-radius: 4px; padding: 1px 5px; color: var(--ink-2); }

@media (max-width: 760px) {
  .brand { left: 22px; top: 22px; } .where { right: 22px; top: 24px; }
  body[data-lens="picture"] .lens-text { left: 6vw; top: 74%; width: 88vw; transform: translate(0, -50%) scale(.8); }
  .lens-picture { width: 100vw; right: 0; top: 30%; }
  .spec { grid-template-columns: 8rem 1fr; }
}
@media (max-height: 820px) and (min-width: 761px) {
  h1 { font-size: calc(clamp(2.4rem, 7.4vh, 3.7rem) * var(--fh)); }
  .lens-text { width: min(33rem, 84vw); }
  .body-text p { font-size: calc(15.5px * var(--fs)); line-height: 1.68; margin-bottom: .85em; }
  body[data-lens="picture"] .lens-text .body-text p { font-size: calc(15px * var(--fs)); }
  body[data-lens="detail"] h1 { font-size: calc(2.4rem * var(--fh)); }
  body[data-lens="detail"] .lens-text { top: 44%; }
  .detail-lead { font-size: calc(16.5px * var(--fs)); margin-bottom: .9em; }
  .spec > div { padding: 6px 0; } .spec .k { padding-top: 9px; } .spec .v { font-size: calc(14.5px * var(--fs)); }
  .detail-note { margin-top: .9em; }
  .story-line { font-size: calc(clamp(1.5rem, 4.4vh, 2.2rem) * var(--fh)); }
  .voice { bottom: 22px; }
  .hint { margin-bottom: 10px; }
}

/* =====================================================================
   v2 — WORDS lens (glossary cloud)
   ===================================================================== */
.lens-words { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.1s var(--ease), filter 1.1s var(--ease); }
body[data-lens="words"] .lens-words { opacity: 1; pointer-events: auto; }
body[data-lens="term"] .lens-words { opacity: .035; filter: blur(6px); }
body[data-lens="words"] .lens-text, body[data-lens="term"] .lens-text { opacity: 0; filter: blur(16px); transform: translate(-50%, -50%) scale(.94); pointer-events: none; }
.words-eyebrow { position: absolute; left: 50%; top: 8.5vh; transform: translateX(-50%); font-size: calc(11px * var(--fu)); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.words-eyebrow span:first-child { color: var(--amber-soft); }
.cloud { position: absolute; inset: 0; }
.word { position: absolute; background: none; border: 0; padding: 3px 6px; margin: 0; cursor: pointer; white-space: nowrap; line-height: 1.12;
  font-family: 'Fraunces', serif; font-weight: 320; color: var(--ink-2); letter-spacing: -.005em;
  animation: wdrop 1.3s var(--ease) var(--d, 0s) both, wfloat var(--fd, 9s) ease-in-out calc(var(--d, 0s) + 1.3s) infinite alternate;
  transition: color .45s ease, text-shadow .6s ease; }
.word.main { color: var(--ink); font-weight: 340; }
.word.main.v1 { font-style: italic; font-weight: 300; }
.word.minor { color: rgba(236,230,218,.46); }
.word.minor.v0 { font-family: 'Inter', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; font-size: .72em; }
.word.minor.v1 { font-style: italic; }
.word:hover, .word:focus-visible { color: #f6dcb4; text-shadow: 0 0 26px rgba(220,170,106,.55); outline: none; }
@keyframes wdrop { from { opacity: 0; transform: translateY(-42px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wfloat { from { translate: 0 0; } to { translate: var(--fx, 6px) var(--fy, 6px); } }
.fly { position: fixed; z-index: 30; pointer-events: none; transform-origin: 0 0; color: var(--ink); line-height: 1.12; white-space: nowrap; font-weight: 320; padding: 3px 6px; }

/* ---------- term card ---------- */
.lens-term { position: absolute; left: 50%; top: 46%; width: min(58rem, 88vw); transform: translate(-50%, -44%); opacity: 0; filter: blur(12px); pointer-events: none;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
body[data-lens="term"] .lens-term { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); pointer-events: auto; }
.term-card { display: grid; grid-template-columns: 208px 1fr; gap: 52px; align-items: start; transition: opacity .33s ease, filter .33s ease; }
.term-card.swap { opacity: 0; filter: blur(8px); }
.term-media { position: relative; width: 208px; height: 208px; border-radius: 24px; overflow: hidden; margin-top: 30px;
  box-shadow: 0 0 0 1px rgba(236,230,218,.1), 0 30px 70px -25px rgba(0,0,0,.9), 0 0 60px -20px rgba(220,170,106,.25); }
.term-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.9); }
.term-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.1), transparent 55%); }
.term-eyebrow { font-size: calc(11px * var(--fs)); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 14px; align-items: center; }
.term-eyebrow span:first-child { color: var(--amber); font-family: 'Geist Mono', monospace; letter-spacing: .16em; }
#termTitle { font-family: 'Fraunces', serif; font-weight: 300; font-size: calc(clamp(2.4rem, 4.4vw, 3.8rem) * var(--fh)); line-height: 1.04; letter-spacing: -.02em; margin: .32em 0 .38em; }
.term-def { font-size: calc(19px * var(--fs)); line-height: 1.62; margin: 0; max-width: 36rem; }
.term-def .w { color: rgba(236,230,218,.34); transition: color .35s ease, text-shadow .6s ease; }
.term-def .w.on { color: var(--ink); }
.term-def .w.now { color: #f6dcb4; text-shadow: 0 0 20px rgba(220,170,106,.5); }
#termWave { display: block; width: 280px; height: 32px; margin: 14px 0 12px -8px; opacity: .85; }
.term-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(236,230,218,.08); max-width: 38rem; }
.term-row .k { font-family: 'Geist Mono', monospace; font-size: calc(10.5px * var(--fs)); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-soft); }
.term-row .v { font-size: calc(14.5px * var(--fs)); line-height: 1.55; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: calc(13px * var(--fs)); color: var(--ink-2); background: rgba(236,230,218,.03); border: 1px solid rgba(236,230,218,.16); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: border-color .4s, color .4s, background .4s, box-shadow .4s; }
.chip:hover, .chip:focus-visible { color: var(--ink); border-color: rgba(220,170,106,.6); background: rgba(220,170,106,.07); box-shadow: 0 0 24px -6px rgba(220,170,106,.45); outline: none; }
.term-go { margin-top: 14px; font-size: calc(11px * var(--fs)); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.term-go:empty { display: none; }

/* =====================================================================
   v2 — MIX lens: text + picture/film + narration composed together
   The same elements as the single lenses, re-arranged by CSS state.
   ===================================================================== */
body[data-lens="mix"] { --mx-x: 64%; --mx-y: 41%; --mx-w: min(50vw, 88vh); }
body[data-lens="mix"]:not(.mx-text) { --mx-x: 50%; --mx-y: 42%; --mx-w: min(58vw, 98vh); }
body[data-lens="mix"].mx-text:not(.mx-video):not(.mx-picture) .lens-story { left: 66%; top: 47%; width: min(40vw, 40rem); }
.lens-movie, .lens-picture, .lens-story { transition-property: opacity, transform, filter, left, top, width; }
/* text column */
body[data-lens="mix"].mx-text .lens-text { left: 6vw; width: min(26rem, 30vw); transform: translate(0, -50%) scale(.92); transform-origin: 0 50%; opacity: .92; }
body[data-lens="mix"].mx-text .lens-text .body-text p:nth-child(n+3) { opacity: 0; max-height: 0; margin: 0; }
body[data-lens="mix"].mx-text .lens-text .body-text p { font-size: calc(15px * var(--fs)); }
body[data-lens="mix"]:not(.mx-text) .lens-text { opacity: 0; filter: blur(16px); pointer-events: none; }
/* film */
body[data-lens="mix"].mx-video .lens-movie { left: var(--mx-x); top: var(--mx-y); width: var(--mx-w); opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
body[data-lens="mix"] .movie-caption { opacity: 0; }
body[data-lens="mix"].mx-video.mx-still .lens-movie { opacity: 0; filter: blur(10px); }
/* picture (or the still the film settles into) */
body[data-lens="mix"].mx-picture .lens-picture, body[data-lens="mix"].mx-video.mx-still .lens-picture {
  right: auto; left: var(--mx-x); top: var(--mx-y); width: var(--mx-w); aspect-ratio: 16 / 9; opacity: 1; filter: blur(0); transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 42%, transparent 100%); mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 42%, transparent 100%); }
/* narration subtitles under the media */
body[data-lens="mix"].mx-voice .lens-story { left: var(--mx-x); top: calc(var(--mx-y) + var(--mx-w) * .28125 + 64px); width: var(--mx-w); opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
body[data-lens="mix"] .story-eyebrow, body[data-lens="mix"] .story-progress { display: none; }
body[data-lens="mix"] .story-line { font-size: calc(clamp(1.1rem, 1.75vw, 1.45rem) * var(--fh)); line-height: 1.4; min-height: 2.8em; margin: 0 auto .15em; max-width: 100%; }
body[data-lens="mix"].mx-text:not(.mx-video):not(.mx-picture) .story-line { font-size: calc(clamp(1.5rem, 2.6vw, 2.2rem) * var(--fh)); min-height: 4.2em; }
body[data-lens="mix"] #wave { width: 240px; height: 40px; }
body[data-lens="mix"] .backdrop { opacity: 0; }

@media (max-height: 820px) and (min-width: 761px) {
  .term-media { width: 180px; height: 180px; margin-top: 24px; }
  .term-card { grid-template-columns: 180px 1fr; gap: 44px; }
  .term-def { font-size: calc(17.5px * var(--fs)); }
  .term-row { padding: 8px 0; }
  #termTitle { font-size: calc(clamp(2.2rem, 7vh, 3.2rem) * var(--fh)); }
  body[data-lens="mix"] { --mx-y: 40%; --mx-w: min(50vw, 84vh); }
  body[data-lens="mix"] .story-line { font-size: calc(1.12rem * var(--fh)); }
}
@media (max-width: 760px) {
  .term-card { grid-template-columns: 1fr; gap: 18px; }
  .term-media { width: 120px; height: 120px; margin: 0; }
  body[data-lens="mix"] { --mx-x: 50%; --mx-y: 30%; --mx-w: 92vw; }
  body[data-lens="mix"].mx-text .lens-text { left: 6vw; top: 74%; width: 88vw; transform: translate(0, -50%) scale(.82); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01s !important; } }

/* =====================================================================
   v4 — accessibility: larger, high-contrast hints & controls
   (hint chips ≥ 20 px, ≥ 44 px targets, text ≥ 7:1 on the dark bg)
   ===================================================================== */
.hint { font-size: calc(22px * var(--fs)); color: var(--ink-2); max-width: min(92vw, 1100px); margin-bottom: 14px; }
.hint.show { pointer-events: auto; }
.hint .say { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; font-family: 'Inter', sans-serif; font-style: normal;
  font-size: calc(20px * var(--fs)); letter-spacing: .01em; color: var(--ink-2); }
.hint .say .try { font-size: calc(18px * var(--fs)); font-weight: 500; color: rgba(236,230,218,.78); margin-right: 4px; }
.say-chip { font: inherit; font-size: calc(20px * var(--fs)); font-weight: 500; color: #f4efe6; min-height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: rgba(236,230,218,.06); border: 1.5px solid rgba(236,230,218,.30); transition: border-color .3s, background .3s, box-shadow .3s; }
.say-chip:hover, .say-chip:focus-visible { border-color: var(--amber); background: rgba(220,170,106,.12); box-shadow: 0 0 24px -6px rgba(220,170,106,.5); outline: none; }
.hint.help { padding: 16px 20px; border-radius: 22px; background: rgba(11,12,15,.86); box-shadow: 0 0 60px 20px rgba(11,12,15,.8); }
.transcript { font-size: calc(22px * var(--fs)); color: rgba(236,230,218,.82); }
.transcript .ack { font-size: calc(15px * var(--fs)); font-weight: 500; letter-spacing: .16em; color: rgba(236,230,218,.72); margin-top: 6px; }
.mic { width: 48px; height: 48px; }
.mic-glyph { width: 20px; height: 20px; }
.mic-label { font-size: calc(15px * var(--fu)); font-weight: 500; letter-spacing: .14em; color: rgba(236,230,218,.72); }
.mic-label .linkish { min-height: 44px; }
kbd { font-size: calc(14px * var(--fu)); padding: 2px 7px; color: #f4efe6; border-color: rgba(236,230,218,.4); }

/* back / forward / A+ (bottom-left) */
.histnav { position: fixed; left: 40px; bottom: 30px; z-index: 12; display: flex; gap: 10px; align-items: center; }
.booting .histnav { opacity: 0; }
.histnav { transition: opacity 1.6s var(--ease); }
.navbtn { display: inline-flex; align-items: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: calc(17px * var(--fu)); font-weight: 500; color: #f4efe6;
  background: rgba(236,230,218,.06); border: 1.5px solid rgba(236,230,218,.30); transition: border-color .3s, background .3s, opacity .4s, box-shadow .3s; }
.navbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.navbtn:hover:not(:disabled), .navbtn:focus-visible { border-color: var(--amber); background: rgba(220,170,106,.12); box-shadow: 0 0 24px -6px rgba(220,170,106,.5); outline: none; }
.navbtn:disabled { opacity: .32; cursor: default; }
.navbtn.size { padding: 0 14px; font-family: 'Fraunces', serif; font-size: calc(20px * var(--fu)); }
.navbtn.size sup { font-size: calc(13px * var(--fu)); margin-left: 1px; }
.navbtn.size[aria-pressed="true"] { border-color: var(--amber); color: #f6dcb4; }
.toast { position: fixed; left: 40px; bottom: 92px; z-index: 12; display: flex; gap: 10px; align-items: center; padding: 10px 20px; border-radius: 16px;
  font-family: 'Inter', sans-serif; font-size: calc(20px * var(--fu)); font-weight: 500; color: #f4efe6; background: rgba(20,21,26,.92); border: 1.5px solid rgba(220,170,106,.45);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.8); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast .arr { color: var(--amber); font-size: calc(22px * var(--fu)); }

/* term card: repeat + larger related chips */
.term-play { display: flex; align-items: center; gap: 16px; margin: 10px 0 12px; }
.term-play #termWave { margin: 0 0 0 -8px; width: 240px; }
.repeat-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: calc(18px * var(--fs)); font-weight: 500; color: #f4efe6; background: rgba(236,230,218,.06); border: 1.5px solid rgba(236,230,218,.30);
  transition: border-color .3s, background .3s, box-shadow .3s; }
.repeat-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.repeat-btn:hover, .repeat-btn:focus-visible { border-color: var(--amber); background: rgba(220,170,106,.12); box-shadow: 0 0 24px -6px rgba(220,170,106,.5); outline: none; }
.chip { font-size: calc(16px * var(--fs)); min-height: 44px; padding: 0 16px; color: #f4efe6; border: 1.5px solid rgba(236,230,218,.28); }
.term-go { font-size: calc(14px * var(--fs)); font-weight: 500; color: rgba(236,230,218,.72); min-height: 44px; }
.term-row .k { font-size: calc(12px * var(--fs)); }

/* "bigger text" mode */







@media (max-height: 820px) and (min-width: 761px) {
  .histnav { bottom: 22px; left: 32px; }
  .toast { bottom: 82px; left: 32px; }


}
@media (max-width: 760px) {
  .histnav { left: auto; right: 14px; bottom: auto; top: 64px; gap: 6px; }
  .navlbl { display: none; }
  .navbtn { padding: 0; width: 44px; min-width: 44px; height: 44px; justify-content: center; }
  .toast { left: 50%; transform: translate(-50%, 8px); bottom: auto; top: 118px; font-size: calc(18px * var(--fu)); white-space: nowrap; }
  .toast.show { transform: translate(-50%, 0); }
  .hint .say, .say-chip { font-size: calc(18px * var(--fs)); }
  .term-play #termWave { width: 180px; }
}

/* v4: hint and transcript share one slot just above the mic row (they are never shown together),
   which keeps the large hint chips clear of the page content at 1280x720 */
.voice .hint, .voice .transcript { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: calc(100% + 10px); }
.voice .transcript { max-width: 80vw; min-height: 0; }
.voice .hint { pointer-events: none; }
.voice .hint .say-chip { pointer-events: auto; }
.voice .hint.show { pointer-events: none; }
@media (max-width: 760px) {
  .histnav { top: 14px; right: 12px; }
  .where { top: 70px; }
  .mic-label { font-size: calc(14px * var(--fu)); letter-spacing: .08em; gap: 8px; }
  .mic-label .sep { width: 8px; }
  .toast { top: 112px; }
}
@media (max-width: 760px) {
  body[data-lens="term"] .lens-term { top: 50.5%; }
  .term-media { width: 104px; height: 104px; }
}

/* =====================================================================
   v5 — the opening: "What's behind the facade?"
   A finished house at dusk (cover-fitted 16:9 stage) with the copy on the left.
   Teasers: a pulsing peephole on the wall and a slow x-ray band that sweeps the house.
   The reveal plays a rendered clip (cladding peels away → timber frame), falls back to a CSS wipe.
   ===================================================================== */
@property --peek { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --scan { syntax: '<percentage>'; inherits: false; initial-value: -30%; }
@property --wipe { syntax: '<percentage>'; inherits: false; initial-value: -20%; }
.lens-home { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 1.3s var(--ease), filter 1.3s var(--ease), transform 1.6s var(--ease), visibility 0s linear 1.4s; transform: scale(1.02); filter: blur(10px); }
body[data-lens="home"] .lens-home { opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none; transition: opacity 1.3s var(--ease), filter 1.3s var(--ease), transform 1.6s var(--ease), visibility 0s; }
body[data-lens="home"] .lens-text { opacity: 0; filter: blur(16px); transform: translate(-50%, -50%) scale(.96); pointer-events: none; }
body[data-lens="home"] .where { opacity: 0; }
body[data-lens="home"] .atmos { opacity: .5; }
.home-media { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%);
  --hx: 62%; --hy: 55%; }
.hm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.hm-stage { position: absolute; inset: 0; animation: homeBreath 18s ease-in-out infinite alternate; transform-origin: 72% 60%; }   /* v6: the whole stage breathes, so pins stay on their spot */
@keyframes homeBreath { from { transform: scale(1); } to { transform: scale(1.018); } }
/* peephole: the frame shows through a small circle on the wall */
.hm-peek { clip-path: circle(var(--peek) at var(--hx) var(--hy)); --peek: 0px; animation: peek 4.6s ease-in-out infinite; }
@keyframes peek { 0%, 12% { --peek: 0px; } 34% { --peek: 44px; } 60% { --peek: 36px; } 86%, 100% { --peek: 0px; } }
.lens-home.peeking .hm-peek { animation: none; --peek: 150px; transition: --peek .9s var(--ease); }
/* x-ray band sweeping across the house every few seconds */
.hm-scan { opacity: .78; --scan: -30%;
  -webkit-mask-image: linear-gradient(100deg, transparent calc(var(--scan) - 7%), #000 calc(var(--scan) - 2%), #000 calc(var(--scan) + 2%), transparent calc(var(--scan) + 7%));
          mask-image: linear-gradient(100deg, transparent calc(var(--scan) - 7%), #000 calc(var(--scan) - 2%), #000 calc(var(--scan) + 2%), transparent calc(var(--scan) + 7%));
  animation: scan 9s cubic-bezier(.45,.05,.4,1) 2.4s infinite; }
@keyframes scan { 0% { --scan: 40%; } 38% { --scan: 108%; } 100% { --scan: 108%; } }
.hm-wipe { opacity: 0; }
.hm-video { opacity: 0; transition: opacity .25s linear; }
.lens-home.rv-on .hm-video { opacity: 1; }
.lens-home.rv-css .hm-wipe { opacity: 1; --wipe: -20%; animation: wipe 3.4s cubic-bezier(.5,0,.3,1) forwards;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 8%), transparent calc(var(--wipe) + 8%));
          mask-image: linear-gradient(90deg, #000 calc(var(--wipe) - 8%), transparent calc(var(--wipe) + 8%)); }
@keyframes wipe { to { --wipe: 120%; } }
/* the house and the hotspot are buttons */
.home-house { position: absolute; background: none; border: 0; padding: 0; margin: 0; cursor: zoom-in; border-radius: 30px; }
.home-house:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 6px; }
.home-hotspot { position: absolute; left: var(--hx); top: var(--hy); width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: zoom-in; }
.home-hotspot .ring { position: absolute; left: 2px; top: 2px; width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid rgba(246,220,180,.85); box-shadow: 0 0 22px rgba(220,170,106,.55), inset 0 0 18px rgba(220,170,106,.3); animation: ringPulse 4.6s ease-in-out infinite; }
@keyframes ringPulse { 0%, 12% { transform: scale(.55); opacity: .35; } 34% { transform: scale(1.5); opacity: 1; } 60% { transform: scale(1.25); opacity: .9; } 86%, 100% { transform: scale(.55); opacity: .35; } }
.home-hotspot .lbl { position: absolute; left: 82px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: 'Inter', sans-serif; font-size: calc(17px * var(--fs)); font-weight: 600; letter-spacing: .08em;
  color: #f6dcb4; text-shadow: 0 2px 12px rgba(0,0,0,.9); padding: 4px 12px; border-radius: 999px; background: rgba(11,12,15,.55); border: 1px solid rgba(220,170,106,.45); }
.home-hotspot:hover .ring, .home-hotspot:focus-visible .ring { border-color: var(--amber); }
.home-hotspot:focus-visible { outline: none; }
.home-hotspot:focus-visible .lbl { border-color: var(--amber); }
.lens-home.peeking .home-hotspot .ring { animation: none; transform: scale(5); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
/* copy */
.home-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,9,12,.82) 0%, rgba(8,9,12,.62) 28%, rgba(8,9,12,.18) 46%, transparent 58%),
              linear-gradient(0deg, rgba(8,9,12,.55) 0%, transparent 22%); transition: opacity 1.2s var(--ease); }
.home-copy, .home-discovery { position: absolute; left: 7vw; top: 47%; width: min(40rem, 42vw); transform: translateY(-50%); }
.home-copy { transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1.1s var(--ease); }
.home-eyebrow { font-size: calc(15px * var(--fs)); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 14px; }
.home-eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--amber-soft); }
#homeTitle, #discTitle { font-family: 'Fraunces', serif; font-weight: 320; font-size: calc(clamp(3rem, 6.1vw, 6.2rem) * var(--fh)); line-height: 1.0; letter-spacing: -.025em; margin: .32em 0 .36em; color: #f6f0e4;
  font-variation-settings: 'SOFT' 60, 'WONK' 0; text-wrap: balance; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.home-line { font-size: calc(clamp(20px, 1.75vw, 26px) * var(--fs)); line-height: 1.5; color: rgba(246,240,228,.92); margin: 0 0 1.1em; max-width: 34rem; text-wrap: pretty; text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.home-chips { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.home-chips .say-chip { font-size: calc(21px * var(--fs)); min-height: 54px; padding: 0 26px; background: rgba(11,12,15,.45); backdrop-filter: blur(6px); }
.home-chips .say-chip.primary { color: #1a130b; background: linear-gradient(180deg, #f1c98f, #d9a560); border-color: #f1c98f; box-shadow: 0 10px 40px -12px rgba(220,170,106,.7); }
.home-chips .say-chip.primary:hover, .home-chips .say-chip.primary:focus-visible { background: linear-gradient(180deg, #f7d6a4, #e2b172); box-shadow: 0 0 0 3px rgba(246,220,180,.35), 0 10px 40px -10px rgba(220,170,106,.9); }
.home-repeat { margin-top: 18px; background: rgba(11,12,15,.45); }
/* reveal states */
.lens-home.revealing .home-copy { opacity: 0; filter: blur(10px); transform: translate(-24px, -50%); pointer-events: none; }
.lens-home.revealing .home-hotspot, .lens-home.revealing .home-house { opacity: 0; pointer-events: none; }
.lens-home.revealing .hm-scan, .lens-home.revealing .hm-peek { opacity: 0; transition: opacity .3s; }
.lens-home.revealing .home-scrim { opacity: .75; }
.home-discovery { opacity: 0; filter: blur(12px); pointer-events: none; transform: translate(24px, -50%); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.3s var(--ease); }
.lens-home.discovered .home-discovery { opacity: 1; filter: none; transform: translateY(-50%); }
#discTitle { font-style: italic; color: #f6dcb4; text-shadow: 0 0 60px rgba(220,170,106,.35), 0 4px 40px rgba(0,0,0,.6); }
.home-hotspot, .home-house { transition: opacity .5s var(--ease); }


@media (max-height: 820px) and (min-width: 761px) {
  #homeTitle, #discTitle { font-size: calc(clamp(2.8rem, 9.4vh, 5.4rem) * var(--fh)); }
  .home-line { font-size: calc(clamp(19px, 3vh, 24px) * var(--fs)); }
  .home-copy, .home-discovery { top: 45%; }
}
@media (max-aspect-ratio: 1/1) {                 /* portrait: the house on top (sized to the screen width), copy underneath */
  .home-media { left: 0; top: 0; width: 190vw; height: 106.9vw; transform: translate(-88.7vw, calc(62px - 21.4vw));
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .home-scrim { background: linear-gradient(0deg, rgba(8,9,12,.9) 0%, rgba(8,9,12,.55) 50%, transparent 62%); }
  .home-copy, .home-discovery { left: 6vw; right: 6vw; width: auto; top: auto; bottom: 104px; transform: none; }
  .lens-home.revealing .home-copy { transform: translateY(12px); }
  .home-discovery { transform: translateY(12px); }
  .lens-home.discovered .home-discovery { transform: none; }
  .home-eyebrow { font-size: calc(13px * var(--fs)); letter-spacing: .18em; }
  #homeTitle, #discTitle { font-size: calc(clamp(2.2rem, 10vw, 3.4rem) * var(--fh)); margin: .25em 0 .3em; }
  .home-line { font-size: calc(18px * var(--fs)); line-height: 1.45; margin-bottom: .9em; }
  .home-chips .say-chip { font-size: calc(18px * var(--fs)); min-height: 48px; padding: 0 20px; }
  .home-repeat { margin-top: 12px; height: 44px; font-size: calc(16px * var(--fs)); }
  .home-hotspot .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-scan { display: none; } }
.lens-home.peeking .home-hotspot .lbl { opacity: 0; transition: opacity .4s; }
@media (max-aspect-ratio: 1/1) { body[data-lens="home"] .voice .hint { display: none; } }

/* =====================================================================
   v6 — the lingering opening: dusk, the open house (peelable layers, pins, spots),
   the materials palette + detail card, and the living info layer (soft cards at pauses).
   ===================================================================== */
/* dusk: stars twinkle in the sky only, fireflies drift over the garden, the light deepens slowly */
.dusk { position: absolute; inset: 0; pointer-events: none; }
.dusk-stars { position: absolute; inset: 0; opacity: .85; mix-blend-mode: screen;
  background-image: radial-gradient(1.4px 1.4px at 12% 8%, #fff 60%, transparent), radial-gradient(1px 1px at 22% 16%, #f6efe0 60%, transparent),
    radial-gradient(1.2px 1.2px at 35% 5%, #fff 60%, transparent), radial-gradient(1px 1px at 46% 12%, #e9e4ff 60%, transparent),
    radial-gradient(1.6px 1.6px at 58% 7%, #fff 60%, transparent), radial-gradient(1px 1px at 66% 18%, #fff 60%, transparent),
    radial-gradient(1.3px 1.3px at 74% 4%, #f6efe0 60%, transparent), radial-gradient(1px 1px at 83% 11%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 91% 6%, #fff 60%, transparent), radial-gradient(1px 1px at 97% 15%, #e9e4ff 60%, transparent),
    radial-gradient(1px 1px at 5% 20%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 29% 24%, #fff 60%, transparent),
    radial-gradient(1px 1px at 52% 22%, #fff 60%, transparent), radial-gradient(1.1px 1.1px at 88% 21%, #fff 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 16%, transparent 27%); mask-image: linear-gradient(180deg, #000 0%, #000 16%, transparent 27%);
  animation: twinkle 7s ease-in-out infinite alternate; }
.dusk-stars::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 17% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 40% 18%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 63% 13%, #fff 60%, transparent), radial-gradient(1px 1px at 79% 19%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 8% 4%, #fff 60%, transparent), radial-gradient(1px 1px at 94% 2%, #fff 60%, transparent);
  animation: twinkle 5.2s ease-in-out 1.7s infinite alternate-reverse; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.dusk-tint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,18,48,.55), rgba(10,12,30,.25) 45%, rgba(6,7,16,.35));
  mix-blend-mode: multiply; opacity: 0; animation: duskDeepen 150s linear forwards; }
@keyframes duskDeepen { to { opacity: .75; } }
.fireflies { position: absolute; inset: 0; pointer-events: none; }
.fireflies i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff3b0;
  box-shadow: 0 0 8px 3px rgba(255,226,120,.55); opacity: 0; animation: firefly var(--d, 9s) ease-in-out var(--dl, 0s) infinite; }
@keyframes firefly { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 50% { opacity: .25; transform: translate(var(--fx, 20px), var(--fy, -14px)); }
  75% { opacity: .85; } 100% { opacity: 0; transform: translate(calc(var(--fx, 20px) * 1.6), calc(var(--fy, -14px) * .4)); } }
.lens-home:not(.open) .fireflies { opacity: .7; }

/* the open house: state images cross-fade; the lifted layer floats up and fades in place */
.hm-anat, .hm-hover, .hm-uses, .hm-lift { opacity: 0; }
.lens-home.open .hm-anat:not(.hm-anat-next) { opacity: 1; }
.lens-home.open .hm-video, .lens-home.open .hm-wipe { opacity: 0; transition: opacity .6s linear; }
.hm-anat-next { transition: opacity .9s var(--ease); }
.lens-home.open .hm-anat-next.show { opacity: 1; }
.hm-lift { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.hm-lift.up { opacity: 0; transform: translateY(-7%); }
.hm-lift.at { opacity: 1; transform: none; }
.hm-lift.from { opacity: 0; transform: translateY(-7%); transition: none; }
.hm-hover { transition: opacity .35s var(--ease); filter: sepia(1) saturate(3.2) hue-rotate(-12deg) brightness(1.35); mix-blend-mode: screen; }
.lens-home.open .hm-hover.show { opacity: .55; }
.lens-home.open .hm-hover.ghost { filter: brightness(1.6) saturate(0) ; opacity: .22; }
.hm-uses { mix-blend-mode: screen; filter: blur(1.5px) drop-shadow(0 0 10px rgba(255,190,110,.9)); transition: opacity .6s var(--ease); }
.lens-home.open .hm-uses.show { animation: usesPulse 2.6s ease-in-out infinite; }
@keyframes usesPulse { 0%, 100% { opacity: .38; } 50% { opacity: .9; } }

/* pins: one per layer, fixed to its anchor; hollow when the layer is peeled back */
.anat-pins, .anat-spots { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease) .2s; }
.lens-home.open .anat-pins, .lens-home.open .anat-spots { opacity: 1; }
.lens-home.open .anat-pins .pin { pointer-events: auto; }
.pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-13px, -50%); font-family: 'Inter', sans-serif; color: #f6dcb4; min-height: 44px; }
.pin .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle, #f7d6a4 0 34%, rgba(220,170,106,.35) 36% 100%);
  border: 2px solid rgba(246,220,180,.9); box-shadow: 0 0 18px rgba(220,170,106,.6); transition: background .4s, transform .3s var(--ease); }
.pin .lbl { font-size: calc(15px * var(--fs)); font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; background: rgba(11,12,15,.72); border: 1px solid rgba(220,170,106,.45);
  white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.8); transition: border-color .3s, background .3s; }
.pin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -50%); }
.pin:hover .dot, .pin:focus-visible .dot { transform: scale(1.18); }
.pin:hover .lbl, .pin:focus-visible .lbl, .pin.sel .lbl { border-color: var(--amber); background: rgba(40,30,18,.85); }
.pin:focus-visible { outline: none; }
.pin.peeled .dot { background: rgba(11,12,15,.4); border-style: dashed; box-shadow: none; }
.pin.peeled .lbl { color: rgba(246,220,180,.72); font-weight: 500; }
.pin.peeled .lbl::after { content: ' · ' attr(data-peeled); font-weight: 400; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(246,220,180,.85); background: rgba(11,12,15,.55); color: #f6dcb4; font: 600 calc(13px * var(--fu)) 'Inter', sans-serif; pointer-events: auto;
  box-shadow: 0 0 14px rgba(220,170,106,.45); animation: spotIn .5s var(--ease) both; }
.spot.sel, .spot:hover, .spot:focus-visible { background: #f1c98f; color: #1a130b; outline: none; }
@keyframes spotIn { from { opacity: 0; transform: scale(.4); } }
.info-dot { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 14px; height: 14px; margin: -7px; border-radius: 50%; pointer-events: none;
  background: #fff3c4; box-shadow: 0 0 0 0 rgba(255,220,150,.7); opacity: 0; transition: opacity .6s; }
.info-dot.show { opacity: 1; animation: infoDot 2.2s ease-out infinite; }
@keyframes infoDot { 0% { box-shadow: 0 0 0 0 rgba(255,220,150,.7); } 100% { box-shadow: 0 0 0 26px rgba(255,220,150,0); } }

/* the discovery block becomes the open-house panel */
.open-panel { display: none; }
.lens-home.open .open-panel { display: block; animation: panelIn .9s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.lens-home.open .home-discovery { top: 50%; pointer-events: auto; max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.lens-home.open #discTitle { font-size: calc(clamp(2.2rem, 3.6vw, 3.4rem) * var(--fh)); margin: .22em 0 .25em; }
.lens-home.open #discLine { font-size: calc(clamp(17px, 1.3vw, 20px) * var(--fs)); margin-bottom: .8em; }
.op-row { margin: 0 0 12px; }
.op-k { font-size: calc(13px * var(--fs)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(236,230,218,.72); margin-bottom: 7px; }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chip { font: 500 calc(16px * var(--fs)) 'Inter', sans-serif; color: #f4efe6; min-height: 42px; padding: 0 15px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,12,15,.5); border: 1.5px solid rgba(236,230,218,.3); transition: border-color .3s, background .3s; }
.op-chip:hover, .op-chip:focus-visible, .op-chip.sel { border-color: var(--amber); background: rgba(220,170,106,.14); outline: none; }
.op-chip.peeled { color: rgba(244,239,230,.7); border-style: dashed; }
.op-chip .sw { width: 20px; height: 20px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.sw.plywood { background: repeating-linear-gradient(180deg, #e8c890 0 3px, #c79b5c 3px 4px, #efd6a6 4px 7px, #b98a4d 7px 8px); }
.sw.timber { background: radial-gradient(circle at 20% 110%, transparent 0 3px, #9c6b36 3.5px 4.5px, transparent 5px 7px, #9c6b36 7.5px 8.3px, transparent 9px 11px, #9c6b36 11.5px 12.2px, transparent 13px), linear-gradient(90deg, #d9a766, #c98f4f); }
.sw.concrete { background: radial-gradient(circle at 30% 30%, #9a9c9e 0 1px, transparent 1.5px) 0 0/5px 5px, radial-gradient(circle at 70% 60%, #6f7274 0 1px, transparent 1.5px) 0 0/7px 7px, #b3b4b3; }
.op-card { position: relative; margin: 4px 0 14px; padding: 16px 18px 14px; border-radius: 18px; background: rgba(16,17,22,.86); border: 1px solid rgba(220,170,106,.35);
  box-shadow: 0 16px 48px -18px rgba(0,0,0,.9); animation: panelIn .5s var(--ease) both; }
.op-card[hidden] { display: none; }
.op-card h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: calc(26px * var(--fs)); margin: 0 0 6px; color: #f6f0e4; display: flex; align-items: center; gap: 10px; }
.op-card p { font-size: calc(17px * var(--fs)); line-height: 1.5; color: rgba(246,240,228,.92); margin: 0 0 10px; }
.op-card .oc-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: rgba(236,230,218,.72); font-size: calc(24px * var(--fs)); cursor: pointer; }
.op-card .oc-close:hover, .op-card .oc-close:focus-visible { color: #fff; background: rgba(236,230,218,.08); outline: none; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.oc-k { font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(236,230,218,.66); margin: 8px 0 6px; }
.oc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-chip { font: 500 calc(15px * var(--fs)) 'Inter', sans-serif; color: #f4efe6; min-height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer; background: rgba(236,230,218,.05);
  border: 1.2px solid rgba(236,230,218,.26); }
.oc-chip:hover, .oc-chip:focus-visible, .oc-chip.sel { border-color: var(--amber); background: rgba(220,170,106,.14); outline: none; }
.oc-chip.sec::before { content: '§ '; color: var(--amber); }
.oc-obj { font-size: calc(16px * var(--fs)); line-height: 1.45; color: rgba(246,240,228,.9); margin: 8px 0 0; padding: 8px 12px; border-left: 2px solid var(--amber); background: rgba(220,170,106,.06); border-radius: 0 10px 10px 0; }
.oc-obj b { color: #f6dcb4; font-weight: 600; }
.oc-tabs { display: flex; gap: 4px; margin: 4px 0 10px; border-bottom: 1px solid rgba(236,230,218,.14); }
.oc-tab { font: 500 calc(16px * var(--fs)) 'Inter', sans-serif; color: rgba(236,230,218,.72); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; min-height: 42px; cursor: pointer; margin-bottom: -1px; }
.oc-tab[aria-selected="true"] { color: #f6dcb4; border-bottom-color: var(--amber); }
.oc-tab:hover, .oc-tab:focus-visible { color: #fff; outline: none; }
.oc-note { font-size: calc(13px * var(--fs)); letter-spacing: .12em; text-transform: uppercase; color: #f1c98f; margin: -4px 0 8px; display: flex; align-items: center; gap: 8px; }
.oc-note::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #ffc27a; box-shadow: 0 0 10px #ffc27a; animation: usesPulse 2.6s infinite; }
.oc-link, .ic-link { display: inline-flex; align-items: center; gap: 6px; font: 500 calc(15px * var(--fs)) 'Inter', sans-serif; color: #f1c98f; text-decoration: none; min-height: 40px;
  border-bottom: 1px solid rgba(241,201,143,.35); }
.oc-link:hover, .oc-link:focus-visible, .ic-link:hover, .ic-link:focus-visible { color: #fff; border-bottom-color: #fff; outline: none; }
.oc-link small, .ic-link small { color: rgba(236,230,218,.6); font-size: calc(13px * var(--fs)); }
.op-next { margin-top: 2px; display: inline-flex; align-items: center; gap: 10px; font-size: calc(19px * var(--fs)); min-height: 52px; padding: 0 24px;
  color: #1a130b; background: linear-gradient(180deg, #f1c98f, #d9a560); border-color: #f1c98f; box-shadow: 0 10px 40px -12px rgba(220,170,106,.7); }
.op-next:hover, .op-next:focus-visible { background: linear-gradient(180deg, #f7d6a4, #e2b172); }
.op-next .arr { font-size: calc(22px * var(--fs)); transition: transform .3s var(--ease); }
.op-next:hover .arr { transform: translateX(4px); }



/* the living info layer: one soft card, bottom right, only at pauses */
.info-card { position: fixed; right: 36px; bottom: 34px; z-index: 11; width: min(360px, calc(100vw - 32px)); display: flex; gap: 14px; padding: 16px 44px 14px 16px;
  border-radius: 20px; background: rgba(18,19,24,.9); border: 1px solid rgba(220,170,106,.32); box-shadow: 0 20px 60px -20px rgba(0,0,0,.9);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.info-card[hidden] { display: none; }
.info-card.show { opacity: 1; transform: none; }
.ic-visual { width: 64px; height: 64px; flex: none; border-radius: 14px; background: rgba(220,170,106,.08); position: relative; overflow: hidden; }
.ic-visual svg { width: 100%; height: 100%; }
.ic-eyebrow { font-size: calc(12px * var(--fu)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.ic-title { font-family: 'Fraunces', serif; font-size: calc(20px * var(--fh)); line-height: 1.2; color: #f6f0e4; margin-bottom: 6px; }
.ic-text { font-size: calc(15.5px * var(--fs)); line-height: 1.45; color: rgba(246,240,228,.9); margin: 0 0 4px; }
.ic-close { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: rgba(236,230,218,.7); font-size: calc(22px * var(--fs)); cursor: pointer; }
.ic-close:hover, .ic-close:focus-visible { color: #fff; background: rgba(236,230,218,.08); outline: none; }

/* spark visuals (pure SVG + CSS, no images) */
.ic-visual .sp { stroke: #f1c98f; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-visual .sp-fill { fill: #f1c98f; }
.ic-visual .anim-slide { animation: spSlide 3.2s ease-in-out infinite alternate; }
.ic-visual .anim-spin { transform-origin: 32px 32px; animation: spSpin 12s linear infinite; }
.ic-visual .anim-pulse { transform-origin: 32px 32px; animation: spPulse 2.4s ease-in-out infinite; }
.ic-visual .anim-draw { stroke-dasharray: 120; stroke-dashoffset: 120; animation: spDraw 3s ease-in-out infinite alternate; }
.ic-visual .anim-rise { animation: spRise 3s ease-in-out infinite; }
@keyframes spSlide { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spPulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
@keyframes spRise { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.navbtn.quiet .q-slash { opacity: 0; transition: opacity .3s; }
.navbtn.quiet[aria-pressed="true"] { border-color: var(--amber); color: #f6dcb4; }
.navbtn.quiet[aria-pressed="true"] .q-slash { opacity: 1; }

@media (max-height: 820px) and (min-width: 761px) {
  .lens-home.open .home-discovery { top: 47%; max-height: calc(100vh - 170px); }
  .lens-home.open #discTitle { font-size: calc(clamp(2rem, 6vh, 3rem) * var(--fh)); }
  .op-card { padding: 12px 14px 10px; }
  .op-card p { font-size: calc(16px * var(--fs)); margin-bottom: 8px; }
  .op-row { margin-bottom: 9px; }
  .info-card { bottom: 24px; right: 28px; }
}
@media (max-aspect-ratio: 1/1) {
  .lens-home.open .home-discovery { top: calc(62px + 63vw); bottom: 96px; max-height: none; }
  .lens-home.open #discTitle { font-size: calc(clamp(1.8rem, 8vw, 2.6rem) * var(--fh)); }
  .pin .lbl { display: none; }
  .pin { transform: translate(-13px, -50%); }
  .info-card { left: 12px; right: 12px; width: auto; bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .fireflies, .dusk-stars::after { display: none; } .dusk-tint { animation: none; opacity: .4; } }
.lens-home.open.carded .home-discovery > .home-eyebrow, .lens-home.open.carded #discTitle, .lens-home.open.carded #discLine { display: none; }
.op-chips.flash .op-chip { animation: chipFlash 1.2s var(--ease) 2; }
@keyframes chipFlash { 50% { border-color: var(--amber); background: rgba(220,170,106,.22); box-shadow: 0 0 24px -4px rgba(220,170,106,.7); } }
body.info-on .voice .hint { opacity: 0; transition: opacity .5s; }
.op-card h3 .oc-peel { margin-left: auto; margin-right: 34px; font-size: calc(15px * var(--fs)); min-height: 38px; padding: 0 14px; }
.oc-chip.obj .n { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: rgba(241,201,143,.2); color: #f6dcb4; font-size: calc(12px * var(--fs)); font-weight: 700; }
.op-chip { font-size: calc(15px * var(--fs)); padding: 0 13px; min-height: 40px; }
.op-chip.allback { border-style: dashed; color: #f6dcb4; }
.op-chip[hidden] { display: none; }
@media (max-width: 1500px) { .navbtn.quiet .navlbl { display: none; } .navbtn.quiet { padding: 0 12px; } }

/* ================= v7 ================= */
/* extra-large text (A+ / "extra large text"): body text 2× the normal size, headings a little less, controls a bit */
body.big { --fs: 2; --fh: 1.4; --fu: 1.3; }
body.big .lens-text { max-height: calc(100vh - 236px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.big .body-text p, body.big .body-detail { max-width: min(62rem, 86vw); max-height: none; }
body.big .lens-text { width: min(1100px, 88vw); }
body.big .home-copy, body.big .home-discovery { width: min(58rem, 60vw); max-height: calc(100vh - 190px); overflow-y: auto; scrollbar-width: thin; }
body.big .lens-home.open .home-discovery { max-height: calc(100vh - 190px); }
body.big .term-card { max-height: calc(100vh - 190px); overflow-y: auto; scrollbar-width: thin; }
body.big .info-card { width: min(560px, calc(100vw - 32px)); }
body.big .op-card { max-width: none; }
body.big .story-line { max-width: 90vw; }
body.big .hint { display: none; }
body.big .transcript { max-width: 70vw; }
body.big .mic-label .linkish { display: none; }
@media (max-width: 760px) {
  body.big { --fs: 1.7; --fh: 1.15; --fu: 1.1; }
  body.big .home-copy, body.big .home-discovery { width: auto; max-height: calc(100vh - 230px); }
}

/* Home before Back / Forward (bottom left); settings bottom right */
.navbtn.home { border-color: rgba(241,201,143,.55); color: #f6e7cf; }
.navbtn.home svg { width: 22px; height: 22px; }
.prefnav { position: fixed; right: 40px; bottom: 30px; z-index: 12; display: flex; gap: 10px; align-items: center; transition: opacity 1.6s var(--ease); }
.booting .prefnav { opacity: 0; }
.navbtn.sound .q-slash { opacity: 0; transition: opacity .3s; }
.navbtn.sound.off { color: rgba(236,230,218,.7); }
.navbtn.sound.off .q-slash { opacity: 1; }
.navbtn.sound[aria-pressed="true"] { border-color: rgba(220,170,106,.55); }
@media (max-width: 1500px) { .navbtn.sound .navlbl { display: none; } .navbtn.sound { padding: 0 12px; } }
.info-card { bottom: 96px; }
@media (max-height: 820px) and (min-width: 761px) { .prefnav { bottom: 22px; right: 32px; } .info-card { bottom: 84px; } }
@media (max-width: 760px) {
  .prefnav { right: 12px; bottom: auto; top: 64px; gap: 6px; }
  .where { top: 122px; }
  .toast { top: 170px; }
}

/* the Begin gate */
.begin-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(ellipse at 60% 40%, rgba(24,26,34,.55), rgba(6,7,10,.86));
  backdrop-filter: blur(10px); transition: opacity .7s var(--ease), visibility .7s; }
.begin-gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.begin-gate[hidden] { display: none; }
.bg-card { width: min(640px, 88vw); text-align: center; padding: 40px 36px 34px; border-radius: 28px; background: rgba(16,17,22,.78); border: 1px solid rgba(220,170,106,.28); box-shadow: 0 30px 90px -30px #000; }
.bg-card h1 { margin: .25em 0 .35em; }
.bg-text { font-size: calc(21px * var(--fs)); line-height: 1.5; color: rgba(246,240,228,.9); margin: 0 auto 26px; max-width: 34em; }
.begin-btn { display: inline-flex; align-items: center; gap: 14px; font: inherit; font-size: calc(26px * var(--fu)); font-weight: 600; color: #1a130b; min-height: 68px; padding: 0 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid #f1c98f; background: linear-gradient(180deg, #f1c98f, #d9a560); box-shadow: 0 14px 50px -14px rgba(220,170,106,.9); }
.begin-btn:hover, .begin-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(246,220,180,.4), 0 14px 50px -10px rgba(220,170,106,1); }
.begin-btn .arr { transition: transform .3s var(--ease); }
.begin-btn:hover .arr { transform: translateX(4px); }
.bg-note { margin: 20px 0 0; font-size: calc(15px * var(--fs)); color: rgba(236,230,218,.66); }
body.gated .voice, body.gated .histnav, body.gated .prefnav, body.gated .where { opacity: 0; pointer-events: none; }
body.gated .home-copy { opacity: .0; }

/* the Tutorial button on the front page (pulses gently until used or dismissed) */
.tut-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.tut-btn { display: inline-flex; align-items: center; gap: 14px; font: inherit; color: #f6efe2; cursor: pointer; min-height: 64px; padding: 8px 28px 8px 16px; border-radius: 999px;
  background: rgba(24,26,34,.72); border: 1.5px solid rgba(241,201,143,.75); backdrop-filter: blur(6px); text-align: left; }
.tut-btn svg { width: 38px; height: 38px; flex: none; fill: none; stroke: #f1c98f; stroke-width: 1.8; stroke-linejoin: round; }
.tut-btn svg path { fill: #f1c98f; stroke: none; }
.tut-txt { display: flex; flex-direction: column; line-height: 1.15; }
#tutorialLbl { font-size: calc(23px * var(--fs)); font-weight: 600; }
.tut-txt small { font-size: calc(14px * var(--fs)); color: rgba(236,230,218,.72); margin-top: 3px; }
.tut-btn:hover, .tut-btn:focus-visible { outline: none; border-color: #f7d6a4; background: rgba(220,170,106,.16); }
.tut-btn.pulse { animation: tutPulse 2.2s ease-in-out infinite; }
@keyframes tutPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(241,201,143,.0), 0 0 0 rgba(241,201,143,0); border-color: rgba(241,201,143,.75); }
  50% { box-shadow: 0 0 0 7px rgba(241,201,143,.16), 0 0 34px rgba(241,201,143,.45); border-color: #f7d6a4; } }
@media (prefers-reduced-motion: reduce) { .tut-btn.pulse { animation-duration: 4s; } }
.tut-dismiss { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(236,230,218,.25); background: rgba(11,12,15,.4); color: rgba(236,230,218,.75); font-size: 20px; cursor: pointer; }
.tut-dismiss[hidden] { display: none; }
.tut-dismiss:hover, .tut-dismiss:focus-visible { color: #fff; border-color: rgba(236,230,218,.6); outline: none; }
.lens-home.revealing .tut-row { pointer-events: none; }

/* the tour: a spotlight on the real control + a caption bubble naming who speaks */
.tut-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.tut-layer.on { opacity: 1; }
.tut-layer[hidden] { display: none; }
.tut-spot { position: fixed; border-radius: 999px; box-shadow: 0 0 0 3px rgba(247,214,164,.95), 0 0 30px 6px rgba(241,201,143,.55), 0 0 0 200vmax rgba(5,6,9,.5);
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease), border-radius .6s var(--ease), opacity .4s; animation: tutSpot 1.8s ease-in-out infinite; }
@keyframes tutSpot { 50% { box-shadow: 0 0 0 5px rgba(247,214,164,1), 0 0 44px 10px rgba(241,201,143,.7), 0 0 0 200vmax rgba(5,6,9,.5); } }
.tut-bubble { position: fixed; width: min(440px, calc(100vw - 28px)); padding: 16px 18px 12px; border-radius: 20px; pointer-events: auto;
  background: rgba(18,19,24,.95); border: 1px solid rgba(220,170,106,.4); box-shadow: 0 24px 70px -20px #000; transition: left .6s var(--ease), top .6s var(--ease); }
.tut-bubble.in { animation: tutIn .5s var(--ease); }
@keyframes tutIn { from { opacity: 0; transform: translateY(8px); } }
.tut-who { display: inline-flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fu)); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f1c98f; margin-bottom: 6px; }
.tut-who::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: tutTalk .9s ease-in-out infinite; }
.tut-who[data-voice="narrator"] { color: #9fd0e6; }
@keyframes tutTalk { 50% { transform: scale(.6); opacity: .6; } }
.tut-text { margin: 0 0 10px; font-size: calc(18px * var(--fs)); line-height: 1.45; color: #f6f0e4; }
.tut-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tut-step { font-size: calc(13px * var(--fu)); color: rgba(236,230,218,.62); letter-spacing: .08em; }
.tut-skip { font: inherit; font-size: calc(15px * var(--fu)); font-weight: 600; color: #f6efe2; background: rgba(236,230,218,.06); border: 1px solid rgba(236,230,218,.3); border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; }
.tut-skip:hover, .tut-skip:focus-visible { border-color: var(--amber); outline: none; }
body.touring .voice .hint { opacity: 0; }

/* explore ("show me more"): 2× orbs and labels (sizes set by layoutBubbles) */
.bubble .name { font-size: var(--nfs, calc(32px * var(--fs))); }
.bubble .inner { transition: transform 1.1s var(--ease), opacity .9s, filter .9s; gap: 10px; }
.bubble .name { text-shadow: 0 2px 12px rgba(0,0,0,.8); }
body.big .home-copy, body.big .home-discovery { top: 96px; transform: none; max-height: calc(100vh - 96px - 118px); padding-right: 10px; }
body.big .lens-home.revealing .home-copy { transform: translateX(-24px); }
body.big .lens-home.open .home-discovery { top: 96px; max-height: calc(100vh - 96px - 118px); }
@media (max-width: 760px) { body.big .home-copy, body.big .home-discovery { top: 170px; bottom: 96px; max-height: none; } }
body.mic-off .mic-label #typeBtn, body.mic-off .mic-label .sep { display: none; }
@media (max-width: 1500px) { .mic-label { letter-spacing: .08em; } }
body.big .lens-home.discovered .home-discovery, body.big .lens-home .home-copy { transform: none; }
body.big .lens-home.revealing .home-copy { transform: translateX(-24px); }
/* v7: during the tutorial the lens indicator is shown on the front page too, so the "lens" step points at something real */
body.touring[data-lens="home"] .where { opacity: 1; }
