/* Pews & Pixels v2 — "A LAMP FOR MY FEET"
 * ==========================================================================
 * The whole page is built around one idea from Psalm 119:105: light follows
 * your path. A warm lamplight literally follows the pointer across the page;
 * the custom cursor is a spark; the verse band breathes; type is set huge,
 * inked, and choreographed at reading pace (the One Word mechanic).
 *
 * The child theme owns ALL CSS — the parent stylesheet is intentionally not
 * loaded (its rules clashed with v2 buttons and links).
 *
 * Contrast audit (WCAG 2.1 AA):
 *   purple  #2A1F3D on cream #FBF1DE ≈ 14.7:1 ✓
 *   lavender #5a4a6e on cream        ≈  7.3:1 ✓
 *   cream on purple                  ≈ 14.7:1 ✓
 *   cream @ .80 on purple            ≈  9.5:1 ✓ (muted text on dark)
 *   coral #E8743C on purple          ≈  5.0:1 ✓ (accents on dark only)
 *   purple on coral                  ≈  5.0:1 ✓ (LIVE pill, subscribe btn)
 *   coral on cream                   ≈  2.7:1 ✗ NEVER carries text on cream;
 *                                      decorative only (rules, rings, ghosts)
 *
 * Every flourish has a kill-switch — blocks marked `FLOURISH:` can be deleted
 * independently. JS counterparts are listed in the README.
 * ========================================================================== */

:root {
  /* Palette — preserve exactly */
  --color-cream:    #FBF1DE;
  --color-purple:   #2A1F3D;
  --color-coral:    #E8743C;
  --color-lavender: #5a4a6e;
  --color-border:   #EAECED;

  /* Transparent mixes of brand colours only */
  --hairline:       rgba(42, 31, 61, 0.18);
  --hairline-dark:  rgba(251, 241, 222, 0.22);
  --cream-muted:    rgba(251, 241, 222, 0.80);
  --ink-ghost:      rgba(42, 31, 61, 0.10);

  --font-display: 'Anton', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px;

  --ease-emphasis: cubic-bezier(.22, 1, .36, 1);
  --ease-rest:     cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 180ms; --dur-base: 320ms; --dur-slow: 720ms;

  --container: 1180px;
}

/* Base ------------------------------------------------------------------- */

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

html { scrollbar-color: var(--color-purple) var(--color-cream); }

body.pp-v2 {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-purple);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.pp-v2 h1, .pp-v2 h2, .pp-v2 h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
  text-transform: uppercase;
}

.pp-v2 p { margin: 0; }
.pp-v2 img { max-width: 100%; height: auto; }

.pp-v2 ::selection { background: var(--color-purple); color: var(--color-cream); }

/* Links: ink text, coral underline (coral never CARRIES text on cream). */
.pp-v2 a {
  color: var(--color-purple);
  text-decoration: underline;
  text-decoration-color: var(--color-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-rest),
              text-underline-offset var(--dur-fast) var(--ease-rest);
}
.pp-v2 a:hover { text-decoration-thickness: 3px; text-underline-offset: 5px; }

.pp-v2 :focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 4px;
  border-radius: 3px;
}

.pp-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.pp-skip-link {
  position: absolute; left: var(--space-2); top: -100px; z-index: 200;
  padding: 0.6em 1em; background: var(--color-purple); color: var(--color-cream);
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.pp-skip-link:focus { top: var(--space-2); }

/* Eyebrow folio ------------------------------------------------------------ */

.pp-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-lavender);
}
.pp-eyebrow::before {
  content: ""; width: 34px; height: 3px; background: var(--color-coral);
  flex: none; transform-origin: left center;
}

/* Buttons ------------------------------------------------------------------
 * Flat, weighty, print-like. The primary flips to coral ink on hover —
 * purple-on-coral passes AA (≈5.0:1). No gradients, no shadow stacks. */

/* NB: selectors carry .pp-v2 so they beat the global `.pp-v2 a` link rule —
 * without it the primary button's text inherited link-purple on a purple
 * background (the "unreadable See the apps" bug). */
.pp-v2 .pp-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.7em;
  border: 2px solid var(--color-purple);
  border-radius: 12px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  color: var(--color-purple); background: transparent;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-emphasis),
              color var(--dur-base) var(--ease-emphasis),
              border-color var(--dur-base) var(--ease-emphasis),
              transform var(--dur-base) var(--ease-emphasis);
  will-change: transform;
}
.pp-v2 .pp-btn:hover { background: var(--color-purple); color: var(--color-cream); text-decoration: none; }
.pp-v2 .pp-btn--primary { background: var(--color-purple); color: var(--color-cream); }
.pp-v2 .pp-btn--primary:hover { background: var(--color-coral); border-color: var(--color-coral); color: var(--color-purple); }
.pp-v2 .pp-btn:active { transform: scale(0.97); }

