:root {
  /* Pastel day-to-night foundations, driven by --sky (scroll engine). */
  --sky: #fdefdd;
  --ink: #3a2e3e;
  --ink-soft: #6b5f72;
  --surface-rgb: 246, 239, 232;
  --line-rgb: 58, 46, 62;

  --plum: #7a4a6f;
  --plum-dark: #59334f;
  --honey: #e3b23c;
  --shadow: 0 18px 45px rgba(var(--line-rgb), 0.1);
  --radius-large: 2rem;
  --radius-medium: 1.25rem;
  --radius-small: 0.7rem;
  --radius-pill: 999px;

  /* Frosted-glass strength for surfaces that sit over the changing sky. */
  --glass-blur: 12px;
  --content-width: 72rem;
  --narrow-width: 48rem;
  --space-section: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Moon-phase disc (modelo 1 del set .impeccable) */
  --moon: #e8e1f2;
  --moon-shade: #c9bcdd;
  --bg-card: #f6efe8;

  /* Reserved right column on mobile for the vertical celestial scroll. */
  --rail-col: clamp(3.25rem, 10vw, 5.5rem);

  /* JS replaces this with the measured space below the sticky header. */
  --contact-header-fallback-height: 5rem;
  --contact-viewport-height: calc(100vh - var(--contact-header-fallback-height));

  /* Celestial scrollbar thumb size: visual disc AND transparent hit overlay
     share this single value (44px minimum mobile; desktop media query pins
     both to 64px), so the grabbable area always matches what the user sees. */
  --size: clamp(44px, 10vw, 52px);

  color: var(--ink);
  background: var(--sky);
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

@supports (height: 100svh) {
  :root {
    --contact-viewport-height: calc(100svh - var(--contact-header-fallback-height));
  }
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body { margin: 0; overflow-x: hidden; background: transparent; }

body, button, a { color: var(--ink); }

button, a { font: inherit; }

a { text-decoration: none; }

button { cursor: pointer; }

svg { display: block; width: 1.25rem; height: 1.25rem; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ Sky concept: fixed pastel day-to-night layer, driven by --sky ============ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--sky);
  transition: background-color 0.05s linear; /* smooths the pass between frames */
}

/* Stars only appear toward the end of the journey. */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s linear;
}

