/* =============================================================================
   Homepage: one evening, sunset to night.
   Without .pinmode (reduced motion, no JS) every chapter falls back to plain stacked
   sections over a still painting, so nothing depends on the choreography.
   ========================================================================== */

.page-home { background: #0d0d14; }
.page-home main, .page-home .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- loader */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #0b0b11; color: var(--cream); }
.loader__ember { width: 14px; height: 14px; position: relative; }
.loader__ember span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #fff3d6 0%, #F0B24A 40%, rgba(184, 92, 50, 0) 72%); box-shadow: 0 0 40px 12px rgba(217, 154, 50, .45); animation: emb 1.6s ease-in-out infinite alternate; }
@keyframes emb { from { transform: scale(.8); opacity: .75; } to { transform: scale(1.25); opacity: 1; } }
.loader__count { position: absolute; left: var(--gutter); bottom: 1.25rem; margin: 0; font-family: var(--f-display); font-size: clamp(4rem, 2rem + 9vw, 10rem); line-height: .8; font-variant-numeric: tabular-nums; color: rgba(244, 235, 221, .9); }
.loader__line { position: absolute; right: var(--gutter); bottom: 2rem; margin: 0; font-family: var(--f-hand); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--amber); opacity: .85; }
.loaded .loader { pointer-events: none; }

/* ---------------------------------------------------------------- the world */
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0d0d14; }
.world__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.world__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.world.gl-on .world__gl { opacity: 1; }
.world.gl-on .world__still { visibility: hidden; }
.world__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 16, .55) 0%, rgba(10, 10, 16, 0) 26%, rgba(10, 10, 16, 0) 60%, rgba(10, 10, 16, .7) 100%); }
.world__dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(75% 60% at 50% 48%, rgba(10, 9, 15, .72), rgba(10, 9, 15, .25) 80%); }
.world__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("../img/film-grain.png"); }
.fx .world__grain { animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }

/* ---------------------------------------------------------------- cursor + progress */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--amber-hi); box-shadow: 0 0 14px 3px rgba(240, 178, 74, .55); }
.cursor__ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(244, 235, 221, .45);
  display: grid; place-items: center; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s, border-color .45s; }
.cursor__ring em { font-style: normal; font-family: var(--f-ui); font-size: .625rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #1E1513; opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(240, 178, 74, .8); }
.cursor.has-label .cursor__ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--amber); border-color: var(--amber); }
.cursor.has-label .cursor__ring em { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.on-paper .cursor__ring { border-color: rgba(48, 35, 31, .45); }

.progress { position: fixed; right: 14px; top: 50%; z-index: 90; width: 1px; height: 22vh; transform: translateY(-50%); background: rgba(244, 235, 221, .14); display: none; }
.pinmode .progress { display: block; }
.progress span { position: absolute; inset: 0; background: var(--amber); transform-origin: top; transform: scaleY(0); }
.progress span::after { content: ""; position: absolute; left: -2.5px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-hi); box-shadow: 0 0 10px 2px rgba(240, 178, 74, .7); }
@media (max-width: 760px) { .progress { right: 6px; } }

/* ---------------------------------------------------------------- 01 opening */
.op { position: relative; color: var(--on-dark); }
.op-panel { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem; text-align: center; }
.pinmode .op__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.pinmode .op-panel { position: absolute; inset: 0; min-height: 0; }

