:root {
  --night: #121331;
  --dusk: #22245a;
  --mauve: #5a4a78;
  --paper: #ece6f2;
  --paper-2: #d9d3e6;
  --paper-dim: #b9b2cf;
  --brass: #d6b877;
  --ink: #2a2140;
  --rule: rgba(236, 230, 242, .16);
  /* the four-point star the cards are engraved with, for CSS ornaments */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0 7.3 4.7 12 6 7.3 7.3 6 12 4.7 7.3 0 6 4.7 4.7Z' fill='%23d6b877'/%3E%3C/svg%3E");

  --serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --serif-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --glyph: "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", serif;

  --card-w: min(23vw, calc((100svh - 230px) * 0.577), 330px);
  --gutter: clamp(16px, 5vw, 80px);
}

@view-transition { navigation: auto; }
::view-transition-group(hero-card) { animation-duration: .75s; animation-timing-function: cubic-bezier(.2, .75, .15, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
::view-transition-group(site-header) { animation: none; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(214, 184, 119, .4); }

/* ---------- background: the starfield video, tinted to dusk ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 60%, var(--mauve) 100%);
  view-transition-name: bg;
}
.bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
  filter: contrast(1.15);
}
.bg.is-ready video { opacity: 1; }
.bg__tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #111232 0%, #1f2156 55%, #4a3a6e 100%);
  mix-blend-mode: screen;
  opacity: .84;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .45;
}
.bg__horizon {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 45% at 35% 105%, rgba(190, 130, 170, .35), transparent 70%),
    radial-gradient(70% 60% at 50% 45%, transparent 35%, rgba(6, 6, 24, .7) 100%);
}

/* ---------- header ---------- */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(16px, 4vw, 56px);
  view-transition-name: site-header;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  white-space: nowrap;
}
.mark svg { width: 18px; height: 18px; fill: var(--brass); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.mark:hover svg { transform: rotate(45deg); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: .95rem; }
.nav a { text-decoration: none; color: var(--paper-2); padding: 4px 0; border-bottom: 1px solid transparent; display: inline-flex; gap: 7px; align-items: baseline; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--brass); }
.nav__num { font-family: var(--serif); color: var(--brass); font-size: 1rem; }
.nav__extras { display: contents; }
.nav__short { display: none; }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 28px;
  padding: 22px clamp(16px, 4vw, 56px) 26px;
  font-size: .88rem;
  color: var(--paper-dim);
}
.foot p { margin: 0; }
.foot__motto { font-family: var(--serif); font-style: italic; font-size: 1.05rem; flex: 1 1 auto; }
/* tonight's real sky, computed in sky.js */
.foot__sky {
  flex: 1 1 100%;
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; margin-bottom: 6px !important;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.15rem; color: var(--paper-2);
}
.foot__sky svg { width: 34px; height: 34px; flex: none; overflow: visible; }
.foot__sky svg * { stroke: var(--brass); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot a:hover { color: var(--paper); }

/* =========================================================
   The holographic card
   ========================================================= */
.card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  border-radius: 12px;
  will-change: transform;
}
.face {
  position: absolute; inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 0 0 1px rgba(255, 255, 255, .12),
    0 calc(18px + var(--lift, 0) * 14px) calc(40px + var(--lift, 0) * 40px) -12px rgba(8, 6, 30, .75);
}
.face--back { transform: rotateY(180deg); background: #262a5c; }
.face svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.foil {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%),
    linear-gradient(118deg,
      #98d4f6 0%, #f3a3d2 13%, #ffdc8c 26%, #a0ebc3 39%,
      #a0b0ff 52%, #eda2e0 65%, #ffcf94 78%, #98e2ee 90%, #98d4f6 100%);
  background-size: 100% 100%, 420% 420%;
  background-position: 0 0, var(--px, 50%) var(--py, 50%);
}
.sheen {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(calc(115deg + var(--ang, 0deg)),
      hsl(0 80% 52%) 0%, hsl(45 85% 50%) 4%, hsl(120 70% 45%) 8%,
      hsl(190 85% 50%) 12%, hsl(260 75% 58%) 16%, hsl(320 80% 55%) 20%, hsl(0 80% 52%) 24%),
    repeating-linear-gradient(calc(25deg - var(--ang, 0deg)),
      rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .35) 2px 3px);
  background-size: 260% 260%, 100% 100%;
  background-position: var(--px, 50%) var(--py, 50%), 0 0;
  mix-blend-mode: color-dodge;
  opacity: calc(.24 + var(--lift, 0) * .4);
}
/* the travelling rainbow: one saturated band that sweeps across as the card turns */
.band {
  position: absolute; inset: 0;
  background: linear-gradient(calc(110deg + var(--ang, 0deg)),
    transparent 34%,
    hsl(320 90% 60%) 39%, hsl(38 100% 58%) 43.5%, hsl(90 80% 50%) 48%,
    hsl(180 90% 48%) 52.5%, hsl(240 85% 64%) 57%, transparent 63%);
  background-size: 300% 100%;
  background-position: var(--bx, 50%) 0;
  mix-blend-mode: hard-light;
  opacity: calc(.12 + var(--lift, 0) * .4);
}
/* crystalline foil texture: tiny facets that catch only where the light falls */
.etch {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 45deg, rgba(255, 255, 255, .7) 0 25%, rgba(40, 20, 80, .25) 0 50%);
  background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 30%), #000 0%, rgba(0, 0, 0, .25) 35%, transparent 65%);
  mask-image: radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 30%), #000 0%, rgba(0, 0, 0, .25) 35%, transparent 65%);
  mix-blend-mode: overlay;
  opacity: calc(.1 + var(--lift, 0) * .5);
}
.art { mix-blend-mode: multiply; }
.art g.ink { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art__num { font-family: var(--serif); font-size: 22px; fill: var(--ink); stroke: none; }
.art__cap { font-family: var(--serif-sc); font-size: 21px; letter-spacing: .04em; fill: var(--ink); stroke: none; }

/* glitter: each fleck flashes at its own angle */
.glints { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.glint {
  position: absolute;
  width: var(--s); height: var(--s);
  translate: -50% -50%;
  opacity: 0;
  background:
    radial-gradient(circle, #fff 0 12%, transparent 13%),
    linear-gradient(90deg, transparent 46%, #fff 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #fff 50%, transparent 54%);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 6px rgba(200, 220, 255, .7));
}
.glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 30%),
      rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .3) 18%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(120% 120% at var(--gx, 50%) var(--gy, 30%), transparent 55%, rgba(20, 14, 50, .32) 100%);
  /* a thin lit edge on the side facing the light */
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, calc(.15 + var(--lift, 0) * .45));
  mix-blend-mode: overlay;
  opacity: calc(.4 + var(--lift, 0) * .6);
}
.face--back .sheen { opacity: calc(.12 + var(--lift, 0) * .3); }
.face--back .glare { opacity: calc(.15 + var(--lift, 0) * .5); }

/* =========================================================
   Home: the deck
   ========================================================= */