.pp-btn__arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-emphasis); }
.pp-btn:hover .pp-btn__arrow,
.pp-link:hover .pp-btn__arrow { transform: translateX(6px); }

.pp-link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; }

/* FLOURISH: custom cursor + page-wide lamplight ----------------------------
 * Built by main.js only on fine-pointer, motion-allowed devices. The glow is
 * the signature: "your word is a lamp… a light on my path" — the light
 * follows the reader's path across the entire page. */

.pp-cursor-on, .pp-cursor-on a, .pp-cursor-on button,
.pp-cursor-on input, .pp-cursor-on label { cursor: none; }

.pp-cursor-dot, .pp-cursor-ring, .pp-lamp {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
}
.pp-cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--color-coral);
}
.pp-cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--color-purple); border-radius: 50%;
  opacity: .55;
  transition: transform var(--dur-base) var(--ease-emphasis),
              opacity var(--dur-base) var(--ease-rest),
              border-color var(--dur-base) var(--ease-rest);
}
.pp-cursor-ring.is-hover { transform: scale(1.9); opacity: .9; border-color: var(--color-coral); }
.pp-lamp {
  z-index: 1; width: 0; height: 0;
}
.pp-lamp::after {
  content: ""; position: absolute; left: -360px; top: -360px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 116, 60, 0.10) 0%,
    rgba(232, 116, 60, 0.05) 38%,
    transparent 68%);
}

/* FLOURISH: dawn intro — the lamp lights the page --------------------------
 * Plays once per session. Hidden entirely unless html.pp-js (JS + motion);
 * main.js removes the element when the curtain lifts, with a 3s failsafe. */
.pp-dawn {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--color-purple);
  display: none;
}
.pp-js .pp-dawn { display: block; }
.pp-dawn__glow {
  position: absolute; left: 50%; top: 56%;
  width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 116, 60, 0.6) 0%,
    rgba(232, 116, 60, 0.22) 42%,
    transparent 70%);
  transform: scale(0.15);
  opacity: 0;
}

/* FLOURISH: reading-progress light bar ------------------------------------ */
.pp-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  pointer-events: none;
}
.pp-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--color-coral);
  transform: scaleX(0); transform-origin: left center;
}

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

.pp-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-rest);
}
.pp-header.is-scrolled { border-bottom-color: var(--hairline); }

.pp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); min-height: 72px;
}
.pp-header__brand { display: inline-flex; align-items: center; gap: 12px; }
/* The ampersand tile is the easter-egg trigger — it begs to be poked. */
.pp-v2 .pp-header__markbtn {
  background: none; border: 0; padding: 0; margin: 0;
  line-height: 0; cursor: pointer; border-radius: 8px;
}
.pp-header__mark { border-radius: 8px; transition: transform var(--dur-base) var(--ease-emphasis); }
.pp-header__markbtn:hover .pp-header__mark { transform: rotate(-8deg) scale(1.1); }
.pp-header__markbtn:active .pp-header__mark { transform: scale(0.92); }
.pp-header__namelink { text-decoration: none; }
.pp-header__namelink:hover { text-decoration: underline; text-decoration-color: var(--color-coral); text-decoration-thickness: 2px; }
.pp-header__name {
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}

.pp-header__nav { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.pp-header__nav a {
  position: relative; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; padding-block: 6px;
}
.pp-header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  background: var(--color-coral); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-emphasis);
}
.pp-header__nav a:hover::after { transform: scaleX(1); }

/* Hero ---------------------------------------------------------------------
 * A theatre opening. Ghost letterforms of the thesis drift at depth behind a
 * centred column; the tagline arrives one word at a time. The wordmark
 * (LCP) paints instantly and is never opacity-animated. */

.pp-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex; align-items: center;
  padding-block: var(--space-5) var(--space-6);
  overflow: clip;
}

/* FLOURISH: ghost letterforms (decorative, aria-hidden) */
.pp-hero__ghosts { position: absolute; inset: -4% -2%; z-index: 0; }
.pp-hero__ghosts span {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(7rem, 19vw, 19rem);
  line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-ghost);
  user-select: none;
}
.pp-hero__ghosts span:nth-child(1) { top: 2%;  left: -3%; }
.pp-hero__ghosts span:nth-child(2) { top: 38%; right: -6%; }
.pp-hero__ghosts span:nth-child(3) { bottom: 0; left: 6%; }

.pp-hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; gap: var(--space-4); width: 100%;
}