.star {
  position: absolute;
  width: var(--s, 10px);
  height: var(--s, 10px);
  background: radial-gradient(circle, rgba(70, 55, 95, 0.95) 0%, rgba(70, 55, 95, 0.5) 35%, transparent 70%);
  clip-path: polygon(
    50% 0%, 63% 38%, 100% 50%,
    63% 62%, 50% 100%, 37% 62%,
    0% 50%, 37% 38%
  );
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.star.small {
  background: radial-gradient(circle, rgba(70, 55, 95, 0.8) 0%, transparent 70%);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ============ Celestial: fixed, moves and mutates between phases with the scroll ============
   Mobile: rides a fixed right rail top → bottom (sol_luna_mobile_first.html).
   Desktop (>=800px): reverts to the horizontal arc across the top. */
.celestial-wrap {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: var(--rail-col);
  /* Background layer by default: the sun/moon VISUAL lives BEHIND page
     content so it never floats over cards or text. The fixed sky paints at
     z-index -2 and the stars at -1, so -1 keeps the disc visible over the sky
     while all in-flow content (z-index 0 and up) paints above it. The wrap
     itself never blocks: the disc is pointer-events: none too, because the
     interactive element is the transparent .celestial-hit overlay (z-15,
     above content). While the user grabs the overlay or keyboard-focuses it,
     app.js adds .is-engaged to raise the wrap to the interactive z-index
     (15) — above content, below the sticky header (z-20). The mobile menu
     panel insets its right edge past the rail (see .site-nav), so the rail
     column stays clear and grabbable. */
  z-index: -1;
  pointer-events: none;
}

/* Raised on interaction: applied by app.js while the thumb is pressed,
   dragged, or keyboard-focused (see the pointerdown capture handler and the
   focus/blur/keydown listeners in app.js). The disc then renders above page
   content so the user can see exactly what they are dragging. */
.celestial-wrap.is-engaged {
  z-index: 15;
}

.celestial-line {
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 50%;
  width: 1px;
  transform: translateX(50%);
  background: linear-gradient(to bottom, transparent, rgba(70, 55, 95, 0.13) 12%, rgba(70, 55, 95, 0.13) 88%, transparent);
}

.celestial {
  position: absolute;
  right: 50%;
  top: 10vh;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffd9a0;
  box-shadow: 0 0 40px 14px rgba(255, 217, 160, 0.55);
  overflow: hidden;
  transform: translate(50%, -50%);
  z-index: 2;
  /* Purely visual: the phase-shadow pseudo-elements keep working on the div.
     All interaction (pointer capture, drag, keyboard, focus) lives on the
     transparent .celestial-hit overlay, which sits above content and owns the
     gesture; the disc must never take a pointer itself, so it is
     pointer-events: none even when raised by .is-engaged. The disc sits in
     the background layer (its wrap has z-index -1) and only rises above
     content while the user is grabbing or focusing the overlay. */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.2s linear;
  will-change: top, background, box-shadow;
}

/* Transparent hit overlay: the actual scrollbar control (role="scrollbar").
   It floats ABOVE page content (z-15 — above content, below the sticky
   header's 20) so a press lands directly on it instead of the content that
   covers the visual disc; touch-action: none keeps the drag from turning
   into a native pan on mobile, and pointer capture routes every move/up to
   this element. It is invisible by design: no background, no ring, no circle
   — the visual disc rises via .is-engaged on the wrap as the engagement
   affordance. Positioned with the exact same arc/rail coordinates and size
   as the visual disc (shared --size; 64px desktop), so the grabbable area
   always matches what the user sees. */
.celestial-hit {
  position: fixed;
  top: 10vh;
  /* Centered on the mobile rail centerline: the visual disc is absolute
     inside the 52px-ish rail column with right: 50%, so its center sits at
     100vw - railCol/2. The overlay is fixed (a sibling of the wrap), so the
     same center is expressed as a viewport-relative right inset of
     railCol/2 — the translate(50%) then shifts it by half its own width,
     exactly like the disc. Desktop overrides right: auto and lets JS drive
     left. */
  right: calc(var(--rail-col) / 2);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  transform: translate(50%, -50%);
  z-index: 15;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Dragging affordance: the cursor does the talking (grab → grabbing) on the
   overlay; the faint brightening of the visual disc marks the active drag. */
.celestial-hit.is-dragging {
  cursor: grabbing;
}

/* The site-wide honey focus ring would read as an orange circle around the
   invisible overlay — wrong. Keyboard focus is still visible: the visual disc
   rises above content (wrap .is-engaged) the moment the overlay is focused,
   so the focused scrollbar stays clear without any ring. */
.celestial-hit:focus-visible {
  outline: none;
}

/* Active drag on the visual disc: a faint brightening marks the drag. No
   scale/press state like a button — the thumb must not look clickable. (The
   grab → grabbing cursor lives on the overlay.) */
.celestial.is-dragging {
  filter: brightness(1.06) saturate(1.05);
}

/* Rays emanate straight from the sun and fade out as it becomes a moon.
   Both disc and rays share the same anchor (right: 50% + translate(50%, -50%))
   so they stay perfectly superimposed on the rail centerline. */
.rays {
  --rays-x: 50%;
  position: absolute;
  right: 50%;
  top: 10vh;
  width: calc(var(--size) * 2.25);
  height: calc(var(--size) * 2.25);
  border-radius: 50%;
  transform: translate(var(--rays-x, 50%), -50%) rotate(0deg);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 181, 92, 0) 0deg 8deg,
    var(--ray-color, rgba(255, 181, 92, 0.85)) 8deg 10.5deg
  );
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 60%);
          mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 60%);
  z-index: 1;
  pointer-events: none;
  animation: spin 70s linear infinite;
}

@keyframes spin {
  from { transform: translate(var(--rays-x, -50%), -50%) rotate(0deg); }
  to { transform: translate(var(--rays-x, -50%), -50%) rotate(360deg); }
}

/* Thin ring separating the disc from the pastel sky — contrast without darkening. */
.celestial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1.5px rgba(60, 45, 50, 0.28),
    inset -6px -6px 14px rgba(60, 45, 50, 0.18),
    inset 6px 6px 10px rgba(255, 255, 255, 0.55);
  z-index: 2;
  pointer-events: none;
}

/* Craters fade in gradually as the disc becomes a moon. */
.crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(60, 45, 50, 0.16);
  z-index: 1;
  opacity: 0;
}

.crater.c1 { width: 18%; height: 18%; top: 22%; left: 23%; }
.crater.c2 { width: 12%; height: 12%; top: 53%; left: 57%; }
.crater.c3 { width: 8%; height: 8%; top: 31%; left: 63%; }
.crater.c4 { width: 10%; height: 10%; top: 65%; left: 31%; }

/* The "shadow" that covers the disc to simulate the lunar phase. */
.celestial::after {
  content: "";
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  background: var(--sky);
  transform: translateX(var(--shadow-x, 0%));
  transition: transform 0.05s linear;
  z-index: 3;
}