/* the deck is pinned while you read, so it gets its own grid to be pinned within */
.deck-page { position: relative; z-index: 1; flex: 1; }
.stage {
  position: relative;
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-content: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--gutter) 24px;
  overflow-x: clip;
}
.deck-wrap {
  position: sticky;
  top: max(72px, calc(50svh - (var(--card-w) * 1.733 + 90px) / 2));
  align-self: start;
  height: calc(var(--card-w) * 1.733 + 90px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.wheel {
  position: absolute;
  width: calc(var(--card-w) * 2.6);
  aspect-ratio: 1;
  left: 50%; top: 46%;
  translate: -50% -50%;
  pointer-events: none;
  opacity: .55;
}
.wheel * { stroke: var(--brass); fill: none; }
.wheel { overflow: visible; }
.wheel .wheel__planet { fill: var(--paper); font-family: var(--glyph); font-size: 17px; }
.wheel text { fill: var(--brass); stroke: none; font-family: var(--serif); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
/* a slow breath of light behind the cards: four counts in, four out */
.deck-wrap::before, .hero__stage::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: calc(var(--card-w) * 1.9); aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 184, 119, .22), rgba(170, 140, 220, .1) 55%, transparent);
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}
.hero__stage::before { top: 50%; width: calc(var(--hero-w) * 1.9); }
@keyframes breathe {
  0%, 100% { scale: .88; opacity: .55; }
  50% { scale: 1.06; opacity: 1; }
}
.deck {
  position: relative;
  width: var(--card-w);
  aspect-ratio: 300 / 520;
  perspective: 1400px;
  touch-action: pan-y;
  isolation: isolate;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}
.deck.is-dragging { cursor: grabbing; }
.deck:focus-visible .slot[aria-selected="true"] .card { outline: 2px solid var(--brass); outline-offset: 6px; }
.slot { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  margin: 0; text-align: center;
  font-size: .85rem; color: var(--paper-dim);
  transition: opacity .6s;
}
.hint.is-gone { opacity: 0; }

.reading { max-width: 34rem; align-self: center; padding: 24px 0; }
.reading__lead {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
  color: var(--paper-2);
}
.reading__lead em { color: var(--brass); white-space: nowrap; }
.reading__kicker { color: var(--paper-dim); font-size: .95rem; margin: 0 0 2.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); max-width: 28rem; }
.reading__inner { transition: opacity .28s ease, transform .28s ease; }
.reading__inner.is-out { opacity: 0; transform: translateY(8px); }
.reading h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 5.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0 0 .3em;
}
.reading__line { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--brass); margin: 0 0 1.1rem; }
/* what a service works on, separated by small brass stars */
.focus { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 1.2rem -37px; padding: 0; clip-path: inset(0 0 0 37px); font-weight: 500; font-size: .95rem; color: var(--paper); }
.focus li { display: inline-flex; align-items: center; }
.focus li::before {
  content: ""; width: 9px; height: 9px; margin: 0 14px; background: var(--brass);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.reading__about { margin: 0 0 1.5rem; color: var(--paper-2); max-width: 31rem; }

.facts { display: flex; gap: clamp(24px, 3vw, 44px); margin: 0 0 1.7rem; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: .82rem; color: var(--paper-dim); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 24px 12px;
  background: var(--paper);
  color: var(--night);
  text-decoration: none;
  font-weight: 600; font-size: .97rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 4px rgba(28, 31, 69, .9), 0 0 0 5px rgba(236, 230, 242, .45);
  overflow: hidden;
  isolation: isolate;
}
/* a strip of foil passes across the button on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, #b2f0cf 42%, #ffe3a0 50%, #f6b2da 58%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position .8s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover::after { background-position: -20% 0; }
.btn--quiet { background: transparent; color: var(--paper); box-shadow: 0 0 0 1px rgba(236, 230, 242, .55); }
.btn--quiet::after { opacity: .35; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(214, 184, 119, .6); padding-bottom: 2px; }
.textlink:hover { border-bottom-color: var(--brass); }

.turner { display: flex; align-items: center; gap: 6px; margin-top: 2rem; }
.turner__arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 1px solid rgba(236, 230, 242, .3); border-radius: 50%;
  color: var(--paper); cursor: pointer;
  transition: border-color .2s;
}
.turner__arrow:hover { border-color: var(--paper); }
.turner__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.turner__list { display: flex; gap: 2px; list-style: none; margin: 0 6px; padding: 0; }
.turner__list button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.15rem; color: var(--paper-dim);
  padding: 6px 10px; border-bottom: 1px solid transparent;
}
.turner__list button[aria-current="true"] { color: var(--paper); border-bottom-color: var(--brass); }

/* "start where you are" under the deck */
.where { max-width: calc(1180px + 2 * var(--gutter)); margin: clamp(40px, 6vw, 96px) auto 0; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); }
.where h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 .5em; }
.where .chapter__head p { color: var(--paper-2); margin: 0; }
.where__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.where__list button {
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  padding: 24px 0; border: 0; border-top: 1px solid var(--rule);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: padding .4s cubic-bezier(.2, .8, .2, 1);
}
.where__when { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; color: var(--paper-2); max-width: 36em; transition: color .3s; }
.where__card { display: inline-flex; gap: 8px; align-items: baseline; flex: none; font-weight: 500; font-size: .95rem; color: var(--paper-dim); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.where__list button:hover { padding-left: 12px; }
.where__list button:hover .where__when { color: var(--paper); }
.where__list button:hover .where__card { color: var(--paper); border-bottom-color: var(--brass); }

/* ---------- Home: a statement that lights as it is read ---------- */
.statement { max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(110px, 16vw, 230px) var(--gutter) clamp(80px, 12vw, 170px); }
.statement__kicker { margin: 0 0 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brass); }
.statement__text { margin: 0; max-width: 19em; font-family: var(--serif); font-size: clamp(2.1rem, 4.8vw, 4.3rem); line-height: 1.1; letter-spacing: -.012em; }
.statement__text em { font-style: italic; }
.statement__word { color: rgba(236, 230, 242, .15); transition: color .6s ease; }
.statement__word.is-lit { color: var(--paper); }
.statement__text em .statement__word.is-lit { color: var(--brass); }
.statement__more { margin: 2.4rem 0 0; }

/* ---------- Home: tonight's Moon, seen as if through an eyepiece ---------- */
.tonight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(36px, 6vw, 100px);
  max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(60px, 9vw, 130px);
}
.tonight__moon { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; }
/* moonlight spills past the glass; an engraved rim and a finer inner ring hold it */
.tonight__moon::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(225, 222, 240, .13), rgba(170, 160, 220, .05) 60%, transparent); pointer-events: none; }
.tonight__moon::after { content: ""; position: absolute; inset: -3%; border-radius: 50%; border: 1px solid rgba(214, 184, 119, .45); box-shadow: inset 0 0 0 7px transparent, 0 0 0 7px rgba(14, 15, 40, 0), 0 0 0 8px rgba(214, 184, 119, .18); pointer-events: none; }
.tonight__canvas { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity 1.8s ease; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.tonight__canvas.is-ready { opacity: 1; }
.tonight__caption { position: absolute; left: 0; right: 0; top: calc(100% + 2.2rem); margin: 0 auto; max-width: 26rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--paper-dim); }
.tonight__kicker { margin: 0 0 .9rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brass); }
.tonight h2 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.012em; }
.tonight__sign { font-family: var(--glyph); font-size: .55em; color: var(--brass); vertical-align: .35em; }
.tonight__lit { margin: 0 0 1rem; font-size: 1.1rem; color: var(--paper-2); }
.tonight__mood { margin: 0 0 2rem; max-width: 30rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--paper-dim); }
.lunations { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--rule); }
.lunations div { padding: 18px 20px 4px 0; }
.lunations div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.lunations dt { font-size: .85rem; color: var(--paper-dim); }
.lunations dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.lunations dd span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--brass); }
.tonight--static { grid-template-columns: 1fr; }
.tonight--static .tonight__moon { display: none; }

