/* Isshaela, v0.1.0. One scroll, sky to earth. Fonts: Cormorant Garamond (display), Newsreader (body). */

:root {
  --deep: #071020;
  --sky: #0a1628;
  --dusk: #0d2030;
  --forest: #0f2620;
  --earth: #0a1a16;
  --ink: #e6e1d6;
  --silver: #b9c0c8;
  --mute: #7f8993;
  --sage: #8fb3ab;   /* v0.1.6: a blue-green (her palette, Sep 28) */
  --gold: #c29560;   /* v0.1.6: bronze, not high gold (Sep 28) */
  --copper: #b8744a;
  --gutter: 16px;
  --measure: 34rem;
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* in-page jumps crossfade (site.js, View Transitions) instead of racing past every section */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.65;
  background: var(--deep);
  background-image: linear-gradient(180deg, var(--deep) 0%, var(--sky) 22%, var(--dusk) 48%, var(--forest) 82%, var(--earth) 100%);
  background-attachment: scroll;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); color: var(--ink); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--gold); font-weight: 400; margin-bottom: 0.3em; }
p { margin: 0 0 1.1em; }
.quiet { color: var(--sage); font-style: italic; }
.lead { font-size: 1.12em; }

/* The thread: one line drawn down the whole page */
.thread {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.thread-path {
  fill: none; stroke: url(#thread-fade); stroke-width: 1.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: 0.85;
}
.thread-knots .knot { fill: var(--deep); stroke: var(--copper); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 0.8s ease; }
.thread-knots .knot.passed { fill: var(--gold); }

/* Top nav: text only, fades in after the hero */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; gap: clamp(14px, 3vw, 34px); justify-content: center; flex-wrap: wrap;
  padding: 14px var(--gutter);
  font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.6s ease, transform 0.6s ease;
  /* a solid, softly blurred band so the words never sit on top of body text, with a soft tail below */
  background: rgba(7,16,32,0.94);
}
.topnav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,16,32,0.94), rgba(7,16,32,0));
}
.topnav.show { opacity: 1; transform: none; }
.topnav a { color: var(--silver); text-decoration: none; }
.topnav a:hover { color: var(--gold); }
.topnav:not(.show) { pointer-events: none; }

/* "Work": a thread drops from the menu and each place hangs off it on a leaf, lighting as the thread reaches it,
   the same leaves the line down the page carries */
.nav-work { position: relative; }
.nav-btn {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--silver);
  background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.55em;
}
.nav-btn::after {
  content: ""; width: 6px; height: 6px; transform: rotate(45deg) translateY(-1px); border-radius: 0 70%;
  border: 1px solid var(--copper); background: transparent; transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav-btn:hover, .nav-work.open .nav-btn { color: var(--gold); }
.nav-work.open .nav-btn::after { background: var(--gold); box-shadow: 0 0 8px rgba(241,200,120,0.6); }
.nav-btn:focus-visible, .nav-drop a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.nav-drop {
  position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0; min-width: 14rem;
  padding: 18px 30px 20px 50px; text-align: left;
  /* no hard box: an opaque centre whose dark halo melts into the page */
  background: radial-gradient(120% 90% at 20% 0%, rgba(201,162,74,0.06), transparent 60%), rgb(8,17,32);
  box-shadow: 0 0 34px 26px rgb(8,17,32);
  visibility: hidden; clip-path: inset(-20px -60px 100% -60px);
  transition: clip-path 0.6s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.6s;
}
.nav-work.open .nav-drop { visibility: visible; clip-path: inset(-20px -60px -60px -60px); transition: clip-path 0.6s cubic-bezier(.2,.7,.2,1), visibility 0s; }
/* the thread, from the menu down past the last leaf */
.nav-drop::before {
  content: ""; position: absolute; left: 26px; top: -18px; bottom: 26px; width: 1px;
  background: linear-gradient(180deg, rgba(184,116,74,0), var(--copper) 18px, rgba(184,116,74,0.55));
  transform: scaleY(0); transform-origin: top; transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.nav-work.open .nav-drop::before { transform: scaleY(1); }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop li { position: relative; opacity: 0; translate: -6px 0; transition: opacity 0.4s ease, translate 0.4s ease; }
.nav-drop li::before {
  content: ""; position: absolute; left: -28px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  transform: rotate(45deg); border-radius: 0 70%; border: 1px solid var(--copper); background: var(--deep);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.nav-work.open .nav-drop li { opacity: 1; translate: 0 0; }
.nav-work.open .nav-drop li::before { background: var(--gold); box-shadow: 0 0 8px rgba(241,200,120,0.55); }
.nav-work.open .nav-drop li:nth-child(1), .nav-work.open .nav-drop li:nth-child(1)::before { transition-delay: 0.14s; }
.nav-work.open .nav-drop li:nth-child(2), .nav-work.open .nav-drop li:nth-child(2)::before { transition-delay: 0.26s; }
.nav-work.open .nav-drop li:nth-child(3), .nav-work.open .nav-drop li:nth-child(3)::before { transition-delay: 0.38s; }
.nav-work.open .nav-drop li:nth-child(4), .nav-work.open .nav-drop li:nth-child(4)::before { transition-delay: 0.5s; }
.nav-drop a { display: block; padding: 0.5em 0; letter-spacing: 0.16em; white-space: nowrap; }
.nav-drop li:hover::before { box-shadow: 0 0 12px rgba(241,200,120,0.9); }
@media (prefers-reduced-motion: reduce) {
  .nav-drop, .nav-drop::before, .nav-drop li, .nav-drop li::before { transition: none !important; }
}
/* phones: no Home (the lantern goes to the top); the drop opens from the left edge of "Work" */
@media (max-width: 700px) {
  .nav-home { display: none; }
  .nav-drop { left: -14px; translate: 0 0; }
}

/* Hero: the eclipse in water, fits the first screen */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: end;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px); isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  /* the fade lives on the frame, not the moving photo, so scrolling never exposes a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0,0,0,0.6) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0,0,0,0.6) 86%, transparent 100%);  /* v0.1.6: fade starts lower so the crescent and water show */
}
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.04); will-change: transform;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,16,32,0.15) 0%, rgba(7,16,32,0.02) 40%, rgba(7,16,32,0.3) 72%, rgba(7,16,32,0.8) 100%);
}
.hero-text { max-width: 44rem; margin: 0 auto; width: 100%; }
.name {
  font-size: clamp(3.6rem, 2rem + 11vw, 9rem); line-height: 0.95; margin: 0 0 0.15em;
  font-weight: 300; letter-spacing: 0.02em; color: var(--ink);
  font-family: "Cinzel", var(--display); font-weight: 400; letter-spacing: 0.06em; font-size: clamp(3rem, 1.6rem + 9vw, 7.4rem);  /* v0.1.6 try: Cinzel for her name (her question, Sep 28) */
}
.name .letters span { display: inline-block; opacity: 0; transform: translateY(0.25em); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.say {
  font-family: var(--display); color: var(--silver); letter-spacing: 0.22em; font-size: 0.95rem;
  display: flex; gap: 0.9em; margin: 0 0 1.4em; opacity: 0; animation: fadein 1.4s ease 2.2s forwards;
}
.say span:nth-child(2) { color: var(--gold); text-transform: uppercase; }
.say.inline { animation: none; opacity: 1; margin-top: 0.4em; }
@keyframes fadein { to { opacity: 1; } }
.hero-line {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); line-height: 1.3; color: var(--ink);
  max-width: 30ch; margin: 0; opacity: 0; animation: fadein 1.6s ease 2.8s forwards;
}
.hero-credit {
  position: absolute; left: var(--gutter); bottom: 10px; margin: 0;
  font-size: 0.72rem; color: var(--mute); letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
  .name .letters span, .say, .hero-line { animation: none; opacity: 1; transform: none; }
}