.op-hero { grid-template-rows: auto 1fr auto auto; align-content: stretch; gap: 1rem; padding-bottom: 1.75rem; }
.op-hero__by { margin: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--cream); align-self: start; }
.op-hero__by span { color: var(--amber); }
.op-title { pointer-events: none; padding-bottom: 16vh; }
.op-hero__title { margin: 0; align-self: center; justify-self: center; width: min(84vw, 50vh, 640px); --wipe: 1;
  -webkit-mask-image: linear-gradient(118deg, #000 calc(var(--wipe) * 150% - 30%), transparent calc(var(--wipe) * 150%)); mask-image: linear-gradient(118deg, #000 calc(var(--wipe) * 150% - 30%), transparent calc(var(--wipe) * 150%));
  filter: drop-shadow(0 10px 50px rgba(0, 0, 0, .45)); will-change: transform; }
.op-hero__title img { width: 100%; height: auto; }
.op-hero__sub { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, .9rem + 1.1vw, 2rem); line-height: 1.3; color: var(--cream); text-shadow: 0 2px 24px rgba(8, 8, 14, .85); max-width: 34rem; justify-self: center; }
.op-hero__foot { width: min(100%, var(--w-wide)); display: flex; justify-content: space-between; align-items: end; gap: 2rem; text-align: left; }
.op-hero__copy { margin: 0; max-width: 21rem; font-size: var(--fs-small); color: var(--on-dark-soft); text-shadow: 0 1px 14px rgba(8, 8, 14, .9); }
.op-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-soft); }
.op-cue i { width: 1px; height: 44px; background: linear-gradient(var(--amber), transparent); position: relative; overflow: hidden; }
.fx .op-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: drip 2.4s var(--ease) infinite; }

.op-chair__title { font-size: clamp(3.4rem, 1rem + 11vw, 13.5rem); font-weight: 500; line-height: .9; letter-spacing: -.035em; text-shadow: 0 6px 60px rgba(0, 0, 0, .6); max-width: 12ch; }
.op-chair__title .w { display: inline-block; }
.op-chair__title em { color: var(--amber-hi); font-weight: 400; }
.op-lines { gap: 4rem; }
.op-line { margin: 0; max-width: 24ch; font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 3vw, 4rem); line-height: 1.12; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(8, 6, 12, .95), 0 0 2px rgba(8, 6, 12, .7); }
.op-line em { color: var(--amber-hi); }
.pinmode .op-line { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100% - 2 * var(--gutter), 60rem); }
.op-line .wd { display: inline-block; }

@media (max-width: 760px) {
  .op-hero__foot { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .op-hero__foot .btn-row { width: 100%; }
  .op-hero__copy { display: none; }
  .op-cue { display: none; }
  .op-hero__title { width: min(80vw, 46vh); }
}

/* ---------------------------------------------------------------- 03 book */
.bk { position: relative; color: var(--on-dark); background: linear-gradient(180deg, #121220 0%, #201b2d 50%, #2f2335 100%); overflow: hidden; }
.bk__pin { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 4rem);
  width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; padding-block: calc(var(--nav-h) + 2rem) 3rem; }
.bk__glow { position: absolute; left: 25%; top: 55%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 154, 50, .28), rgba(184, 92, 50, .1) 55%, transparent 75%); }
.bk__big { position: absolute; left: 0; top: 50%; transform: translateY(-50%); margin: 0; white-space: nowrap; pointer-events: none; z-index: 0;
  font-family: var(--f-display); font-style: italic; font-size: clamp(8rem, 22vw, 26rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244, 235, 221, .09); }
.bk__stage { position: relative; z-index: 1; height: min(78vh, 760px); display: grid; place-items: center; }
.bk__stage .book__still { position: relative; width: min(64%, 330px); transform: perspective(1400px) rotateY(-18deg) rotateX(4deg); box-shadow: 30px 40px 60px -20px rgba(0, 0, 0, .75); border-radius: 2px 5px 5px 2px; }
.bk__stage canvas { position: absolute; inset: -10% -20%; width: 140%; max-width: none; height: 120%; opacity: 0; transition: opacity 1s var(--ease); touch-action: pan-y; }
.bk__stage.gl-on canvas { opacity: 1; }
.bk__stage.gl-on .book__still { opacity: 0; }
.bk__steps { position: relative; z-index: 1; display: grid; gap: 4rem; }
.bk-step .h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.5rem); margin-bottom: .75rem; }
.bk-step__sub { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lede); color: var(--amber-hi); line-height: 1.35; max-width: 28rem; }
.bk-step__lede { font-family: var(--f-display); font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.4rem); line-height: 1.1; color: var(--cream); margin-bottom: 1.25rem; max-width: 18ch; }
.bk-step p:not([class]) { color: var(--on-dark-soft); max-width: 30rem; }
.bk-step .btn-row { margin-top: 2rem; }
.bk__dots { display: none; }
.pinmode .bk__steps { display: block; height: 60vh; }
.pinmode .bk-step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.pinmode .bk__dots { display: flex; position: absolute; right: 0; bottom: 2.5rem; gap: .6rem; }
.bk__dots i { width: 28px; height: 2px; background: rgba(244, 235, 221, .2); position: relative; overflow: hidden; }
.bk__dots i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(var(--f, 0)); transform-origin: left; }
@media (max-width: 860px) {
  .bk__pin { grid-template-columns: 1fr; align-content: start; gap: 0; padding-top: calc(var(--nav-h) + .5rem); }
  .bk__stage { height: 46vh; }
  .pinmode .bk__steps { height: 44vh; }
  .pinmode .bk-step { top: 0; transform: none; }
  .bk-step__lede { font-size: 1.9rem; }
  .bk__glow { left: 50%; top: 30%; }
  .pinmode .bk__dots { bottom: 1.25rem; left: 0; }
}