.pp-hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--space-4); width: 100%; flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* The logotype at Awwwards scale — edge to edge of the container. */
.pp-hero__wordmark { margin: 0; line-height: 0; width: 100%; position: relative; }
.pp-hero__wordmark img {
  width: 100%; max-width: 1080px; height: auto; display: block;
  position: relative;
  transition: opacity 900ms var(--ease-rest);
}

/* FLOURISH: the wordmark, made of pixels --------------------------------------
 * After load, main.js mounts a Three.js points scene that rebuilds logo.svg
 * out of thousands of square particles which assemble into the mark, stir
 * around the pointer, ripple on click, and loosen as the hero scrolls away.
 * The static <img> stays underneath as the LCP element and the no-JS /
 * reduced-motion / no-WebGL fallback; CSS cross-fades the two. The span
 * bleeds far past the image so stirred pixels never clip. */
.pp-hero__logoscene {
  position: absolute;
  top: -120%; bottom: -120%; left: -9%; right: -9%;
  pointer-events: none;
  display: block;
  z-index: 1;
}
.pp-hero__logoscene canvas { width: 100%; height: 100%; display: block; }
.pp-hero__wordmark.has-pixels img { opacity: 0; }

.pp-hero__tagline {
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw + 0.75rem, 1.45rem);
  line-height: 1.65; color: var(--color-lavender); max-width: 38ch;
}
.pp-word { display: inline-block; will-change: transform, opacity; }

.pp-hero__actions {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}

/* Entrance gate: only when JS + motion are live (html.pp-js). The wordmark
 * is exempt — LCP. main.js removes pp-js if GSAP fails (failsafe). */
@media (prefers-reduced-motion: no-preference) {
  .pp-js .pp-hero__eyebrow,
  .pp-js .pp-hero__tagline,
  .pp-js .pp-hero__actions > * { opacity: 0; }
}

/* FLOURISH: marquee divider (decorative duplicate of the thesis words) ----- */

/* A rotated ink band slicing across the page — sticker-bold, full bleed. */
.pp-marquee {
  position: relative; z-index: 4;
  background: var(--color-purple);
  width: 106vw; margin-left: -3vw;
  transform: rotate(-1.4deg);
  padding-block: clamp(14px, 2vw, 24px);
  margin-block: calc(var(--space-4) * -1) 0;
  overflow: clip;
  box-shadow: 0 1px 0 var(--color-purple); /* seam guard on subpixel rotation */
}
.pp-marquee__track {
  display: flex; width: max-content; gap: 0;
  animation: pp-marquee 30s linear infinite;
}
.pp-marquee__track > span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-cream); white-space: nowrap;
  padding-right: 2.2em;
}
.pp-marquee__track > span b {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(251, 241, 222, 0.75);
  font-weight: 400;
}
@keyframes pp-marquee { to { transform: translateX(-50%); } }
.pp-marquee:hover .pp-marquee__track { animation-play-state: paused; }

/* Thesis --------------------------------------------------------------------
 * READ / HEAR / REMEMBER at poster scale. Outlined letterforms ink-fill as
 * they pass the eyeline; on desktop the section pins briefly while the three
 * words take the stage in turn (scrubbed — native scroll untouched).
 * Fill never drops below 0.18 so the words always hold AA-visible shape. */

.pp-thesis {
  padding-block: var(--space-6) var(--space-7);
  overflow: clip;
}

/* The three words own the full viewport width — poster, not paragraph. */
.pp-thesis__words { display: flex; flex-direction: column; }

.pp-thesis__word {
  display: block; position: relative; width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 15.5vw, 16rem);
  line-height: 0.95; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--color-purple);
  align-self: flex-start; margin-left: 4vw;
  will-change: transform;
}
.pp-thesis__word:nth-child(2) { align-self: flex-end; margin-left: 0; margin-right: 5vw; }
.pp-thesis__word:nth-child(3) { align-self: center; margin: 0; }

.pp-thesis__fill {
  position: absolute; inset: 0;
  color: var(--color-purple); -webkit-text-stroke: 0;
  opacity: 1; /* visible by default; JS scrubs 0.16 → 1 when motion allowed */
}

.pp-thesis__asiderow {
  margin-top: var(--space-6);
  display: grid; gap: var(--space-3);
}
@media (min-width: 760px) {
  .pp-thesis__asiderow { grid-template-columns: auto 1fr; align-items: start; }
  .pp-thesis__asiderow .pp-thesis__body { justify-self: end; }
}
.pp-thesis__body { font-size: 1.2rem; line-height: 1.75; color: var(--color-lavender); max-width: 44ch; }

