/* ═════════════════════════════════════════════════════════════
   HOMEPAGE v2 — additions on top of style.css (the homepage, index.html; the old one is index-v1.html)
   1. Hero: a one-line role statement + a way into the work
   2. The pull cord lights the whole page, not only the hero
   3. A mini cord that follows you once the hero is gone
   4. "A warm corner": the closing scene and contact (#contact)
   ═════════════════════════════════════════════════════════════ */

/* ── 1 · Hero role line ── */
.hero-role {
  margin-top: 22px; max-width: 440px;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(0.86rem, 1.45vw, 1rem); line-height: 1.6; letter-spacing: .02em;
  color: rgba(245, 232, 213, 0.86);
  transition: color 1.4s ease-in-out;
}
body.night .hero-role { color: rgba(237, 224, 208, 0.80); }
.hero-jump {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: var(--font-body); font-weight: 300; font-size: var(--text-label, .72rem);
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: rgba(245, 232, 213, 0.72);
  padding-bottom: 6px; border-bottom: 1px solid rgba(245, 232, 213, 0.28);
  transition: color .4s ease, border-color .4s ease;
}
.hero-jump:hover, .hero-jump:focus-visible { color: #F5E8D5; border-color: rgba(245, 232, 213, 0.7); outline: none; }
.hero-jump span { display: inline-block; transition: translate .4s ease; }
.hero-jump:hover span { translate: 0 3px; }

/* ── 2 · Room light below the hero ──
   One continuous light layer behind About, Work and Playground (wrapped in .v2-room),
   so there is never a seam where one section meets the next.
   Day: sunlight from the window. Night: a cool moon wash and a small warm lamp pool. */
.v2-room { position: relative; isolation: isolate; background-color: var(--sw-surface); transition: background-color 1.4s ease-in-out; }
.v2-room > .ab, .v2-room > .sw, .v2-room > .pg { background-color: transparent; }
.v2-room::before, .v2-room::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; transition: opacity 1.4s ease-in-out;
}
.v2-room::before {                                  /* day: sunlight */
  background-image:
    radial-gradient(1100px 900px at 4% 0, rgba(214, 138, 72, .17), transparent 70%),
    radial-gradient(900px 800px at 98% 34%, rgba(196, 120, 64, .07), transparent 70%),
    radial-gradient(1000px 900px at 2% 74%, rgba(214, 138, 72, .08), transparent 70%);
  opacity: 1;
}
.v2-room::after {                                   /* night: moon + lamp */
  background-image:
    radial-gradient(1000px 850px at 98% 0, rgba(120, 128, 200, .14), transparent 70%),
    radial-gradient(800px 700px at 2% 42%, rgba(232, 168, 92, .07), transparent 70%),
    radial-gradient(1000px 900px at 96% 86%, rgba(120, 128, 200, .08), transparent 70%);
  opacity: 0;
}
body.night .v2-room::before { opacity: 0; }
body.night .v2-room::after  { opacity: 1; }

/* The banners at night: the window light goes, the table turns to moonlight and a lamp
   warms one corner. Phones stay at z-index 1 above all of this, so a lit screen reads as lit. */