/* Scroll progress indicator: vertical rail on mobile, bottom bar on desktop. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #3a2e3e;
  opacity: 0.22;
  z-index: 20;
}

@media (prefers-reduced-motion: reduce) {
  .celestial, .sky { transition: none; }
}

.container { width: min(calc(100% - var(--rail-col)), var(--content-width)); margin: 0; padding-left: clamp(1.25rem, 4vw, 3rem); }

.narrow-container { width: min(calc(100% - var(--rail-col)), var(--narrow-width)); margin: 0; padding-left: clamp(1.25rem, 4vw, 3rem); }

/* Main sections each occupy about a viewport; long content (e.g. the reading
   catalog) is allowed to grow beyond it instead of clipping or forcing scroll
   inside the section. Short sections center their content vertically. */
.section-shell {
  position: relative;
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-section) 0;
}

main [id] { scroll-margin-top: 5.5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-small);
  background: var(--plum);
  color: #fffaf8;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 200ms var(--ease-out);
}

.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0;
  border-bottom: 1px solid transparent;
  /* The header strip is click-through so the sun/moon thumb stays reachable
     in the reserved rail column on mobile, whether it is resting in the
     background layer or raised (z-15, via .is-engaged); only its interactive
     children (brand, menu toggle, nav) capture pointer events. */
  pointer-events: none;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out);
}

.site-header > * { pointer-events: auto; }

.site-header.is-scrolled {
  border-bottom-color: rgba(var(--line-rgb), 0.14);
  background: rgba(var(--surface-rgb), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-logo { width: 28px; height: 28px; border-radius: 6px; }

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  /* The reserved right rail (--rail-col) stays clear while the mobile panel
     is open so the draggable sun/moon thumb remains visible and grabbable
     there (it renders behind content by default and is raised on interaction
     via .is-engaged); the 1.25rem gutter is preserved on both sides of the
     content column. Desktop nav is static, so these insets are simply ignored
     there. */
  right: calc(var(--rail-col) + 1.25rem);
  left: 1.25rem;
  display: none;
  align-items: stretch;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid rgba(var(--line-rgb), 0.18);
  border-radius: var(--radius-medium);
  background: rgba(var(--surface-rgb), 0.97);
  box-shadow: var(--shadow);
}

.site-nav.is-open { display: flex; }

/* Mobile panel reads as a frosted badge below the header. */
.site-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(var(--surface-rgb), 0.9);
}

.site-nav a:not(.button) { padding: 0.7rem; color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.site-nav .button { margin-top: 0.4rem; }

.menu-toggle { display: grid; place-items: center; border: 0; background: none; padding: 0.5rem; min-width: 44px; min-height: 44px; }

.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }

.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }

.menu-icon-close { display: none; }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  white-space: nowrap;
  min-height: 44px;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: var(--plum);
  color: #fffaf8;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.button svg, .text-link svg { width: 1rem; height: 1rem; }

.button:hover, .button:focus-visible {
  background: var(--plum-dark);
  border-color: var(--plum-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--line-rgb), 0.18);
}

.button-small { min-height: 38px; padding: 0.55rem 1rem; font-size: 0.77rem; }

.button-large { min-height: 48px; padding-inline: 1.6rem; font-size: 0.95rem; }

.text-link { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.25rem 0; color: var(--plum-dark); font-size: 0.87rem; font-weight: 700; }

.text-link svg { transition: transform 220ms var(--ease-out); }

.text-link:hover, .text-link:focus-visible { color: var(--plum); }

.text-link:hover svg { transform: translateX(4px); }

/* ---------- Type ---------- */

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }

h1 { max-width: 10ch; margin-bottom: 1.2rem; font-size: clamp(2.9rem, 15vw, 4.2rem); }

h2 { margin-bottom: 0.9rem; font-size: clamp(2.15rem, 9vw, 3.2rem); }

h3 { margin-bottom: 0.5rem; font-size: 1.4rem; letter-spacing: -0.02em; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 5rem);
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid { display: grid; align-items: center; gap: clamp(3rem, 8vw, 6rem); }

.hero-lead { max-width: 42rem; margin-bottom: 2rem; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.2rem); }

.hero-actions { display: flex; align-items: stretch; flex-direction: column; gap: 1.2rem; }

.hero-actions .button, .hero-actions .text-link { width: 100%; }

.hero-actions .text-link { justify-content: center; }

.voice-note {
  position: relative;
  max-width: 34rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(var(--line-rgb), 0.14);
  border-radius: var(--radius-large);
  background: rgba(var(--surface-rgb), 0.78);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  box-shadow: var(--shadow);
}