/* ---------- Home: the sky right now ---------- */
.skynow { max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(90px, 12vw, 160px); }
.skynow h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 .5em; }
.skynow .chapter__head p { color: var(--paper-2); margin: 0; }
.skynow__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.skynow__wheel svg { width: 100%; max-width: 600px; display: block; margin: 0 auto; }
.skynow__list { list-style: none; margin: 0 0 2rem; padding: 0; border-bottom: 1px solid var(--rule); }
.skynow__list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
.skynow__glyph { font-family: var(--glyph); font-size: 1.3rem; color: var(--brass); text-align: center; }
.skynow__name { font-family: var(--serif); font-size: 1.25rem; }
.skynow__where { font-size: .92rem; color: var(--paper-2); text-align: right; }
.skynow__where span { font-family: var(--glyph); color: var(--brass); }
.skynow__where em { font-style: normal; color: var(--brass); }

@media (max-width: 860px) {
  .tonight, .skynow__body { grid-template-columns: 1fr; }
  .tonight__moon { max-width: min(80vw, 420px); margin-bottom: 4.5rem; }
  .statement { padding-top: 90px; }
}

/* =========================================================
   Service pages
   ========================================================= */
.svc { position: relative; z-index: 1; flex: 1; }

.hero {
  --hero-w: min(27vw, calc((100svh - 190px) * 0.577), 360px);
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  padding: 8px var(--gutter) 64px;
}
.hero__stage {
  position: relative;
  display: grid; place-items: center;
  height: calc(var(--hero-w) * 1.733 + 40px);
}
.hero__ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--hero-w) * 2.15); aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}
.hero__ring * { stroke: var(--brass); fill: none; }
.hero__card {
  position: relative;
  width: var(--hero-w);
  aspect-ratio: 300 / 520;
  perspective: 1200px;
  cursor: pointer;
  border: 0; padding: 0; background: none; color: inherit;
}
.hero__card { view-transition-name: hero-card; }
.hero__flip {
  display: block; margin: 18px auto 0; padding: 6px 2px;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; font-size: .85rem; color: var(--paper-dim); cursor: pointer;
  transition: color .3s, border-color .3s;
}
.hero__flip:hover, .hero__flip:focus-visible { color: var(--brass); border-color: var(--brass); }

.hero__text { max-width: 36rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.02em;
  margin: 0 0 .3em;
}
/* the title catches light like the card does */
.foil-text {
  background-image: linear-gradient(100deg,
    #f4f0f8 0%, #f4f0f8 30%, #bfe6f7 38%, #f8cde6 44%, #ffe8b0 50%, #c8f2da 56%, #f4f0f8 64%, #f4f0f8 100%);
  background-size: 300% 100%;
  background-position: var(--tx, 60%) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__line { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; color: var(--brass); margin: 0 0 1.2rem; }
.hero__intro { color: var(--paper-2); margin: 0 0 1.8rem; max-width: 32rem; }
.hero .facts { margin-bottom: 2rem; }

.chapter { padding: clamp(56px, 7vw, 100px) var(--gutter); max-width: 1240px; margin: 0 auto; width: 100%; }
.chapter__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 64px); }
.chapter__head::before {
  content: ""; display: block;
  width: 96px; height: 12px; margin-bottom: 22px;
  background:
    var(--star) left center / 12px no-repeat,
    linear-gradient(90deg, rgba(214, 184, 119, .65), rgba(214, 184, 119, 0)) 20px 50% / 76px 1px no-repeat;
}
.chapter h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05; margin: 0 0 .5em;
}
.chapter__head p { color: var(--paper-2); margin: 0; }
.prose p { color: var(--paper-2); max-width: 36rem; margin: 0 0 1.1em; }
.initial > p:first-child::first-letter {
  float: left;
  font-size: 3.3em; line-height: .8;
  margin: .07em .09em 0 -.02em;
  color: var(--brass);
}
.prose p:first-child { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .9vw, 1.45rem); line-height: 1.45; color: var(--paper); max-width: 38rem; }

/* star-bulleted lists */
.stars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.stars li { position: relative; padding: 18px 0 18px 30px; border-top: 1px solid var(--rule); color: var(--paper-2); }
.stars li::before {
  content: ""; position: absolute; left: 2px; top: 1.6em;
  width: 11px; height: 11px; background: var(--brass);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.stars strong { display: block; color: var(--paper); font-weight: 600; }

/* the three-line statement */
.triad { padding: clamp(80px, 12vw, 170px) var(--gutter); text-align: center; }
.triad p {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.12;
  margin: 0 auto .25em;
  max-width: 16em;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 1s ease;
}
.triad p:nth-child(2) { transition-delay: .45s; color: var(--paper-2); }
.triad p:nth-child(3) { transition-delay: .9s; font-style: italic; color: var(--brass); }
.triad.is-in p { opacity: 1; transform: none; filter: none; }
.triad small { display: block; margin-top: 2.2rem; font-size: 1rem; color: var(--paper-dim); font-family: var(--sans); opacity: 0; transition: opacity 1s 1.5s; }
.triad.is-in small { opacity: 1; }

/* booking band and next card */
.close {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  max-width: 1240px; margin: 0 auto; width: 100%;
  border-top: 1px solid var(--rule);
}
/* the booking plate: framed like the cards, double rule and a star in each corner */
.plate {
  position: relative;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(214, 184, 119, .55);
  border-radius: 3px;
  background: rgba(14, 15, 40, .4);
}
.plate::before, .plate::after { content: ""; position: absolute; pointer-events: none; }
.plate::before { inset: 6px; border: 1px solid rgba(214, 184, 119, .22); border-radius: 1px; }
.plate::after {
  inset: 14px;
  background:
    var(--star) left top / 10px no-repeat, var(--star) right top / 10px no-repeat,
    var(--star) left bottom / 10px no-repeat, var(--star) right bottom / 10px no-repeat;
}
.plate > * { position: relative; z-index: 1; }
.close h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0 0 .45em; }
.close p { color: var(--paper-2); margin: 0 0 1.6rem; max-width: 30rem; }
.next {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center;
  text-decoration: none;
  padding: 18px; margin: -18px;
  border-radius: 6px;
  transition: background .3s;
}
.next:hover { background: rgba(236, 230, 242, .06); }
.next__card { width: 96px; aspect-ratio: 300/520; border-radius: 6px; overflow: hidden; position: relative; transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 14px 30px -10px rgba(8, 6, 30, .8); }
.next:hover .next__card { transform: rotate(2deg) translateY(-4px); }
.next__card .foil { background-position: 0 0, 30% 40%; }
.next__label { font-size: .88rem; color: var(--paper-dim); display: block; margin-bottom: 4px; }
.next__name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; display: block; }
.next__line { color: var(--brass); font-family: var(--serif); font-style: italic; }