/* Chapters */
main { position: relative; z-index: 1; }
.chapter {
  position: relative; padding: clamp(72px, 14vh, 150px) var(--gutter);
  max-width: 62rem; margin: 0 auto;
}
.prose { max-width: var(--measure); margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .prose { margin-left: 24%; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* The arc: three stanzas along the line */
.arc h2 { max-width: var(--measure); margin-left: auto; margin-right: auto; margin-bottom: 1.4em; }
.arc .stanza { max-width: var(--measure); margin: 0 auto 2.6rem; padding-left: clamp(0px, 3vw, 28px); border-left: 1px solid rgba(184,116,74,0.35); }
.arc .stanza:nth-child(3) { transition-delay: 0.15s; }
.arc .stanza:nth-child(4) { transition-delay: 0.3s; }
@media (min-width: 900px) { .arc h2, .arc .stanza { margin-left: 24%; } }

/* The opening: the hero's words, now the first thing you read after the eclipse */
.opening {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem); line-height: 1.25; color: var(--ink);
  margin: 0 0 0.5em;
}
.credit { font-size: 0.78rem; color: var(--mute); letter-spacing: 0.04em; margin: 0 0 2.6em; }
.sayit { font-family: var(--display); font-size: 1.12em; letter-spacing: 0.06em; color: var(--silver); white-space: nowrap; }
.sayit b { font-weight: 500; color: var(--gold); }

/* Qigong: a band across the whole width, a little taller than the words. She stands on the left third;
   the words sit on the dark, open right side. The picture has its left and right fades baked in; the
   top and bottom melt into the page here, so the band has no edges anywhere. */
.band { position: relative; padding: clamp(100px, 15vh, 160px) var(--gutter); margin: clamp(30px, 6vh, 70px) 0; }
.band-art {
  position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.band-art img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0 18%;
  opacity: 0; transform: scale(1.03); transition: opacity 2.2s ease, transform 2.6s cubic-bezier(.2,.7,.2,1);
}
.band-art.in img { opacity: 1; transform: none; }
.band-words { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(7,16,32,0.85); }
@media (min-width: 900px) {
  .band-words { margin: 0 0 0 max(50%, calc(50% + (100% - 76rem) / 4)); max-width: 34rem; font-size: 1.12em; }
  .band h2 { font-size: clamp(2.8rem, 1.6rem + 3.4vw, 5rem); }
  .band-words > p:last-child { margin-bottom: 0; }
}
/* phones: the picture on top, cropped around her, the words rising over her fading legs */
@media (max-width: 899px) {
  .band { padding: 0 0 clamp(60px, 12vh, 110px); }
  .band-art {
    position: relative; inset: auto; height: 96vw; max-height: 620px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 100%);
  }
  .band-art img { width: 192vw; height: auto; margin-left: -5vw; object-fit: fill; }
  .band-words { margin-top: -16vw; padding: 0 var(--gutter); }
}
@media (prefers-reduced-motion: reduce) { .band-art img { opacity: 1; transform: none; transition: none; } }

