/* ==========================================================================
   Black Lantern Rituals

   Design plan
   - World: one lantern in a dark room. Every bright thing on the page is gold
     leaf or iron catching that one flame. Nothing is lit that the flame could
     not reach.
   - Colour: warm blacks and a five-step gold ramp. The only other hues are the
     blue and red flames, and they stay on their own incense labels.
   - Light: falls off the way firelight does (hot pale core, amber, umber, black)
     and never holds still. --flick and --glint are driven from main.js.
   - Type: Cinzel for inscriptions (it matches the lettering on the labels),
     Cormorant Garamond for reading, IM Fell English italic for spoken lines.
   - Layout: a single centred column, like a label or a tarot card. Two pinned
     stages (incense, token) break it where an object needs to be turned over.
   ========================================================================== */

@property --flame { syntax: '<color>'; inherits: true; initial-value: #ffab45; }

:root {
  color-scheme: dark;

  /* Blacks: warm near the flame, colder at the edge of its reach */
  --black-warm: #0b0806;
  --black: #060504;
  --black-cold: #030303;
  --umber: #1c140b;

  /* Gold leaf, from where the light strikes it to where it falls into shadow */
  --gold-100: #f8e9c0;
  --gold-300: #e3c27c;
  --gold-500: #c39a4e;
  --gold-700: #8c6a2f;
  --gold-900: #4a3616;

  --text: #e4d7ba;
  --text-dim: #a2947a;

  /* Firelight */
  --flame: #ffab45;
  --fire-core: 255, 232, 184;
  --fire-mid: 255, 176, 84;
  --fire-low: 224, 124, 40;
  --fire-ember: 132, 64, 18;

  /* Set every frame by main.js. The defaults are a steady flame. */
  --flick: 1;      /* about 0.94 to 1.04, slow */
  --flick-b: 1;    /* same flame, a beat behind */
  --glint: 50;     /* 0 to 100: how much of the brightest gold shows */

  --foil: linear-gradient(135deg, #f3dfa6 0%, #9b7434 24%, #e3c27c 48%, #6f5223 72%, #d9b56a 100%);

  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --body: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --script: 'IM Fell English', 'Cormorant Garamond', Georgia, serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background: var(--black);
  color: var(--text);
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-900) var(--black-cold);
  -webkit-text-size-adjust: 100%;
}
::selection { background: rgba(214, 158, 72, .38); color: #fff6dc; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.45rem);
  line-height: 1.6;
  background: linear-gradient(var(--black-warm), var(--black) 40%, var(--black-cold));
  overflow-x: hidden;
  caret-color: var(--gold-300);
  -webkit-font-smoothing: antialiased;
}

/* The page cannot be scrolled until the lantern is lit. */
html.js.is-dark, html.js.is-dark body { overflow: hidden; height: 100%; }

main { position: relative; z-index: 1; overflow-x: clip; }  /* glows wider than the screen must not make the page pan sideways */
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }
.center { text-align: center; }

:focus-visible { outline: 1px solid var(--gold-100); outline-offset: 6px; border-radius: 2px; }

/* ---------- Atmosphere ---------------------------------------------------- */

.grain, .fx, .warmth, .veil, .stone { position: fixed; inset: 0; pointer-events: none; }