.voice-note::before {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 136, 64, 0.18), transparent 65%);
  content: "";
}

.voice-note-topline, .voice-note-main, .reading-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.voice-note-label, .voice-note-duration { color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.voice-note-main { position: relative; z-index: 1; justify-content: flex-start; margin: 2rem 0 1.25rem; }

.play-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--plum);
  color: #fffaf8;
  box-shadow: 0 8px 20px rgba(var(--line-rgb), 0.22);
}

.play-button svg { width: 1.15rem; height: 1.15rem; margin-left: 0.12rem; }

.waveform { display: flex; align-items: center; justify-content: space-between; flex: 1; height: 2.2rem; gap: 0.2rem; }

.waveform i {
  display: block;
  width: 0.18rem;
  min-height: 0.4rem;
  border-radius: 999px;
  background: var(--honey);
  opacity: 0.8;
  transform-origin: 50% 100%;
}

.waveform i:nth-child(2n) { height: 1.1rem; }
.waveform i:nth-child(3n) { height: 1.7rem; }
.waveform i:nth-child(4n) { height: 0.7rem; }
.waveform i:nth-child(5n) { height: 1.4rem; }

.voice-note-time { color: var(--ink-soft); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.voice-note p { position: relative; z-index: 1; max-width: 28rem; margin-bottom: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Section headings ---------- */

.section-heading { margin-bottom: 2.5rem; }

.section-heading > p { max-width: 28rem; margin-top: 0.9rem; margin-bottom: 0.5rem; color: var(--ink-soft); }

.centered-heading { display: block; max-width: 40rem; margin-inline: auto; text-align: center; }

.centered-heading > p:last-child { margin-inline: auto; }

/* ---------- Reading catalog ---------- */

.reading-groups { display: grid; gap: 1rem; }

.reading-group {
  position: relative;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(var(--line-rgb), 0.14);
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.78), rgba(var(--surface-rgb), 0.44));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 12px 32px rgba(var(--line-rgb), 0.06);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.reading-group.is-open {
  border-color: rgba(122, 74, 111, 0.28);
  background: linear-gradient(135deg, rgba(var(--surface-rgb), 0.9), rgba(var(--surface-rgb), 0.58));
  box-shadow: 0 18px 42px rgba(var(--line-rgb), 0.1);
}

.reading-group-gem {
  position: absolute;
  top: -0.65rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(var(--surface-rgb), 0.95);
  color: var(--honey);
  box-shadow: 0 6px 18px rgba(var(--line-rgb), 0.12);
}

.reading-group-gem svg { width: 1.7rem; height: 1.7rem; }

.group-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: inherit;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out);
}

.group-summary::-webkit-details-marker { display: none; }

.group-summary:hover { background: rgba(var(--surface-rgb), 0.32); color: var(--plum-dark); }

.group-summary:focus-visible { color: var(--plum-dark); }

.group-heading { display: flex; align-items: flex-start; flex: 1; gap: 0.75rem; flex-wrap: wrap; min-width: 0; }

.group-title { margin: 0; font-family: "Fraunces", serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }

.group-count { width: 100%; color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

.group-summary-arrow { flex: 0 0 auto; color: var(--plum); transform: rotate(90deg); transition: transform 360ms var(--ease-out), color 220ms var(--ease-out); }

.reading-group.is-open .group-summary-arrow { transform: rotate(-90deg); color: var(--plum-dark); }

.reading-list-shell { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }

details[open] .reading-list-shell,
.reading-group.is-open .reading-list-shell { grid-template-rows: 1fr; }

.reading-list-shell > .reading-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  gap: 1rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 280ms var(--ease-out), transform 420ms var(--ease-out), padding 420ms var(--ease-out);
}

details[open] .reading-list-shell > .reading-list,
.reading-group.is-open .reading-list-shell > .reading-list {
  padding-top: 0.35rem;
  padding-bottom: 1.25rem;
  opacity: 1;
  transform: none;
}

.reading-group.is-closing .reading-list-shell { grid-template-rows: 0fr; }

.reading-group.is-closing .reading-list-shell > .reading-list {
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-0.5rem);
}

.reading-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--line-rgb), 0.17);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(var(--surface-rgb), 0.84), rgba(var(--surface-rgb), 0.56));
  box-shadow: 0 10px 26px rgba(var(--line-rgb), 0.06);
  transition: background 260ms var(--ease-out), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out), translate 260ms var(--ease-out);
}