/* ---------- About: the mineral moon ---------- */
.about .hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; }
.moon { position: relative; margin: 0; width: calc(var(--hero-w) * 1.2); max-width: 443px; }
.moon img {
  width: 100%; height: auto;
  border-radius: 50%;
  /* the photo's black sky drops away and only the lit moon stays */
  mix-blend-mode: screen;
  box-shadow: 0 0 90px 10px rgba(205, 190, 255, .12);
  will-change: transform;
}
.moon figcaption { margin-top: 22px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--paper-dim); font-size: 1rem; }

/* her portrait, mounted like a print with a brass hairline set in from the edge */
.portrait { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.portrait__print { position: relative; margin: 0; padding: 14px; background: rgba(236, 230, 242, .035); border: 1px solid var(--rule); }
.portrait__print img { display: block; width: 100%; height: auto; outline: 1px solid rgba(214, 184, 119, .6); outline-offset: -10px; }
.portrait__print figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--paper-dim); text-align: right; }
/* the print develops as it arrives: it uncovers from the bottom and warms out of grey */
.portrait__print[data-reveal] img { clip-path: inset(100% 0 0 0); filter: grayscale(1) brightness(.6); transition: clip-path 1.6s cubic-bezier(.6, .1, .2, 1), filter 2.6s ease .6s; }
.portrait__print[data-reveal].is-in img { clip-path: inset(0); filter: none; }

/* golden hour on the shore, fading out of and back into the night sky */
.shore {
  position: relative; margin: clamp(24px, 4vw, 56px) 0; height: clamp(320px, 62vw, 760px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 68%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 68%, transparent);
}
.shore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.12); will-change: transform; }
@media (max-width: 860px) {
  .portrait { grid-template-columns: 1fr; }
  .portrait__print { max-width: 420px; }
  .shore img { object-position: 64% 40%; }
}

/* ---------- Ongoing Coaching: the cycle ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cycle li { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 16px 8px; text-align: center; }
.cycle li + li { border-left: 1px solid var(--rule); }
.cycle__moon { width: 96px; height: 96px; overflow: visible; }
.cycle__moon * { stroke: var(--brass); }
.cycle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; margin: 0; }

/* ---------- Starmap: the voyage out through the planets ---------- */
.voyage { position: relative; height: calc(var(--stops) * 92svh + 100svh); margin: clamp(48px, 8vw, 120px) 0 0; background: #020309; }
/* the page's dusk sky deepens into space above and below */
.voyage::before, .voyage::after { content: ""; position: absolute; left: 0; right: 0; height: 40svh; pointer-events: none; }
.voyage::before { bottom: 100%; background: linear-gradient(180deg, rgba(2, 3, 9, 0), #020309); }
.voyage::after { top: 100%; background: linear-gradient(180deg, #020309, rgba(2, 3, 9, 0)); }
.voyage__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.voyage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;; opacity: 0; transition: opacity 1.8s ease; }
/* the scene appears only once every texture has arrived, never as black spheres */
.voyage__canvas.is-ready, .dawn__canvas.is-ready { opacity: 1; }

.voyage__intro { position: absolute; bottom: 7svh; left: 0; right: 0; text-align: center; pointer-events: none; }
.voyage__intro .voyage__kicker { justify-content: center; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--paper); }
.voyage__scroll { margin: .4rem 0 0; font-size: .9rem; color: var(--paper-dim); }

.voyage__stops { position: absolute; inset: 0; pointer-events: none; }
.voyage__stop {
  position: absolute; right: clamp(24px, 7vw, 128px); top: 17svh;
  width: min(30rem, 40vw);
  opacity: 0; visibility: hidden;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .85);
  will-change: opacity, transform;
}
.voyage__stop .actions { pointer-events: auto; }
.voyage__kicker { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brass); }
.voyage__glyph { font-family: var(--glyph); font-style: normal; font-size: 1.7rem; line-height: 1; }
.voyage__glyph--star { width: 15px; height: 15px; background: var(--star) center / contain no-repeat; }
.voyage__stop h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: .95; letter-spacing: -.015em; margin: .12em 0 .32em; }
.voyage__stop p { margin: 0; font-size: 1.12rem; color: var(--paper-2); }
.voyage__stop--finale { right: auto; left: clamp(24px, 6vw, 110px); top: auto; bottom: 9svh; width: min(24rem, 30vw); }
.voyage__stop--finale .actions { margin-top: 1.6rem; }

.voyage__labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.voyage__label { position: absolute; left: 0; top: 0; white-space: nowrap; }
.voyage__label--planet { display: flex; flex-direction: column; align-items: center; translate: -50% 12px; font-size: .78rem; color: var(--paper-2); letter-spacing: .02em; }
.voyage__label--planet b { font-family: var(--glyph); font-weight: 400; font-size: 1rem; color: var(--brass); }
.voyage__label--sign { translate: -50% -50%; font-family: var(--glyph); font-size: 1.05rem; color: var(--brass); opacity: .8; }

@media (max-width: 860px) {
  .voyage__stop, .voyage__stop--finale { left: 20px; right: 20px; top: auto; bottom: 7svh; width: auto; }
  .voyage__stop h3 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .voyage__stop p { font-size: 1rem; }
  .voyage__intro { top: 10svh; bottom: auto; padding: 0 20px; }
  .voyage__label--planet { font-size: .68rem; }
}

/* without WebGL, the stops read as a list */
.voyage--static { height: auto; background: none; margin: 0; }
.voyage--static::before, .voyage--static::after, .voyage--static .voyage__canvas,
.voyage--static .voyage__labels, .voyage--static .voyage__intro { display: none; }
.voyage--static .voyage__sticky { position: static; height: auto; overflow: visible; }
.voyage--static .voyage__stops { position: static; padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto; }
.voyage--static .voyage__stop { position: static; width: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; padding: 28px 0; border-top: 1px solid var(--rule); }

/* ---------- Clarity: sunrise over Earth ---------- */
.dawn { position: relative; height: 360svh; margin: clamp(32px, 6vw, 80px) 0 0; background: #020309; }
.dawn::before, .dawn::after { content: ""; position: absolute; left: 0; right: 0; height: 36svh; pointer-events: none; }
.dawn::before { bottom: 100%; background: linear-gradient(180deg, rgba(2, 3, 9, 0), #020309); }
.dawn::after { top: 100%; background: linear-gradient(180deg, #020309, rgba(2, 3, 9, 0)); }
.dawn__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.dawn__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;; opacity: 0; transition: opacity 1.8s ease; }
.dawn__lines { position: absolute; left: 0; right: 0; top: 14svh; display: grid; justify-items: center; padding: 0 var(--gutter); pointer-events: none; }
.dawn__line {
  grid-area: 1 / 1;
  max-width: 34rem; margin: 0;
  text-align: center;
  font-size: 1.15rem; line-height: 1.6; color: var(--paper-2);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .9);
  opacity: 0;
  will-change: opacity, transform;
}
.dawn__line--lead { max-width: 40rem; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; color: var(--paper); }

.dawn--static { height: auto; background: none; margin: 0; }
.dawn--static::before, .dawn--static::after, .dawn--static .dawn__canvas { display: none; }
.dawn--static .dawn__sticky { position: static; height: auto; }
.dawn--static .dawn__lines { position: static; display: block; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 100px) var(--gutter); }
.dawn--static .dawn__line { opacity: 1 !important; transform: none !important; text-align: left; margin-bottom: 1em; }

/* ---------- Skyprint: a chart drawn in as you scroll ---------- */
.inscribe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); }
.inscribe__scene { position: sticky; top: 8svh; height: 84svh; display: flex; align-items: center; justify-content: center; }
.inscribe__scene svg { width: 100%; max-width: 600px; }
.inscribe__steps { padding: 20svh 0 30svh; }
.inscribe__step { min-height: 66svh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.inscribe__step.is-on { opacity: 1; }
.inscribe__step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0 0 .5em; }
.inscribe__step p { margin: 0 0 .8em; max-width: 30rem; color: var(--paper-2); }

