/* ═══════════════════════════════════════════════════════════════════════
   ANCESTRAL WATCH — the layered book pages (shared by the three books)
   Loaded after /css/tokens.css, /css/style.css and /assets/daylight.css.
   Cream, gold and ink stay the house colors; Fraunces and Inter stay the
   type. This file only adds the full-bleed media, the editorial rows with
   his photographs, the pinned scenes, the cover in motion and the sound dock.
   ═══════════════════════════════════════════════════════════════════════ */
:root{
  --wc-ink:#3B3020; --wc-paper:#FAF6EC; --wc-gold:#B98D3E; --wc-gold-deep:#91691F;
  --wc-night:#14110C; --wc-night-2:#1E1912;
  --wc-shadow:0 30px 70px -30px rgba(59,48,32,.55), 0 10px 24px -14px rgba(59,48,32,.35);
}
html, body{overflow-x:clip}
html.lenis, html.lenis body{height:auto}
body{background:var(--wc-paper)}
/* the generic chord toggle from main.js is replaced by the book's own soundscape */
.sound-toggle{display:none !important}
img, video, canvas, svg{max-width:100%}

/* ── reveal + parallax primitives ─────────────────────────────────────── */
[data-reveal]{opacity:0; transform:translateY(22px); will-change:opacity,transform}
[data-reveal].is-in{opacity:1; transform:none; transition:opacity .9s var(--ease), transform .9s var(--ease)}
.no-motion [data-reveal]{opacity:1; transform:none}
.wc-par{overflow:hidden; position:relative}
.wc-par > img, .wc-par > video{display:block; width:100%; height:100%; object-fit:cover; will-change:transform}

/* ── hero ─────────────────────────────────────────────────────────────── */
.wc-hero{position:relative; isolation:isolate; min-height:min(92vh, 980px); display:grid; align-items:center;
  padding-block:clamp(2.5rem,6vw,5rem) clamp(3rem,7vw,6rem); overflow:hidden; color:var(--wc-ink)}
.wc-hero__media{position:absolute; inset:0; z-index:-3}
.wc-hero__media video, .wc-hero__media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:saturate(1.04) brightness(1.04)}
.wc-hero__media video{opacity:0; transition:opacity 1.4s ease}
.wc-hero__media video.is-ready{opacity:1}
.wc-hero__fx{position:absolute; inset:0; z-index:-2; pointer-events:none; mix-blend-mode:screen; opacity:.9}
.wc-hero__scrim{position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(100deg, rgba(250,246,236,.96) 0%, rgba(250,246,236,.88) 34%, rgba(250,246,236,.46) 62%, rgba(250,246,236,.10) 100%)}
.wc-hero__grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:clamp(2rem,5vw,5rem); align-items:center}
.wc-hero__meta .eyebrow{color:var(--wc-gold-deep)}
.wc-hero__meta h1{font-size:clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem); line-height:.98; margin:.35rem 0 .5rem; letter-spacing:-.01em}
.wc-hero__meta h1 em{color:var(--wc-gold-deep)}
.wc-hero__meta .book-hero__subtitle{font-size:var(--step-1); max-width:30ch}
.wc-hero__meta .book-teaching{color:var(--wc-ink); max-width:50ch}
.wc-hero__meta .muted{color:#574936}
.wc-hero__note{font-size:var(--step--1); color:#574936; margin-top:var(--space-2); max-width:60ch}
.wc-hero__note a{color:var(--wc-gold-deep)}
.wc-scrollcue{position:absolute; left:50%; bottom:1.1rem; transform:translateX(-50%); z-index:2; font:500 .72rem/1 Inter,system-ui,sans-serif;
  letter-spacing:.18em; text-transform:uppercase; color:#574936; display:flex; flex-direction:column; align-items:center; gap:.5rem; opacity:.85}
.wc-scrollcue i{display:block; width:1px; height:34px; background:linear-gradient(var(--wc-gold),transparent); animation:wc-cue 2.4s ease-in-out infinite}
@keyframes wc-cue{0%{transform:scaleY(.2);transform-origin:top;opacity:0}30%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1);transform-origin:bottom;opacity:0}}

/* the cover in motion — the image itself is never touched */
.wc-cover3d{perspective:1400px; justify-self:center; width:min(100%, 380px)}
.wc-cover3d__card{position:relative; transform-style:preserve-3d; border-radius:4px; box-shadow:var(--wc-shadow); will-change:transform;
  transition:box-shadow .5s ease; background:#2a2114}
.wc-cover3d__card img{display:block; width:100%; height:auto; border-radius:4px}
.wc-cover3d__sheen{position:absolute; inset:0; border-radius:4px; pointer-events:none;
  background:linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,250,235,.22) 50%, rgba(255,255,255,0) 65%);
  background-size:260% 100%; background-position:100% 0; opacity:.9; mix-blend-mode:soft-light}