.reading-item::before {
  position: absolute;
  top: -2.75rem;
  right: -1.75rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(201, 136, 64, 0.12);
  content: "";
  pointer-events: none;
  z-index: -1;
}

.reading-item:hover,
.reading-item:focus-within {
  border-color: rgba(122, 74, 111, 0.3);
  background: linear-gradient(145deg, rgba(var(--surface-rgb), 0.92), rgba(var(--surface-rgb), 0.68));
  box-shadow: 0 15px 30px rgba(var(--line-rgb), 0.1);
  translate: 0 -3px;
}

.reading-title {
  position: relative;
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.reading-detail { position: relative; display: flex; flex: 1; flex-direction: column; padding: 0; }

.reading-detail p { max-width: 62ch; margin-bottom: 0.9rem; color: var(--ink-soft); font-size: 0.87rem; }

.reading-detail .reading-note { color: var(--plum-dark); font-size: 0.78rem; font-weight: 700; }

.reading-meta { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }

.reading-meta span { display: inline-flex; align-items: baseline; color: var(--plum-dark); font-family: "Fraunces", serif; font-size: clamp(0.98rem, 2vw, 1.1rem); font-weight: 600; letter-spacing: -0.01em; }

.reading-item-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-direction: column;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--line-rgb), 0.14);
}

.reading-item-footer .reading-meta { flex: 0 1 auto; margin: 0; }

.reading-item-footer .text-link {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: rgba(var(--surface-rgb), 0.3);
  color: var(--plum-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.reading-item-footer .text-link svg { width: 1.05rem; height: 1.05rem; transition: transform 220ms var(--ease-out); }

.reading-item-footer .text-link:hover,
.reading-item-footer .text-link:focus-visible {
  border-color: rgba(122, 74, 111, 0.34);
  background: rgba(122, 74, 111, 0.1);
  color: var(--plum-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(var(--line-rgb), 0.08);
}

.reading-item-footer .text-link:hover svg,
.reading-item-footer .text-link:focus-visible svg { transform: translateX(3px); }

/* ---------- How it works ---------- */

.process-section { padding-top: calc(var(--space-section) * 0.75); }

.process-list { display: grid; gap: 0; padding: 0; margin: 3rem 0 0; list-style: none; }

.process-step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid rgba(var(--line-rgb), 0.14); }

/* Moon-phase disc — technique from .impeccable/set-iconos-lunas.html (modelo 1) */
.phase {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--moon);
  position: relative;
  overflow: hidden;
  box-shadow: inset -4px -4px 8px rgba(58, 46, 62, 0.12);
}

.phase::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-card);
}

.phase.new::after { transform: translateX(0%); }
.phase.waxing-crescent::after { transform: translateX(28%); }
.phase.first-quarter::after { transform: translateX(50%); }
.phase.waxing-gibbous::after { transform: translateX(72%); }
.phase.full::after { transform: translateX(101%); }
.phase.waning-gibbous::after { transform: translateX(-72%); }
.phase.last-quarter::after { transform: translateX(-50%); }
.phase.waning-crescent::after { transform: translateX(-28%); }

.process-step h3 { font-size: 1.55rem; }

.process-step p { max-width: 42rem; margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Testimonials ----------
   Mobile-first editorial stream: the featured quote leads as type (no box),
   the supporting quotes drop into a hairline-divided list. Desktop (>=800px)
   reverts to the boxed 12-column editorial grid. */

.testimonial-grid { display: grid; gap: 0; }

.testimonial {
  position: relative;
  padding: 1.75rem 0;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(var(--line-rgb), 0.14);
  border-radius: 0;
  background: none;
}

.testimonial:first-child { border-top: none; }

.testimonial p { margin: 0; font-family: "Fraunces", serif; font-size: 1.05rem; line-height: 1.35; }

.testimonial cite { color: var(--ink-soft); font-size: 0.72rem; font-style: normal; font-weight: 700; text-transform: uppercase; }

.testimonial-featured {
  padding: 1.25rem 0 2.5rem;
  background: none;
}

.testimonial-featured p { font-size: clamp(1.6rem, 3.2vw, 2rem); line-height: 1.15; }

.testimonial-featured::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 1.75rem;
  background: rgba(201, 136, 64, 0.45);
  border-radius: var(--radius-pill);
}

/* ---------- About ---------- */

.about-grid { display: grid; align-items: center; gap: 3rem; }

.portrait {
  display: block;
  width: 12rem;
  height: 12rem;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1.5rem 3rem rgba(var(--line-rgb), 0.16);
}

.about-copy > p:not(.editable-note) { max-width: 38rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }

.editable-note { margin-bottom: 1.5rem; color: var(--plum); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }

/* ---------- Contact / close ----------
   Scroll-driven "grow": the contact card starts as a normal rounded container,
   aligned with the page's centered column, and as this last section enters the
   viewport it broadens edge-to-edge into the site's footer. Every contact style
   is a continuous function of --contact-grow (0 → 1) via calc(), so there are
   no discrete layout jumps and the growth is monotonic in both directions.

   PROGRESS MAPPING: app.js maps the real scroll interval from the section
   entering the viewport to the exact document bottom. There is intentionally
   no CSS scroll-driven animation competing with that single JS driver.

   prefers-reduced-motion: reduce keeps the final static state in app.js. */

.contact-section {
  --grow: var(--contact-grow, 0);
  /* Reserve the complete maximum contact footprint before scrolling starts.
     Only the card surface interpolates inside this fixed section; the body
     therefore keeps one scrollHeight while --contact-grow changes. */
  --contact-gutter: clamp(1.25rem, 4vw, 3rem);
  --contact-card-start: var(--contact-viewport-height);
  --contact-card-max: var(--contact-viewport-height);
  --contact-reserved-height: calc(var(--space-section) + var(--contact-card-max));
  /* Desktop starts as a genuinely floating 500px card. On narrow screens the
     start width is clamped to the usable page width, so the same interpolation
     cannot create horizontal overflow. */
  --contact-inset: max(0px, calc((100% - min(31.25rem, calc(100% - (2 * var(--contact-gutter))))) / 2));
  height: var(--contact-reserved-height);
  min-height: var(--contact-reserved-height);
  justify-content: flex-start;
  padding-top: var(--space-section);
  padding-bottom: 0;
  overflow: hidden;
}

/* The wrap continuously reclaims its two equal insets. At grow = 0 it is
   500px wide on desktop; at grow = 1 it is exactly the layout viewport. */
.contact-section .contact-wrap {
  width: calc(100% - (2 * var(--contact-inset) * (1 - var(--grow))));
  height: var(--contact-card-max);
  margin-inline: auto;
  padding: 0;
  container: contact / inline-size;
}

/* One continuous width/position function turns the contained card into the
   final full-bleed footer. No breakpoint or threshold changes its geometry. */
.contact-card {
  position: relative;
  display: grid;
  /* Safe default for the narrow keyframe and browsers without container
     queries: the composition stays intimate instead of squeezing columns. */
  grid-template-columns: minmax(0, 1fr);
   grid-template-areas:
     "copy"
     "visual";
  align-items: start;
  align-content: start;
  row-gap: 1.25rem;
  justify-items: start;
  width: 100%;
  margin: 0;
  height: var(--contact-card-start);
  height: calc(var(--contact-card-start) + (var(--contact-card-max) - var(--contact-card-start)) * var(--grow));
  min-height: var(--contact-card-start);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(var(--line-rgb), calc(0.16 * (1 - var(--grow))));
  border-radius: calc(var(--radius-large) * (1 - var(--grow)));
  background: rgba(var(--surface-rgb), 0.55);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  text-align: left;
}

.contact-copy {
  display: grid;
  grid-area: copy;
  grid-template-areas:
    "ornament"
    "title"
    "intro"
    "divider"
    "reflection"
    "actions"
    "note"
    "status";
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.contact-card h2 {
  grid-area: title;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-wrap: balance;
}

.contact-ornament {
  display: flex;
  grid-area: ornament;
  align-items: center;
  gap: 0.75rem;
  width: 7.5rem;
  color: var(--honey);
}

.contact-ornament::after {
  width: 5rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.75;
}

.contact-ornament svg,
.contact-divider svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.contact-intro {
  grid-area: intro;
  max-width: 31rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.6;
}

.contact-divider {
  display: flex;
  grid-area: divider;
  align-items: center;
  gap: 0.75rem;
  width: min(15rem, 60%);
  color: var(--honey);
}

.contact-divider span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.contact-reflection {
  grid-area: reflection;
  max-width: 34rem;
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-reflection strong {
  color: var(--plum);
  font-weight: 600;
}

.contact-note {
  display: flex;
  grid-area: note;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.contact-note svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--honey);
}

.contact-actions {
  display: grid;
  grid-area: actions;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.8rem;
  max-width: 40rem;
  min-width: 0;
}

.contact-copy > .config-status { grid-area: status; }

.contact-visual {
  grid-area: visual;
  min-width: 0;
  width: 100%;
}

.contact-image-panel {
  width: 100%;
  height: clamp(10rem, 28vw, 14rem);
  padding: clamp(0.5rem, 1.5vw, 1rem);
  overflow: hidden;
  border: 1px solid rgba(var(--line-rgb), 0.16);
  border-radius: var(--radius-medium);
  background: rgba(255, 250, 244, 0.84);
}

.contact-image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Footer surface crossfades over the paper base; the top hairline stays as the
   quiet boundary between the content above and the footer band. */
.contact-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-top: 1px solid rgba(var(--line-rgb), 0.2);
  border-radius: inherit;
  background: rgba(229, 222, 243, 0.9);
  opacity: calc(var(--grow));
  pointer-events: none;
  content: "";
}