/* Why we build — "the path" -------------------------------------------------
 * Psalm 119:105 made structural: a coral thread draws itself down the story
 * as you scroll, station by station. Words settle from faint to full ink at
 * reading pace; italic phrases underline themselves; ghost marginalia
 * (phrases lifted verbatim from the copy) drift at depth behind the text.
 * Without JS or with reduced motion: plain, fully-inked text, thread drawn. */

.pp-why { padding-block: var(--space-8); border-top: 1px solid var(--hairline); position: relative; overflow: clip; }

.pp-why__grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 880px) {
  .pp-why__grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-7); }
  .pp-why__lede { position: sticky; top: 120px; }
}

.pp-why__lede { display: flex; flex-direction: column; gap: var(--space-3); }
.pp-why__heading { font-size: clamp(2.5rem, 5.2vw, 4.2rem); max-width: 13ch; }
.pp-why__hint { font-style: italic; color: var(--color-lavender); font-size: 0.95rem; }

.pp-why__body {
  --thread-gutter: clamp(46px, 7vw, 72px);
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-6);
  max-width: 58ch;
  padding-left: var(--thread-gutter);
}

/* The thread. Base is a hairline; the lit path is drawn by scroll. */
.pp-why__thread {
  position: absolute; left: 0; top: 0;
  width: 24px; height: 100%;
  overflow: visible;
}
.pp-why__thread path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.pp-why__thread-base { stroke: var(--hairline); stroke-width: 1.5; }
.pp-why__thread-lit {
  stroke: var(--color-coral); stroke-width: 2.5;
  stroke-dasharray: 1; stroke-dashoffset: 0; /* drawn by default; JS scrubs 1 → 0 */
}

.pp-why__chapter { position: relative; }
.pp-why__chapter p { font-size: 1.08rem; line-height: 1.8; position: relative; z-index: 1; }

/* Stations: a dot on the thread + folio numeral, lit as the thread arrives. */
.pp-why__station {
  position: absolute; top: 0.25em;
  left: calc(-1 * var(--thread-gutter));
  width: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--color-lavender);
  user-select: none;
}
.pp-why__station i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--color-cream);
  border: 2px solid var(--color-lavender);
  transition: background var(--dur-base) var(--ease-rest),
              border-color var(--dur-base) var(--ease-rest),
              box-shadow var(--dur-slow) var(--ease-rest);
}
.pp-why__station.is-lit { color: var(--color-purple); }
.pp-why__station.is-lit i {
  background: var(--color-coral); border-color: var(--color-coral);
  box-shadow: 0 0 0 5px rgba(232, 116, 60, 0.18);
}

/* FLOURISH: ghost marginalia — the story's own words, at depth. */
.pp-why__ghost {
  position: absolute; z-index: 0;
  top: 18%; right: -14%;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-ghost);
  pointer-events: none; user-select: none;
}
.pp-why__chapter:nth-child(odd) .pp-why__ghost { right: auto; left: -10%; }

/* Italic phrases underline themselves once read (class set by ScrollTrigger). */
.pp-why__chapter em {
  font-style: italic;
  background-image: linear-gradient(var(--color-coral), var(--color-coral));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 97%;
  transition: background-size 900ms var(--ease-emphasis);
}
.pp-why__chapter em.is-underlined { background-size: 100% 2px; }

/* FLOURISH: drop cap on the opening line — pure print */
.pp-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.3em; line-height: 0.8;
  float: left; padding: 0.08em 0.14em 0 0;
  color: var(--color-purple);
}

/* Verse band (lamplight) ------------------------------------------------------
 * The page's dark heart. The CSS glow below is the permanent fallback; the
 * Three.js scene renders a breathing version over it. The verse itself is
 * lit word by word as you scroll through (≥ .45 opacity floor = AA-safe). */

.pp-verse {
  position: relative; overflow: hidden;
  background: var(--color-purple); color: var(--color-cream);
  padding-block: clamp(120px, 26vh, 220px);
  text-align: center;
}

.pp-verse__scene, .pp-verse__scene canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.pp-verse__scene::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 58% at 50% 64%,
              rgba(232, 116, 60, 0.32) 0%,
              rgba(232, 116, 60, 0.12) 40%,
              transparent 72%);
}

.pp-verse__inner { position: relative; z-index: 2; }

.pp-verse__quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.pp-verse__quote p {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.22; max-width: 20ch; text-wrap: balance;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(232, 116, 60, 0.30);
}
.pp-verse__quote .pp-vword { display: inline-block; }
.pp-verse__quote cite {
  font-style: normal; font-size: 13px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--color-coral); /* on purple ≈ 5.0:1 ✓ */
}