/* The slate wall, shaded live from the lantern (see main.js). Scaled up from a smaller canvas, which keeps it soft. */
.stone { z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stone.is-in { opacity: 1; }

/* Grain also dithers the long gradients so they do not band. */
.grain {
  z-index: 2; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain.has-texture { opacity: .35; mix-blend-mode: soft-light; background-size: cover; background-position: center; }

.fx { z-index: 3; width: 100%; height: 100%; }

/* Firelight from wherever the lantern is held: pale at the wick, amber, then umber, then gone. */
.warmth {
  z-index: 4; mix-blend-mode: screen; opacity: calc(var(--lit, 0) * var(--flick));
  background: radial-gradient(circle var(--lr, 900px) at var(--lx, 50%) var(--ly, 42%),
    rgba(var(--fire-core), .105) 0%,
    rgba(var(--fire-mid), .095) 9%,
    rgba(var(--fire-low), .075) 20%,
    rgba(var(--fire-low), .05) 32%,
    rgba(var(--fire-ember), .03) 48%,
    rgba(var(--fire-ember), .012) 66%,
    rgba(var(--fire-ember), 0) 84%);
}
/* The dark. It closes in gradually, the way a room does beyond a flame's reach. */
.veil {
  z-index: 5;
  background: radial-gradient(circle var(--lr, 900px) at var(--lx, 50%) var(--ly, 42%),
    rgba(3, 2, 2, 0) 0%,
    rgba(3, 2, 2, .05) 18%,
    rgba(3, 2, 2, .16) 34%,
    rgba(3, 2, 2, .32) 50%,
    rgba(3, 2, 2, .5) 66%,
    rgba(3, 2, 2, .68) 82%,
    rgba(3, 2, 2, .82) 100%);
}
html:not(.js) .veil { display: none; }
/* While the room is dark, the dark parts around the "Strike the match" button so it can always be read.
   --bx/--by are the button's centre, set in main.js. */
html.js.is-dark .veil {
  -webkit-mask-image: radial-gradient(ellipse 210px 64px at var(--bx, 50%) var(--by, 88%), transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 210px 64px at var(--bx, 50%) var(--by, 88%), transparent 45%, #000 100%);
}

/* Greek key divider, echoing the border of the incense labels. */
.meander {
  height: 24px; width: min(760px, 78vw); margin: 0 auto; position: relative; z-index: 1;
  opacity: calc(.34 + .2 * var(--flick-b));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 21H21V3H6V15H15V9M21 21H24' fill='none' stroke='%23a98545' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x center / 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 22%, #000 50%, rgba(0, 0, 0, .5) 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .5) 22%, #000 50%, rgba(0, 0, 0, .5) 78%, transparent);
}

/* Flame-lit lettering: gold leaf that brightens and dims with the flame. */
.title .ch, h2, h3, .motto, .crossroads, .email-addr {
  color: color-mix(in oklab, var(--gold-100) calc(var(--glint) * 1%), var(--gold-500));
  text-shadow:
    0 0 calc(30px * var(--flick)) rgba(var(--fire-mid), calc(.34 * var(--flick))),
    0 0 calc(70px * var(--flick-b)) rgba(var(--fire-low), calc(.16 * var(--flick-b))),
    0 1px 0 rgba(30, 18, 4, .9);
}

/* A highlight that behaves like a flame taking hold, used on hover and focus. */
@keyframes flame-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(var(--fire-mid), .5), 0 -3px 22px rgba(var(--fire-low), .3); }
  38%      { text-shadow: 0 0 16px rgba(var(--fire-core), .62), 0 -4px 30px rgba(var(--fire-low), .4); }
  70%      { text-shadow: 0 0 13px rgba(var(--fire-mid), .54), 0 -3px 25px rgba(var(--fire-low), .33); }
}
@keyframes flame-box {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--fire-mid), .22), inset 0 0 14px rgba(var(--fire-low), .1); }
  38%      { box-shadow: 0 0 32px rgba(var(--fire-mid), .32), inset 0 0 20px rgba(var(--fire-low), .17); }
  70%      { box-shadow: 0 0 24px rgba(var(--fire-mid), .25), inset 0 0 16px rgba(var(--fire-low), .12); }
}

/* ---------- The lantern you carry (fixed header) --------------------------- */

.carry {
  position: fixed; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(.7rem, env(safe-area-inset-top)) clamp(1rem, 3vw, 2.2rem) 1.6rem;
  background: linear-gradient(rgba(4, 3, 3, .92), rgba(4, 3, 3, .6) 45%, rgba(4, 3, 3, 0));
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.past-intro .carry, html:not(.js) .carry { opacity: 1; transform: none; pointer-events: auto; }
.carry-lantern { display: block; width: 26px;
  filter: drop-shadow(0 0 calc(9px * var(--flick)) rgba(var(--fire-mid), .9)) drop-shadow(0 0 calc(22px * var(--flick)) rgba(var(--fire-low), .5)); }
.carry-lantern svg { width: 100%; overflow: visible; }
.mini-flame { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--flick)); }
.carry-nav { display: flex; gap: clamp(.9rem, 2.4vw, 2.2rem); }
.carry-nav a {
  font-family: var(--display); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--text-dim); padding: .5rem 0; transition: color .5s;
}
.carry-nav a:hover, .carry-nav a:focus-visible { color: var(--gold-100); animation: flame-glow 3.6s ease-in-out infinite; }
.carry-nav a.is-here {
  color: color-mix(in oklab, var(--gold-100) calc(var(--glint) * 1%), var(--gold-500));
  text-shadow: 0 0 calc(16px * var(--flick)) rgba(var(--fire-mid), calc(.6 * var(--flick)));
}
@media (max-width: 720px) {
  .carry-nav a:not(:last-child) { display: none; }
}

/* ---------- The lantern ----------------------------------------------------- */

.intro {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vh, 2.2rem);
  padding: 5vh 1.25rem clamp(8.5rem, 20vh, 11rem); text-align: center; position: relative;
}

.intro-stage { position: relative; height: min(46svh, 460px); aspect-ratio: 2 / 3; flex: none; }

.lantern { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 calc(26px * var(--flick)) rgba(var(--fire-low), .3)) drop-shadow(0 22px 28px rgba(0, 0, 0, .85));
  transition: filter 1.4s ease; }
html.js.is-dark .lantern { filter: brightness(.7) saturate(.4) drop-shadow(0 22px 28px rgba(0, 0, 0, .85)); }

.lantern-glass { opacity: calc(.9 * var(--flick)); transition: opacity 1.1s ease; }
html.js.is-dark .lantern-glass { opacity: 0; }

.flame { transform-box: fill-box; transform-origin: 50% 100%;
  transform: scale(var(--fx, 1), var(--fy, 1)) skewX(var(--fs, 0deg)); }
.flame-outer { filter: blur(1.1px); }
.flame-mid { filter: blur(.5px); }
html.js.is-dark .flame { transform: scale(0); }
html.js .flame { transition: transform .9s var(--ease); }
html.js.is-burning .flame { transition: none; }