.contact-card > * { position: relative; z-index: 1; }

.contact-card::before {
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 136, 64, 0.18), transparent 62%);
  opacity: calc(1 - (var(--grow) * 0.45));
  transition: opacity 180ms linear;
  content: "";
}

/* Secondary button for the Instagram link, pairing with the primary WhatsApp
   CTA. Outline style in rest, filled plum on hover/focus so the state is
   visible without relying on color alone. */
.instagram-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 4rem;
  margin-top: 0;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(var(--line-rgb), 0.35);
  border-radius: var(--radius-pill);
  background: rgba(var(--surface-rgb), 0.5);
  color: var(--plum-dark);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(var(--line-rgb), 0.08);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.contact-actions > .button,
.contact-actions > .instagram-link {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.contact-actions > .button { min-height: 4rem; padding: 1rem 1.5rem; font-size: 1rem; }

.instagram-link svg { width: 1.1rem; height: 1.1rem; }

.instagram-link:hover,
.instagram-link:focus-visible {
  background: var(--plum);
  border-color: var(--plum);
  color: #fffaf8;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--line-rgb), 0.18);
}

.config-status { max-width: 36rem; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.7rem; }

/* The layout branch follows the actual animated card width, not the viewport.
   The first wide-screen keyframe is still only 500px, so it remains stacked;
   the open two-column composition appears only once the surface has room for
   both reading paths. */
@container contact (min-width: 42rem) {
  .contact-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas:
      "copy visual";
    align-items: stretch;
    column-gap: clamp(1.5rem, 6vw, 5rem);
    row-gap: 0;
    padding: clamp(2rem, 5vh, 4.5rem) clamp(3rem, 6vw, 6rem);
    padding-left: clamp(4rem, 8vw, 7rem);
  }

  .contact-card h2 {
    max-width: 11ch;
    font-size: clamp(3rem, 5.8vw, 5rem);
  }

  .contact-copy {
    gap: clamp(0.75rem, 2.5vh, 1.5rem);
    padding-top: clamp(4rem, 11vh, 7rem);
  }

  .contact-actions {
    grid-template-columns: minmax(0, 1.2fr) minmax(11rem, 0.8fr);
    align-items: stretch;
  }

  .contact-actions > .button,
  .contact-actions > .instagram-link {
    min-height: 4.5rem;
    padding: 1.15rem 1.75rem;
    font-size: 1.08rem;
  }

  .contact-actions > .button > svg,
  .contact-actions > .instagram-link > svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .contact-actions > .instagram-link {
    font-size: 0.98rem;
  }

  .contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 100%;
  }

  .contact-image-panel {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 2 / 3;
    align-self: center;
    justify-self: center;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: scale(1.08);
    transform-origin: center;
  }
}

@media (max-width: 41.99rem) {
  .contact-visual {
    display: none;
  }

  .contact-section {
    --grow: 1;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .contact-section .contact-wrap {
    width: 100%;
    height: auto;
    margin-inline: 0;
  }

  .contact-card {
    grid-template-areas: "copy";
    row-gap: 0;
    height: auto;
    min-height: 0;
    padding-bottom: 1.25rem;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }
}

:focus-visible { outline: 3px solid rgba(201, 136, 64, 0.75); outline-offset: 3px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }

  html { scroll-behavior: smooth; }

  /* The voice-note waveform breathes as if a reading were playing. */
  @keyframes wave {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
  }

  @keyframes reading-item-in {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: none; }
  }

  .waveform i {
    animation: wave 2400ms ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -140ms);
  }

  /* A single orchestrated reveal: content lifts softly one time. */
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
    transition-delay: var(--d, 0s);
  }

  [data-reveal].is-revealed { opacity: 1; transform: none; }

  .reading-group.is-open .reading-item { animation: reading-item-in 480ms var(--ease-out) both; }
  .reading-group.is-open .reading-item:nth-child(2) { animation-delay: 45ms; }
  .reading-group.is-open .reading-item:nth-child(3) { animation-delay: 90ms; }
  .reading-group.is-open .reading-item:nth-child(4) { animation-delay: 135ms; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reading-list-shell > .reading-list { opacity: 1; transform: none; }
  .reading-group.is-open .reading-item { animation: none; }
}