/* scroll decides what is drawn: each step adds a layer, with the wheel's own order kept as a stagger */
.chart-wheel.chart-wheel--scrub .ink, .chart-wheel.chart-wheel--scrub .fade { animation: none; }
.chart-wheel.chart-wheel--scrub .ink { transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .2, 1) calc(var(--d) * .25), stroke .5s; }
.chart-wheel.chart-wheel--scrub .fade { transition: opacity .8s ease calc(var(--d) * .25), fill .5s; }
.chart-wheel.chart-wheel--scrub.is-1 [class="ink"] { stroke-dashoffset: 0; }
.chart-wheel.chart-wheel--scrub.is-1 .glyph--sign, .chart-wheel.chart-wheel--scrub.is-1 g.fade { opacity: 1; }
.chart-wheel.chart-wheel--scrub.is-2 .rule:not(.rule--planet), .chart-wheel.chart-wheel--scrub.is-2 .house-num, .chart-wheel.chart-wheel--scrub.is-2 .axis-label { opacity: 1; }
.chart-wheel.chart-wheel--scrub.is-2 .ink--axis { stroke-dashoffset: 0; }
.chart-wheel.chart-wheel--scrub.is-3 .ink--planet { stroke-dashoffset: 0; }
.chart-wheel.chart-wheel--scrub.is-3 .rule--planet, .chart-wheel.chart-wheel--scrub.is-3 .glyph--planet, .chart-wheel.chart-wheel--scrub.is-3 .planet-deg { opacity: 1; }
.chart-wheel.chart-wheel--scrub.is-4 .aspect { stroke-dashoffset: 0; }
/* the Big 3: everything else steps back, and the Sun, Moon and Ascendant take the brass */
.chart-wheel.chart-wheel--scrub.is-5 .glyph--planet:not([data-id="sun"]):not([data-id="moon"]),
.chart-wheel.chart-wheel--scrub.is-5 .planet-deg:not([data-id="sun"]):not([data-id="moon"]),
.chart-wheel.chart-wheel--scrub.is-5 .rule--planet { opacity: .22; }
.chart-wheel.chart-wheel--scrub.is-5 .aspect { stroke: rgba(214, 184, 119, .18); }
.chart-wheel.chart-wheel--scrub.is-5 [data-id="sun"].glyph, .chart-wheel.chart-wheel--scrub.is-5 [data-id="moon"].glyph { fill: var(--brass); }
.chart-wheel.chart-wheel--scrub.is-5 .ink--axis { stroke: var(--brass); }
.chart-wheel.chart-wheel--scrub.is-5 .axis-label { fill: var(--brass); }