/* Readings: faint water sparkle behind the words */
.water-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/water-texture.webp") center / 900px auto repeat;
  opacity: 0.07; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}

/* Links drawn like ink, with a hand-drawn arrow, no buttons */
.ink {
  font-family: var(--display); font-size: 1.25em; font-weight: 400; letter-spacing: 0.02em;
  color: var(--gold); text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5em;
}
.ink .arrow { width: 1.6em; height: 0.8em; position: relative; }
.ink .arrow::before {
  content: ""; position: absolute; left: 0; right: 0.2em; top: 50%; height: 1px; background: currentColor;
  transform: translateY(-50%) rotate(-3deg); transform-origin: left center; transition: right 0.4s ease;
}
.ink .arrow::after {
  content: ""; position: absolute; right: 0.15em; top: 50%; width: 0.45em; height: 0.45em;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(40deg);
}
.ink:hover { color: var(--ink); }
.ink:hover .arrow::before { right: -0.1em; }

/* Quotes */
.epigraph { margin: 0 auto 2.4rem; max-width: var(--measure); border: 0; padding: 0; }
.epigraph p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem); line-height: 1.35; color: var(--silver); }
.epigraph cite { font-style: normal; font-size: 0.85rem; color: var(--mute); letter-spacing: 0.08em; }
.epigraph cite i { font-style: italic; }
.epigraph.big p { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); color: var(--ink); }
@media (min-width: 900px) { .epigraph { margin-left: 24%; } }

/* Pictures: a shoreline. Each picture stands over dark water and is reflected in it; the reflection ripples when touched. */
.gallery { position: relative; padding: clamp(72px, 14vh, 150px) 0; }
.gallery .prose { padding: 0 var(--gutter); }
/* line the heading up with every other chapter: same 62rem column, same 24% indent */
@media (min-width: 900px) {
  .gallery .prose { padding: 0; margin-left: calc(max(0px, (100% - 62rem) / 2) + 16px + (min(100%, 62rem) - 32px) * 0.24); }
}
.shore {
  position: relative; overflow-x: auto; overflow-y: hidden; outline: none;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.shore::-webkit-scrollbar { display: none; }
.shore.dragging { cursor: grabbing; scroll-snap-type: none; }
.shore:focus-visible { box-shadow: inset 0 -1px 0 var(--gold); }
.shore-row {
  list-style: none; margin: 0; padding: 10px max(var(--gutter), 8vw) 0;
  display: flex; gap: clamp(22px, 4vw, 56px); align-items: flex-end; width: max-content;
  /* the waterline */
  background: linear-gradient(90deg, transparent, rgba(184,116,74,0.55) 8%, rgba(184,116,74,0.55) 92%, transparent) 0 var(--line, 330px) / 100% 1px no-repeat;
}
.shore-row li { scroll-snap-align: center; }
.shore-row img { -webkit-user-drag: none; user-select: none; }
/* with a mouse, no snapping: the drag glides and settles on its own */
@media (hover: hover) and (pointer: fine) { .shore { scroll-snap-type: none; } }

/* The slide bar: a copper line with the same carried light as the thread */
.shore-bar { display: flex; justify-content: center; margin-top: 18px; padding: 0 var(--gutter); }
.shore-range {
  -webkit-appearance: none; appearance: none; width: clamp(140px, 20vw, 240px); height: 22px; margin: 0;
  background: transparent; cursor: pointer;
}
.shore-range:focus { outline: none; }
.shore-range::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(184,116,74,0.75) 12%, rgba(184,116,74,0.75) 88%, transparent);
}
.shore-range::-moz-range-track {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(184,116,74,0.75) 12%, rgba(184,116,74,0.75) 88%, transparent);
}
.shore-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -4.5px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, #f1c878 42%, rgba(201,162,74,0.2) 75%);
  box-shadow: 0 0 10px 3px rgba(241,200,120,0.55), 0 0 28px 8px rgba(201,162,74,0.22);
  transition: transform 0.25s ease;
}
.shore-range::-moz-range-thumb {
  width: 10px; height: 10px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, #f1c878 42%, rgba(201,162,74,0.2) 75%);
  box-shadow: 0 0 10px 3px rgba(241,200,120,0.55), 0 0 28px 8px rgba(201,162,74,0.22);
}
.shore-range:hover::-webkit-slider-thumb, .shore-range:focus-visible::-webkit-slider-thumb { transform: scale(1.35); }
.shore-range:focus-visible::-moz-range-thumb { transform: scale(1.35); }
.piece {
  --h: clamp(210px, 34vh, 330px);
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.piece > img {
  height: var(--h); width: auto; display: block;
  /* a mat, like a framed print: a hairline a few pixels out from the picture, and a faint light behind */
  outline: 1px solid rgba(185,192,200,0.22); outline-offset: 7px;
  box-shadow: 0 0 0 7px rgba(7,16,32,0.55), 0 0 46px 6px rgba(201,162,74,0.07), 0 22px 44px -18px rgba(0,0,0,0.85);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.7s ease;
  filter: brightness(0.92);
}
/* the reflection: a ready-made image (flipped, softened, its fade built in), so no browser has to mask it live.
   Always there; it ripples on hover. */
.piece .water { display: block; height: calc(var(--h) * 0.42); overflow: hidden; margin-top: 3px; pointer-events: none; }
.piece .water img { height: 100%; width: auto; max-width: none; display: block; opacity: 0.5; }
.piece:hover > img, .piece:focus-visible > img, .piece.touched > img { transform: translateY(-8px); filter: brightness(1.04); outline-color: rgba(184,116,74,0.75); }
.piece > img { transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.7s ease, outline-color 0.5s ease; }
.piece:hover .water img, .piece:focus-visible .water img, .piece.touched .water img { filter: url(#ripple); opacity: 0.62; }
.piece:focus-visible { outline: none; }
.piece:focus-visible > img { outline-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .piece:hover .water img, .piece:focus-visible .water img, .piece.touched .water img { filter: none; }
  .piece > img { transition: none; }
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The viewer: the picture whole, nothing added */
.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(4,9,18,0.97); color: var(--ink);
}
.viewer::backdrop { background: rgba(4,9,18,0.9); }
.viewer[open] { display: grid; place-items: center; animation: fadein 0.4s ease; }
.viewer figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 56px 16px 20px; }
.viewer-img { max-width: min(94vw, 1600px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.viewer figcaption { text-align: center; max-width: 40rem; font-size: 0.95rem; color: var(--silver); }
.viewer-title { font-family: var(--display); font-size: 1.35rem; color: var(--gold); margin-right: 0.5em; }
@media (max-width: 600px) { .viewer-title { display: block; margin: 0 0 2px; } }
.viewer-count { display: block; margin-top: 4px; font-size: 0.75rem; letter-spacing: 0.14em; color: var(--mute); }
.viewer-prev, .viewer-next {
  position: fixed; top: 0; bottom: 0; width: 22vw; max-width: 180px; border: 0; background: none; cursor: pointer; color: var(--silver);
}
.viewer-prev { left: 0; cursor: w-resize; }
.viewer-next { right: 0; cursor: e-resize; }
.viewer-prev::after, .viewer-next::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; opacity: 0.6; transition: opacity .3s;
}
.viewer-prev::after { left: 28px; transform: translateY(-50%) rotate(-45deg); }
.viewer-next::after { right: 28px; transform: translateY(-50%) rotate(135deg); }
.viewer-prev:hover::after, .viewer-next:hover::after, .viewer-prev:focus-visible::after, .viewer-next:focus-visible::after { opacity: 1; color: var(--gold); }
.viewer-close {
  position: fixed; top: 14px; right: 16px; border: 0; background: none; color: var(--silver);
  font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; padding: 8px;
}
.viewer-close:hover, .viewer-close:focus-visible { color: var(--gold); }
@media (max-width: 600px) { .viewer-prev::after { left: 14px; } .viewer-next::after { right: 14px; } }

/* Eyebrows: small spaced words above a heading */
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--copper); margin: 0 0 1.1em;
}

/* Drifting specks of light, like the pond in her eclipse photo */
.specks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }

/* The light carried at the tip of the thread */
.spark {
  position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; z-index: 0; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, #f1c878 40%, rgba(201,162,74,0) 72%);
  box-shadow: 0 0 10px 3px rgba(241,200,120,0.55), 0 0 32px 10px rgba(201,162,74,0.22);
  opacity: 0; transition: opacity 0.6s ease; animation: flicker 3.4s ease-in-out infinite;
}
.spark.on { opacity: 1; }
.spark { transition: opacity 0.6s ease, box-shadow 0.5s ease; }
.spark.flare { box-shadow: 0 0 16px 6px rgba(255,228,160,0.85), 0 0 48px 16px rgba(201,162,74,0.35); }
@keyframes flicker { 0%,100% { filter: brightness(1); } 40% { filter: brightness(0.82); } 55% { filter: brightness(1.12); } 70% { filter: brightness(0.92); } }
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } }

/* The mark: her Dragon Light drawing grows from the roots up as you scroll, then the lantern lights */
.grow { position: relative; height: 320vh; }
.grow-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; align-items: center; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter);
}
.grow-art { position: absolute; right: 2%; top: 53%; height: 84svh; aspect-ratio: 1100 / 1558; transform: translateY(-50%); }
.grow-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.grow-draw {
  --g: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--g) * 100%), transparent calc(var(--g) * 100% + 7%));
  mask-image: linear-gradient(to top, #000 calc(var(--g) * 100%), transparent calc(var(--g) * 100% + 7%));
  filter: drop-shadow(0 0 18px rgba(201,162,74,0.12));
  opacity: 0.9;
}
.grow-lit { opacity: 0; transition: opacity 1.4s ease; filter: drop-shadow(0 0 6px rgba(255,222,140,0.9)); }
.grow-glow {
  position: absolute; left: 87.6%; top: 37.4%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,214,130,0.42) 0%, rgba(255,214,130,0.12) 38%, rgba(255,214,130,0) 70%);
  opacity: 0; transition: opacity 2s ease; pointer-events: none;
}
.grow.lit .grow-lit { opacity: 1; animation: flicker 3.4s ease-in-out 1.5s infinite; }
.grow.lit .grow-glow { opacity: 1; }
.grow-words { position: relative; z-index: 2; max-width: 30rem; min-height: 40svh; }
.grow-line, .grow-end {
  position: absolute; left: 0; right: 0; top: 2.2rem; margin: 0;
  opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.grow-line {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.25; color: var(--ink);
}
.grow-line.on, .grow-end.on { opacity: 1; transform: none; }
.grow-end .epigraph { margin: 0 0 1.4rem; }
.grow-end .epigraph.big p { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); }
.grow-end .mark { color: var(--sage); font-style: italic; margin: 0; }
@media (min-width: 900px) { .grow-words { margin-left: 8%; } }
@media (max-width: 899px) {
  .grow-stage { align-items: end; padding-bottom: 7svh; }
  .grow-art { right: 50%; transform: translate(50%, -50%); top: 35%; height: 58svh; opacity: 0.85; }
  .grow-words { min-height: 34svh; }
  .grow-line { font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem); text-shadow: 0 2px 18px rgba(7,16,32,0.9); }
  .grow-end .epigraph.big p, .grow-end .mark { text-shadow: 0 2px 18px rgba(7,16,32,0.95); }
}
/* No scroll theatre for those who ask for less motion: the drawing stands grown and lit, words in order */
@media (prefers-reduced-motion: reduce) {
  .grow { height: auto; }
  .grow-stage { position: relative; height: auto; min-height: 100svh; padding-top: 12vh; padding-bottom: 12vh; }
  .grow-draw { -webkit-mask-image: none; mask-image: none; }
  .grow-lit, .grow-glow { opacity: 1; }
  .grow-words { min-height: 0; }
  .grow-line, .grow-end { position: static; opacity: 1; transform: none; margin-bottom: 0.8em; }
}

