:root {
  --bg: #080608;
  --text: #f7f0e6;
  --muted: rgba(247, 240, 230, .68);
  --muted-strong: rgba(247, 240, 230, .84);
  --gold: #e9b867;
  --rose: #ff8f9a;
  --violet: #c9a2ff;
  --blue: #94c7ff;
  --green: #95e6b8;
  --cta-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --intro-scale: 1;
  --intro-y: 0px;
  --intro-rot: 0deg;
  --intro-color: 247 240 230;
  --intro-glow: .28;
  --intro-blur: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 184, 103, .10), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(201, 162, 255, .09), transparent 28rem),
    linear-gradient(180deg, #090609 0%, #111016 45%, #070608 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -18vh -18vw;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .28) * 100%), rgba(247, 240, 230, .055), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%, rgba(255,255,255,.02));
}
a { color: inherit; text-decoration: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-glow {
  position: fixed;
  left: calc(var(--mx, .5) * 100vw);
  top: calc(var(--my, .5) * 100vh);
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233,184,103,.11), rgba(148,199,255,.055) 42%, transparent 69%);
  filter: blur(18px);
}
.story { isolation: isolate; }

.intro-hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: 20px;
}
.intro-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.82));
  pointer-events: none;
}
.intro-logo {
  width: min(72vw, 560px);
  height: auto;
  position: relative;
  z-index: 2;
  color: rgb(var(--intro-color));
  fill: currentColor;
  transform:
    translate3d(calc((var(--mx, .5) - .5) * 26px), calc(var(--intro-y) + ((var(--my, .5) - .5) * 20px)), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 24px 72px rgba(var(--intro-color), var(--intro-glow)))
    drop-shadow(0 44px 120px rgba(0,0,0,.46));
  transition: transform .08s linear, filter .08s linear, color .08s linear;
}
.intro-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .72;
  transform: translate3d(calc((var(--mx, .5) - .5) * var(--orb-x)), calc((var(--my, .5) - .5) * var(--orb-y)), 0) scale(calc(1 + var(--intro-progress, 0) * .18));
  transition: transform .1s linear;
}
.orb-a { --orb-x: 80px; --orb-y: 50px; width: 42vw; height: 42vw; min-width: 260px; min-height: 260px; background: rgba(233,184,103,.18); left: 6vw; top: 14vh; }
.orb-b { --orb-x: -68px; --orb-y: 72px; width: 36vw; height: 36vw; min-width: 240px; min-height: 240px; background: rgba(255,143,154,.12); right: 4vw; bottom: 18vh; }
.orb-c { --orb-x: 38px; --orb-y: -64px; width: 30vw; height: 30vw; min-width: 210px; min-height: 210px; background: rgba(148,199,255,.11); right: 24vw; top: 9vh; }
.intro-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cta-h) + 24px);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(247,240,230,.48);
  font-size: .74rem;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.chapter {
  --accent: var(--gold);
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vh, 98px) clamp(18px, 6vw, 84px) calc(var(--cta-h) + clamp(54px, 9vh, 92px));
  overflow: clip;
}
.first-copy { padding-top: clamp(42px, 6vh, 72px); }
.app-reel-section {
  --accent: var(--gold);
  padding: clamp(18px, 4vh, 38px) 0 calc(var(--cta-h) + clamp(38px, 7vh, 68px));
  overflow: hidden;
  position: relative;
}
.chapter-inner,
.app-reel-copy {
  width: min(790px, 100%);
  position: relative;
  z-index: 2;
}
.app-reel-copy { margin: 0 clamp(18px, 6vw, 84px) clamp(22px, 4vh, 36px); }
.final-inner { width: min(880px, 100%); }
[data-accent="gold"] { --accent: var(--gold); }
[data-accent="rose"] { --accent: var(--rose); }
[data-accent="violet"] { --accent: var(--violet); }
[data-accent="blue"] { --accent: var(--blue); }
[data-accent="green"] { --accent: var(--green); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(16px, 2.6vh, 24px);
  color: var(--accent);
  font-size: clamp(.74rem, 1.35vw, .88rem);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-label::before {
  content: "";
  width: clamp(30px, 7vw, 66px);
  height: 1px;
  background: currentColor;
  opacity: .8;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  color: rgba(247, 240, 230, .96);
  font-size: clamp(3.35rem, 11.2vw, 10.8rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: balance;
}
h2 {
  max-width: 11.3ch;
  font-size: clamp(2.85rem, 9.4vw, 8rem);
  line-height: .96;
  letter-spacing: -.041em;
}
.app-reel-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 7.2vw, 5.5rem);
}
.lede,
.section-copy {
  width: min(700px, 100%);
  margin: clamp(20px, 3.4vh, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.05vw, 1.48rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  font-weight: 590;
  text-wrap: pretty;
}
.section-copy + .section-copy { margin-top: 12px; }
.small-top { margin-top: 15px; }
.accent {
  color: var(--accent);
  font-weight: 760;
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.mantra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3.4vh, 32px);
}
.mantra span {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 15px;
  color: color-mix(in srgb, var(--accent) 88%, white 12%);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  font-size: clamp(.88rem, 1.35vw, 1rem);
  line-height: 1;
  font-weight: 730;
  letter-spacing: -.012em;
}

.app-store,
.fixed-download-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 58px;
  min-width: 184px;
  border-radius: 999px;
  padding: 10px 24px 11px;
  background: linear-gradient(180deg, rgba(247,240,230,1), rgba(226,216,201,.8));
  color: #0b080b;
  border: 1px solid rgba(255,255,255,.64);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.app-store:hover,
.fixed-download-button:hover { transform: translateY(-2px); box-shadow: 0 26px 78px rgba(0,0,0,.48), 0 0 0 1px rgba(233,184,103,.22), inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.8); }
.app-store span,
.fixed-download-button span {
  font-size: .7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .72;
}
.app-store strong,
.fixed-download-button strong {
  font-size: 1.14rem;
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}
.section-cta { margin-top: clamp(22px, 3.8vh, 32px); }
.fixed-download {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px max(16px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.76) 32%, rgba(8,6,8,.94));
}
.fixed-download-button {
  pointer-events: auto;
  width: min(720px, 100%);
  min-height: var(--cta-h);
  margin: 0 auto;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 16px 55px rgba(0,0,0,.48), 0 0 0 1px rgba(233,184,103,.18), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.82);
}
.fixed-download-button span { font-size: .76rem; letter-spacing: .095em; }
.fixed-download-button strong { font-size: clamp(1.6rem, 5.5vw, 2.35rem); }