@media (max-width: 860px) {
  .inscribe { grid-template-columns: 1fr; gap: 0; }
  .inscribe__scene { top: 56px; height: 44svh; z-index: 2; background: linear-gradient(180deg, rgba(20, 21, 56, .97) 0 84%, rgba(20, 21, 56, 0)); margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 22px; }
  .inscribe__scene svg { height: 100%; width: auto; }
  .inscribe__steps { padding: 4svh 0 12svh; }
  .inscribe__step { min-height: 52svh; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-wheel.chart-wheel--scrub .ink, .chart-wheel.chart-wheel--scrub .fade { transition: none; }
}

/* ---------- Skyprint: the twelve houses ---------- */
.houses { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.houses__wheel { width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; overflow: visible; }
.houses__wheel .ring { fill: none; stroke: rgba(214, 184, 119, .55); }
.houses__wheel .tick { stroke: rgba(214, 184, 119, .5); }
.house { cursor: pointer; outline: none; }
.house path { fill: rgba(236, 230, 242, .02); stroke: rgba(214, 184, 119, .55); stroke-width: 1; transition: fill .35s; }
.house text { font-family: var(--serif); font-size: 22px; fill: var(--paper-dim); text-anchor: middle; dominant-baseline: central; transition: fill .3s; pointer-events: none; }
.house:hover path { fill: rgba(236, 230, 242, .08); }
.house.is-on path { fill: url(#houseFoil); }
.house.is-on text { fill: var(--ink); }
.house:focus-visible path { stroke: var(--paper); stroke-width: 2; }
.houses__core circle { fill: rgba(28, 31, 69, .6); stroke: rgba(214, 184, 119, .55); }
.houses__core line { stroke: rgba(214, 184, 119, .45); }
.house-detail { min-height: 15rem; }
.house-detail__num { font-family: var(--serif); color: var(--brass); font-size: 1.1rem; margin: 0 0 .3rem; }
.house-detail h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; margin: 0 0 .5em; }
.house-detail p { color: var(--paper-2); margin: 0; max-width: 28rem; }
.house-detail__note { margin-top: 1rem !important; font-family: var(--serif); font-style: italic; color: var(--brass) !important; }
.house-detail > * { transition: opacity .25s, transform .25s; }
.house-detail.is-out > * { opacity: 0; transform: translateY(6px); }

/* ---------- Clarity: the sunrise ---------- */
.rise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.rise__scene { position: sticky; top: 14svh; height: 72svh; display: flex; align-items: center; justify-content: center; }
.rise__scene svg { width: 100%; max-width: 520px; height: 100%; min-height: 0; overflow: visible; }
.rise__scene .line { stroke: rgba(236, 230, 242, .75); fill: none; stroke-linecap: round; }
.rise__scene .brass { stroke: var(--brass); }
.rise__steps { padding: 18svh 0 30svh; }
.facet { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.facet.is-on { opacity: 1; }
.facet__count { font-family: var(--serif); color: var(--brass); font-size: 1.1rem; margin: 0 0 .4rem; }
.facet h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.08; margin: 0 0 .6em; }
.facet p { color: var(--paper-2); margin: 0 0 .8em; max-width: 30rem; }

/* ---------- Starmap: the journey ---------- */
.journey { position: relative; padding: 40px 0; }
.journey__path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.journey__path .trail { fill: none; stroke: rgba(214, 184, 119, .25); stroke-width: 1.2; stroke-dasharray: 2 7; }
.journey__path .lit { fill: none; stroke: url(#trailFoil); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 230, 180, .55)); }
.week {
  position: relative;
  display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center;
  min-height: 46svh;
}
.week__star { grid-column: 2; justify-self: center; width: 72px; height: 72px; position: relative; z-index: 1; }
.week__star svg { width: 100%; height: 100%; overflow: visible; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transform: scale(.7); }
.week__star path { fill: rgba(28, 31, 69, .9); stroke: rgba(214, 184, 119, .7); stroke-width: 1.2; transition: fill .6s; }
.week.is-lit .week__star svg { transform: scale(1) rotate(22.5deg); }
.week.is-lit .week__star path { fill: url(#starFoil); stroke: #fff; }
.week.is-lit .week__star::after {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle, rgba(255, 236, 190, .45), transparent 60%);
  z-index: -1;
}
.week__body { max-width: 26rem; opacity: .35; transform: translateY(10px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.week.is-lit .week__body { opacity: 1; transform: none; }
.week:nth-child(odd of .week) .week__body { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.week:nth-child(even of .week) .week__body { grid-column: 3; grid-row: 1; }
.week__num { font-family: var(--serif); color: var(--brass); font-size: 1.1rem; margin: 0 0 .2rem; }
.week h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.08; margin: 0 0 .5em; }
.week p { color: var(--paper-2); margin: 0; }


/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 860px) {
  :root { --card-w: min(56vw, calc(52svh * 0.577), 280px); }
  .top { padding-top: 14px; padding-bottom: 6px; flex-wrap: wrap; row-gap: 6px; }
  .mark { font-size: 1.12rem; }
  .nav { gap: 10px; font-size: .86rem; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav a { gap: 5px; }
  /* the chart and About sit up on the brand row so the four cards keep the nav line to themselves */
  .nav__extras { position: absolute; top: 16px; right: clamp(16px, 4vw, 56px); display: flex; gap: 14px; }
  .nav__long { display: none; }
  .nav__short { display: inline; }
  .stage { grid-template-columns: 1fr; gap: 8px; padding-bottom: 32px; }
  .deck-wrap { position: relative; top: 0; height: calc(var(--card-w) * 1.733 + 64px); }
  .wheel { width: calc(var(--card-w) * 2.2); }
  .reading { max-width: none; display: flex; flex-direction: column; }
  .reading__lead { font-size: 1.6rem; }
  .reading__kicker { margin-bottom: 1.4rem; padding-bottom: 1.2rem; }
  .turner { justify-content: center; order: -1; margin: 0 0 1.4rem; }
  .stage { min-height: 0; }
  .where { margin-top: 24px; }
  .where__list button { flex-direction: column; gap: 10px; padding: 20px 0; }

  .hero { --hero-w: min(58vw, calc(50svh * 0.577), 280px); grid-template-columns: 1fr; min-height: 0; gap: 28px; padding-top: 12px; }
  .hero__text { max-width: none; }
  .stars { grid-template-columns: 1fr; }
  .moon { width: min(78vw, 360px); }
  .cycle { grid-template-columns: 1fr; }
  .cycle li { flex-direction: row; gap: 22px; padding: 22px 0; text-align: left; }
  .cycle li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .cycle__moon { width: 64px; height: 64px; flex: none; }
  .houses { grid-template-columns: 1fr; }
  .house-detail { min-height: 13rem; }
  .rise { grid-template-columns: 1fr; gap: 0; }
  .rise__scene { top: 0; height: 36svh; z-index: 2; background: linear-gradient(180deg, rgba(26, 28, 66, .97) 0 82%, rgba(26, 28, 66, 0)); margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 28px; }
  .rise__scene svg { overflow: hidden; }
  .rise__steps { padding: 4svh 0 10svh; }
  .facet { min-height: 52svh; }
  .week { grid-template-columns: 64px 1fr; min-height: 0; padding: 28px 0; gap: 18px; }
  .week__star { grid-column: 1; width: 52px; height: 52px; }
  .week:nth-child(n of .week) .week__body { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; }
  .close { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-wrap::before, .hero__stage::before { animation: none; }
  .reading__inner, .triad p, .triad small, .week__body, .facet { transition: none; }
  .triad p { opacity: 1; transform: none; filter: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =========================================================
   Your chart
   ========================================================= */
.chart-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; padding-top: 24px; }
.chart-hero__wheel { display: flex; flex-direction: column; align-items: center; position: sticky; top: 24px; }
.chart-wheel { width: min(100%, 640px); aspect-ratio: 1; overflow: visible; }
.chart-wheel line, .chart-wheel circle { fill: none; stroke: var(--brass); }
.chart-wheel .rule { stroke: rgba(214, 184, 119, .32); stroke-dasharray: 2 4; }
.chart-wheel .ink--axis, .chart-wheel .ink--planet { stroke: var(--paper); }
.chart-wheel .aspect { stroke: rgba(214, 184, 119, .7); }
.chart-wheel .aspect--hard { stroke: rgba(236, 230, 242, .5); }
/* the engraver's needle: each stroke draws itself in, in order */
.chart-wheel .ink { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: inscribe 1.4s cubic-bezier(.6, 0, .2, 1) var(--d) forwards; }
.chart-wheel .fade { opacity: 0; animation: appear .9s ease var(--d) forwards; }
@keyframes inscribe { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.chart-wheel text { text-anchor: middle; dominant-baseline: central; stroke: none; }
.chart-wheel .glyph { font-family: var(--glyph); }
.chart-wheel .glyph--sign { fill: var(--brass); font-size: 21px; }
.chart-wheel .glyph--planet { fill: var(--paper); font-size: 25px; }
.chart-wheel .planet-deg { fill: var(--paper-dim); font-family: var(--sans); font-size: 11px; }
.chart-wheel .house-num { fill: var(--paper-dim); font-family: var(--serif); font-size: 13px; }
.chart-wheel .axis-label { fill: var(--paper); font-family: var(--serif-sc); font-size: 14px; letter-spacing: .06em; }
.chart-hero__caption { margin: 18px 0 0; text-align: center; font-family: var(--serif); font-style: italic; color: var(--paper-dim); font-size: 1.05rem; max-width: 32rem; }

.birth { margin-top: 2rem; max-width: 30rem; }
.birth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-size: .82rem; color: var(--paper-dim); margin-bottom: 4px; }
.field input {
  width: 100%;
  padding: 8px 0 9px;
  background: none; border: 0; border-bottom: 1px solid rgba(214, 184, 119, .5); border-radius: 0;
  color: var(--paper); font-family: var(--serif); font-size: 1.2rem;
  color-scheme: dark;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(185, 178, 207, .55); }
.field input:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.field input:disabled { opacity: .4; }
.check { display: flex; align-items: center; gap: 10px; margin: -4px 0 1.3rem; font-size: .92rem; color: var(--paper-2); cursor: pointer; }
.check input { accent-color: var(--brass); width: 16px; height: 16px; }
.field--place { position: relative; }
.places {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  list-style: none; margin: 4px 0 0; padding: 6px 0;
  background: #17183d; border: 1px solid rgba(214, 184, 119, .4); border-radius: 3px;
  box-shadow: 0 20px 40px -12px rgba(5, 4, 20, .8);
}
.places button { display: block; width: 100%; padding: 10px 14px; background: none; border: 0; color: var(--paper-2); font: inherit; text-align: left; cursor: pointer; }
.places button:hover, .places button:focus { background: rgba(214, 184, 119, .12); color: var(--paper); outline: none; }
.places__msg { padding: 10px 14px; color: var(--paper-dim); font-size: .92rem; }
.birth__error { min-height: 1.4em; margin: 0 0 .9rem; color: #f2b8aa; font-size: .92rem; }
.birth__note { margin: 1.4rem 0 0; font-size: .82rem; color: var(--paper-dim); }
button.textlink { background: none; border: 0; border-bottom: 1px solid rgba(214, 184, 119, .6); padding: 0 0 2px; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }

.placements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.placements li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--rule); }
.placements__glyph { font-family: var(--glyph); font-size: 2rem; line-height: 1; color: var(--brass); text-align: center; padding-top: 2px; }
.placements h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .45em; }
.placements h3 small { margin-left: 8px; font-family: var(--sans); font-size: .8rem; color: var(--paper-dim); white-space: nowrap; }
.placements p { margin: 0; color: var(--paper-2); }
.placements--big { grid-template-columns: 1fr; }
.placements--big li { grid-template-columns: 88px 1fr; gap: 24px; padding: 34px 0; }
.placements--big .placements__glyph { font-size: 3.4rem; }
.placements--big h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.placements--big p { max-width: 44rem; }

.balance { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.elements { list-style: none; margin: 0; padding: 0; }
.elements li { display: grid; grid-template-columns: 72px 1fr 44px; gap: 18px; align-items: center; padding: 12px 0; }
.elements__name { font-family: var(--serif); font-size: 1.3rem; }
.elements__bar { position: relative; height: 1px; background: var(--rule); }
.elements__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: var(--w); background: var(--brass); }
.elements__bar i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 11px; height: 11px; background: var(--star) center / contain no-repeat; }
.elements__n { font-size: .9rem; color: var(--paper-dim); text-align: right; }

.aspects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.aspects li { padding: 22px 0; border-top: 1px solid var(--rule); }
.aspects h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 .35em; }
.aspects h3 small { margin-left: 8px; font-family: var(--sans); font-size: .8rem; color: var(--paper-dim); }
.aspects p { margin: 0; color: var(--paper-2); }

.chart-reading .close { grid-template-columns: 1fr; }
.chart-reading .plate { max-width: 50rem; }
.chart-note { margin: 0; max-width: 46rem; font-size: .85rem; color: var(--paper-dim); }

@media (max-width: 860px) {
  .chart-hero { grid-template-columns: 1fr; }
  .chart-hero__wheel { position: relative; top: 0; }
  .placements, .aspects, .balance { grid-template-columns: 1fr; }
  .placements--big li { grid-template-columns: 56px 1fr; gap: 16px; }
  .placements--big .placements__glyph { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-wheel .ink { animation: none; stroke-dashoffset: 0; }
  .chart-wheel .fade { animation: none; opacity: 1; }
}

/* ---------- Booking ---------- */
.book {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 110px); align-items: start;
  max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) var(--gutter) clamp(80px, 10vw, 140px);
}
.book__card-col { position: sticky; top: 28px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.book__card { --hero-w: min(26vw, 300px); width: var(--hero-w); }
/* the card is dealt in: it rises from the table and turns face up */
.book__card.is-drawn { animation: dealt 1.1s cubic-bezier(.2, .8, .2, 1); }
@keyframes dealt { from { opacity: 0; translate: 0 60px; rotate: -8deg; scale: .92; } }

.book__summary { text-align: center; max-width: 22rem; }
.book__summary-name { margin: 0; font-family: var(--serif); font-size: 1.7rem; }
.book__summary-line { margin: .2rem 0 1rem; font-family: var(--serif); font-style: italic; color: var(--brass); }
.book__summary dl { display: flex; justify-content: center; gap: 28px; margin: 0; }
.book__summary dl div { display: flex; flex-direction: column-reverse; }
.book__summary dt { font-size: .8rem; color: var(--paper-dim); }
.book__summary dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.book__summary-when { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; animation: rise .6s ease both; }

.book__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; margin: 0 0 .5em; }
/* the steps, with a brass rule that draws along as you go */
.book__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 2.4rem; padding: 0 0 14px; list-style: none; border-bottom: 1px solid var(--rule); }
.book__steps::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--progress, 0) * 100%); background: var(--brass); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.book__steps li { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; color: var(--paper-dim); transition: color .4s; }
.book__steps li span { font-family: var(--serif); color: var(--paper-dim); transition: color .4s; }
.book__steps li.is-on, .book__steps li.is-on span { color: var(--paper); }
.book__steps li.is-done { color: var(--paper-2); cursor: pointer; }
.book__steps li.is-done span { color: var(--brass); }

.book__panel.is-in > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.book__panel.is-in > *:nth-child(2) { animation-delay: .08s; }
.book__panel.is-in > *:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
.book__lead { margin: 0 0 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass); }
.book__note { margin: 1.2rem 0 0; font-size: .88rem; color: var(--paper-dim); }

.book__services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.book__services button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  padding: 20px 0; border: 0; border-top: 1px solid var(--rule); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: padding .4s cubic-bezier(.2, .8, .2, 1);
}
.book__services button:hover { padding-left: 10px; }
.book__service-name { font-family: var(--serif); font-size: 1.6rem; }
.book__service-meta { font-size: .9rem; color: var(--paper-dim); }