/* What we believe ------------------------------------------------------------- */

.pp-believe { padding-block: var(--space-8); }

.pp-believe__grid {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 700px) {
  .pp-believe__grid { grid-template-columns: 1fr 1fr; }
  .pp-believe__item:nth-child(odd) { border-right: 1px solid var(--hairline); }
}

.pp-believe__item {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-5) var(--space-4) var(--space-5) 0;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: var(--space-3); row-gap: var(--space-1);
  transition: background var(--dur-base) var(--ease-rest);
}
@media (min-width: 700px) { .pp-believe__item { padding-inline: var(--space-4); } }
.pp-believe__item:hover { background: rgba(42, 31, 61, 0.04); }

.pp-believe__num {
  grid-row: span 2;
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--color-lavender);
  transition: color var(--dur-base) var(--ease-rest);
  padding-top: 0.1em;
}
.pp-believe__item:hover .pp-believe__num { color: var(--color-coral); -webkit-text-stroke: 0; } /* decorative, aria-hidden */
.pp-believe__title { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; text-transform: none; }
.pp-believe__item p:not(.pp-believe__title) { color: var(--color-lavender); line-height: 1.7; }

/* One Word showcase -------------------------------------------------------------
 * The flagship, shown rather than described. A dark band (the app lives on
 * black) holding two working demos — the one-word reading mechanic and a
 * Guided Breath Prayer — plus a phone of real screenshots switched by a
 * vertical feature rail. Contrast on purple: cream 14.7:1 ✓, cream-muted
 * 9.5:1 ✓, coral 5.0:1 ✓. */

.pp-ow {
  position: relative; overflow: clip;
  background: var(--color-purple); color: var(--color-cream);
  padding-block: var(--space-8);
}
/* A lamp burns low here too — one quiet pool of warmth, bottom corner. */
.pp-ow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 8% 100%,
              rgba(232, 116, 60, 0.16) 0%, transparent 70%);
}
.pp-ow > .pp-container { position: relative; }

.pp-eyebrow--dark { color: var(--cream-muted); }

.pp-ow__intro { display: flex; flex-direction: column; gap: var(--space-3); max-width: 64ch; }
.pp-ow__heading { font-size: clamp(2.6rem, 6vw, 5rem); }
.pp-ow__sub { font-style: italic; color: var(--cream-muted); font-size: 1.18rem; line-height: 1.7; max-width: 44ch; }

.pp-ow__stage {
  display: grid; gap: var(--space-6);
  margin-top: var(--space-7);
  align-items: center;
}
@media (min-width: 980px) {
  .pp-ow__stage { grid-template-columns: 1.15fr 1fr; gap: var(--space-7); }
}

/* --- The reading demo: the app's screen, rebuilt in the page ------------- */

.pp-ow__reader { margin: 0; }
.pp-ow__screen {
  position: relative;
  background: #0a0712; /* the app reads near-black */
  border: 1px solid var(--hairline-dark);
  border-radius: 28px;
  min-height: clamp(350px, 34vw, 420px);
  overflow: hidden;
}

/* Focus guides, as in the app: centre line, reading line, word frame. */
.pp-ow__guides { position: absolute; inset: 0; }
.pp-ow__guides::before {
  content: ""; position: absolute; left: 50%; top: 8%; bottom: 26%;
  width: 1px; background: rgba(251, 241, 222, 0.13);
}
/* The word sits a touch above centre, as in the app. */
.pp-ow__wordbox {
  position: absolute; left: 50%; top: 39%;
  transform: translate(-50%, -50%);
  width: min(78%, 480px); height: 40%;
  min-height: 120px;
  border: 1px solid rgba(251, 241, 222, 0.10);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.pp-ow__wordbox::before {
  content: ""; position: absolute; top: 50%; left: -11%; right: -11%;
  height: 1px; background: rgba(251, 241, 222, 0.08);
}

.pp-ow__word {
  position: relative;
  font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em; line-height: 1;
  color: var(--color-cream);
  white-space: nowrap;
  will-change: transform, opacity;
}
.pp-ow__word .pp-ow__focus { color: var(--color-coral); } /* on near-black ≈ 5.5:1 ✓ */

.pp-v2 .pp-ow__begin {
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%);
  padding: 0.85em 1.9em;
  background: var(--color-cream); color: var(--color-purple);
  border: none; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-rest),
              transform var(--dur-base) var(--ease-emphasis);
}
.pp-v2 .pp-ow__begin:hover { background: var(--color-coral); }
.pp-v2 .pp-ow__begin:active { transform: translateX(-50%) scale(0.96); }