.logo-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--accent);
}
.logo-bg {
  position: absolute;
  opacity: .105;
  transform: translate3d(0, var(--shift, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform;
  filter: drop-shadow(0 28px 80px color-mix(in srgb, var(--accent) 12%, transparent));
}
.logo-bg svg { display: block; width: 100%; height: auto; fill: currentColor; }
.logo-lg { width: clamp(420px, 82vw, 980px); right: -22vw; top: 15%; --rot: -10deg; opacity: .10; }
.logo-wide { width: clamp(520px, 96vw, 1100px); right: -34vw; top: 18%; --rot: 9deg; opacity: .085; }
.logo-md { width: clamp(230px, 42vw, 520px); left: 4vw; bottom: 9%; --rot: -7deg; opacity: .075; }
.logo-sm { width: clamp(150px, 24vw, 280px); right: 13vw; bottom: 11%; --rot: 8deg; opacity: .09; }
.logo-tiny { width: clamp(104px, 16vw, 190px); left: 12vw; top: 12%; --rot: 11deg; opacity: .075; }
.first-copy .logo-lg { right: -28vw; top: 20%; }
.first-copy .logo-sm { right: 20vw; top: 8%; bottom: auto; }
.first-copy .logo-md { left: 8vw; bottom: 6%; }
.closing .logo-lg { top: 18%; right: -22vw; }

.phone-reel {
  display: flex;
  gap: clamp(14px, 3vw, 26px);
  overflow-x: auto;
  padding: 6px clamp(18px, 6vw, 84px) 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.phone-reel::-webkit-scrollbar { display: none; }
.phone-frame {
  flex: 0 0 clamp(210px, 42vw, 310px);
  scroll-snap-align: start;
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 88px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.phone-notch {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 32%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 100px;
  background: rgba(8,6,8,.72);
  z-index: 2;
  display: none;
}
.phone-slot {
  height: 100%;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(233,184,103,.18), rgba(148,199,255,.10), rgba(255,143,154,.12)),
    rgba(8,6,8,.68);
  border: 1px dashed rgba(247,240,230,.08);
  overflow: hidden;
}

.phone-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.phone-slot img.phone-img-contain {
  object-fit: contain;
  background: #090909;
}

.phone-slot span {
  color: rgba(247,240,230,.36);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.phone-frame p {
  position: absolute;
  left: 22px;
  bottom: 20px;
  margin: 0;
  color: rgba(247,240,230,.72);
  font-weight: 830;
  letter-spacing: -.025em;
}

@media (max-width: 860px) {
  :root { --cta-h: 72px; }
  .intro-logo { width: min(78vw, 500px); }
  .intro-scroll-hint { bottom: calc(var(--cta-h) + 16px); }
  .chapter {
    min-height: 82svh;
    padding: clamp(42px, 6.5vh, 72px) 24px calc(var(--cta-h) + 58px);
  }
  .first-copy { padding-top: 32px; }
  .app-reel-section { padding-bottom: calc(var(--cta-h) + 44px); }
  .app-reel-copy { margin-left: 24px; margin-right: 24px; }
  h1 { font-size: clamp(3.2rem, 13.2vw, 6.8rem); max-width: 10.2ch; }
  h2 { font-size: clamp(2.8rem, 12vw, 5.9rem); max-width: 10.4ch; }
  .app-reel-copy h2 { font-size: clamp(2.1rem, 9.5vw, 4.4rem); max-width: 11ch; }
  .lede, .section-copy { font-size: 1.05rem; line-height: 1.5; max-width: 94%; }
  .section-label { font-size: .68rem; margin-bottom: 14px; }
  .mantra span { min-height: 35px; font-size: .82rem; }
  .section-cta { min-width: 156px; min-height: 52px; }
  .fixed-download { padding-left: 14px; padding-right: 14px; }
  .fixed-download-button { border-radius: 26px; }
  .fixed-download-button span { font-size: .66rem; }
  .fixed-download-button strong { font-size: 1.85rem; }
  .logo-lg { width: 740px; right: -470px; top: 20%; }
  .logo-wide { width: 820px; right: -560px; top: 24%; }
  .logo-md { width: 310px; left: -88px; bottom: 9%; }
  .logo-sm { width: 180px; right: 18px; bottom: 10%; }
  .logo-tiny { width: 128px; left: 30px; top: 8%; }
  .phone-frame { flex-basis: 238px; border-radius: 34px; }
}

@media (max-width: 520px) {
  .intro-logo { width: 82vw; }
  .chapter { min-height: 78svh; padding-left: 26px; padding-right: 26px; }
  .app-reel-copy { margin-left: 26px; margin-right: 26px; }
  .phone-reel { padding-left: 26px; padding-right: 26px; }
  .app-store:not(.fixed-download-button) { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .parallax, .intro-logo, .intro-orb { transform: none !important; }
}

/* ==========================================
   V8 refinements
   ========================================== */
:root {
  --fixed-cta-bottom: 24vh;
  --fixed-cta-width: min(320px, calc(100vw - 54px));
  --fixed-cta-height: 58px;
  --fixed-cta-radius: 999px;
  --fixed-cta-bg: 0;
}

.intro-logo {
  /* The logo now starts perfectly straight; JS only rotates it after scroll begins. */
  transform-origin: 50% 50%;
}

.app-reel-section {
  padding-top: clamp(4px, 1.4vh, 14px);
  padding-bottom: calc(var(--cta-h) + clamp(38px, 7vh, 68px));
}

.app-reel-copy {
  display: none;
}

.phone-reel {
  gap: clamp(16px, 4vw, 30px);
  padding: 8px max(28px, calc((100vw - 310px) / 2)) 24px;
  scroll-padding-inline: max(28px, calc((100vw - 310px) / 2));
  scroll-snap-type: x mandatory;
}

.phone-frame {
  scroll-snap-align: center;
}

.phone-frame p,
.phone-slot span {
  display: none;
}

.phone-slot {
  border-style: solid;
}

.fixed-download {
  bottom: var(--fixed-cta-bottom);
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  background: linear-gradient(
    180deg,
    transparent,
    rgba(8, 6, 8, calc(.48 * var(--fixed-cta-bg))) 34%,
    rgba(8, 6, 8, calc(.92 * var(--fixed-cta-bg)))
  );
  transition: background .08s linear;
}

.fixed-download-button {
  width: var(--fixed-cta-width);
  min-height: var(--fixed-cta-height);
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 2.5vw, 14px);
  border-radius: var(--fixed-cta-radius);
  padding: 8px clamp(16px, 4vw, 24px) 8px 10px;
  text-align: left;
}

.fixed-app-icon {
  width: clamp(36px, 9vw, 48px);
  height: clamp(36px, 9vw, 48px);
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.36);
}

.fixed-download-text {
  display: block;
  opacity: 1 !important;
  font-size: clamp(.96rem, 3.6vw, 1.2rem) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  color: #0b080b;
}

@media (max-width: 860px) {
  .phone-reel {
    padding-left: max(28px, calc((100vw - 238px) / 2));
    padding-right: max(28px, calc((100vw - 238px) / 2));
    scroll-padding-inline: max(28px, calc((100vw - 238px) / 2));
  }

  .fixed-download {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 520px) {
  .phone-reel {
    padding-left: max(28px, calc((100vw - 238px) / 2));
    padding-right: max(28px, calc((100vw - 238px) / 2));
  }
}

/* Safer animated footer backdrop */
.fixed-download {
  background: transparent;
}
.fixed-download::before {
  content: "";
  position: absolute;
  inset: -28px 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--fixed-cta-bg);
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.76) 34%, rgba(8,6,8,.94));
  transition: opacity .08s linear;
}

/* ==========================================
   V8.1 CSS-only polish
   - cleaner App Store-style fixed CTA
   - balanced section CTA vertical spacing
   - app reel padding matches page padding
   ========================================== */

/* Keep section CTAs vertically balanced so the small label + bold line sit centered. */
.app-store:not(.fixed-download-button) {
  min-height: 58px;
  padding: 12px 24px;
  justify-content: center;
}

.app-store:not(.fixed-download-button) span {
  display: block;
  margin: 0 0 3px;
  line-height: 1;
}

.app-store:not(.fixed-download-button) strong {
  display: block;
  line-height: 1;
}

/* Fixed footer CTA: closer to the native App Store badge shape, cleaner border, no heavy drop-border. */
.fixed-download-button {
  min-height: 62px;
  padding: 8px 24px 8px 10px;
  border-radius: 999px;
  background: rgba(247, 244, 237, .96);
  border: 1.5px solid rgba(18, 15, 18, .25);
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
  outline: none;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.fixed-download-button::after {
  display: none;
}

.fixed-download-text {
  color: #080608;
  font-size: clamp(1rem, 3.5vw, 1.22rem) !important;
  letter-spacing: -.02em !important;
  font-weight: 850 !important;
}

.fixed-app-icon {
  width: clamp(34px, 8vw, 44px);
  height: clamp(34px, 8vw, 44px);
  border-radius: 10px;
  box-shadow: none;
}

/* The footer backdrop should support the CTA without feeling like another container. */
.fixed-download::before {
  inset: -18px 0 0;
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.50) 38%, rgba(8,6,8,.86));
}