/* Three layers of light, as a real flame throws: a hot core, a bloom, and a long soft reach. */
.lantern-glow {
  position: absolute; z-index: 1; left: 50%; top: 66%; width: 620%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(.88 + .12 * var(--flick)));
  background:
    radial-gradient(circle, rgba(var(--fire-core), .46) 0%, rgba(var(--fire-mid), .3) 3%, rgba(var(--fire-mid), .15) 7%, rgba(var(--fire-mid), .05) 11%, rgba(var(--fire-mid), 0) 15%),
    radial-gradient(circle, rgba(var(--fire-mid), .26) 0%, rgba(var(--fire-low), .15) 9%, rgba(var(--fire-low), .07) 19%, rgba(var(--fire-low), 0) 32%),
    radial-gradient(circle, rgba(var(--fire-low), .1) 0%, rgba(var(--fire-ember), .06) 22%, rgba(var(--fire-ember), .022) 38%, rgba(var(--fire-ember), 0) 50%);
  mix-blend-mode: screen; opacity: var(--flick); transition: opacity 1.8s ease;
}
html.js.is-dark .lantern-glow { opacity: 0; }

/* The filmed lantern. It was shot on black, so it is blended as light: black vanishes and
   only the lantern remains. A soft mask hides the edge of the frame. */
.lantern-video-slot { position: absolute; inset: 0; z-index: 3; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%); }
.lantern-video-slot video, .lantern-unlit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lantern-video-slot video { transition: opacity 1.5s ease; filter: brightness(calc(.97 + .06 * var(--flick))); }
.lantern-unlit { opacity: 0; transition: opacity 1.2s ease .4s; }
html.js.is-dark .lantern-video-slot video { opacity: 0; }
html.js.is-dark .lantern-unlit { opacity: 1; }
.intro-stage.has-video { height: min(54svh, 560px); }
.intro-stage.has-video .lantern { visibility: hidden; }
/* The clip carries its own lit glass, so the drawn bloom behind it is turned down. */
.intro-stage.has-video .lantern-glow { opacity: calc(.6 * var(--flick)); }
html.js.is-dark .intro-stage.has-video .lantern-glow { opacity: 0; }

/* The match */
.match-wrap { position: absolute; z-index: 4; right: -38%; bottom: -3%; width: 11%; will-change: transform, opacity; }
.match { width: 100%; overflow: visible; transform: rotate(-56deg); transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .7)); }
.match-flame { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .25s; }
.match-wrap.is-aflame .match-flame { opacity: 1; animation: lick .18s infinite alternate; }
.match-wrap.is-aflame .match-head { fill: #1b0f0b; }
.match-wrap.is-aflame .match { filter: drop-shadow(0 0 10px rgba(var(--fire-core), .8)) drop-shadow(0 0 30px rgba(var(--fire-low), .7)) drop-shadow(0 6px 8px rgba(0, 0, 0, .7)); }
@keyframes lick { from { transform: scale(1, 1) skewX(-4deg); } to { transform: scale(.9, 1.14) skewX(5deg); } }
/* R's filmed match. It was shot on black and is screen-blended, so only the match and its flame show. */
.match-film { position: absolute; max-width: none; pointer-events: none;
  /* Slimmed across the stick only (the stick lies 27 degrees below level), pivoting on the match head. */
  transform-origin: 52% 49%; transform: rotate(27deg) scaleY(.74) rotate(-27deg);
  /* Unlit, the match is barely there. Its own flame brings it up. */
  filter: brightness(.34) saturate(.7); transition: filter .5s ease-out; }
.match-wrap.is-aflame .match-film { filter: brightness(.96) saturate(.92); }
/* The blend sits on the moving wrapper: a transformed element blends as one group, so the clip cannot blend through it by itself. */
.match-wrap.has-film { mix-blend-mode: screen; }
.match-wrap.has-film .match { visibility: hidden; }
html:not(.js) .match-wrap { opacity: 0; }
html.skip-intro .match-wrap { display: none; }

/* Title */
.intro-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.emblem { width: clamp(84px, 12vw, 120px); color: var(--gold-500); margin-bottom: .9rem; transition: opacity 1.6s ease .3s; }
html.js.is-dark .emblem { opacity: .22; }
.title {
  font-size: clamp(1.85rem, 6.2vw, 4.6rem); letter-spacing: .14em; text-transform: uppercase;
  padding-left: .14em; /* optically recentre letter-spaced text */
}
.title .word { display: inline-block; white-space: nowrap; }
.title .ch { display: inline-block; transition: color 1.1s ease, text-shadow 1.6s ease; transition-delay: calc(var(--i) * 55ms + 250ms); }
html.js.is-dark .title .ch { color: #29231b; text-shadow: none; }
html.is-burning .title .ch { transition: none; }
.title-sub {
  margin: 1rem 0 0; font-family: var(--display); font-size: clamp(.62rem, 1.5vw, .82rem);
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-500); transition: opacity 1.4s ease 1.2s;
}
.title-sub span { color: var(--gold-700); padding: 0 .5em; }
html.js.is-dark .title-sub { opacity: 0; }

.draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) .4s; }
html.js.is-dark .emblem .draw { stroke-dashoffset: 1; }

/* Gold-foil edge shared by the button, the cards and the token */
.strike-btn, .asks a, .card-back, .card-face, .token-side {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface, #0b0907), var(--surface, #0b0907)) padding-box, var(--foil) border-box;
}

/* Prompt before the lantern is lit */
.strike-prompt { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: max-content; margin-top: -.5rem;
  transition: opacity .5s, visibility .5s; }