/* ---------------------------------------------------------------- 04 themes: horizontal */
.th { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.th__pin { position: relative; }
.th__track { display: flex; flex-direction: column; gap: 4rem; padding: var(--section) var(--gutter); }
.pinmode .th__pin { height: 100vh; height: 100svh; }
.pinmode .th__track { flex-direction: row; align-items: center; height: 100%; width: max-content; gap: clamp(2.5rem, 6vw, 7rem); padding: calc(var(--nav-h) + 1rem) 12vw 3rem var(--gutter); will-change: transform; }
.th-intro { width: min(36rem, 84vw); flex: none; }
.th-intro .display { margin-bottom: 1.5rem; }
.th-intro .muted { max-width: 28rem; }
.th-intro__hint { display: none; margin-top: 2rem; align-items: center; gap: .6rem; font-size: .6875rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-on-paper); }
.pinmode .th-intro__hint { display: inline-flex; }
.th-intro__hint .icon { width: 1.1rem; height: 1.1rem; }
.th-card { flex: none; width: clamp(17rem, 28vw, 27rem); display: grid; gap: 1.5rem; position: relative; }
/* pinned: the card (picture 4:5 + its line of text + the low card's drop) must fit the screen height too,
   so laptops with short screens (1536 x 730, 1366 x 650 ...) get smaller cards instead of cut-off text */
.pinmode .th-card { width: min(clamp(17rem, 28vw, 27rem), max(12rem, calc((91vh - 19rem) * .8))); }
.pinmode .th-card--low { transform: translateY(clamp(1.5rem, 9vh - 2rem, 6rem)); }
.th-card__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--brown); box-shadow: var(--shadow-deep); }
.th-card__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; will-change: transform; }
.th-card__n { font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--accent-on-paper); }
.th-card__word { font-family: var(--f-display); font-size: clamp(2.6rem, 1.6rem + 3.4vw, 5rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: .35rem 0 .75rem; }
.th-card__text p { color: var(--ink-soft); max-width: 22rem; margin: 0; }
.pinmode .th-card__word { position: absolute; left: clamp(.75rem, 6%, 1.5rem); top: 34%; white-space: nowrap; margin: 0; font-size: clamp(3.4rem, 2rem + 4.6vw, 7rem); color: var(--cream); mix-blend-mode: normal; text-shadow: 0 4px 40px rgba(0, 0, 0, .45); pointer-events: none; }
.th__bar { display: none; }
.pinmode .th__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; height: 1px; background: var(--line-paper); }
.th__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .th-card { width: 76vw; }
  .pinmode .th-card { width: min(76vw, max(12rem, calc((91vh - 19rem) * .8))); }
  .pinmode .th-card--low { transform: translateY(4vh); }
  .pinmode .th__track { padding-right: 20vw; }
}