/* Match horizontal app reel padding to the page/content padding while keeping center snapping. */
.phone-reel {
  padding-left: clamp(18px, 6vw, 84px);
  padding-right: clamp(18px, 6vw, 84px);
  scroll-padding-left: clamp(18px, 6vw, 84px);
  scroll-padding-right: clamp(18px, 6vw, 84px);
}

.phone-frame {
  scroll-snap-align: center;
}

@media (max-width: 860px) {
  .app-store:not(.fixed-download-button) {
    min-height: 54px;
    padding: 11px 22px;
  }

  .fixed-download-button {
    min-height: 62px;
    padding: 8px 22px 8px 10px;
  }

  .phone-reel {
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
  }
}

@media (max-width: 520px) {
  .app-store:not(.fixed-download-button) {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .phone-reel {
    padding-left: 26px;
    padding-right: 26px;
    scroll-padding-left: 26px;
    scroll-padding-right: 26px;
  }

  .fixed-download-button {
    width: min(720px, calc(100vw - 28px));
  }
}

/* ==========================================
   V9 polish
   - hero logo no longer follows pointer
   - smaller hero logo start
   - fixed App Store CTA starts compact and expands to footer
   - centered App Store-style button layout with app icon
   - mantra pills drift horizontally on scroll
   ========================================== */

/* Keep the intro mark centered and still on pointer movement; only scroll controls motion. */
.intro-logo {
  width: min(64vw, 500px);
  transform:
    translate3d(0, var(--intro-y), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
}

/* The footer CTA should always respect the JS-driven compact/full width. */
.fixed-download-button {
  width: var(--fixed-cta-width) !important;
  min-height: var(--fixed-cta-height);
  height: var(--fixed-cta-height);
  max-width: calc(100vw - 28px);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  padding: 8px clamp(20px, 5vw, 30px);
  border-radius: var(--fixed-cta-radius);
  background: rgba(247, 247, 245, .96);
  color: #050505;
  border: 1.5px solid rgba(0, 0, 0, .24);
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
  text-align: left;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(0,0,0,.30);
}

.fixed-app-icon {
  width: clamp(34px, 7vw, 46px);
  height: clamp(34px, 7vw, 46px);
  border-radius: 11px;
  flex: 0 0 auto;
  box-shadow: none;
}

.fixed-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  opacity: 1 !important;
  color: #050505;
  line-height: 1;
}

.fixed-download-copy span {
  display: block;
  margin: 0 0 2px;
  opacity: 1 !important;
  color: #050505;
  font-size: clamp(.76rem, 2.4vw, .96rem) !important;
  line-height: .95 !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}

.fixed-download-copy strong {
  display: block;
  color: #050505;
  font-size: clamp(1.38rem, 4.8vw, 1.95rem) !important;
  line-height: .92 !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  text-transform: inherit;
}

/* Keep the fixed CTA more compact while it is tucked under the hero logo. */
:root {
  --fixed-cta-width: min(284px, calc(100vw - 54px));
  --fixed-cta-height: 56px;
}

/* Make section CTAs keep balanced top/bottom spacing. */
.app-store:not(.fixed-download-button) {
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: center;
}

/* Mantra movement: readable at rest, then drifting horizontally as the section scrolls away. */
.mantra {
  --mantra-shift: 0px;
  overflow: visible;
}

.mantra span {
  transform: translate3d(calc(var(--mantra-shift) * .72), 0, 0);
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * 1.02), 0, 0);
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * 1.26), 0, 0);
}

@media (max-width: 860px) {
  .intro-logo {
    width: min(72vw, 460px);
  }

  .fixed-download-button {
    gap: 12px;
    padding-left: 18px;
    padding-right: 20px;
  }

  .fixed-download-copy span {
    font-size: .78rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.55rem !important;
  }
}