html:not(.is-dark) .strike-prompt { opacity: 0; visibility: hidden; }
.strike-btn {
  --surface: #17110a;
  font: inherit; font-family: var(--display); font-size: .8rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-100); text-shadow: 0 0 12px rgba(var(--fire-mid), .35); padding: 1rem 1.6rem 1rem 1.9rem; cursor: pointer; position: relative;
  animation: beckon 3.4s ease-in-out infinite;
}
.strike-btn:hover, .strike-btn:focus-visible { color: var(--gold-100); animation: flame-box 3.6s ease-in-out infinite; }
@keyframes beckon {
  0%, 100% { box-shadow: 0 0 16px rgba(var(--fire-mid), .16), inset 0 0 12px rgba(var(--fire-low), .08); }
  50% { box-shadow: 0 0 30px rgba(var(--fire-mid), .28), 0 0 70px rgba(var(--fire-low), .12), inset 0 0 16px rgba(var(--fire-low), .12); }
}

/* A quiet word at the foot of the dark room, for anyone who waits without scrolling.
   Same engraved capitals as the title, held very low so it reads as something noticed, not announced. */
.dark-cue {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vh, 2rem); margin: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7rem; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.dark-cue-word {
  font-family: var(--display); font-size: .68rem; text-transform: uppercase; color: var(--gold-100);
  letter-spacing: .9em; padding-left: .9em; transition: letter-spacing 3.2s var(--ease), padding-left 3.2s var(--ease);
}
.dark-cue-line { width: 1px; height: 22px; background: linear-gradient(rgba(233, 205, 150, .9), rgba(195, 154, 78, 0)); transform-origin: top; transform: scaleY(.2); transition: transform 3.2s var(--ease) .3s; }
html.is-dark.is-waiting .dark-cue { opacity: .8; transition: opacity 2.8s ease; }
html.is-dark.is-waiting .dark-cue-word { letter-spacing: .56em; padding-left: .56em; }
html.is-dark.is-waiting .dark-cue-line { transform: scaleY(1); }
@media (max-height: 700px) { .dark-cue { display: none; } }

/* Scroll cue once the lantern is lit */
.scroll-cue {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 1.8rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--gold-500);
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease 2s, visibility 0s 2s;
}
html.is-lit .scroll-cue, html:not(.js) .scroll-cue { opacity: 1; visibility: visible; }
html.past-intro .scroll-cue { opacity: 0; transition-delay: 0s; }
.scroll-cue-word { font-family: var(--display); font-size: .66rem; letter-spacing: .44em; text-transform: uppercase; padding-left: .44em; }
.scroll-cue-line { width: 1px; height: 34px; background: linear-gradient(var(--gold-300), rgba(195, 154, 78, 0)); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-100); animation: drip 2.2s ease-in infinite; }
@keyframes drip { to { top: 110%; } }
.scroll-cue svg { width: 11px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(7px); } }

/* ---------- Chapters -------------------------------------------------------- */

.chapter { position: relative; padding: clamp(6rem, 18vh, 12rem) 1.4rem; text-align: center; }
.chapter-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 38rem; margin-left: auto; margin-right: auto; }

/* Lantern light resting on each chapter: wider than tall, like light on a table. */
.pool {
  position: absolute; left: 50%; top: 46%; width: min(150vw, 1500px); height: min(120vh, 1000px); transform: translate(-50%, -50%);
  background: radial-gradient(ellipse closest-side,
    rgba(var(--fire-mid), .1) 0%,
    rgba(var(--fire-low), .07) 22%,
    rgba(var(--fire-low), .04) 44%,
    rgba(var(--fire-ember), .02) 66%,
    rgba(var(--fire-ember), 0) 100%);
  pointer-events: none;
}

h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.6rem; }
h3 { font-size: clamp(1.7rem, 4.4vw, 3.1rem); letter-spacing: .08em; text-transform: uppercase; }

.lede { font-size: 1.18em; color: var(--text); margin: 0 auto 1.6rem; text-wrap: pretty; }
blockquote.lede { font-style: italic; quotes: none; }
.where { font-family: var(--script); font-style: italic; font-size: 1.2em; color: var(--gold-300); margin: -.6rem 0 2rem; }
.motto { font-family: var(--script); font-style: italic; font-size: 1.5em; line-height: 1.3; margin: 2.2rem 0; }
.sigil { width: 150px; margin: 0 auto 2rem; color: var(--gold-500); }

.placeholder { color: var(--gold-300); font-style: italic; border-bottom: 1px dashed var(--gold-700); }
.placeholder.block { display: block; border: 1px dashed var(--gold-700); padding: .9rem 1.2rem; font-size: .9em; margin-top: 2rem; background: rgba(140, 106, 47, .07); }

.triad { font-family: var(--display); font-size: clamp(.72rem, 1.7vw, .95rem); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300); margin: 1.1rem 0; }
.triad span + span::before { content: '•'; margin: 0 .9em; color: var(--gold-700); }
.triad.wide { margin-top: 3.4rem; }
.for-next.bring { margin-top: 3.4rem; }
.for-next { font-family: var(--script); font-style: italic; font-size: 1.25em; color: var(--text); }