/* ==================================================================
   PASS 2.1 · VIEWPORT FILL + FROSTED SURFACES
   Selectors touched in this pass — details in PHASE-2.1-VIEWPORT-BLUR.md:
   - .section-shell                 -> min-height ≈ 1 viewport (grows for long
                                       content) + vertical centering for short ones
   - .site-nav                      -> frosted mobile panel, blur reset on desktop
   - .voice-note                    -> translucent paper + blur
   - .reading-group                 -> translucent paper + blur
   - .reading-meta span             -> frosted pill badge
   - .testimonial / .testimonial-featured -> frosted desktop cards
   - .contact-card                  -> translucent paper + blur
   - .instagram-link                -> secondary button + hover/focus states
   - :root                          -> new tokens --glass-blur, --radius-pill
   Contrast is preserved by keeping the paper-tinted translucent backgrounds;
   blur only affects what sits behind each surface. No frosted cards on the
   mobile testimonial stream, which stays editorial type without a background.
   ================================================================== */

/* ---------- Responsive ---------- */

@media (min-width: 480px) {
  .container, .narrow-container { width: min(calc(100% - var(--rail-col)), var(--content-width)); }

  h1 { font-size: clamp(3.4rem, 12vw, 6.6rem); }

  h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); }

  .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }

  .hero-actions .button, .hero-actions .text-link { width: auto; }

  .hero-actions .text-link { justify-content: flex-start; }

  .group-summary { padding-inline: clamp(1.25rem, 3vw, 2rem); }

  .reading-group.is-open .reading-list-shell > .reading-list { padding-inline: clamp(1.25rem, 3vw, 2rem); }

  .reading-item-footer { align-items: center; flex-direction: row; }

  .reading-item-footer .text-link { margin-left: auto; }

  .group-heading { align-items: center; flex-wrap: nowrap; }

  .group-count { width: auto; margin-left: auto; }
}

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr); }

  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav a:not(.button) {
    position: relative;
    padding: 0;
    color: var(--ink-soft);
  }

  .site-nav a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--plum);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms var(--ease-out);
    content: "";
  }

  .site-nav a:not(.button):hover::after { transform: scaleX(1); }

  .site-nav .button { margin-top: 0; }

  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2.75rem;
  }

  .section-heading > p { margin-top: 0; }

  .reading-list-shell > .reading-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }

  .testimonial-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }

  .testimonial { grid-column: span 4; min-height: 12rem; padding: 1.5rem; border: 1px solid rgba(var(--line-rgb), 0.16); border-radius: var(--radius-medium); background: rgba(var(--surface-rgb), 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

  .testimonial:first-child { border-top: 1px solid rgba(var(--line-rgb), 0.16); }

  .testimonial-featured { grid-column: span 5; min-height: 17rem; background: rgba(var(--surface-rgb), 0.82); backdrop-filter: blur(14px) saturate(1.05); -webkit-backdrop-filter: blur(14px) saturate(1.05); }

  .testimonial-wide { grid-column: span 7; min-height: 17rem; }

  .testimonial-double { grid-column: span 6; min-height: 10rem; }

  .testimonial-featured::after { display: none; }

  .testimonial-wide p { font-size: 1.4rem; line-height: 1.35; }

  .about-grid { grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 8rem); }

  .portrait { width: 24rem; height: 24rem; max-width: none; margin-inline: 0; }

  /* Celestial reverts to the desktop arc: sun arcs left → right across the sky. */
  .celestial-wrap { top: 0; left: 0; right: auto; width: 100%; height: 38vh; }

  .celestial-line { display: none; }

  .celestial { right: auto; width: 64px; height: 64px; transform: translate(-50%, -50%); }

  .celestial-hit { right: auto; width: 64px; height: 64px; transform: translate(-50%, -50%); }

  .rays { --rays-x: -50%; right: auto; width: 180px; height: 180px; transform: translate(-50%, -50%) rotate(0deg); }

  .container, .narrow-container { width: min(calc(100% - 2.5rem), var(--content-width)); margin: 0 auto; }

  .crater.c1 { width: 14px; height: 14px; top: 14px; left: 16px; }
  .crater.c2 { width: 9px; height: 9px; top: 34px; left: 36px; }
  .crater.c3 { width: 6px; height: 6px; top: 20px; left: 40px; }

  .celestial::after { inset: 0; }

  .progress { top: auto; bottom: 0; width: 0%; height: 3px; opacity: 0.25; z-index: 5; }
}