.pp-ow__ref {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  padding: 0.35em 1.1em;
  border: 1px solid rgba(251, 241, 222, 0.28);
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--cream-muted);
}

.pp-ow__caption {
  margin-top: var(--space-3);
  font-style: italic; font-size: 0.97rem; line-height: 1.65;
  color: var(--cream-muted); max-width: 44ch;
}

/* --- The phone tour -------------------------------------------------------- */

/* Phone above its feature rail by default; side-by-side only in the
 * mid-range where the tour owns the full container width. Above 980px the
 * stage splits reader|tour, so the tour stacks again. */
.pp-ow__tour { display: grid; gap: var(--space-5); justify-items: center; align-content: start; }
.pp-ow__tabs { align-self: start; }
@media (min-width: 640px) and (max-width: 979px) {
  .pp-ow__tour { grid-template-columns: auto 1fr; align-items: center; }
}

.pp-phone {
  width: clamp(210px, 24vw, 290px);
  aspect-ratio: 640 / 1390;
  background: #05040a;
  border: 1px solid var(--hairline-dark);
  border-radius: clamp(34px, 3.4vw, 46px);
  padding: 9px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.pp-phone__screens {
  position: relative; width: 100%; height: 100%;
  border-radius: clamp(26px, 2.8vw, 38px);
  overflow: hidden;
  background: #000;
}
.pp-phone__screens img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.025);
  transition: opacity 480ms var(--ease-rest), transform 600ms var(--ease-emphasis);
}
.pp-phone__screens img.is-active { opacity: 1; transform: scale(1); }

.pp-ow__tabs { display: flex; flex-direction: column; width: 100%; border-bottom: 1px solid var(--hairline-dark); }
.pp-v2 .pp-ow__tab {
  position: relative;
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--hairline-dark);
  padding: 1.05em 0.6em 1.05em 1.25em;
  font: inherit; color: var(--cream-muted);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-rest);
}
.pp-v2 .pp-ow__tab::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-coral);
  transform: scaleY(0); transform-origin: top center;
  transition: transform var(--dur-base) var(--ease-emphasis);
}
.pp-v2 .pp-ow__tab:hover { background: rgba(251, 241, 222, 0.045); }
.pp-v2 .pp-ow__tab b { display: block; font-weight: 700; font-size: 1.02rem; color: var(--color-cream); }
.pp-v2 .pp-ow__tab span {
  display: block; margin-top: 4px;
  font-size: 0.92rem; line-height: 1.6;
  color: rgba(251, 241, 222, 0.66); /* ≈ 6.4:1 on purple ✓ */
  max-width: 40ch;
}
.pp-v2 .pp-ow__tab.is-active::before { transform: scaleY(1); }
.pp-v2 .pp-ow__tab.is-active b { color: var(--color-coral); } /* 5.0:1 ✓ */

/* --- Breath Prayer demo ------------------------------------------------------ */

.pp-ow__breath {
  margin-top: var(--space-7);
  border-top: 1px solid var(--hairline-dark);
  padding-top: var(--space-6);
  display: grid; gap: var(--space-5);
  align-items: center; justify-items: center;
  text-align: center;
}
@media (min-width: 760px) {
  .pp-ow__breath { grid-template-columns: 1fr auto; text-align: left; justify-items: start; }
  .pp-ow__breathcol--ring { justify-self: center; }
}

.pp-ow__breathline {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1;
}
.pp-ow__breathsub { margin-top: 6px; font-size: 1.25rem; color: var(--cream-muted); }
.pp-ow__breathcite {
  display: block; margin-top: var(--space-2);
  font-style: normal; font-size: 12px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--color-coral);
}

.pp-ow__breathcol--ring { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.pp-ow__ring {
  width: clamp(150px, 16vw, 195px); aspect-ratio: 1;
  border: 1.5px solid rgba(251, 241, 222, 0.4);
  border-radius: 50%;
  display: grid; place-items: center;
}
.pp-ow__ringfill {
  display: block; width: 92%; height: 92%; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 116, 60, 0.55) 0%,
    rgba(232, 116, 60, 0.16) 58%,
    transparent 76%);
  transform: scale(0.62);
  will-change: transform;
}
.pp-ow__cue {
  min-height: 1.5em;
  font-size: 0.9rem; letter-spacing: 0.3em; text-transform: lowercase;
  color: var(--cream-muted);
}
.pp-v2 .pp-ow__breathbtn {
  padding: 0.8em 1.7em;
  background: transparent; color: var(--color-cream);
  border: 1.5px solid rgba(251, 241, 222, 0.5);
  border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-rest),
              color var(--dur-base) var(--ease-rest),
              border-color var(--dur-base) var(--ease-rest);
}
.pp-v2 .pp-ow__breathbtn:hover { background: var(--color-cream); color: var(--color-purple); border-color: var(--color-cream); }