@media (max-width: 520px) {
  .intro-logo {
    width: 76vw;
  }

  .fixed-download-button {
    width: var(--fixed-cta-width) !important;
    max-width: calc(100vw - 28px);
  }

  .fixed-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .fixed-download-copy span {
    font-size: .75rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.48rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mantra span {
    transform: none !important;
  }
}

/* ==========================================
   V10 polish
   - hero logo + CTA behave like a centered group
   - glassier transparent fixed download CTA
   - intro logo starts smaller and no pointer-shift
   - mantra pills scroll INTO place instead of away
   ========================================== */
.intro-logo {
  width: min(58vw, 460px);
  transform:
    translate3d(0, var(--intro-y), 0)
    scale(var(--intro-scale))
    rotate(var(--intro-rot));
}

.fixed-download {
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: var(--fixed-cta-bottom);
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
  background: transparent;
}

.fixed-download::before {
  inset: -28px 0 -12px;
  opacity: calc(.1 + (var(--fixed-cta-bg) * .9));
  background: linear-gradient(180deg, transparent, rgba(8,6,8,.42) 34%, rgba(8,6,8,.82));
}

.fixed-download-button {
  width: var(--fixed-cta-width) !important;
  height: var(--fixed-cta-height);
  min-height: var(--fixed-cta-height);
  max-width: calc(100vw - 28px);
  margin: 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  padding: 7px clamp(18px, 4.5vw, 28px);
  border-radius: var(--fixed-cta-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,240,230,.52)),
    rgba(247,240,230,.44);
  color: #050505;
  border: 1px solid rgba(255,255,255,.54);
  box-shadow:
    0 18px 48px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(0,0,0,.10);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  text-align: left;
}

.fixed-download-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 58px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

.fixed-app-icon {
  width: clamp(34px, 7vw, 45px);
  height: clamp(34px, 7vw, 45px);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.fixed-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  line-height: 1;
}

.fixed-download-copy span {
  margin: 0 0 2px;
  color: #050505;
  font-size: clamp(.76rem, 2.4vw, .94rem) !important;
  line-height: .95 !important;
  font-weight: 650 !important;
  letter-spacing: -.012em !important;
  text-transform: none !important;
  opacity: 1 !important;
}

.fixed-download-copy strong {
  color: #050505;
  font-size: clamp(1.34rem, 4.6vw, 1.9rem) !important;
  line-height: .92 !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

/* Start slightly off-canvas and settle into position as the section enters view. */
.mantra span {
  transform: translate3d(calc(var(--mantra-shift) * -.74), 0, 0);
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * -.98), 0, 0);
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * -1.18), 0, 0);
}

@media (max-width: 860px) {
  .intro-logo {
    width: min(68vw, 430px);
  }

  .fixed-download-button {
    gap: 12px;
    padding-left: 16px;
    padding-right: 20px;
  }

  .fixed-download-copy span {
    font-size: .77rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 520px) {
  .intro-logo {
    width: 72vw;
  }

  .fixed-download-button {
    max-width: calc(100vw - 28px);
  }

  .fixed-app-icon {
    width: 38px;
    height: 38px;
  }

  .fixed-download-copy span {
    font-size: .74rem !important;
  }

  .fixed-download-copy strong {
    font-size: 1.42rem !important;
  }
}

/* ==========================================
   V11 polish
   - no visible footer backdrop edge
   - fixed CTA is a softer glass/App-Store pill
   - mantra pills scroll in from the right
   - hero logo uses app-icon inspired colors instead of gold
   ========================================== */

.intro-logo {
  /* App icon-inspired gradient instead of the gold/yellow scroll color. */
  color: #ff4f8e;
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 22px 70px rgba(255, 79, 142, .26))
    drop-shadow(0 38px 112px rgba(127, 56, 255, .22))
    drop-shadow(0 44px 120px rgba(0,0,0,.44));
}

.intro-logo use {
  fill: url(#pluvi-app-gradient);
}

/* Remove the hard horizon/edge behind the fixed footer CTA. The glass lives on the button itself. */
.fixed-download,
.fixed-download::before {
  background: transparent !important;
}

.fixed-download::before {
  display: none !important;
}

.fixed-download-button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(247,240,230,.42)),
    rgba(247,240,230,.28);
  border: 1px solid rgba(255,255,255,.44);
  box-shadow:
    0 12px 36px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.56),
    inset 0 -1px 0 rgba(0,0,0,.10);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.fixed-download-button:hover {
  box-shadow:
    0 16px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.64),
    inset 0 -1px 0 rgba(0,0,0,.12);
}

/* The icon/text stay centered as a group like the App Store reference. */
.fixed-download-button {
  justify-content: center;
}

.fixed-download-copy {
  align-items: flex-start;
}

/* Start to the right and settle into position while scrolling down; reverse on scroll-up. */
.mantra {
  overflow: visible;
}

.mantra span {
  transform: translate3d(var(--mantra-shift), 0, 0) !important;
  transition: transform .08s linear;
  will-change: transform;
}

.mantra span:nth-child(2) {
  transform: translate3d(calc(var(--mantra-shift) * 1.16), 0, 0) !important;
}

.mantra span:nth-child(3) {
  transform: translate3d(calc(var(--mantra-shift) * 1.32), 0, 0) !important;
}

@media (max-width: 520px) {
  .intro-logo {
    width: 70vw;
  }
}

/* ==========================================
   V12 refinements
   - subtle animated chevron instead of Scroll text
   - solid intro logo color that changes on scroll using app-icon palette
   - more hero spacing between logo and CTA
   - 3-card reels with tighter page-aligned padding
   ========================================== */

.intro-scroll-hint {
  bottom: calc(var(--cta-h) + 22px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(247,240,230,.58);
  transform: translateX(-50%);
}

.scroll-chevron {
  width: 13px;
  height: 13px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: chevronDrop 1.55s var(--ease) infinite;
  filter: drop-shadow(0 0 18px rgba(247,240,230,.18));
}

@keyframes chevronDrop {
  0%, 100% { opacity: .35; transform: translateY(-3px) rotate(45deg); }
  45% { opacity: .9; transform: translateY(5px) rotate(45deg); }
}

/* Keep the Pluvi logo as one solid fill color; JS changes this solid color as the user scrolls. */
.intro-logo {
  color: rgb(var(--intro-color)) !important;
  fill: currentColor !important;
  filter:
    blur(var(--intro-blur))
    drop-shadow(0 22px 70px rgba(var(--intro-color), .24))
    drop-shadow(0 44px 120px rgba(0,0,0,.44)) !important;
}

.intro-logo use {
  fill: currentColor !important;
}

/* A little more breathing room between the logo and the tucked hero CTA. */
:root {
  --hero-cta-extra-gap: 14px;
}

/* Reels: 3 placeholders, no text, page-aligned padding, still center-snap. */
.app-reel-section {
  padding-top: clamp(8px, 2vh, 20px);
  padding-bottom: calc(var(--cta-h) + clamp(34px, 6vh, 60px));
}

.toolkit-reel {
  --accent: var(--green);
  padding-top: clamp(6px, 1.8vh, 18px);
}

.phone-reel {
  padding-left: clamp(18px, 6vw, 84px) !important;
  padding-right: clamp(18px, 6vw, 84px) !important;
  scroll-padding-left: clamp(18px, 6vw, 84px) !important;
  scroll-padding-right: clamp(18px, 6vw, 84px) !important;
  justify-content: flex-start;
}

@media (min-width: 920px) {
  .phone-frame {
    flex-basis: min(27vw, 310px);
  }
}

@media (max-width: 860px) {
  .intro-scroll-hint {
    bottom: calc(var(--cta-h) + 14px);
  }

  .phone-reel {
    padding-left: 24px !important;
    padding-right: 24px !important;
    scroll-padding-left: 24px !important;
    scroll-padding-right: 24px !important;
  }
}

@media (max-width: 520px) {
  .phone-reel {
    padding-left: 26px !important;
    padding-right: 26px !important;
    scroll-padding-left: 26px !important;
    scroll-padding-right: 26px !important;
  }
}


/* ==========================================
   V13 refinements
   - add speed reel color context
   - shift hero logo through purple tones instead of warm orange/red
   ========================================== */
.speed-reel {
  --accent: var(--blue);
  padding-top: clamp(6px, 1.8vh, 18px);
}

.intro-logo {
  color: rgb(var(--intro-color));
}

/* ==========================================
   V14 refinements
   - closing text gets mantra pills
   - final Pluvi hero mirrors the opening hero
   - final logo un-rotates into place
   - fixed CTA shrinks back under the final logo
   ========================================== */
:root {
  --outro-scale: 1.13;
  --outro-y: 0px;
  --outro-rot: -7.2deg;
  --outro-color: 176 98 255;
  --outro-glow: .28;
}

.closing .mantra {
  margin-top: clamp(20px, 3.4vh, 32px);
}

.outro-hero {
  min-height: 100svh;
  height: 100svh;
  padding: 20px;
  margin: 0;
  isolation: isolate;
}

.outro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(176, 98, 255, .10), transparent 24rem),
    linear-gradient(180deg, rgba(8,6,8,.78), transparent 26%, transparent 72%, rgba(8,6,8,.72));
  z-index: 1;
}