.whisper-link {
  display: inline-block; margin-top: 1.6rem; font-family: var(--display); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-300); padding: .9rem 0 .7rem; position: relative; transition: color .5s;
}
.whisper-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(195, 154, 78, 0), var(--gold-500) 30%, var(--gold-100) 50%, var(--gold-500) 70%, rgba(195, 154, 78, 0));
  transform: scaleX(.5); transition: transform .7s var(--ease); }
.whisper-link:hover, .whisper-link:focus-visible { color: var(--gold-100); animation: flame-glow 3.6s ease-in-out infinite; }
.whisper-link:hover::after, .whisper-link:focus-visible::after { transform: scaleX(1); }

/* Illumination. Things wait in the dark, catch like a wick when the light reaches them,
   and sink back as it leaves. */
.js [data-lume] {
  opacity: .04; filter: blur(5px); transform: translateY(22px);
  transition: opacity 1.1s ease, filter 1.1s ease, transform 1.5s var(--ease);
}
.js [data-lume].is-lit {
  opacity: 1; filter: none; transform: none;
  animation: kindle 1.6s var(--ease) both; animation-delay: calc(var(--d, 0) * 130ms);
}
/* One steady rise with a brief warm bloom as the light arrives. Opacity never dips. */
@keyframes kindle {
  0%   { opacity: .04; filter: blur(5px) brightness(.8); }
  55%  { opacity: .92; filter: blur(0) brightness(1.18); }
  100% { opacity: 1;   filter: blur(0) brightness(1); }
}
@media (hover: none) {
  /* Phones: no blur on reveal. It is costly there and can look like a failed paint. */
  .js [data-lume] { filter: none; }
  @keyframes kindle {
    0%   { opacity: .04; }
    100% { opacity: 1; }
  }
}
.js .pool { opacity: 0; transition: opacity 2.2s ease; }
.js .is-near > .pool, .js .is-near .scrub-stage > .pool { opacity: var(--flick-b); }
.js .sigil .draw { stroke-dashoffset: 1; }
.js .sigil.is-lit .draw { stroke-dashoffset: 0; }

/* ---------- Scroll-scrubbed stages ------------------------------------------ */

.scrub { position: relative; height: 340vh; }
.commissions.scrub { height: 260vh; }
.scrub-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4.5rem 1.4rem 2rem; text-align: center;
}
.js .scrub-stage > :not(.pool) { opacity: .04; filter: blur(5px); transition: opacity 1.2s ease, filter 1.2s ease; }
.js .scrub.is-near .scrub-stage > :not(.pool) { opacity: 1; filter: none; }
html:not(.js) .scrub { height: auto; }
html:not(.js) .scrub-stage { position: static; height: auto; padding: 6rem 1.4rem; }

/* Incense */
.incense-head h2 { margin-bottom: clamp(1.2rem, 4vh, 2.6rem); font-size: clamp(1.5rem, 3.6vw, 2.6rem); }
.incense-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  width: 100%; max-width: 1100px;
}
/* Each label burns its own colour, and only the air around that label takes it. */
.medallion { position: relative; width: min(52vh, 40vw, 480px); aspect-ratio: 1; justify-self: end; transition: --flame 1.6s ease; }
.incense[data-active="1"] .medallion { --flame: #46c4f5; }
.incense[data-active="2"] .medallion { --flame: #f0392e; }
.medallion-halo {
  position: absolute; inset: -42%; border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--flame) 30%, transparent) 0%,
    color-mix(in srgb, var(--flame) 17%, transparent) 26%,
    color-mix(in srgb, var(--flame) 8%, transparent) 44%,
    color-mix(in srgb, var(--flame) 3%, transparent) 58%,
    transparent 70%);
  mix-blend-mode: screen; opacity: calc(.85 * var(--flick));
}
.medallion-ring { position: absolute; inset: -7%; width: 114%; height: 114%; color: var(--gold-500); opacity: calc(.28 + .22 * var(--flick-b)); animation: turn 120s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.label {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  opacity: 0; transform: scale(.86) rotate(-10deg); filter: blur(8px) brightness(.4);
  transition: opacity 1s ease, transform 1.3s var(--ease), filter 1.1s ease;
  box-shadow: 0 34px 60px rgba(0, 0, 0, .75);
}
.blends { display: grid; text-align: left; justify-self: start; justify-items: start; width: min(100%, 30rem); }
.blend { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); filter: blur(4px); pointer-events: none;
  transition: opacity .8s ease, transform 1s var(--ease), filter .8s ease; }
.blend-note { font-style: italic; color: var(--text); font-size: 1.08em; }
.blends .whisper-link { grid-row: 2; margin-top: .6rem; }

.incense[data-active="0"] [data-step="0"],
.incense[data-active="1"] [data-step="1"],
.incense[data-active="2"] [data-step="2"] { opacity: 1; transform: none; filter: none; pointer-events: auto; }
html:not(.js) .label[data-step="0"] { opacity: 1; transform: none; filter: none; }
html:not(.js) .blend { grid-area: auto; opacity: 1; transform: none; filter: none; margin-bottom: 2rem; }

.pips { position: absolute; right: clamp(.8rem, 3vw, 2.4rem); top: 50%; transform: translateY(-50%); display: grid; gap: 1rem; }
.pips li { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold-700); transition: background .6s, box-shadow .6s, border-color .6s; }
.incense[data-active="0"] .pips li:nth-child(1),
.incense[data-active="1"] .pips li:nth-child(2),
.incense[data-active="2"] .pips li:nth-child(3) { background: var(--gold-300); border-color: var(--gold-100); box-shadow: 0 0 calc(12px * var(--flick)) rgba(var(--fire-mid), .9); }