/* the month, engraved: open days carry a brass mark, the chosen one gets a ring drawn round it */
.month { max-width: 30rem; }
.month__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 1rem; }
.month__name { margin: 0; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.turner__arrow:disabled { opacity: .25; cursor: default; }
.month__week, .month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month__week span { padding: 6px 0; text-align: center; font-size: .78rem; color: var(--paper-dim); }
.month__grid { gap: 4px; transition: opacity .3s; }
.month__grid.is-loading { opacity: .35; }
.month__day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border: 0; background: none; color: rgba(236, 230, 242, .28); font-family: var(--serif); font-size: 1.15rem;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 12ms) both;
}
.month__day.is-open { color: var(--paper); cursor: pointer; }
.month__day.is-open::after { content: ""; position: absolute; bottom: 14%; width: 7px; height: 7px; background: var(--star) center / contain no-repeat; }
.month__day.is-open:hover span { color: var(--brass); }
.month__day svg { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; }
.month__day circle { fill: none; stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .5s cubic-bezier(.6, 0, .2, 1); }
.month__day.is-chosen circle { stroke-dashoffset: 0; }
.month__day.is-chosen span { color: var(--brass); }

/* the times, as an almanac timetable */
.times { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.times li:not(.times__group) { animation: rise .5s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 45ms) both; }
.times__group { padding: 18px 0 6px; font-family: var(--serif); font-style: italic; color: var(--brass); }
.times button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border: 0; border-top: 1px solid var(--rule); background: none; color: inherit; font: inherit; cursor: pointer;
  transition: padding .35s cubic-bezier(.2, .8, .2, 1);
}
.times button:hover { padding-left: 10px; }
.times button:hover .times__start { color: var(--brass); }
.times__start { font-family: var(--serif); font-size: 1.5rem; transition: color .3s; }
.times__end { font-size: .9rem; color: var(--paper-dim); }

.book__form textarea {
  width: 100%; padding: 8px 0 9px; resize: vertical;
  background: none; border: 0; border-bottom: 1px solid rgba(214, 184, 119, .5); border-radius: 0;
  color: var(--paper); font-family: var(--serif); font-size: 1.15rem;
}
.book__form textarea:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.book__birth { margin: .6rem 0 1rem; padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); }
.book__birth legend { padding: 0; margin-bottom: 1rem; font-family: var(--serif); font-style: italic; color: var(--paper-2); }
.book__trap { position: absolute; left: -9999px; }
.btn.is-busy { opacity: .6; pointer-events: none; }

.book__done h2 { margin: 0 0 .3em; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; }
.book__when { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--paper); }
.book__done p { color: var(--paper-2); }
.book__done .actions { margin-top: 1.8rem; }