/* The end: the dragon, the lantern */
.end { text-align: left; min-height: 80svh; display: grid; align-content: center; }
@media (max-width: 899px) { .end { overflow: hidden; } }
html { overflow-x: clip; }
.end .dragon {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 520px); opacity: 0.16; pointer-events: none; z-index: -1;
  filter: drop-shadow(0 0 30px rgba(201,162,74,0.15));
}
.end .mark { max-width: var(--measure); color: var(--sage); font-style: italic; }
@media (min-width: 900px) { .end .mark { margin-left: 24%; } }

/* Write to me */
.write form { margin-top: 1.4rem; }
.write label { display: block; font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; color: var(--silver); margin-bottom: 0.35em; }
.write input, .write textarea {
  width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid rgba(185,192,200,0.35);
  padding: 0.55em 0; font: inherit; border-radius: 0; outline: none; transition: border-color 0.3s;
}
.write input:focus, .write textarea:focus { border-bottom-color: var(--gold); }
.write textarea { resize: vertical; min-height: 7em; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding: 40px var(--gutter) 90px; max-width: 62rem; margin: 0 auto; color: var(--mute); font-size: 0.85rem; }
.foot { text-align: center; }
.foot p { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.foot a { color: var(--silver); }

/* The lantern: a small curious detail, lit at the end */
.lantern {
  position: fixed; right: 14px; bottom: 14px; z-index: 6; width: 34px; opacity: 0.45;
  transition: opacity 0.8s ease, filter 1.2s ease, transform 0.6s ease;
}
.lantern img { width: 100%; }
.lantern:hover { opacity: 0.9; transform: translateY(-2px); }
.lantern.lit { opacity: 1; filter: drop-shadow(0 0 6px rgba(201,162,74,0.9)) drop-shadow(0 0 22px rgba(201,162,74,0.45)); }
@media (min-width: 900px) { .lantern { right: 22px; bottom: 22px; width: 42px; } }

/* Small screens: the thread lives inside the gutter, the nav shrinks */
@media (max-width: 899px) { :root { --gutter: 24px; } }
@media (max-width: 480px) {
  .topnav { font-size: 0.72rem; gap: 10px 14px; letter-spacing: 0.08em; padding: 12px 10px; }
  .hero-credit { display: none; }
  .end .dragon { width: 70vw; right: -18%; opacity: 0.12; }
}

/* Footer: her name and year, two quiet links, and the credit */
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 1.6em; align-items: baseline; margin-bottom: 0.6em; }
.foot-line span { color: var(--silver); }
.foot-line a { color: var(--silver); text-decoration: none; letter-spacing: 0.04em; }
.foot-line a:hover, .foot-credit a:hover { color: var(--gold); }
.foot-credit { color: var(--mute); }
.foot-credit a { color: var(--silver); }

/* Privacy and Legal pages */
.page-plain { max-width: 62rem; margin: 0 auto; padding: 48px var(--gutter) 40px; position: relative; z-index: 1; }
.page-plain .back { font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--silver); text-decoration: none; }
.page-plain .back:hover { color: var(--gold); }
.page-plain .prose { margin-top: 64px; }
.page-plain h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: 0.5em; }
.page-plain h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 1.8em; }
.page-plain .updated { color: var(--mute); font-size: 0.85rem; }

/* Portfolio: same sky and thread as the home page, with room to grow. Each entry hangs on a thin copper
   line with a leaf, like the knots on the thread. */
.folio-head { padding-top: clamp(120px, 20vh, 200px); padding-bottom: 0; }
.folio-head h1 { font-size: clamp(2.8rem, 1.6rem + 4vw, 5.2rem); margin-bottom: 0.4em; }
.folio h3 { margin-top: 2.2em; }
.path { --gap: clamp(34px, 4.6vw, 56px); list-style: none; margin: 1.6rem 0 0; padding: 0 0 0 var(--gap); border-left: 1px solid rgba(184,116,74,0.35); }
@media (min-width: 900px) { .folio .prose, .folio-head .prose { margin-left: 29%; } }
@media (max-width: 899px) { .folio .prose, .folio-head .prose { padding-left: 14px; } }
.path li { position: relative; margin: 0 0 2.2rem; }
.path li::before {
  content: ""; position: absolute; left: calc(-1 * var(--gap) - 4px); top: 0.55em; width: 7px; height: 7px;
  transform: rotate(45deg); border-radius: 0 70%; border: 1px solid var(--copper); background: var(--deep);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}