@media (max-width: 820px) {
  .incense-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .medallion { width: min(36svh, 68vw); justify-self: center; }
  .blends { text-align: center; justify-self: center; justify-items: center; }
  .incense-head h2 { font-size: 1.3rem; margin-bottom: 1.6rem; }
}
/* Short phones: shrink the label so the longer blend descriptions still fit on the pinned stage. */
@media (max-width: 820px) and (max-height: 760px) {
  .incense-grid { gap: 1.4rem; }
  .medallion { width: min(25svh, 60vw); }
  .incense-head h2 { margin-bottom: 1rem; }
  .blend-note { font-size: 1em; line-height: 1.5; }
}

/* ---------- Tarot ------------------------------------------------------------ */

.spread { display: flex; justify-content: center; gap: clamp(.7rem, 2.2vw, 1.6rem); margin: 3.4rem auto 0; perspective: 1400px; flex-wrap: wrap; max-width: 1040px; }
.card { width: clamp(128px, 21vw, 224px); aspect-ratio: 1088 / 1456; /* the card-back art's own proportions */
  transform: rotate(calc((var(--i) - 1.5) * 3.5deg)) translateY(calc((var(--i) - 1.5) * (var(--i) - 1.5) * 7px)); }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 260ms + 500ms); }
/* Cards are dealt face down. A click, tap, Enter or Space turns one over, and again turns it back. */
.card-inner { cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; touch-action: manipulation; }
.card.is-dealt .card-inner { transition-duration: .9s; transition-delay: 0s; }
.card.is-turned .card-inner, html:not(.js) .card-inner { transform: rotateY(180deg); }
.card-inner:focus-visible .card-back, .card-inner:focus-visible .card-face { outline: 1px solid var(--gold-100); outline-offset: 4px; }
@media (hover: hover) {
  .card { transition: translate .5s var(--ease); }
  .card:hover { translate: 0 -8px; }
}
.turn-hint { margin: 2.2rem 0 0; text-align: center; font-family: var(--display); font-size: .66rem; letter-spacing: .5em; padding-left: .5em;
  text-transform: uppercase; color: var(--gold-500); }
.turn-hint span { transition: opacity 1.4s ease; }
.tarot.has-turned .turn-hint span { opacity: 0; }
/* A real card image on the face (see data-art in index.html). It sits in the engraved frame, toned a little towards firelight. */
.card-art { display: none; }
.card.has-art .card-face { padding: .55rem .5rem .6rem; gap: .5rem; justify-content: flex-start; }
.card.has-art .card-face svg, .card.has-art .card-num { display: none; }
.card.has-art .card-art { display: block; flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain;
  filter: sepia(.28) saturate(.82) brightness(calc(.86 + .06 * var(--flick))) contrast(1.04); }
.card.has-art .card-name { font-size: clamp(.5rem, 1vw, .62rem); letter-spacing: .14em; line-height: 1.35; color: var(--gold-500); }
.card-back, .card-face {
  position: absolute; inset: 0; border-radius: 9px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: inset 0 0 0 4px #090706, inset 0 0 0 5px rgba(195, 154, 78, .4), 0 18px 28px rgba(0, 0, 0, .75), 0 2px 4px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* R's card-back art. The flame warms its upper-left corner, as it does the faces. */
.card-back {
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(var(--fire-mid), calc(.14 * var(--flick))) 0%, rgba(var(--fire-low), .04) 42%, transparent 70%) padding-box,
    url("assets/img/card-back.webp") center / cover no-repeat padding-box,
    var(--foil) border-box;
  box-shadow: 0 18px 28px rgba(0, 0, 0, .75), 0 2px 4px rgba(0, 0, 0, .6);
}
.card-back svg { display: none; }
/* Lit from above and to the left, as the lantern would light a card on a table. */
.card-face {
  transform: rotateY(180deg); padding: 1.1rem .7rem; gap: .9rem; color: var(--gold-300);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(var(--fire-mid), calc(.1 * var(--flick))) 0%, rgba(var(--fire-low), .03) 42%, transparent 70%) padding-box,
    linear-gradient(165deg, #1b150d 0%, #0e0b08 48%, #060504 100%) padding-box,
    var(--foil) border-box;
}
.card-face svg { width: 44%; color: var(--gold-500);
  filter: drop-shadow(0 0 calc(9px * var(--flick)) rgba(var(--fire-mid), .55)); }
.card-num { font-family: var(--display); font-size: .7rem; letter-spacing: .3em; color: var(--gold-700); padding-left: .3em; }
.card-name { font-family: var(--display); font-size: clamp(.62rem, 1.25vw, .78rem); letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
@media (max-width: 640px) {
  .spread { max-width: 320px; }
  .card { width: calc(50% - .5rem); transform: rotate(calc((var(--i) - 1.5) * 1.5deg)); }
}

.readings { margin-top: 3.4rem; }
.readings h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .22em; margin-bottom: .6rem; }
.readings-sub { font-family: var(--script); font-style: italic; color: var(--gold-300); margin: 0 0 1.4rem; }
.reading-dates { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; color: var(--text); }
.reading-dates li { font-family: var(--display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; padding: .55rem .9rem;
  border: 1px solid rgba(195, 154, 78, .35); }
.reading-dates li.is-next { color: var(--gold-100); border-color: var(--gold-500); }
.reading-dates li.is-past { display: none; }
.reading-hours { font-family: var(--display); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300); margin: 1.6rem 0 .8rem; }
.reading-place { color: var(--text); margin: 0; }
.reading-place a { color: var(--gold-100); text-decoration-color: var(--gold-700); }
.reading-place span { font-style: italic; color: var(--text-dim); font-size: .92em; }