/* --- Facts + CTAs -------------------------------------------------------------- */

.pp-ow__facts {
  list-style: none; margin: var(--space-7) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline-dark);
}
@media (min-width: 880px) { .pp-ow__facts { grid-template-columns: repeat(4, 1fr); } }
.pp-ow__facts li { padding: var(--space-4) var(--space-3) var(--space-4) 0; }
@media (min-width: 880px) {
  .pp-ow__facts li + li { border-left: 1px solid var(--hairline-dark); padding-left: var(--space-3); }
}
.pp-ow__facts b {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1;
  color: var(--color-coral); /* on purple ≈ 5.0:1 ✓ */
  text-transform: uppercase;
}
.pp-ow__facts span { display: block; margin-top: 8px; font-size: 0.95rem; line-height: 1.6; color: var(--cream-muted); max-width: 22ch; }

.pp-ow__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-6); }
.pp-v2 .pp-btn--dark { border-color: var(--color-cream); color: var(--color-cream); }
.pp-v2 .pp-btn--dark:hover { background: var(--color-cream); color: var(--color-purple); border-color: var(--color-cream); }

/* Apps ------------------------------------------------------------------------
 * A catalogue at poster scale: ghost numerals behind each row, 3D-tilting
 * icons, magnetic CTAs, a softly pulsing LIVE pill. */

.pp-apps { padding-block: var(--space-8); border-top: 1px solid var(--hairline); }

.pp-apps__intro {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin-bottom: var(--space-7); max-width: 62ch;
}
.pp-apps__heading { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
.pp-apps__sub { font-style: italic; color: var(--color-lavender); font-size: 1.15rem; }

.pp-app {
  position: relative;
  display: grid; gap: var(--space-4);
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-7);
}
@media (min-width: 880px) { .pp-app { grid-template-columns: 320px 1fr; gap: var(--space-7); } }

/* FLOURISH: ghost numeral behind each app row */
.pp-app::before {
  content: attr(data-num);
  position: absolute; top: var(--space-2); right: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 17vw, 16rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(42, 31, 61, 0.14);
  pointer-events: none; user-select: none;
}

.pp-app__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.pp-app__num { font-family: var(--font-display); font-size: 1rem; color: var(--color-lavender); }
.pp-app__iconwrap {
  position: relative; display: inline-block; border-radius: 26px;
  overflow: hidden;
  transform-style: preserve-3d;
}
/* FLOURISH: shine sweep across icons on hover */
.pp-app__iconwrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 26px;
  background: linear-gradient(115deg, transparent 30%,
              rgba(251, 241, 222, 0.45) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-emphasis);
  pointer-events: none;
}
.pp-app:hover .pp-app__iconwrap::after { transform: translateX(120%); }
.pp-app__icon {
  border-radius: 26px; display: block;
  will-change: transform;
  transition: transform var(--dur-base) var(--ease-emphasis);
}
.pp-app__name { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.pp-app__platform { font-style: italic; color: var(--color-lavender); font-size: 1rem; }

.pp-pill {
  position: relative;
  display: inline-block; padding: 0.4em 1em; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.pp-pill--live { background: var(--color-coral); color: var(--color-purple); } /* 5.0:1 ✓ */
/* FLOURISH: gentle pulse on the LIVE pill */
.pp-pill--live::after {
  content: ""; position: absolute; inset: -3px;
  border: 1.5px solid var(--color-coral); border-radius: 999px;
  animation: pp-pulse 3.2s var(--ease-rest) infinite;
}
@keyframes pp-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  35%      { opacity: .7; transform: scale(1.12); }
  70%      { opacity: 0; transform: scale(1.22); }
}
.pp-pill--soon { border: 2px solid var(--color-lavender); color: var(--color-lavender); }

.pp-app__main { display: flex; flex-direction: column; gap: var(--space-4); position: relative; z-index: 1; }
.pp-app__body { font-size: 1.12rem; line-height: 1.75; max-width: 56ch; }

.pp-app__bullets {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 var(--space-5);
}
@media (min-width: 640px) { .pp-app__bullets { grid-template-columns: 1fr 1fr; } }
.pp-app__bullets li {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: 0.9em 0 0.9em 1.4em;
  color: var(--color-lavender); font-size: 1rem;
}
.pp-app__bullets li::before {
  content: "→"; position: absolute; left: 0; top: 0.85em;
  color: var(--color-purple); font-weight: 700;
}

.pp-app__pricing { font-style: italic; color: var(--color-lavender); font-size: 1rem; }
.pp-app__ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Newsletter -------------------------------------------------------------------- */

.pp-signup { padding-block: 0 var(--space-8); }

.pp-signup__card {
  position: relative; overflow: hidden;
  background: var(--color-purple); color: var(--color-cream);
  border-radius: 24px;
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-3);
}
/* FLOURISH: a lamp burns low in the card too */
.pp-signup__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 110%,
              rgba(232, 116, 60, 0.30) 0%, transparent 65%);
}
.pp-signup__card > * { position: relative; }