.path li.lit::before { background: var(--gold); box-shadow: 0 0 8px rgba(241,200,120,0.45); animation: leaf-flare 1.4s ease-out; }
@keyframes leaf-flare {
  0% { box-shadow: 0 0 0 rgba(255,228,160,0); }
  22% { box-shadow: 0 0 14px 5px rgba(255,228,160,0.95), 0 0 34px 12px rgba(241,200,120,0.35); background: #fff3d2; }
  100% { box-shadow: 0 0 8px rgba(241,200,120,0.45); }
}
@media (prefers-reduced-motion: reduce) { .path li::before { background: var(--gold); } .path li.lit::before { animation: none; } }
.path li p { margin: 0 0 0.4em; }
.path-short li { margin-bottom: 1.4rem; }
.path-when { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper); }
.path-what { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.2; color: var(--ink); }
.path-where { color: var(--silver); font-style: italic; }
/* ===== v0.1.6 (Sep 29): what she does first, talks, Sky + Soul, featured, the new lantern ===== */
.doors, .topics { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.doors a { font-family: var(--display); font-size: 1.25em; text-decoration: none; border-bottom: 1px solid rgba(194,149,96,0.5); padding-bottom: 0.1em; }
.doors a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.topics { flex-direction: column; gap: 0.35rem; }
.topics li { font-family: var(--display); font-size: 1.3em; color: var(--ink); padding-left: 1.2em; position: relative; }
.topics li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45em; height: 1px; background: var(--gold); }
.dates { list-style: none; margin: 0.4rem 0 1.8rem; padding: 0; border-top: 1px solid rgba(143,179,171,0.25); }
.dates li { display: grid; grid-template-columns: 7.4rem 1fr; gap: 0.2rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(143,179,171,0.25); }
.dates .when { color: var(--sage); font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9em; padding-top: 0.15em; }
@media (max-width: 520px) { .dates li { grid-template-columns: 1fr; } }

.skysoul-teaser .skysoul-inner { max-width: 60rem; margin: 0 auto; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 820px) { .skysoul-teaser .skysoul-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); } }
.skysoul-logo { display: block; max-width: 400px; margin: 0 auto; }
.skysoul-logo img {
    transition: filter 0.8s ease;
}
.skysoul-logo:hover img { filter: brightness(1.12) drop-shadow(0 0 18px rgba(194,149,96,0.35)); }