.crossroads { font-family: var(--script); font-style: italic; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.15; margin: 4.5rem 0 1rem; }

/* ---------- Commissions ------------------------------------------------------ */

.comm-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); width: 100%; max-width: 1140px; }
.comm-copy { text-align: left; }
.comm-copy h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.comm-swap { display: grid; }
.comm-panel { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); filter: blur(4px);
  transition: opacity .8s ease, transform 1s var(--ease), filter .8s ease; }
.commissions[data-side="front"] .comm-panel[data-side="front"],
.commissions[data-side="back"] .comm-panel[data-side="back"] { opacity: 1; transform: none; filter: none; }
.fineprint { font-family: var(--display); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); line-height: 1.9; }
html:not(.js) .comm-panel { grid-area: auto; opacity: 1; transform: none; filter: none; }

.token-scene { perspective: 1600px; container-type: inline-size; width: 100%; }
.token {
  position: relative; width: 100%; aspect-ratio: 2.3 / 1; transform-style: preserve-3d;
  transform: rotateY(calc(var(--flip, 0) * 180deg)) rotateX(calc(var(--tilt, 0) * 1deg));
}
.token-side {
  position: absolute; inset: 0; border-radius: 3.2cqw; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background:
    radial-gradient(130% 120% at 24% -10%, rgba(var(--fire-mid), calc(.11 * var(--flick))) 0%, rgba(var(--fire-low), .04) 36%, transparent 62%) padding-box,
    linear-gradient(170deg, #17120b 0%, #0c0a07 45%, #050404 100%) padding-box,
    var(--foil) border-box;
  box-shadow: 0 34px 50px rgba(0, 0, 0, .8), 0 4px 8px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold-500); padding: 4cqw 7cqw; text-align: center; overflow: hidden;
}
.token-side::before { content: ''; position: absolute; inset: 1.6cqw; border: 1px solid rgba(195, 154, 78, .4); border-radius: 1.8cqw; pointer-events: none; }
/* A band of reflected flame that crosses the token as it turns. */
.token-side::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(104deg, transparent 34%, rgba(var(--fire-mid), .07) 43%, rgba(var(--fire-core), .2) 50%, rgba(var(--fire-mid), .07) 57%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: calc(110% - var(--flip, 0) * 220%) 0;
}
.token-back { transform: rotateY(180deg); }
.corner { position: absolute; width: 4cqw; height: 4cqw; border: 1px solid var(--gold-500); opacity: .8; }
.corner.tl { top: 2.6cqw; left: 2.6cqw; border-right: 0; border-bottom: 0; }
.corner.tr { top: 2.6cqw; right: 2.6cqw; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 2.6cqw; left: 2.6cqw; border-right: 0; border-top: 0; }
.corner.br { bottom: 2.6cqw; right: 2.6cqw; border-left: 0; border-top: 0; }
.token p { margin: 0; font-family: var(--display); text-transform: uppercase; }
.token-emblem { width: 19cqw; margin-bottom: 1.4cqw; }
.token-title { font-size: 9cqw; letter-spacing: .16em; padding-left: .16em; line-height: 1.05;
  color: color-mix(in oklab, var(--gold-100) calc(var(--glint) * 1%), var(--gold-500));
  text-shadow: 0 1px 0 rgba(255, 240, 200, .18), 0 -1px 0 rgba(0, 0, 0, .8), 0 0 calc(4cqw * var(--flick)) rgba(var(--fire-mid), .22); }
.token-sub { font-size: 4.3cqw; letter-spacing: .26em; padding-left: .26em; color: var(--gold-300); }
.token-rule { display: flex; align-items: center; gap: 2cqw; width: 70%; margin: 2cqw 0 !important; }
.token-rule::before, .token-rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(195, 154, 78, 0), var(--gold-500)); }
.token-rule::after { transform: scaleX(-1); }
.token-rule svg { width: 2.6cqw; }
.token-foot { font-size: 2.3cqw; letter-spacing: .34em; padding-left: .34em; line-height: 1.8; }
.token-credit { font-size: 2.9cqw; letter-spacing: .14em; line-height: 1.6; max-width: 62cqw; color: var(--gold-300); }
.elements { display: flex; gap: 4.4cqw; margin: 3cqw 0; font-family: var(--display); font-size: 1.9cqw; letter-spacing: .2em; text-transform: uppercase; }
.elements svg { width: 6.4cqw; margin: 0 auto 1cqw; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 820px) {
  .comm-grid { grid-template-columns: 1fr; gap: 2rem; }
  .comm-copy { text-align: center; order: 2; }
  .token-scene { max-width: 30rem; margin: 0 auto; }
}