/* ---------------------------------------------------------------- 05 for you */
.fy { position: relative; color: var(--cream); background: radial-gradient(70% 50% at 50% 100%, rgba(110, 89, 111, .35), transparent 70%), linear-gradient(180deg, #2f2335 0%, #171B27 30%, #12141d 100%); overflow: hidden; text-align: center; }
.fy__pin { position: relative; padding: var(--section) var(--gutter); display: grid; justify-items: center; gap: 3rem; }
.fy__stars { position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image:
  radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 70%, #fffb 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 36% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 48% 84%, #fff9 50%, transparent 51%),
  radial-gradient(1px 1px at 61% 30%, #fffc 50%, transparent 51%), radial-gradient(1.2px 1.2px at 73% 62%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 86% 18%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 92% 78%, #fff8 50%, transparent 51%); background-size: 520px 520px; }
.fy__title { font-size: var(--fs-label); font-family: var(--f-ui); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.fy__title em { font-style: normal; }
.fy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; max-width: 60rem; }
.fy__list li { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 4.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.02em; }
.fy__list li:last-child { font-style: italic; color: var(--amber-hi); }
.fy__end { display: grid; justify-items: center; gap: 1rem; }
.fy__end .icon { width: 5rem; height: 2.5rem; color: var(--amber); stroke-width: 1.1; }
.fy__end .hand { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); --wipe: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--wipe) * 130% - 15%), transparent calc(var(--wipe) * 130%)); mask-image: linear-gradient(90deg, #000 calc(var(--wipe) * 130% - 15%), transparent calc(var(--wipe) * 130%)); padding: 0 .2em; }
.fy__count { display: none; }
.pinmode .fy__pin { height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem; grid-template-rows: auto 1fr; }
.pinmode .fy__list { position: relative; width: 100%; height: 100%; }
.pinmode .fy__list li { position: absolute; left: 50%; top: 50%; width: min(100%, 60rem); transform: translate(-50%, -50%); }
.pinmode .fy__end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pinmode .fy__count { display: block; position: absolute; right: var(--gutter); bottom: 2rem; font-size: .75rem; letter-spacing: .2em; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.fy__count span { color: var(--amber); }

/* ---------------------------------------------------------------- 06 meet */
.me { position: relative; background: var(--paper); color: var(--ink); padding: calc(var(--section) * .6) 0 var(--section); overflow: hidden; }
.me__marquee { overflow: hidden; margin-bottom: clamp(3rem, 7vw, 6rem); border-block: 1px solid var(--line-paper); padding-block: 1.25rem; }
.me__row { display: flex; align-items: center; gap: 2.5rem; width: max-content; will-change: transform; }
.me__row span { font-family: var(--f-display); font-size: clamp(2.6rem, 1.5rem + 5vw, 7rem); line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.me__row span:nth-of-type(odd) { font-style: italic; color: var(--accent-on-paper); }
.me__row i { width: 14px; height: 14px; flex: none; border: 1px solid var(--amber); transform: rotate(45deg); }
.me__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.me__portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: linear-gradient(160deg, #e9d9c0, #d8c1a2); }
.me__portrait .ph-block { position: absolute; inset: 0; }
.me__portrait .icon { width: 4rem; height: 4rem; color: var(--rust); stroke-width: 1; }
.me__lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.45; margin: 1.5rem 0 1rem; max-width: 32rem; }
.me__text .btn-row { margin-top: 2rem; }
@media (max-width: 860px) { .me__grid { grid-template-columns: 1fr; } .me__portrait { max-width: 24rem; } }

/* ---------------------------------------------------------------- 07 around, 08 journal, 09 events: small additions */
.ar { overflow: hidden; }
.ar .display, .jr .display, #events .display { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); }
[data-mask] { clip-path: inset(0 0 0 0); }
.fx [data-mask] { clip-path: inset(100% 0 0 0); }
.fx [data-mask].is-shown { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-out); }
.entry__img img[data-parallax] { height: 120%; margin-top: -10%; }

/* ---------------------------------------------------------------- 10 stay */
.st { text-align: center; overflow: hidden; }
.st__card { max-width: 56rem; margin: 0 auto; padding-inline: var(--gutter); }
.st__chair { width: 5rem; height: 5rem; margin: 0 auto 1rem; color: var(--rust); stroke-width: 1; }
.st__title { font-family: var(--f-hand); font-weight: 400; font-size: clamp(3.6rem, 1.8rem + 8vw, 10rem); line-height: 1; color: var(--orange); margin-bottom: 1.5rem; letter-spacing: 0; }
.st__title span { display: inline-block; }
.st .stay__copy { font-family: var(--f-display); font-size: var(--fs-lede); color: var(--ink-soft); margin-bottom: 2.25rem; }
.st form { max-width: 36rem; margin: 0 auto; }
.st .form-note { color: var(--ink-soft); margin-top: 1rem; }

/* ---------------------------------------------------------------- 11 + 12 night */
.nt { position: relative; color: var(--on-dark); }
.nt__fade { display: none; }
.no-gl .nt, .reduce .nt { background: linear-gradient(rgba(12, 12, 20, .55), rgba(12, 12, 20, .7)), url("../img/scene-shore.webp") center 70% / cover; }
.nt__tend { min-height: 100vh; min-height: 100svh; display: grid; align-content: start; justify-items: center; text-align: center; padding: calc(var(--nav-h) + 9vh) var(--gutter) 4rem; gap: .25rem; }
.nt__tend .display { font-size: clamp(2.8rem, 1.4rem + 5vw, 6.5rem); text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.nt__hint { color: var(--on-dark-soft); max-width: 28rem; margin-top: 1rem; text-shadow: 0 1px 16px rgba(0, 0, 0, .9); }
.nt .tend__btn { margin-top: 1rem; }
.nt .tend__reveal { margin-top: 1.5rem; }
.fire-hit { position: fixed; left: 50%; top: 75%; width: 200px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: transparent; z-index: 2; visibility: hidden; }
.fire-hit.is-live { visibility: visible; }
.nt__room { min-height: 130vh; min-height: 130svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 10vh var(--gutter) 30vh; }
.nt__roomtitle { font-size: clamp(3.2rem, 1rem + 9vw, 11rem); line-height: .92; letter-spacing: -.03em; text-shadow: 0 6px 60px rgba(0, 0, 0, .75); margin-bottom: 1.75rem; }
.nt__roomtitle span { display: inline-block; }
.nt__roomtitle em { color: var(--amber-hi); font-weight: 400; }
.nt .room__text { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lede); margin-bottom: 2.5rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.nt .btn-row { justify-content: center; }

/* split text helpers */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

@media (prefers-reduced-motion: reduce) {
  .op-hero__title, .fy__end .hand { -webkit-mask-image: none; mask-image: none; }
}

/* stacked fallback (reduced motion / no JS): title and hero read as one opening screen */
html:not(.pinmode) .op__pin { position: relative; }
html:not(.pinmode) .op-title { min-height: 68vh; min-height: 68svh; padding-bottom: 0; align-content: end; }
html:not(.pinmode) .op-hero { position: static; min-height: 0; padding-top: 1.5rem; }
html:not(.pinmode) .op-hero__space { display: none; }
html:not(.pinmode) .op-hero__by { position: absolute; top: calc(var(--nav-h) + 1rem); left: 0; right: 0; }
.me__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* soft hand-off from the opening painting into the dark book chapter (no hard edge) */
.op { position: relative; }
.pinmode .op::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45vh; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 18, 32, 0), rgba(18, 18, 32, .75) 55%, #121220); }
/* the invitation at the end of the load-in (it is the click browsers need before sound can play) */
.loader__gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 2.5rem); display: grid; justify-items: center; gap: 1rem; text-align: center; width: min(100% - 2rem, 26rem); }
.loader__gate[hidden] { display: none; }
.loader__enter { font-size: .8125rem; padding: 1.1rem 2.2rem; }
.loader__quiet { border: 0; background: none; color: var(--on-dark-soft); font: 600 .6875rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; padding: .6rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244, 235, 221, .3); }
.loader__quiet:hover, .loader__quiet:focus-visible { color: var(--cream); }
.loader__note { font-size: .8125rem; color: rgba(244, 235, 221, .5); margin: .25rem 0 0; }

/* ---------------------------------------------------------------- the world without WebGL (opened from disk) */
.pinmode.no-gl .world__still { bottom: auto; will-change: transform; object-position: 50% 0%; }
.world__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