/* The end: her lantern, holding the moon; it fills with starlight when you reach it, hover or tap it */
.lantern-end { position: relative; z-index: 1; padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(40px, 8vh, 90px); display: grid; gap: 28px; max-width: 64rem; margin: 0 auto; align-items: center; }
@media (min-width: 820px) { .lantern-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lantern-art { position: relative; aspect-ratio: 1024 / 681; max-width: 520px; width: 100%; margin: 0 auto; cursor: pointer; outline: none; }
.lantern-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.lantern-lit { opacity: 0; transition: opacity 1.6s ease; }
.lantern-end.on .lantern-lit, .lantern-art:hover .lantern-lit, .lantern-art:focus-visible .lantern-lit { opacity: 1; animation: flicker 3.4s ease-in-out 1.6s infinite; }
.lantern-art:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
.lantern-words .epigraph { margin: 0 0 1.2rem; }
.lantern-words .mark { color: var(--sage); font-style: italic; margin: 0; }
@media (prefers-reduced-motion: reduce) { .lantern-lit { transition: none; } .lantern-end.on .lantern-lit { animation: none; } }
.name-title { font-family: "Cinzel", var(--display); font-weight: 400; letter-spacing: 0.06em; font-size: clamp(2.8rem, 1.8rem + 5vw, 5rem); }
.thanks { min-height: 90svh; display: grid; align-content: center; text-align: center; }
.thanks-lantern { width: min(80vw, 420px); margin: 0 auto 1.4rem; }

/* ---- v0.1.7 (Oct 3, from the Oct 1 call) ---- */
/* Hero: name at the top so the moon and its reflection show; Dragon Light lead-in off to the right */
.hero { align-content: space-between; padding-top: clamp(72px, 12vh, 120px); }
.hero-art img { object-position: 50% 62%; }
.hero-text { text-align: center; max-width: none; }
.hero-lead { justify-self: end; max-width: 23rem; margin: 0 0 clamp(8px, 4vh, 40px); text-shadow: 0 1px 14px rgba(7,16,32,0.9); }
.hero-lead p { font-family: var(--display); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.5; color: var(--ink); margin: 0 0 0.8em; opacity: 0; animation: fadein 1.6s ease 1.8s forwards; }
.hero-lead .dl { display: block; font-family: "Cinzel", var(--display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8em; color: var(--gold); margin-bottom: 0.4em; }
@media (max-width: 700px) { .hero-lead { justify-self: center; text-align: center; max-width: 22rem; } }
@media (prefers-reduced-motion: reduce) { .hero-lead p { animation: none; opacity: 1; } }

/* The lantern button: bigger and easier to see */
.lantern { width: 52px; opacity: 0.8; }
@media (min-width: 900px) { .lantern { width: 64px; right: 26px; bottom: 26px; } }

/* The end: a simple full moon that glows (replaces the lantern and the old dragon) */
.moon-end { grid-template-columns: 1fr !important; justify-items: center; padding-bottom: clamp(60px, 12vh, 140px); }
.moon-end .lantern-art { aspect-ratio: 1; max-width: 220px; display: grid; place-items: center; }
.full-moon { width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #f6f1e6 0%, #e4dccb 55%, #c9bea8 100%); box-shadow: 0 0 30px rgba(239,234,224,0.18); opacity: 0.55; transition: opacity 1.6s ease, box-shadow 1.6s ease; }
.moon-end.on .full-moon, .moon-end .lantern-art:hover .full-moon { opacity: 1; box-shadow: 0 0 40px rgba(239,234,224,0.45), 0 0 120px rgba(194,149,96,0.35); }

.hero-lead { background: linear-gradient(90deg, rgba(7,16,32,0) 0%, rgba(7,16,32,0.72) 18%, rgba(7,16,32,0.72) 100%); padding: 16px 20px 6px 34px; border-right: 1px solid rgba(194,149,96,0.55); }
@media (max-width: 700px) { .hero-lead { background: rgba(7,16,32,0.6); padding: 14px 16px 4px; border-right: 0; border-top: 1px solid rgba(194,149,96,0.55); } }

/* v0.1.7: the menu sits in a band just under the water, then holds at the top as you scroll */
.topnav.under-water { position: sticky; top: 0; opacity: 1; transform: none; pointer-events: auto; }
/* phone: plain white words fixed along the bottom of the screen, no three-line menu */
@media (max-width: 700px) {
  .topnav.under-water { position: fixed; top: auto; bottom: 0; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .topnav.under-water::after { top: auto; bottom: 100%; background: linear-gradient(0deg, rgba(7,16,32,0.94), rgba(7,16,32,0)); }
  .topnav.under-water a, .topnav.under-water .nav-btn { color: #f4f1ea; }
  .topnav.under-water .nav-drop { top: auto; bottom: calc(100% + 12px); }
  .lantern { bottom: 76px; }
  .foot { padding-bottom: 90px; }
}

/* v0.1.7: small bronze four-point stars instead of the little dashes (sparingly) */
.topics li::before { width: 0.62em; height: 0.62em; top: 0.38em; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ---- v0.1.8 (Oct 3): the opening is HER, in the Qigong photo, with her name. Three layouts to compare:
   ?hero=a split, ?hero=b full photo, ?hero=c framed print on bone. Dragon Light moves into the page. ---- */
.review-switch { position: fixed; left: 12px; bottom: 12px; z-index: 9; display: flex; gap: 10px; align-items: center; padding: 6px 12px; border: 1px solid rgba(194,149,96,0.5); border-radius: 20px; background: rgba(7,16,32,0.85); font-family: "Cinzel", var(--display); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--silver); }
.review-switch a { color: var(--silver); text-decoration: none; padding: 0 2px; }
html[data-hero="a"] .review-switch a[data-v="a"], html[data-hero="b"] .review-switch a[data-v="b"], html[data-hero="c"] .review-switch a[data-v="c"] { color: var(--gold); border-bottom: 1px solid var(--gold); }
@media (max-width: 700px) { .review-switch { bottom: auto; top: 10px; } }

.hq { position: relative; min-height: 100svh; display: grid; background: #0c1216; overflow: hidden; }
.hq-photo { position: relative; margin: 0; }
.hq-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.hq-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hq-words { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); }
.hq .name { color: #efeae0; margin: 0; }
.hq-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 16px; }
.hq-rule::before, .hq-rule::after { content: ""; width: 90px; height: 1px; background: var(--gold); opacity: 0.8; }
.hq-rule i { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 0 70%; background: var(--gold); }
.hq-what { font-family: "Cinzel", var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: #8fb3ab; font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem); line-height: 1.8; margin: 0 0 1.2em; }
.hq-line { font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); color: #efeae0; margin: 0 0 0.9em; }

/* A: split. Her photo on the left, her name on the dark on the right */
@media (min-width: 900px) {
  html[data-hero="a"] .hq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  html[data-hero="a"] .hq-photo { height: 100svh; }
  html[data-hero="a"] .hq-photo::after { background: linear-gradient(90deg, rgba(12,18,22,0) 55%, #0c1216 100%), linear-gradient(180deg, rgba(12,18,22,0) 80%, #0c1216 100%); }
}

/* B: full photo. She fills the screen; her name rests on the dark ground below her, like the card */
html[data-hero="b"] .hq { align-content: end; }
html[data-hero="b"] .hq-photo { position: absolute; inset: 0; }
html[data-hero="b"] .hq-photo::after { background: linear-gradient(180deg, rgba(12,18,22,0.25) 0%, rgba(12,18,22,0) 22%, rgba(12,18,22,0.15) 50%, rgba(12,18,22,0.85) 78%, #0c1216 100%); }
html[data-hero="b"] .hq-words { text-shadow: 0 1px 3px rgba(12,18,22,0.9), 0 0 24px rgba(12,18,22,0.8); }
@media (min-width: 900px) { html[data-hero="b"] .hq-photo img { object-position: 50% 30%; } }

/* C: framed print. Light bone page, her photo framed like a print with a fine bronze line, her name in night ink */
html[data-hero="c"] .hq { background: #efeae0; align-content: center; justify-items: center; gap: clamp(18px, 3vh, 34px); padding: clamp(70px, 10vh, 110px) var(--gutter) clamp(36px, 6vh, 70px); }
html[data-hero="c"] .hq-photo { width: min(440px, 78vw); aspect-ratio: 4 / 5; padding: 12px; border: 1px solid #8a6038; background: #e6e0d4; box-shadow: 0 18px 40px rgba(12,18,22,0.18); }
html[data-hero="c"] .hq .name { color: #0c1216; }
html[data-hero="c"] .hq-what { color: #3f6b6a; }
html[data-hero="c"] .hq-line { color: #0c1216; }
html[data-hero="c"] .hq-words { padding-bottom: 0; }
html[data-hero="c"] .hq-more .ink { color: #8a6038; }
@media (min-width: 900px) {
  html[data-hero="c"] .hq { grid-template-columns: auto minmax(0, 30rem); column-gap: clamp(40px, 6vw, 100px); justify-content: center; }
  html[data-hero="c"] .hq-photo { width: min(440px, 34vw); }
  html[data-hero="c"] .hq-words { text-align: left; }
  html[data-hero="c"] .hq-rule { justify-content: flex-start; }
}

/* Phones (A and B): the photo on top, the words rising over her lower edge, like the card */
@media (max-width: 899px) {
  html[data-hero="a"] .hq { align-content: start; }
  html[data-hero="a"] .hq-photo { height: 64svh; }
  html[data-hero="a"] .hq-photo::after { background: linear-gradient(180deg, rgba(12,18,22,0.2) 0%, rgba(12,18,22,0) 25%, rgba(12,18,22,0) 55%, #0c1216 100%); }
  html[data-hero="a"] .hq-words { margin-top: -14svh; }
}

/* Dragon Light: its own place lower in the page, after Qigong (the dragon left the opening) */
.dl-section { position: relative; z-index: 1; display: grid; gap: 28px; padding: clamp(50px, 9vh, 110px) var(--gutter); max-width: 76rem; margin: 0 auto; align-items: center; }
.dl-art { margin: 0; }
.dl-art img { width: 100%; height: auto; display: block; border-radius: 2px; }
@media (min-width: 900px) { .dl-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dl-section .prose { margin-left: 0; } }

/* her photo now opens the page, so the Qigong band keeps only its words (no second copy of the same picture) */
.band-art { display: none; }
.band { padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(40px, 8vh, 90px); }
@media (min-width: 900px) { .band-words { margin-left: 24%; } }
/* v0.1.8: Dragon Light lives in the Qigong section (her wish, Oct 3 call 1:54:25): the dragon beside the words */
.dl-section { display: none; }
.qg-dragon { display: grid; gap: 28px; max-width: 76rem; margin-left: auto; margin-right: auto; align-items: center; }
.qg-art { margin: 0; }
.qg-art img { width: 100%; height: auto; display: block; border-radius: 2px; }
.qg-dragon .band-words { margin: 0 !important; }
.dl-note { color: var(--silver); font-style: italic; }
.dl-note .dl { display: block; font-style: normal; font-family: "Cinzel", var(--display); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78em; color: var(--gold); margin-bottom: 0.35em; }
@media (min-width: 900px) { .qg-dragon { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); } }

/* phones: keep 'Learn more' clear of the menu fixed along the bottom */
@media (max-width: 700px) { .hq-words { padding-bottom: 96px !important; } html[data-hero="c"] .hq { padding-bottom: 96px; } }

/* the compare switch shows only on the review links (?hero=a, b or c) */
html:not([data-review]) .review-switch { display: none; }

/* v0.1.17 (Oct 4): gallery writing cards, moon lantern, footer padding, Sky + Soul white logo, Dragon Light blend and caption, portfolio being-built line */
.shore-row .verse{align-self:flex-end}
.verse-card{--h:clamp(210px,34vh,330px);height:var(--h);width:clamp(220px,24vw,290px);margin-bottom:calc(var(--h)*0.42 + 3px);display:flex;flex-direction:column;justify-content:center;padding:0 1.4rem;border-left:1px solid rgba(194,149,96,0.45);box-sizing:border-box}
.verse-card p{font-family:var(--display);font-style:italic;font-size:1.12rem;line-height:1.5;margin:0 0 .9rem;opacity:.9}
.verse-src{font-size:.74rem;letter-spacing:.06em;color:var(--gold);line-height:1.45}.verse-src i{font-style:italic}
.moon-end .moon-lantern{aspect-ratio:auto;max-width:200px}.moon-lantern img{position:static;inset:auto;width:100%;height:auto;display:block;opacity:1;filter:brightness(.85);transition:filter 1.2s ease}.moon-end.on .moon-lantern img,.moon-lantern:hover img,.moon-lantern:focus img{filter:brightness(1.15) drop-shadow(0 0 28px rgba(241,200,120,.45))}
.foot{padding-left:max(var(--gutter),72px)!important;padding-right:max(var(--gutter),72px)!important}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skysoul-logo{max-width:300px!important}
.qg-art{position:relative}.qg-art img{border-radius:0;transform:scale(1.3);transform-origin:50% 52%}
.dl-cap{position:relative;z-index:1;max-width:30rem;margin:clamp(2.6rem,9%,4.5rem) auto 0;text-align:center;font-size:.95em}
.folio-building{font-size:.78rem;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin:0 0 1.2rem}

/* v0.1.18: in the split opening (layout A), size the name to its column so it never clips between ~900 and 1300px */
@media (min-width: 900px) { html[data-hero="a"] .hq .name { font-size: min(7.4rem, 8vw); } }

/* v0.1.19: client photography line under the gallery */
.gallery-offer{margin-top:clamp(1.6rem,4vh,2.6rem)}