/* a booking opened from its private link: no steps to follow, the old time struck through when it moves or is cancelled */
.is-managing .book__steps { display: none; }
.book__when--was { text-decoration: line-through; text-decoration-color: rgba(214, 184, 119, .7); text-decoration-thickness: 1px; color: var(--paper-dim); font-size: 1.15rem; }
.book__confirm { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.book__confirm p { margin: 0; }
/* a cancelled card goes grey and sinks back onto the table */
.book__card { transition: opacity 1.4s ease, filter 1.4s ease; }
.book__card.is-void { opacity: .45; filter: grayscale(1) brightness(.7); }

@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
  .book__card-col { position: relative; top: 0; flex-direction: row; justify-content: center; gap: 20px; }
  .book__card { --hero-w: min(34vw, 150px); }
  .book__summary { text-align: left; }
  .book__summary dl { justify-content: flex-start; }
  .book__steps li { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .book__card.is-drawn, .book__panel.is-in > *, .month__day, .times li, .book__summary-when { animation: none; opacity: 1; }
}

/* ---------- 404: the card that isn't in the deck ---------- */
.lost__card {
  width: var(--hero-w); aspect-ratio: 300 / 520;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 70px -20px rgba(8, 6, 30, .8);
  rotate: -6deg;
  animation: drift 9s ease-in-out infinite;
}
.lost__card svg { width: 100%; height: 100%; }
@keyframes drift { 50% { translate: 0 -10px; rotate: -3deg; } }
@media (prefers-reduced-motion: reduce) { .lost__card { animation: none; } }

/* ---------- arrivals: sections rise into place, and each heading's rule draws itself out ---------- */
[data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity .9s ease calc(var(--i, 0) * 90ms), translate 1.1s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; translate: none; }
.chapter__head[data-reveal]::before { background-size: 12px, 0 1px; transition: background-size 1.4s cubic-bezier(.2, .7, .2, 1) .35s; }
.chapter__head[data-reveal].is-in::before { background-size: 12px, 76px 1px; }

/* ---------- the pull: a booked card flies to the middle of the screen and lands in its light ---------- */
.is-pulling { overflow: hidden; }
.pull {
  --cy: 38%;
  --pull-w: min(62vw, 28svh, 300px);
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% var(--cy), rgba(38, 36, 94, .95), rgba(8, 8, 26, .985) 72%);
  animation: pullIn .8s ease both;
}
@keyframes pullIn { from { opacity: 0; } }
.pull.is-leaving { animation: pullOut .7s ease .1s both; }
@keyframes pullOut { to { opacity: 0; } }
/* the moment it lands, the whole screen takes the light */
.pull::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% var(--cy), rgba(255, 248, 230, .95), rgba(255, 226, 170, .45) 22%, transparent 62%);
  mix-blend-mode: screen;
}
.pull.is-landed::after { animation: flash 1.3s cubic-bezier(.1, .6, .3, 1) both; }
@keyframes flash { 12% { opacity: 1; } to { opacity: 0; } }
.pull__sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.pull__stage { position: absolute; left: 50%; top: var(--cy); width: var(--pull-w); aspect-ratio: 300 / 520; translate: -50% -50%; }
.pull__card { position: absolute; inset: 0; perspective: 1400px; will-change: transform; }
.pull__card .face { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px rgba(255, 255, 255, .18), 0 0 60px 6px rgba(255, 230, 180, .22), 0 40px 80px -20px rgba(4, 3, 20, .9); }

/* slow god-rays turning behind the card: three sets at different spacings, so where they cross the light
   gathers unevenly and shimmers as they drift against each other */
.pull__rays, .pull__rays::before, .pull__rays::after {
  position: absolute; left: 50%; top: 50%; width: 220vmax; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 1%, rgba(0, 0, 0, .55) 8%, rgba(0, 0, 0, .18) 15%, transparent 24%);
  mask-image: radial-gradient(circle, #000 1%, rgba(0, 0, 0, .55) 8%, rgba(0, 0, 0, .18) 15%, transparent 24%);
}
.pull__rays {
  opacity: 0; scale: .3; filter: blur(1.5px);
  background: repeating-conic-gradient(from 0deg, transparent 0deg, rgba(255, 236, 196, .2) 1.2deg, transparent 2.6deg 11deg);
}
.pull__rays::before { content: ""; background: repeating-conic-gradient(from 5deg, transparent 0deg, rgba(196, 184, 255, .16) 1deg, transparent 2deg 17deg); animation: turn 140s linear infinite reverse; }
.pull__rays::after { content: ""; background: repeating-conic-gradient(from 12deg, transparent 0deg, rgba(255, 226, 170, .1) 7deg, transparent 14deg 41deg); animation: turn 220s linear infinite; }
.is-landed .pull__rays { opacity: 1; scale: 1; transition: opacity 1.2s ease, scale 2.4s cubic-bezier(.1, .7, .2, 1); animation: turn 90s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }

.pull__halo {
  position: absolute; left: 50%; top: 50%; width: 320%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 244, 220, .55), rgba(255, 214, 150, .18) 26%, rgba(170, 150, 255, .08) 44%, transparent 64%);
  opacity: 0; scale: .2;
}
.is-landed .pull__halo { animation: halo 1.6s cubic-bezier(.15, .8, .25, 1) both, breathe 5s ease-in-out 1.6s infinite; }
@keyframes halo { 0% { opacity: 0; scale: .2; } 18% { opacity: 1; scale: 1.25; } to { opacity: .8; scale: 1; } }
@keyframes breathe { 50% { opacity: .55; scale: 1.06; } }

.pull__ring { position: absolute; left: 50%; top: 50%; width: 230%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; scale: .7; }
.pull__ring * { stroke: var(--brass); fill: none; }
.is-landed .pull__ring { opacity: .55; scale: 1; transition: opacity 1.4s ease .2s, scale 2.2s cubic-bezier(.1, .7, .2, 1); animation: turn 160s linear infinite; }

.pull__words {
  position: absolute; left: 0; right: 0; top: calc(var(--cy) + var(--pull-w) * .8667 + clamp(18px, 3.4svh, 40px));
  padding: 0 var(--gutter); text-align: center;
}
.pull__words > * { opacity: 0; }
.is-landed .pull__words > * { opacity: 1; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.is-landed .pull__lead { animation-delay: .35s; }
.is-landed .pull__name { animation-delay: .55s; }
.is-landed .pull__when { animation-delay: .8s; }
.is-landed .pull__go { animation-delay: 1.1s; }
.is-leaving .pull__words { transition: opacity .3s ease; opacity: 0; }
.pull__lead { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--brass); }
.pull__name { margin: .08em 0 .18em; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1; }
.is-landed .pull__name.foil-text { animation-name: rise, foilSweep; animation-duration: .9s, 6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1), ease-in-out; animation-iteration-count: 1, infinite; }
@keyframes foilSweep { 50% { background-position: 0% 0; } }
.pull__when { margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--paper-2); }

@media (prefers-reduced-motion: reduce) {
  .pull, .pull.is-leaving, .pull.is-landed::after, .is-landed .pull__rays, .pull__rays::before, .pull__rays::after, .is-landed .pull__ring, .is-landed .pull__halo, .is-landed .pull__words > * { animation: none; transition: none; }
  .pull__rays, .pull__ring, .pull__halo { scale: 1; }
  .is-landed .pull__halo { opacity: .8; }
}