.wc-cover3d__edge{position:absolute; top:3px; bottom:3px; left:-7px; width:8px; border-radius:2px 0 0 2px;
  background:linear-gradient(90deg,#f1e9d6,#cfc3a7 60%,#9c8f72); transform:rotateY(-90deg) translateX(-4px); transform-origin:right center}
.wc-cover3d__shadow{position:absolute; left:8%; right:8%; bottom:-28px; height:40px; border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(59,48,32,.42), rgba(59,48,32,0) 70%); filter:blur(6px); z-index:-1}

/* ── editorial rows: his photographs bleeding off the page edge ────────── */
.wc-row{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(1.5rem,4vw,4rem); align-items:center}
.wc-row--full{display:block}
.wc-row__text{max-width:56ch; padding-inline:var(--space-3)}
.wc-row__text .eyebrow{color:var(--wc-gold-deep)}
.wc-bleed{margin:0; position:relative}
.wc-bleed figcaption{position:absolute; left:1rem; bottom:.9rem; font:500 .72rem/1.3 Inter,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase;
  color:#FAF6EC; text-shadow:0 1px 10px rgba(0,0,0,.45); z-index:2; pointer-events:none}
.wc-bleed .wc-par{height:min(78vh, 760px)}
.wc-row--right .wc-bleed{grid-column:2; margin-right:calc(50% - 50vw)}
.wc-row--right .wc-row__text{grid-column:1; justify-self:end}
.wc-row--left .wc-bleed{grid-column:1; grid-row:1; margin-left:calc(50% - 50vw)}
.wc-row--left .wc-row__text{grid-column:2; grid-row:1}
.wc-row .wc-row__text p{line-height:1.7}

/* three photographs in one band */
.wc-band{display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-inline:calc(50% - 50vw); padding-inline:6px}
.wc-band .wc-par{height:min(62vh, 620px)}
.wc-band figure{margin:0; position:relative}
.wc-band figure::after{content:""; position:absolute; left:0; right:0; bottom:0; height:46%; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(20,17,12,0) 0%, rgba(20,17,12,.55) 60%, rgba(20,17,12,.72) 100%)}
.wc-band figcaption{position:absolute; left:1rem; right:1rem; bottom:1rem; color:#FAF6EC; text-shadow:0 1px 12px rgba(0,0,0,.5); z-index:2}
.wc-bleed::after{content:""; position:absolute; left:0; right:0; bottom:0; height:28%; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(20,17,12,0), rgba(20,17,12,.5))}
.wc-band figcaption b{display:block; font-family:var(--font-display); font-weight:500; font-size:clamp(1.6rem,2.6vw,2.4rem); font-style:italic; line-height:1}
.wc-band figcaption span{display:block; font:500 .72rem/1.3 Inter,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; margin-top:.5rem; opacity:.92}

/* ── pinned scenes ─────────────────────────────────────────────────────── */
.wc-scene{position:relative}
.wc-scene__stage{position:relative; height:100vh; height:100svh; min-height:560px; overflow:hidden; isolation:isolate}
.wc-scene__stage canvas, .wc-scene__stage > svg{position:absolute; inset:0; width:100%; height:100%; display:block}
.wc-scene__head{position:absolute; left:0; right:0; top:0; z-index:3; padding:clamp(1.2rem,3vw,2.4rem) var(--space-3) 0}
.wc-scene__head .eyebrow{margin:0}
.wc-scene__caps{position:absolute; inset:0; z-index:3; pointer-events:none}
.wc-cap{position:absolute; max-width:min(34rem, 86vw); opacity:0; transform:translateY(14px); transition:none;
  font-family:var(--font-display); font-size:clamp(1.15rem, 1rem + 1vw, 1.75rem); line-height:1.4; font-weight:400}
.wc-cap small{display:block; font:500 .7rem/1.3 Inter,system-ui,sans-serif; letter-spacing:.16em; text-transform:uppercase; margin-top:.7rem; opacity:.75}
/* a pinned stage leaves its section visually, so each stage carries its own ground */
.wc-scene--night, .wc-scene--night .wc-scene__stage{background:var(--wc-night)}
.wc-scene--paper, .wc-scene--paper .wc-scene__stage{background:#F7F0E1}
.wc-scene--sea, .wc-scene--sea .wc-scene__stage{background:#0F1A28}
.wc-scene--night{color:#EFE6D4}
.wc-scene--night .eyebrow{color:#D7B071 !important}
.wc-scene--night .wc-cap{color:#F3E9D2}
.wc-scene--night .wc-cap em{color:#E6C98A}
.wc-scene--paper .wc-cap{color:var(--wc-ink)}
.wc-scene--paper .wc-cap small{color:var(--wc-gold-deep)}
.wc-scene__progress{position:absolute; left:var(--space-3); right:var(--space-3); bottom:1rem; height:1px; background:rgba(255,255,255,.14); z-index:3}
.wc-scene--paper .wc-scene__progress{background:rgba(59,48,32,.14)}
.wc-scene__progress i{display:block; height:100%; width:0; background:var(--wc-gold)}
.wc-replay{font:inherit; background:none; border:0; padding:0; color:var(--wc-gold-deep); cursor:pointer; text-decoration:underline; text-underline-offset:3px}
.wc-scene--night .wc-replay{color:#E6C98A}

/* ── the practice: real creek beside the counted breath ───────────────── */
.wc-practice{display:grid; grid-template-columns:minmax(0,320px) minmax(0,1fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:start; margin-top:var(--space-3)}
.wc-practice figure{margin:0}
.wc-practice video{display:block; width:100%; height:auto; aspect-ratio:9/16; object-fit:cover; border-radius:12px; background:#4a4232; box-shadow:var(--wc-shadow)}
.wc-practice figcaption{font-size:var(--step--1); margin-top:var(--space-2); color:#574936}
.wc-practice__ring{border-radius:14px; overflow:hidden; box-shadow:0 1px 0 rgba(59,48,32,.08); background:#F7F0E1}

/* ── a voice card: his masked voice, one short line ───────────────────── */
.wc-voice{display:grid; grid-template-columns:auto 1fr; gap:1rem 1.2rem; align-items:center; padding:1.1rem 1.2rem; margin-top:var(--space-3);
  border:1px solid rgba(59,48,32,.16); border-radius:14px; background:rgba(255,252,244,.8); max-width:40rem}
.wc-voice__btn{width:54px; height:54px; border-radius:50%; border:0; cursor:pointer; background:var(--wc-gold); color:#2A2114; display:grid; place-items:center;
  box-shadow:0 10px 24px -12px rgba(59,48,32,.5); transition:transform .2s ease, background .2s ease}
.wc-voice__btn:hover{transform:scale(1.04); background:var(--wc-gold-deep); color:#FFFCF4}
.wc-voice__btn svg{width:22px; height:22px; fill:currentColor}
.wc-voice__btn .ic-pause{display:none}
.wc-voice.is-playing .wc-voice__btn .ic-play{display:none}
.wc-voice.is-playing .wc-voice__btn .ic-pause{display:block}
.wc-voice__k{font:500 .7rem/1.3 Inter,system-ui,sans-serif; letter-spacing:.16em; text-transform:uppercase; color:var(--wc-gold-deep)}
.wc-voice__q{font-family:var(--font-display); font-size:var(--step-1); line-height:1.4; color:var(--wc-ink); margin:.25rem 0 .35rem}
.wc-voice__bars{display:flex; gap:3px; align-items:flex-end; height:22px}
.wc-voice__bars i{width:3px; height:4px; background:var(--wc-gold); border-radius:2px; display:block; transition:height .12s linear}
.wc-voice__note{font-size:.8rem; color:#6E5E48}

/* ── the sound dock (site-wide; remembers its state) ───────────────────── */
.wc-sound{position:fixed; right:1rem; bottom:1rem; z-index:140; display:inline-flex; align-items:center; gap:.6em; cursor:pointer;
  background:rgba(250,246,236,.86); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border:1px solid rgba(59,48,32,.22);
  color:var(--wc-ink); border-radius:40px; padding:.55rem .95rem .55rem .7rem; font:500 .8rem/1 Inter,system-ui,sans-serif; letter-spacing:.02em;
  box-shadow:0 12px 30px -16px rgba(59,48,32,.5)}
.wc-sound:hover{border-color:var(--wc-gold)}
.wc-sound[aria-pressed="true"]{color:var(--wc-gold-deep); border-color:var(--wc-gold)}
.wc-sound__ic{display:inline-flex; gap:2px; align-items:flex-end; height:14px}
.wc-sound__ic i{width:2px; height:5px; background:currentColor; border-radius:2px; display:block}
.wc-sound[aria-pressed="true"] .wc-sound__ic i{animation:wc-snd 1.1s ease-in-out infinite}
.wc-sound__ic i:nth-child(2){animation-delay:.18s}.wc-sound__ic i:nth-child(3){animation-delay:.36s}.wc-sound__ic i:nth-child(4){animation-delay:.1s}
@keyframes wc-snd{0%,100%{height:4px}50%{height:13px}}
.wc-sound__l{white-space:nowrap}
.wc-sound__l b{font-weight:600}

/* ── what's inside, as an editorial list instead of three cards ────────── */
.wc .inside-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:0 var(--space-4); margin-top:var(--space-4); counter-reset:wc-item}
.wc .inside-grid .item{background:none; border:0; border-top:1px solid rgba(59,48,32,.18); border-radius:0; padding:var(--space-3) 0 var(--space-2); position:relative; counter-increment:wc-item}
.wc .inside-grid .item::before{content:counter(wc-item,upper-roman); font-family:var(--font-display); font-style:italic; color:var(--wc-gold-deep); font-size:var(--step-1); display:block; margin-bottom:.4rem}
.wc .inside-grid .item strong{color:var(--wc-ink)}
.wc .inside-facts b{color:var(--wc-gold-deep)}

/* sample cards sit on paper with a thin gold rule and a soft shadow; the drop cap belongs to the first line of the book, not the label */
.wc .sample-card{box-shadow:0 24px 60px -36px rgba(59,48,32,.5); border:1px solid rgba(59,48,32,.1)}
.wc .sample-card p:first-of-type::first-letter{font-family:inherit; font-size:inherit; line-height:inherit; float:none; padding:0; color:inherit; font-weight:inherit}
.wc .sample-card .sample-card__label + p::first-letter{font-family:var(--font-display); font-size:3.4em; line-height:.78; float:left; padding:.04em .12em 0 0; color:var(--earth); font-weight:500}
.wc .sample-cta .btn{display:inline-block; text-align:center; line-height:1.35}
.wc .sample-cta .btn em{display:inline}

/* ── the two-column keepers/characters rows get breathing room ─────────── */
.wc .character__portrait--img img{transition:transform 1.2s var(--ease)}
.wc .character:hover .character__portrait--img img{transform:scale(1.04)}

/* ── reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .wc-scrollcue i, .wc-sound__ic i{animation:none !important}
  .wc-cover3d__card{transform:none !important}
  .wc-par > img, .wc-par > video{transform:none !important}
  [data-reveal]{opacity:1; transform:none; transition:none}
}

/* ── phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px){
  .wc-hero{min-height:auto; padding-top:1.5rem}
  .wc-hero__grid{grid-template-columns:1fr; gap:1.8rem}
  .wc-cover3d{grid-row:1; width:min(68vw, 320px)}
  .wc-hero__scrim{background:linear-gradient(180deg, rgba(250,246,236,.72) 0%, rgba(250,246,236,.86) 38%, rgba(250,246,236,.94) 100%)}
  .wc-scrollcue{display:none}
  .wc-row{grid-template-columns:1fr}
  .wc-row--right .wc-bleed, .wc-row--left .wc-bleed{grid-column:1; grid-row:auto; margin-inline:calc(50% - 50vw)}
  .wc-row--right .wc-row__text, .wc-row--left .wc-row__text{grid-column:1; grid-row:auto; justify-self:start}
  .wc-bleed .wc-par{height:min(62vh, 520px)}
  .wc-band{grid-template-columns:1fr; gap:4px; padding-inline:0}
  .wc-band .wc-par{height:48vh}
  .wc-practice{grid-template-columns:1fr}
  .wc-practice video{aspect-ratio:4/5}
  .wc-scene__stage{min-height:520px}
  .wc-cap{font-size:1.1rem; max-width:88vw}
  .wc .inside-grid{grid-template-columns:1fr}
  .wc-voice{grid-template-columns:auto 1fr}
  .wc-sound{bottom:.8rem; right:.8rem; padding:.55rem}
  .wc-sound__l{display:none}
}