.pp-signup__heading { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.pp-signup__sub { color: var(--cream-muted); max-width: 52ch; line-height: 1.75; }

.pp-signup__form {
  display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 560px; margin-top: var(--space-2);
}
.pp-signup__input {
  flex: 1 1 260px; min-width: 0;
  padding: 1em 1.2em; font: inherit;
  color: var(--color-cream);
  background: rgba(251, 241, 222, 0.08);
  border: 1.5px solid rgba(251, 241, 222, 0.45);
  border-radius: 12px;
  transition: border-color var(--dur-base) var(--ease-rest),
              background var(--dur-base) var(--ease-rest);
}
.pp-signup__input::placeholder { color: rgba(251, 241, 222, 0.6); }
.pp-signup__input:hover { border-color: rgba(251, 241, 222, 0.7); }
.pp-signup__input:focus-visible { outline-color: var(--color-coral); background: rgba(251, 241, 222, 0.12); }

.pp-signup__submit {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.7em; font: inherit; font-weight: 800; font-size: 0.98rem;
  color: var(--color-purple); background: var(--color-coral); /* 5.0:1 ✓ */
  border: none; border-radius: 12px; cursor: pointer;
  transition: background var(--dur-base) var(--ease-rest), transform var(--dur-base) var(--ease-emphasis);
  will-change: transform;
}
.pp-signup__submit:hover { background: var(--color-cream); }
.pp-signup__submit:active { transform: scale(0.97); }
.pp-signup__submit:disabled { opacity: 0.6; cursor: wait; }

.pp-signup__success { font-weight: 700; font-size: 1.2rem; margin-top: var(--space-2); }
.pp-signup__error { color: var(--cream-muted); font-size: 1rem; flex-basis: 100%; }

.pp-signup__card :focus-visible,
.pp-footer :focus-visible,
.pp-ow :focus-visible,
.pp-verse :focus-visible { outline-color: var(--color-cream); }

/* Footer ----------------------------------------------------------------------- */

.pp-footer {
  background: var(--color-purple); color: var(--color-cream);
  padding-block: var(--space-7) var(--space-5);
}

.pp-footer a { color: var(--cream-muted); text-decoration: none; }
.pp-footer a:hover {
  color: var(--color-cream);
  text-decoration: underline; text-decoration-color: var(--color-coral);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}

.pp-footer__grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .pp-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); } }

.pp-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); }
@media (min-width: 880px) { .pp-footer__brand { grid-column: auto; } }
.pp-footer__brand img { border-radius: 9px; }
.pp-footer__wordmark {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.pp-footer__tagline { color: var(--cream-muted); font-size: 0.97rem; max-width: 30ch; line-height: 1.65; }

.pp-footer__heading {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-muted); margin-bottom: var(--space-2);
}
.pp-footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px; font-size: 0.97rem;
}
.pp-footer__social a {
  display: inline-flex; align-items: center; gap: 10px;
}
.pp-footer__social svg {
  width: 18px; height: 18px; fill: currentColor; flex: none;
  transition: transform var(--dur-base) var(--ease-emphasis);
}
.pp-footer__social a:hover svg { transform: scale(1.2) rotate(-6deg); }

.pp-footer__verse {
  margin-top: var(--space-7); padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-dark);
  text-align: center; font-style: italic; font-size: 0.95rem;
  color: var(--cream-muted);
}

/* Reveal default: [data-reveal] is fully visible without JS; main.js hides
 * and choreographs it only when motion is allowed. */

/* FLOURISH: paper grain ----------------------------------------------------- */
body.pp-v2::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-scene] canvas { display: none !important; }
  .pp-hero__wordmark.has-pixels img { opacity: 1; } /* belt & braces: never lose the mark */
  .pp-marquee__track { animation: none; transform: none; }
  .pp-pill--live::after { display: none; }
}

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

/* Touch devices: native cursor, no lamp layer (built by JS only on
 * fine pointers anyway — this is belt and braces). */
@media (pointer: coarse) {
  .pp-cursor-dot, .pp-cursor-ring, .pp-lamp { display: none !important; }
}