.outro-logo {
  width: min(58vw, 460px);
  height: auto;
  position: relative;
  z-index: 2;
  color: rgb(var(--outro-color));
  fill: currentColor;
  transform:
    translate3d(0, var(--outro-y), 0)
    scale(var(--outro-scale))
    rotate(var(--outro-rot));
  filter:
    drop-shadow(0 22px 70px rgba(var(--outro-color), var(--outro-glow)))
    drop-shadow(0 44px 120px rgba(0,0,0,.44));
  transition: transform .08s linear, filter .08s linear, color .08s linear;
}

.outro-logo use {
  fill: currentColor !important;
}

.outro-hero .intro-orb {
  opacity: .58;
}

.outro-hero .orb-a {
  background: rgba(176,98,255,.16);
  left: 10vw;
  top: 18vh;
}

.outro-hero .orb-b {
  background: rgba(255,79,142,.11);
  right: 8vw;
  bottom: 16vh;
}

.outro-hero .orb-c {
  background: rgba(201,162,255,.13);
  right: 28vw;
  top: 11vh;
}

@media (max-width: 860px) {
  .outro-logo {
    width: min(68vw, 430px);
  }
}

@media (max-width: 520px) {
  .outro-logo {
    width: 72vw;
  }
}


/* ==========================================
   V19 targeted fix
   - black fade overlay at the top of the bottom hero
   - hides the visible transition edge from the closing section
   ========================================== */

.outro-hero {
  position: relative;
}

/* This sits above the purple atmosphere only at the top of the final hero,
   so the closing section fades into it instead of cutting to a visible edge. */
.outro-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: min(38vh, 340px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #080608 0%,
    rgba(8, 6, 8, .96) 14%,
    rgba(8, 6, 8, .72) 42%,
    rgba(8, 6, 8, .32) 72%,
    rgba(8, 6, 8, 0) 100%
  );
}

/* Keep the actual final Pluvi logo above the general purple atmosphere,
   but below/clear of the top-only fade when it is entering the section. */
.outro-logo {
  z-index: 2;
}

/* ==========================================
   V20 refinements
   - smaller Pluvi logos in top and bottom hero
   - fixed download button border removed
   ========================================== */

.intro-logo {
  width: min(50vw, 400px) !important;
}

.outro-logo {
  width: min(50vw, 400px) !important;
}

.fixed-download-button {
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 12px 36px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(0,0,0,.08) !important;
}

.fixed-download-button:hover {
  border: 0 !important;
  box-shadow:
    0 16px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -1px 0 rgba(0,0,0,.10) !important;
}

@media (max-width: 860px) {
  .intro-logo,
  .outro-logo {
    width: min(60vw, 380px) !important;
  }
}

@media (max-width: 520px) {
  .intro-logo,
  .outro-logo {
    width: 62vw !important;
  }
}


/* ==========================================
   V21 refinements
   - hero Pluvi logos rest at 212px before scroll movement
   - outro logo reverses the same scale motion into 212px
   - opening hero orbs lean into the app icon magenta/purple palette
   ========================================== */
:root {
  --marketing-hero-logo-base: 212px;
}

.intro-hero:not(.outro-hero) .intro-logo,
.outro-hero .outro-logo {
  width: min(var(--marketing-hero-logo-base), calc(100vw - 72px)) !important;
}

.intro-hero:not(.outro-hero) .orb-a {
  background: radial-gradient(
    circle,
    rgba(255, 82, 72, .34) 0%,
    rgba(255, 79, 142, .28) 38%,
    rgba(185, 56, 255, .18) 72%,
    transparent 100%
  ) !important;
  opacity: .82;
}

.intro-hero:not(.outro-hero) .orb-b {
  background: radial-gradient(
    circle,
    rgba(185, 56, 255, .34) 0%,
    rgba(127, 56, 255, .26) 48%,
    rgba(255, 79, 142, .12) 78%,
    transparent 100%
  ) !important;
  opacity: .78;
}

.intro-hero:not(.outro-hero) .orb-c {
  background: radial-gradient(
    circle,
    rgba(127, 56, 255, .30) 0%,
    rgba(201, 62, 255, .20) 52%,
    rgba(255, 82, 72, .10) 82%,
    transparent 100%
  ) !important;
  opacity: .74;
}

@media (max-width: 520px) {
  .intro-hero:not(.outro-hero) .intro-logo,
  .outro-hero .outro-logo {
    width: min(var(--marketing-hero-logo-base), calc(100vw - 64px)) !important;
  }
}

/* ==========================================
   V22 refinements
   - final/bottom hero orbs now match the app-icon-inspired
     coral / magenta / purple atmosphere from the opening hero
   ========================================== */

.outro-hero .intro-orb {
  opacity: .78;
}

.outro-hero .orb-a {
  background: radial-gradient(
    circle,
    rgba(255, 82, 72, .30) 0%,
    rgba(255, 79, 142, .25) 38%,
    rgba(185, 56, 255, .16) 72%,
    transparent 100%
  ) !important;
}

.outro-hero .orb-b {
  background: radial-gradient(
    circle,
    rgba(185, 56, 255, .32) 0%,
    rgba(127, 56, 255, .25) 48%,
    rgba(255, 79, 142, .12) 78%,
    transparent 100%
  ) !important;
}