.sw-living__stage::before, .sw-living__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.sw-living__stage::before { background: #4a5088; mix-blend-mode: multiply; }
.sw-living__stage::after  { background: radial-gradient(34% 60% at 16% 86%, rgba(255, 176, 96, .30), transparent 70%); mix-blend-mode: screen; }
.sw-living__glow { transition: opacity 1.4s ease-in-out; }
body.night .sw-living__stage::before { opacity: .78; }
body.night .sw-living__stage::after  { opacity: 1; }
body.night .sw-living__glow { opacity: .06 !important; }
/* the about photo already dims at night (about.css); the playground tiles follow the room */
.pg-tile img, .pg-tile video { transition: filter 1.4s ease-in-out; }
body.night .pg-tile img, body.night .pg-tile video { filter: brightness(.9); }

/* ── Sticky navigation: stays at the top; gains a soft dark bar once you scroll off the hero ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45; pointer-events: none;
  padding: 26px 44px 18px;
  transition: background-color .5s ease, padding .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}
.site-header .nav { pointer-events: auto; }
.site-header.is-stuck {
  padding-top: 16px; padding-bottom: 14px;
  background-color: rgba(13, 8, 4, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(245, 232, 213, .08);
}
body.night .site-header.is-stuck { background-color: rgba(4, 2, 8, .62); }
.nav a.is-current { color: #F5E8D5; }
.nav a.is-current::after { width: 100%; }
/* the header no longer sits in the hero's column, so the hero text keeps its place at the bottom */
.content { justify-content: flex-end; }
@media (max-width: 720px) {
  .site-header { padding: 18px 16px 12px; } .site-header.is-stuck { padding-top: 12px; padding-bottom: 10px; }
  button.cord-mini { top: 40px; height: 64px; right: 14px; }   /* hangs below the bar so it never covers Contact */
}

/* ── Hero window: the glass itself is the button; a small label follows the cursor ── */
.window-wrap .window.v2-openable { pointer-events: auto; cursor: pointer; }
.ww-tip {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 400; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: #F5E8D5; background: rgba(20, 12, 6, .55); border: 1px solid rgba(245, 232, 213, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; scale: .92; transition: opacity .25s ease, scale .25s ease;
}
.ww-tip.is-on { opacity: 1; scale: 1; }
body.night .ww-tip { background: rgba(10, 8, 24, .55); }

/* ── Past Work: a compact two-up row, quieter than Selected Work ── */
.sw__title--past {
  margin-top: var(--space-7); padding-top: var(--space-5); margin-bottom: var(--space-4);
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-label);
  letter-spacing: .2em; text-transform: uppercase; color: var(--sw-quiet);
}
.sw-past { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; }
.sw-past .sw-project + .sw-project { margin-top: 0; }
.sw-past .sw-project__media { box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.28); }
.sw-past .sw-project__title { margin-top: 16px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.3; }
.sw-past .sw-project__desc {
  margin-top: 8px; font-size: .84rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sw-past .sw-metrics { display: none; }               /* the figure is already in the title */
.sw-past .sw-project__cta { margin-top: 14px; font-size: .64rem; }
@media (max-width: 720px) { .sw-past { grid-template-columns: 1fr; gap: 40px; } }

/* ── 3 · The mini cord: follows you down the page once the hero's cord is out of view ── */
.cord-mini {
  all: unset; box-sizing: border-box;
  position: fixed; top: 0; right: clamp(18px, 4vw, 56px); z-index: 50;
  width: 28px; height: 92px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  translate: 0 -110%; transition: translate .7s cubic-bezier(.2, .8, .2, 1);
}
.cord-mini.is-shown { translate: 0 0; }
.cord-mini__line { width: 1.5px; flex: 1; background: linear-gradient(to bottom, rgba(245, 232, 213, .1), rgba(245, 232, 213, .7)); }
.cord-mini__ring {
  width: 13px; height: 13px; border-radius: 50%; margin-top: -1px;
  border: 1.5px solid rgba(245, 232, 213, .75); background: rgba(13, 8, 4, .6);
  box-shadow: 0 0 14px rgba(214, 138, 72, .45);
  transition: box-shadow 1.4s ease, border-color 1.4s ease;
}
body.night .cord-mini__ring { box-shadow: 0 0 14px rgba(136, 120, 192, .55); border-color: rgba(237, 224, 208, .7); }
.cord-mini:hover .cord-mini__ring, .cord-mini:focus-visible .cord-mini__ring { border-color: #F5E8D5; box-shadow: 0 0 20px rgba(245, 232, 213, .5); }
.cord-mini.is-pulled { animation: cordMiniPull .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cordMiniPull { 0% { height: 92px; } 35% { height: 112px; } 100% { height: 92px; } }
.cord-mini__tip {
  position: absolute; top: 100%; right: 50%; translate: 50% 8px; white-space: nowrap;
  font-family: var(--font-body); font-weight: 300; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245, 232, 213, .6); opacity: 0; transition: opacity .3s ease;
}
.cord-mini:hover .cord-mini__tip, .cord-mini:focus-visible .cord-mini__tip { opacity: 1; }

/* ── 4 · The closing: a notebook of a few pages about me, and contact (#contact) ── */
.wc {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;   /* clip: can't be scrolled sideways when the book is focused */
  padding: clamp(110px, 14vw, 180px) var(--space-4) 48px;
  color: var(--sw-ink); background-color: var(--sw-surface);
  transition: background-color 1.4s ease-in-out;
}
.wc::before {               /* a soft warm glow under the notebook, as if it lay on a desk */
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 10%; top: 30%; width: 80%; height: 75%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 150, 70, .14), transparent 70%);
  transition: background 1.4s ease-in-out;
}
body.night .wc::before { background: radial-gradient(50% 50% at 50% 50%, rgba(110, 100, 200, .16), transparent 70%); }
.wc__head { position: relative; max-width: 1000px; margin: 0 auto; }
.wc__label {
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-label);
  letter-spacing: .2em; text-transform: uppercase; color: #D5AD62; margin-bottom: 22px;
}
.wc__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-section); line-height: 1.1; letter-spacing: -.01em;
}
.wc__title em { font-style: normal; color: #F2C98A; transition: color 1.4s ease-in-out; }
body.night .wc__title em { color: #F0C27E; text-shadow: 0 0 28px rgba(240, 180, 100, .35); }
.wc__text {
  margin-top: 26px; max-width: 46ch;
  font-family: var(--font-body); font-weight: 300; font-size: clamp(.95rem, 1.3vw, 1.05rem); line-height: 1.75;
  color: rgba(245, 232, 213, .72);
}
.wc__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.wc__link {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 400; font-size: .82rem; letter-spacing: .04em;
  color: #F5E8D5; border: 1px solid rgba(245, 232, 213, .3); background: rgba(13, 8, 4, .22);
  backdrop-filter: blur(6px); transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.wc__link:hover, .wc__link:focus-visible { background: rgba(245, 232, 213, .12); border-color: rgba(245, 232, 213, .7); outline: none; }
.wc__link--primary { background: #F5E8D5; color: #1a0f08; border-color: #F5E8D5; }
.wc__link--primary:hover, .wc__link--primary:focus-visible { background: #fff; color: #1a0f08; border-color: #fff; }
.wc__link[hidden] { display: none; }
.wc__link .arrow { transition: translate .35s ease; }
.wc__link:hover .arrow { translate: 3px 0; }

/* ── the notebook ──
   Desktop: an open spread. Each .nb__leaf is a sheet hinged at the spine (front on the right,
   back on the left once turned). Phones: .is-single shows the same faces one at a time. */
.nb { --pw: min(400px, 44vw); --ph: calc(var(--pw) * 1.36); --rule: 29px;
  position: relative; max-width: 1000px; margin: clamp(56px, 7vw, 88px) auto 0; display: flex; flex-direction: column; align-items: center; }
.nb__book {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2600px;
  transition: translate .9s cubic-bezier(.4, .1, .2, 1); outline: none; cursor: pointer;
}
.nb__book.is-closed { translate: calc(var(--pw) * -.5) 0; }       /* closed: the cover sits centred */
.nb__book:focus-visible { outline: 2px solid rgba(242, 201, 138, .7); outline-offset: 14px; border-radius: 6px; }
.nb__leaf {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.45, .05, .2, 1);
}
.nb__leaf.is-flipped { transform: rotateY(-180deg); }
.nb__face, .nb__base { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nb__face--back { transform: rotateY(180deg); }
.nb__base { left: 50%; width: 50%; }
/* paper: cream, ruled, a red margin; the spine side darkens like a real gutter */
.nb__face--front, .nb__base { border-radius: 2px 6px 6px 2px; }
.nb__face--back { border-radius: 6px 2px 2px 6px; }
.nb__face, .nb__base { background: #F4ECDD; color: #3a2a1c; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 22px 50px rgba(0,0,0,.35); }
.nb__face--front::after, .nb__base::after, .nb__face--back::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px; pointer-events: none;
}
.nb__face--front::after, .nb__base::after { left: 0;  background: linear-gradient(to right, rgba(60, 36, 16, .22), transparent); }
.nb__face--back::after                    { right: 0; background: linear-gradient(to left,  rgba(60, 36, 16, .22), transparent); }
.nb__paper {
  position: absolute; inset: 0; padding: 40px 34px 40px 52px;
  background:
    linear-gradient(to right, transparent 40px, rgba(200, 80, 70, .35) 40px 41px, transparent 41px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), rgba(90, 120, 170, .2) calc(var(--rule) - 1px) var(--rule));
  background-position: 0 0, 0 70px;
  font-family: 'Caveat', cursive; font-size: 1.36rem; line-height: var(--rule); color: #3a2a1c;
}
.nb__face--back .nb__paper { padding: 40px 52px 40px 34px; background-position: right 0 top 0, 0 70px;
  background-image: linear-gradient(to left, transparent 40px, rgba(200, 80, 70, .35) 40px 41px, transparent 41px),
                    repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), rgba(90, 120, 170, .2) calc(var(--rule) - 1px) var(--rule)); }
.nb__paper--plain { background: radial-gradient(120% 80% at 0 0, rgba(255,255,255,.45), transparent 60%) !important; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px !important; }
.nb__h { font-family: 'Caveat', cursive; font-weight: 600; font-size: 2.05rem; line-height: 1; margin: 0 0 18px; color: #2c1d10; }
.nb__paper p { margin: 0; }
.nb__take { margin-top: var(--rule) !important; font-weight: 600; color: #2c1d10; }
.nb__take span {
  background: linear-gradient(to top, rgba(242, 196, 92, .55) 0 42%, transparent 42%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 3px;
}
.nb__list { margin: 0; padding: 0; list-style: none; }
.nb__list li { position: relative; padding-left: 1em; }
.nb__list li::before { content: "–"; position: absolute; left: 0; }
.nb__no { font-family: var(--font-body); font-weight: 400; font-size: .62rem; letter-spacing: .18em; color: rgba(58, 42, 28, .5); vertical-align: middle; margin-right: 4px; }
.nb__aside { margin-top: calc(var(--rule) * .5) !important; color: rgba(58, 42, 28, .75); }
.nb__num { position: absolute; bottom: 14px; font-family: var(--font-body); font-size: .66rem; letter-spacing: .1em; color: rgba(58, 42, 28, .45); }
.nb__face--front .nb__num, .nb__base .nb__num { right: 22px; }
.nb__face--back .nb__num { left: 22px; }
.nb__links { display: flex; gap: 18px; margin-top: var(--rule) !important; }
.nb__links a { color: #8a3a22; text-decoration: none; border-bottom: 2px solid rgba(138, 58, 34, .35); }
.nb__links a:hover { border-color: #8a3a22; }
.nb__sign { margin-top: var(--rule) !important; font-size: 1.7rem; }
/* inside covers */
.nb__inside, .nb__inside .nb__paper { background-color: #EFE4D0; }
.nb__belongs { font-family: var(--font-body); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(58, 42, 28, .6); }
.nb__owner { font-size: 3rem; line-height: 1.1; margin-top: 14px !important; border-bottom: 1.5px solid rgba(58, 42, 28, .3); padding: 0 24px 6px; }
.nb__owner-sub { margin-top: 18px !important; font-size: 1.3rem; line-height: 1.35; max-width: 24ch; }
.nb__found { margin-top: 40px !important; font-size: 1.2rem; color: rgba(58, 42, 28, .6); rotate: -3deg; }
.nb__end { font-size: 1.5rem; color: rgba(58, 42, 28, .65); }
.nb__restart { all: unset; cursor: pointer; margin-top: calc(var(--rule) * 1.5); display: inline-block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8a3a22; border-bottom: 1px solid rgba(138, 58, 34, .4); padding-bottom: 4px; }
/* the cover: dark cloth, an elastic band, a pressed title */
.nb__cover {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 220, 170, .10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
    #2a1c12;
  color: #EBD9BC; display: flex; flex-direction: column; justify-content: center; padding: 0 44px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 40px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.3), 0 26px 60px rgba(0,0,0,.45);
}
.nb__cover::after { background: linear-gradient(to right, rgba(0,0,0,.45), transparent) !important; width: 22px !important; }
.nb__band { position: absolute; top: 0; bottom: 0; right: 40px; width: 12px; background: linear-gradient(to right, #1a120c, #3a2a20 50%, #1a120c); box-shadow: 0 0 6px rgba(0,0,0,.5); }
.nb__cover-no { font-family: var(--font-body); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(235, 217, 188, .55); }
.nb__cover-title { margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; color: rgba(235, 217, 188, .8); text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.nb__cover-title b { display: block; font-weight: 400; font-size: 1.5em; color: #F2C98A; }
.nb__cover-name { margin-top: 26px; font-family: 'Caveat', cursive; font-size: 1.35rem; color: rgba(235, 217, 188, .7); }
/* a hint of the next page's corner lifting on hover */
.nb__book:not(.is-end):hover .nb__leaf.is-next { transform: rotateY(-6deg); }
/* night: the paper sits in lamplight, a touch dimmer and warmer */
.nb__face, .nb__base { transition: filter 1.4s ease-in-out; }
body.night .nb__face, body.night .nb__base { filter: brightness(.86) sepia(.12); }
/* controls */
.nb__controls { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.nb__btn { all: unset; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(245, 232, 213, .3); color: #F5E8D5; font-family: var(--font-body); font-size: 1rem; transition: background .3s ease, border-color .3s ease, opacity .3s ease; }
.nb__btn:hover, .nb__btn:focus-visible { background: rgba(245, 232, 213, .12); border-color: rgba(245, 232, 213, .7); }
.nb__btn:disabled { opacity: .3; cursor: default; background: none; }
.nb__count { min-width: 9ch; text-align: center; font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sw-quiet); }
.nb__help { margin-top: 14px; font-family: var(--font-body); font-weight: 300; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sw-quiet); opacity: .8; }

/* phones: one page at a time, the page turns away to the left */
.nb.is-single { --pw: min(360px, calc(100vw - 48px)); --ph: calc(var(--pw) * 1.62); }   /* taller pages on phones so the longer entries fit */
.nb.is-single .nb__book { width: var(--pw); translate: none; perspective: 1600px; }
.nb.is-single .nb__leaf { display: contents; }
.nb.is-single .nb__face, .nb.is-single .nb__base {
  left: 0; width: 100%; transform: none; border-radius: 3px 6px 6px 3px;
  transform-origin: left center; transition: transform .8s cubic-bezier(.45, .05, .2, 1), visibility 0s linear .8s, filter 1.4s ease-in-out;
  visibility: hidden;
}
.nb.is-single .is-current { visibility: visible; z-index: 3; }
.nb.is-single .is-under   { visibility: visible; z-index: 1; }
.nb.is-single .is-gone    { z-index: 4; transform: rotateY(-150deg); pointer-events: none; }   /* swings away; its back is hidden past 90° */
.nb.is-single .is-current, .nb.is-single .is-under { transition-delay: 0s; }
.nb.is-single .nb__face--back .nb__paper { padding: 40px 34px 40px 52px;
  background-image: linear-gradient(to right, transparent 40px, rgba(200, 80, 70, .35) 40px 41px, transparent 41px),
                    repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule) - 1px), rgba(90, 120, 170, .2) calc(var(--rule) - 1px) var(--rule));
  background-position: 0 0, 0 70px; }
.nb.is-single .nb__face--back::after { left: 0; right: auto; background: linear-gradient(to right, rgba(60, 36, 16, .22), transparent); }
.nb.is-single .nb__face--back .nb__num { left: auto; right: 22px; }
.nb.is-single .nb__paper { font-size: 1.28rem; }

.wc__foot {
  position: relative; max-width: 1000px; margin: clamp(90px, 12vw, 150px) auto 0; padding-top: 22px;
  border-top: 1px solid rgba(245, 232, 213, .14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-body); font-weight: 300; font-size: .72rem; letter-spacing: .08em; color: rgba(245, 232, 213, .5);
}
.wc__foot a { color: inherit; text-decoration: none; }
.wc__foot a:hover { color: #F5E8D5; }

.wc__toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 60; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: #F5E8D5; color: #1a0f08;
  font-family: var(--font-body); font-size: .8rem; transition: opacity .3s ease, translate .3s ease;
}
.wc__toast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 760px) {
  .nb__help { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cord-mini, .cord-mini.is-pulled, .nb__book, .nb__leaf, .nb__face { transition: none !important; animation: none; }
}

/* ═════════════════════════════════════════════════════════════
   5 · OPENING — "Closed" flips to "Open", then the curtains draw back.
   ~2.2s, once per visit (sessionStorage), skipped with any click / scroll / key,
   never shown with reduced motion. Timeline: sign 0.3–0.9s · curtains 0.95–2.05s · fade 1.8–2.3s.
   ═════════════════════════════════════════════════════════════ */
.intro {
  --velvet: #5a2416; --velvet-hi: rgba(255, 196, 150, .10); --leak: rgba(255, 190, 120, .55);
  position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: auto;
  animation: introFade .5s ease 1.8s forwards;
}
html.intro-night .intro { --velvet: #261c3c; --velvet-hi: rgba(200, 190, 255, .08); --leak: rgba(170, 160, 255, .45); }
html.no-intro .intro { display: none; }
.intro.is-skip { animation: introFade .35s ease forwards; }
.intro.is-skip * { animation-play-state: paused; }
/* a thin line of light where the curtains meet; it goes as they part, and the room itself is what you see */
.intro::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0;
  background: linear-gradient(to bottom, transparent, var(--leak) 25%, var(--leak) 75%, transparent);
  box-shadow: 0 0 18px 6px var(--leak), 0 0 60px 18px rgba(255, 170, 90, .18);
  animation: leakOut .45s ease .9s forwards;
}
@keyframes leakOut { to { opacity: 0; } }
.intro__curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55), transparent 14%, transparent 78%, rgba(0,0,0,.6)),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.42) 0, rgba(0,0,0,.10) 16px, var(--velvet-hi) 30px, rgba(0,0,0,.06) 44px,
      rgba(0,0,0,.36) 62px, rgba(0,0,0,.12) 74px, var(--velvet-hi) 90px, rgba(0,0,0,.42) 112px),
    var(--velvet);
  animation-duration: 1.1s; animation-delay: .95s; animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.6, .02, .25, 1);
}
.intro__curtain--l { left: 0;  transform-origin: left center;  animation-name: curtainL;
  box-shadow: inset -18px 0 30px -12px rgba(0,0,0,.6); }
.intro__curtain--r { right: 0; transform-origin: right center; animation-name: curtainR;
  box-shadow: inset 18px 0 30px -12px rgba(0,0,0,.6); }
/* gathered toward the sides, with a small sway as the fabric settles */
@keyframes curtainL { 0% { transform: none; } 75% { transform: scaleX(.34) skewY(1.2deg); } 100% { transform: scaleX(.38) skewY(0); } }
@keyframes curtainR { 0% { transform: none; } 75% { transform: scaleX(.34) skewY(-1.2deg); } 100% { transform: scaleX(.38) skewY(0); } }
.intro__rod { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 14px;
  background: linear-gradient(to bottom, #1a110a, #3a2716 60%, #120b06); box-shadow: 0 4px 14px rgba(0,0,0,.6); }
/* the sign hangs where the curtains meet */
.intro__sign { position: absolute; z-index: 3; left: 50%; top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center;
  animation: signLift .55s cubic-bezier(.5, 0, .3, 1) .9s forwards; }
.intro__string { width: 1px; height: 34vh; background: linear-gradient(to bottom, rgba(214, 180, 120, .2), rgba(214, 180, 120, .7)); }
.intro__card {
  position: relative; width: 190px; height: 78px; perspective: 600px; transform-style: preserve-3d;
  animation: signFlip .6s cubic-bezier(.3, 1.4, .5, 1) .3s forwards;
}
.intro__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #F3EBDD; color: #2c1d10; box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 0 0 1px rgba(58, 42, 28, .12);
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .28em; text-transform: uppercase; padding-left: .28em;
}
.intro__face--closed { color: #6b4a34; }
.intro__face--open { transform: rotateY(180deg); color: #2c1d10; }
.intro__face--open small { margin-top: 4px; font-family: 'Caveat', cursive; font-size: .95rem; letter-spacing: 0; text-transform: none; color: #8a3a22; padding: 0; }
@keyframes signFlip { 0% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
@keyframes signLift { to { translate: -50% -110%; opacity: 0; } }
@keyframes introFade { to { opacity: 0; visibility: hidden; } }
@media (max-width: 720px) {
  .intro__card { width: 160px; height: 66px; }
  .intro__face { font-size: 1.25rem; }
}