/* ---------- Prices & how a commission works ---------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); margin: 3rem auto 0; max-width: 980px; counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: step; content: counter(step, upper-roman); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-size: 1.5rem; color: var(--gold-500); }
.step h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .18em; margin-bottom: .8rem; }
.step p { color: var(--text-dim); font-size: .98em; margin: 0; }

.price-list { max-width: 34rem; margin: 4rem auto 0; text-align: left; color: var(--text); }
.price-list h3 { text-align: center; font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .22em; margin: 2.4rem 0 1rem; }
.price-row { display: flex; align-items: baseline; gap: .8rem; padding: .3rem 0; margin: 0; }
.price-row span:first-child { white-space: nowrap; }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--gold-900); transform: translateY(-.3em); }
.price-row .amt { font-family: var(--display); color: var(--gold-300); white-space: nowrap; }
.price-note { font-style: italic; color: var(--text-dim); font-size: .95em; text-align: center; margin-top: 1.2rem; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 2.2rem; max-width: 24rem; }
}

/* ---------- Contact ---------------------------------------------------------- */

.contact { padding-bottom: 0; }
.phone { margin: 3.2rem auto 1.4rem; }
.phone-num { display: block; text-decoration: none; }
.phone-num:hover, .phone-num:focus-visible { color: var(--gold-100); animation: flame-glow 3.6s ease-in-out infinite; }
.email { display: block; margin: 3rem auto 2rem; padding: 1.8rem 1rem 1.2rem; position: relative; }
.email-link { display: block; text-decoration: none; }
.email::before, .email::after { content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(195, 154, 78, 0), var(--gold-700) 18%, var(--gold-300) 50%, var(--gold-700) 82%, rgba(195, 154, 78, 0));
  opacity: calc(.5 + .4 * var(--flick-b)); }
.email::before { top: 0; }
.email::after { bottom: 0; }
.email-label { display: block; font-family: var(--display); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-500); margin-bottom: .6rem; }
.email-addr { font-family: var(--script); font-style: italic; font-size: clamp(1.3rem, 4.6vw, 2.5rem); overflow-wrap: anywhere; }
.email-link:hover .email-addr, .email-link:focus-visible .email-addr { color: var(--gold-100); animation: flame-glow 3.6s ease-in-out infinite; }
.asks { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.asks a {
  --surface: #0b0907;
  display: block; font-family: var(--display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-300); padding: .85rem 1.2rem; transition: color .4s;
}
.asks a:hover, .asks a:focus-visible { color: var(--gold-100); animation: flame-box 3.6s ease-in-out infinite; }

/* Small engraved "Copy" under the address and number, for visitors with no mail app set up. */
.copy {
  display: inline-block; margin-top: .7rem; padding: .55rem 1rem; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: .62rem; letter-spacing: .36em; text-transform: uppercase;
  color: var(--gold-500); border-bottom: 1px solid rgba(195, 154, 78, .28); transition: color .4s, border-color .4s;
}
.copy:hover, .copy:focus-visible { color: var(--gold-100); border-color: rgba(195, 154, 78, .7); }
.copy.is-copied { color: var(--gold-100); }

/* Choose how the topic buttons reach the owner: a written email, or a pre-written text. */
.ask-by { margin: 3.4rem auto 1rem; }
.ask-by-switch { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid rgba(195, 154, 78, .28); }
.ask-by-switch button {
  background: none; border: 0; cursor: pointer; padding: .6rem 1.2rem;
  font-family: var(--display); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-500); transition: color .4s, background-color .6s;
}
.ask-by-switch button[aria-checked="true"] { color: var(--gold-100); background: rgba(195, 154, 78, .1); }
.ask-by-switch button:hover, .ask-by-switch button:focus-visible { color: var(--gold-100); animation: flame-glow 3.6s ease-in-out infinite; }
.copy-status { min-height: 1.4em; margin: 1rem 0 0; font-style: italic; color: var(--text-dim); transition: opacity .8s; }

.foot { margin-top: clamp(6rem, 16vh, 10rem); padding: 3rem 1rem 3.5rem; position: relative; }
.foot::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, rgba(195, 154, 78, 0), rgba(195, 154, 78, .35), rgba(195, 154, 78, 0)); }
.foot svg { width: 18px; margin: 0 auto 1rem; color: var(--gold-500); }
.foot p { font-family: var(--display); letter-spacing: .34em; text-transform: uppercase; font-size: .8rem; color: var(--gold-500); margin: 0 0 .5rem; }
.foot .foot-small { font-family: var(--body); font-style: italic; letter-spacing: .04em; text-transform: none; font-size: .95rem; color: var(--text-dim); }

/* Touch screens keep a tapped link "hovered" until the next tap, so the moving highlight is desktop only. */
@media (hover: none) {
  .carry-nav a:hover, .whisper-link:hover, .email-link:hover .email-addr, .asks a:hover, .ask-by-switch button:hover, .strike-btn:hover { animation: none; }
  .strike-btn { animation: beckon 3.4s ease-in-out infinite; }
}

/* ---------- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-lume] { filter: none; transform: none; transition: opacity .6s ease; }
  .label, .blend, .comm-panel { transition: opacity .6s ease; transform: none !important; filter: none !important; }
  .token { transform: rotateY(calc(round(var(--flip, 0)) * 180deg)); }
}