.outro-hero .orb-c {
  background: radial-gradient(
    circle,
    rgba(127, 56, 255, .28) 0%,
    rgba(201, 62, 255, .20) 52%,
    rgba(255, 82, 72, .10) 82%,
    transparent 100%
  ) !important;
}

/* ==========================================
   V23 refinements
   - subtle legal footer links in the bottom hero
   - positioned independently so outro logo/CTA math is untouched
   ========================================== */

.marketing-legal-footer {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;

  color: rgba(247, 240, 230, .38);
  font-size: .72rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.01em;
  text-align: center;

  pointer-events: auto;
}

.marketing-legal-footer p {
  margin: 0;
}

.marketing-legal-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.marketing-legal-footer a {
  color: rgba(247, 240, 230, .42);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

.marketing-legal-footer a:hover {
  color: rgba(247, 240, 230, .72);
}

@media (max-width: 520px) {
  .marketing-legal-footer {
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 9px 12px;
    font-size: .68rem;
  }

  .marketing-legal-footer nav {
    gap: 8px 12px;
  }
}


/* ==========================================
   V26 top hero scroll hint
   - adds clickable "Scroll" label above chevron
   - jumps smoothly to first content section
   ========================================== */

.intro-hero:not(.outro-hero) .intro-scroll-hint {
  width: auto;
  height: auto;
  min-width: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  color: rgba(247, 240, 230, .58);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
}

.intro-hero:not(.outro-hero) .intro-scroll-hint:hover {
  color: rgba(247, 240, 230, .82);
  transform: translateX(-50%) translateY(-2px);
}

.intro-hero:not(.outro-hero) .intro-scroll-hint:active {
  transform: translateX(-50%) translateY(0);
}

.intro-scroll-text {
  display: block;
  color: currentColor;
  margin-bottom: 10px;
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-shadow: 0 0 20px rgba(247,240,230,.12);
}

.intro-hero:not(.outro-hero) .scroll-chevron {
  margin-top: 0;
}

@media (max-width: 520px) {
  .intro-hero:not(.outro-hero) .intro-scroll-hint {
    gap: 8px;
    padding: 9px 12px;
  }

  .intro-scroll-text {
    font-size: .64rem;
  }
}

/* ==========================================
   V27 standalone marketing legal pages
   ========================================== */
.legal-page {
  min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(54px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}

.legal-page-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.legal-page-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-bottom: clamp(42px, 8vh, 76px);
  color: rgba(247, 240, 230, .66);
  font-size: .82rem;
  line-height: 1;
  font-weight: 600;
  transition: color .18s ease, transform .18s ease;
}

.legal-page-back::before {
  content: "←";
  font-size: 1.08rem;
  transform: translateY(-1px);
}

.legal-page-back:hover,
.legal-page-back:focus-visible {
  color: rgba(247, 240, 230, .96);
  transform: translateX(-2px);
}

.legal-page-copy {
  width: 100%;
}

.legal-page-copy h1 {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(2.65rem, 8vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.legal-page-copy h2 {
  max-width: none;
  margin: 30px 0 9px;
  color: rgba(247, 240, 230, .92);
  font-size: 0.9em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .02em;
  /*text-transform: uppercase;*/
}

.legal-page-copy p {
  max-width: 66ch;
  margin: 0;
  color: rgba(247, 240, 230, .66);
  font-size: 0.9em;
  line-height: 1.5;
  font-weight: 400;
}

.legal-page-copy p + p { margin-top: 12px; }

.legal-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 0 4px;
  color: rgba(247, 240, 230, .38);
  font-size: .72rem;
  font-weight: 650;
}

.legal-page-footer a { color: rgba(247, 240, 230, .52); }
.legal-page-footer a:hover { color: rgba(247, 240, 230, .82); }

@media (max-width: 520px) {
  .legal-page { padding-left: 22px; padding-right: 22px; }
  .legal-page-back { margin-bottom: 28px; }
  .legal-page-copy h1 { margin-bottom: 24px; }
  .legal-page-footer { flex-direction: column; align-items: center; text-align: center; }
}


/* ==========================================
   Portfolio layer
   Extends the existing Pluvi visual system.
   ========================================== */
.portfolio-page { background: var(--bg); }
.portfolio-page main { isolation: isolate; }

.portfolio-nav {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 80;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(247,240,230,.09);
  border-radius: 999px;
  background: rgba(12,10,13,.68);
  box-shadow: 0 16px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(22px) saturate(130%);
}
.portfolio-brand { font-size: .84rem; font-weight: 850; letter-spacing: -.02em; color: rgba(247,240,230,.95); white-space: nowrap; }
.portfolio-nav nav { display: flex; align-items: center; gap: 4px; }
.portfolio-nav nav a { padding: 10px 13px; border-radius: 999px; color: rgba(247,240,230,.54); font-size: .74rem; font-weight: 760; transition: color .18s ease, background .18s ease; }
.portfolio-nav nav a:hover, .portfolio-nav nav a.nav-current { color: rgba(247,240,230,.96); background: rgba(247,240,230,.075); }

.portfolio-hero {
  min-height: 100svh;
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  padding: 130px clamp(26px, 7vw, 100px) 100px;
}
.portfolio-hero::after { content:""; position:absolute; inset:auto 0 0; height:34vh; background:linear-gradient(180deg,transparent,rgba(8,6,8,.88)); pointer-events:none; }
.portfolio-hero .intro-orb, .portfolio-closing .intro-orb { opacity:.58; }
.portfolio-hero-inner { width:min(1180px,100%); margin:0 auto; position:relative; z-index:3; }
.portfolio-eyebrow { margin:0 0 22px; color:var(--violet); font-size:clamp(.72rem,1.2vw,.86rem); font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.portfolio-hero h1 { max-width: 10.5ch; font-size:clamp(4.4rem,11vw,10.5rem); line-height:.88; letter-spacing:-.06em; }
.portfolio-hero h1 em { font-family:"Instrument Serif", Georgia, serif; font-weight:400; color:var(--violet); }
.portfolio-intro { width:min(760px,100%); margin:32px 0 0; color:var(--muted-strong); font-size:clamp(1.08rem,2vw,1.42rem); line-height:1.55; letter-spacing:-.018em; }
.portfolio-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:32px; }
.portfolio-primary,.portfolio-secondary { min-height:50px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 20px; border-radius:999px; font-size:.82rem; font-weight:800; transition:transform .22s var(--ease), background .22s ease, border-color .22s ease; }
.portfolio-primary { color:#0b080b; background:rgba(247,240,230,.96); border:1px solid rgba(255,255,255,.72); box-shadow:0 14px 42px rgba(0,0,0,.28); }
.portfolio-secondary { color:rgba(247,240,230,.78); background:rgba(247,240,230,.055); border:1px solid rgba(247,240,230,.11); }
.portfolio-primary:hover,.portfolio-secondary:hover { transform:translateY(-2px); }
.portfolio-secondary:hover { color:#fff; background:rgba(247,240,230,.09); border-color:rgba(247,240,230,.18); }
.portfolio-scroll { position:absolute; z-index:4; left:50%; bottom:26px; transform:translateX(-50%); color:rgba(247,240,230,.38); font-size:.68rem; text-transform:uppercase; font-weight:800; letter-spacing:.13em; }

.portfolio-proof { width:min(1180px,calc(100% - 44px)); margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid rgba(247,240,230,.075); border-radius:28px; overflow:hidden; background:rgba(247,240,230,.025); box-shadow:0 26px 100px rgba(0,0,0,.18); }
.portfolio-proof article { min-height:170px; padding:26px; display:flex; flex-direction:column; justify-content:flex-end; border-right:1px solid rgba(247,240,230,.065); }
.portfolio-proof article:last-child { border-right:0; }
.portfolio-proof strong { font-family:"Instrument Serif",Georgia,serif; font-size:clamp(3rem,6vw,5.4rem); line-height:.82; font-weight:400; color:var(--gold); }
.portfolio-proof span { margin-top:14px; max-width:18ch; color:rgba(247,240,230,.58); font-size:.82rem; line-height:1.35; font-weight:680; }

.case-hero,.case-chapter,.experience-section { position:relative; overflow:clip; padding:clamp(110px,15vh,190px) clamp(24px,6vw,84px); }
.case-hero { margin-top:80px; min-height:92svh; display:flex; align-items:center; }
.case-shell { width:min(1180px,100%); margin:0 auto; position:relative; z-index:3; }
.case-hero h2,.case-chapter h2,.experience-section h2,.portfolio-closing h2 { max-width:11.5ch; font-size:clamp(3rem,8.5vw,7.5rem); line-height:.94; }
.case-wordmark { position:absolute; right:-12vw; top:14%; font-family:Inter,sans-serif; font-size:clamp(10rem,32vw,34rem); line-height:.8; font-weight:900; letter-spacing:-.09em; color:var(--violet); opacity:.045; transform:translate3d(0,var(--shift,0),0) rotate(-8deg); }
.case-wordmark-small { right:auto; left:-6vw; top:auto; bottom:6%; font-size:clamp(7rem,18vw,18rem); transform:translate3d(0,var(--shift,0),0) rotate(9deg); opacity:.035; }
.case-meta-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:44px; border:1px solid rgba(247,240,230,.08); border-radius:24px; overflow:hidden; background:rgba(247,240,230,.08); }
.case-meta-grid div { padding:22px; background:rgba(10,8,11,.92); }
.case-meta-grid span { display:block; color:rgba(247,240,230,.4); text-transform:uppercase; letter-spacing:.1em; font-size:.65rem; font-weight:800; }
.case-meta-grid strong { display:block; margin-top:9px; color:rgba(247,240,230,.86); font-size:.88rem; line-height:1.35; }
.compact-actions { margin-top:22px; }

.case-reel { padding:42px 0 100px; overflow:hidden; }
.case-reel.alternate { padding-top:20px; padding-bottom:110px; }
.case-reel-heading { width:min(1180px,calc(100% - 48px)); margin:0 auto 30px; }
.case-reel-heading p:last-child { width:min(620px,100%); margin:0; color:rgba(247,240,230,.6); font-size:1rem; line-height:1.55; }
.case-two-col { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.7fr); gap:clamp(48px,8vw,120px); align-items:start; }
.case-copy-stack { padding-top:8px; }
.case-copy-stack p { margin:0; color:rgba(247,240,230,.65); font-size:clamp(1rem,1.55vw,1.18rem); line-height:1.7; }
.case-copy-stack p+p { margin-top:22px; }
.case-copy-stack strong { color:rgba(247,240,230,.92); }
.static-mantra { transform:none!important; --mantra-shift:0!important; }

.decision-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:46px; }
.decision-grid article { min-height:260px; padding:26px; border:1px solid rgba(247,240,230,.08); border-radius:24px; background:linear-gradient(145deg,rgba(247,240,230,.045),rgba(247,240,230,.015)); }
.decision-grid article>span { display:inline-flex; margin-bottom:50px; color:var(--accent); font-size:.7rem; font-weight:850; letter-spacing:.11em; }
.decision-grid h3 { margin:0; color:rgba(247,240,230,.92); font-size:clamp(1.35rem,2.2vw,2rem); line-height:1.05; letter-spacing:-.035em; }
.decision-grid p { margin:14px 0 0; color:rgba(247,240,230,.55); font-size:.94rem; line-height:1.55; }
.wide-copy { width:min(850px,100%); }
.build-strip { display:flex; flex-wrap:wrap; gap:9px; margin-top:34px; }
.build-strip span { padding:11px 15px; border-radius:999px; color:rgba(247,240,230,.76); border:1px solid rgba(247,240,230,.1); background:rgba(247,240,230,.04); font-size:.78rem; font-weight:760; }

.experience-section { padding-top:120px; padding-bottom:130px; }
.experience-list { margin-top:54px; border-top:1px solid rgba(247,240,230,.1); }
.experience-list article { display:grid; grid-template-columns:minmax(220px,.55fr) 1fr; gap:40px; padding:28px 0; border-bottom:1px solid rgba(247,240,230,.08); }
.experience-list span { color:rgba(247,240,230,.38); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.experience-list h3 { margin:7px 0 0; font-size:1.4rem; letter-spacing:-.035em; }
.experience-list p { margin:0; max-width:760px; color:rgba(247,240,230,.58); line-height:1.6; }

.portfolio-closing { min-height:92svh; position:relative; overflow:clip; display:flex; align-items:center; padding:120px clamp(24px,6vw,84px) 90px; }
.portfolio-closing-inner { width:min(1180px,100%); margin:0 auto; position:relative; z-index:3; }
.portfolio-closing-inner>p:not(.section-label) { width:min(720px,100%); color:rgba(247,240,230,.62); font-size:clamp(1rem,1.7vw,1.2rem); line-height:1.65; }
.closing-actions { margin-top:30px; }
.portfolio-footer,.portfolio-mini-footer { color:rgba(247,240,230,.34); font-size:.7rem; font-weight:650; }
.portfolio-footer { position:absolute; left:clamp(24px,6vw,84px); right:clamp(24px,6vw,84px); bottom:24px; display:flex; justify-content:space-between; gap:20px; }
.portfolio-mini-footer { position:absolute; z-index:10; left:22px; right:22px; bottom:18px; display:flex; justify-content:space-between; gap:18px; }
.portfolio-mini-footer a:hover,.portfolio-footer a:hover { color:rgba(247,240,230,.7); }

/* Resume */
.resume-shell { width:min(1180px,calc(100% - 44px)); margin:0 auto; padding:150px 0 80px; }
.resume-hero { padding:44px 0 64px; border-bottom:1px solid rgba(247,240,230,.09); }
.resume-hero h1 { max-width:none; font-size:clamp(4rem,10vw,8rem); line-height:.9; }
.resume-hero>p:not(.portfolio-eyebrow) { margin:18px 0 0; color:rgba(247,240,230,.6); font-size:1.15rem; }
.resume-content { padding-top:18px; }
.resume-section { display:grid; grid-template-columns:210px 1fr; gap:clamp(34px,7vw,90px); padding:44px 0; border-bottom:1px solid rgba(247,240,230,.08); }
.resume-section>h2 { max-width:none; font-size:.72rem; line-height:1.2; letter-spacing:.11em; text-transform:uppercase; color:var(--violet); padding-top:4px; }
.resume-section>p,.resume-skill-grid p,.resume-education p { margin:0; color:rgba(247,240,230,.62); font-size:.96rem; line-height:1.68; }
.resume-skill-grid { display:grid; gap:24px; }
.resume-skill-grid h3,.resume-role h3,.resume-education h3 { margin:0 0 7px; color:rgba(247,240,230,.9); font-size:1rem; letter-spacing:-.02em; }
.resume-role { padding:0 0 34px; }
.resume-role+.resume-role { padding-top:34px; border-top:1px solid rgba(247,240,230,.065); }
.resume-role-head { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; margin-bottom:16px; }
.resume-role-head p { margin:0; color:var(--gold); font-size:.82rem; font-weight:700; }
.resume-role-head span { color:rgba(247,240,230,.36); font-size:.74rem; white-space:nowrap; }
.resume-role ul { margin:0; padding-left:18px; color:rgba(247,240,230,.58); }
.resume-role li { padding-left:5px; margin:8px 0; line-height:1.55; font-size:.91rem; }
.resume-education>div { align-self:start; }
.resume-footer { position:static; padding:28px 0 0; }

@media (max-width: 900px) {
  .portfolio-proof { grid-template-columns:repeat(2,1fr); }
  .portfolio-proof article:nth-child(2) { border-right:0; }
  .portfolio-proof article:nth-child(-n+2) { border-bottom:1px solid rgba(247,240,230,.065); }
  .case-meta-grid { grid-template-columns:repeat(2,1fr); }
  .case-two-col { grid-template-columns:1fr; gap:34px; }
  .case-copy-stack { max-width:760px; }
  .resume-section { grid-template-columns:1fr; gap:18px; }
  .resume-section>h2 { padding-top:0; }
}

@media (max-width: 680px) {
  .portfolio-nav { inset:10px 10px auto; width:calc(100vw - 20px); padding-left:14px; }
  .portfolio-nav nav a { padding:9px 9px; font-size:.65rem; }
  .portfolio-nav nav a:first-child { display:none; }
  .portfolio-brand { font-size:.76rem; }
  .portfolio-hero { padding-left:26px; padding-right:26px; }
  .portfolio-hero h1 { font-size:clamp(4rem,18vw,6.3rem); }
  .portfolio-intro { font-size:1rem; }
  .portfolio-actions { align-items:stretch; }
  .portfolio-primary,.portfolio-secondary { min-height:48px; }
  .portfolio-proof { width:calc(100% - 28px); grid-template-columns:1fr 1fr; border-radius:22px; }
  .portfolio-proof article { min-height:145px; padding:20px; }
  .portfolio-proof strong { font-size:3.4rem; }
  .portfolio-proof span { font-size:.72rem; }
  .case-hero,.case-chapter,.experience-section { padding-left:26px; padding-right:26px; }
  .case-hero { margin-top:38px; }
  .case-meta-grid { grid-template-columns:1fr; }
  .decision-grid { grid-template-columns:1fr; }
  .decision-grid article { min-height:220px; }
  .experience-list article { grid-template-columns:1fr; gap:16px; }
  .portfolio-closing { padding-left:26px; padding-right:26px; }
  .portfolio-footer { left:26px; right:26px; }
  .resume-shell { width:calc(100% - 44px); padding-top:110px; }
  .resume-role-head { flex-direction:column; gap:7px; }
  .resume-role-head span { white-space:normal; }
  .resume-footer { flex-direction:column; }
  .portfolio-mini-footer { bottom:14px; font-size:.64rem; }
}


/* ==========================================
   Portfolio V2 — navigation, résumé flow, unified footer
   ========================================== */
.resume-section-body { min-width: 0; }

.site-footer {
  position: relative;
  z-index: 45;
  padding: 0 clamp(22px, 6vw, 84px) 28px;
  background: var(--bg);
}
.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(247,240,230,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(247,240,230,.36);
  font-size: .7rem;
  font-weight: 650;
}
.site-footer nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:18px; }
.site-footer a { color:rgba(247,240,230,.48); transition:color .18s ease; }
.site-footer a:hover { color:rgba(247,240,230,.82); }

/* The original resume section is a 2-column label/content grid.
   Keep every role inside the content column so roles always read top-to-bottom. */
.resume-section:has(.resume-section-body) { align-items:start; }
.resume-section-body > .resume-role:last-child { padding-bottom:0; }

@media (max-width: 680px) {
  .portfolio-nav {
    inset: 10px 10px auto;
    width: calc(100vw - 20px);
    padding: 9px 10px 9px 13px;
    gap: 8px;
  }
  .portfolio-nav nav { gap: 1px; min-width:0; }
  .portfolio-nav nav a { display:inline-flex !important; padding:8px 7px; font-size:.59rem; white-space:nowrap; }
  .portfolio-brand { font-size:.69rem; }
  .site-footer { padding-left:22px; padding-right:22px; padding-bottom:22px; }
  .site-footer-inner { flex-direction:column; align-items:flex-start; gap:14px; }
  .site-footer nav { justify-content:flex-start; gap:12px 16px; }
}

@media (max-width: 430px) {
  .portfolio-nav {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 9px 10px 8px;
  }
  .portfolio-brand { width:100%; padding:2px 5px 1px; }
  .portfolio-nav nav { width:100%; display:grid; grid-template-columns:.75fr 1.45fr .9fr; gap:3px; }
  .portfolio-nav nav a { justify-content:center; text-align:center; padding:8px 5px; font-size:.61rem; }
  .portfolio-hero { padding-top:145px; }
  .resume-shell { padding-top:145px; }
}


/* Desktop portfolio/resume shell alignment */
@media (min-width: 901px) {
  .portfolio-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .portfolio-hero-inner,
  .resume-shell {
    width: min(1180px, calc(100% - 44px));
    margin-left: auto;
    margin-right: auto;
  }
}
