/* ============================================================================
   Reflectar — reflectar.app
   A calm, dreamy landing site. Values pulled exactly from the app's Clay theme
   (Reflectar/Core/Theme/Brand.swift) and CalmBackground.swift.
   Clay light is the brand default; a Clay-dark variant (§22) toggles via the nav.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1 · Design tokens — the Clay light theme, exact from Brand.swift
   --------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --cream:        #F4EEE4;  /* base — app background / paper            */
  --surface:      #FBF8F2;  /* soft-white cards                          */
  --hairline:     #E4DBCC;  /* soft border                              */

  /* Sky + hills (CalmBackground) */
  --sky-top:      #F7F5EB;
  --sky-bottom:   #EDE8D9;
  --hill-back:    #BFC9B8;
  --hill-mid:     #ABBAA3;
  --hill-front:   #94A68F;
  --hill-deep:    #5E6E58;  /* deepened hill for the footer floor (AA-safe) */

  /* Ink — never pure black / white */
  --ink:          #3A352E;  /* primary text (10.5:1 on cream)            */
  --ink-secondary:#7A7268;  /* secondary — large text only               */
  --ink-muted:    #6E665B;  /* small secondary captions (AA-safe 4.9:1)  */

  /* Accent — clay / terracotta */
  --accent:       #C77B53;  /* buttons, highlights, decorative           */
  --accent-ink:   #9E5532;  /* darker clay for small inline links (AA)   */
  --sage:         #5CA86E;  /* nature touches / focus green              */

  /* Logo corner-mark colours — rare sparkle accents */
  --mark-purple:  #A98BE0;
  --mark-coral:   #F5A07A;
  --mark-teal:    #76D7C4;
  --mark-blue:    #8FB8F0;
  --mark-pink:    #F39FBE;

  /* Glass */
  --glass-bg:     rgba(251, 248, 242, 0.66);
  --glass-bg-strong: rgba(251, 248, 242, 0.82);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 10px 34px rgba(58, 53, 46, 0.10);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --radius:    20px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(40px, 7vw, 82px);  /* net −50px vs the original clamp(64,11vw,132) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------------------
   2 · Reset + base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--cream);
  /* Soft sky settling into paper — the page opens like the app. */
  background-image: linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-bottom) 9%,
      var(--cream) 22%,
      var(--cream) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint paper grain across the whole page — "made of paper" warmth.
   Very low opacity so dark ink is essentially untouched by the multiply. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----------------------------------------------------------------------------
   3 · Typography
   --------------------------------------------------------------------------- */
.font-serif { font-family: var(--font-serif); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 300;
  margin-top: 0.5rem;
}

.section-intro {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--ink-secondary);
  max-width: 46ch;
  margin-top: 1rem;
  line-height: 1.65;
}

p { color: var(--ink); }
.muted { color: var(--ink-muted); }

/* Inline text links (small) — darker clay to pass AA on cream */
.link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(158, 85, 50, 0.4);
  transition: text-decoration-color 0.25s var(--ease);
}
.link:hover { text-decoration-color: var(--accent-ink); }

/* ----------------------------------------------------------------------------
   4 · Layout helpers
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; z-index: 2; }
.section-head { max-width: 52ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-intro { margin-inline: auto; }

/* ----------------------------------------------------------------------------
   5 · Glass (Liquid Glass on the web)
   --------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* No-backdrop-filter fallback: lean on a more opaque surface */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* ----------------------------------------------------------------------------
   6 · Buttons, pills, badge
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(199, 123, 83, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(199, 123, 83, 0.42); }
.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* Soft pill (e.g. "Coming to the App Store") */
.pill {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 0.5em 0.95em;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(92,168,110,0.18);
}

/* App Store badge — "coming soon" glass version.
   TODO(launch): swap the <a href> for the real App Store URL and (optionally)
   replace with Apple's official black badge image — one edit. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 1.2em 0.7em 1.05em;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6);
  color: var(--ink);
  transition: transform 0.3s var(--ease);
  cursor: default;
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; fill: var(--ink); }
.appstore-badge .as-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .as-small { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.appstore-badge .as-big { font-size: 1.12rem; font-weight: 600; }

/* ----------------------------------------------------------------------------
   7 · Header / nav
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px var(--gutter);
  display: flex;
  justify-content: center;
  transition: padding 0.4s var(--ease);
}
.nav {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  border-radius: 999px;
}
.site-header.scrolled .nav { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6); }
.nav__logo img { height: 26px; width: auto; aspect-ratio: 1075 / 234; }
.nav__links { display: flex; align-items: center; gap: 1.35rem; list-style: none; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.2em 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
  transition: right 0.3s var(--ease);
}
.nav__links a:hover { color: var(--accent-ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 0.8rem; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: var(--radius);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 0.75rem 0.9rem; border-radius: 12px; }
  .nav__links a::after { display: none; }
  .nav__links a:hover { background: rgba(199,123,83,0.08); }
  .nav__cta .pill { display: none; }
}

/* ----------------------------------------------------------------------------
   8 · Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(96px, calc(22vh - 100px), 100px);  /* −100px; floor clears the fixed nav */
  padding-bottom: clamp(40px, 8vh, 90px);
  overflow: hidden;
  text-align: center;
  /* no isolation: lets the fixed effects canvas (z0) sit above the hero hills
     (z-2) and below the hero text (z1) in the root stacking context. */
}
/* Sky for the hero (settles into the page background below) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, transparent 100%);
  z-index: -3;
}
/* Hill landscape anchored at the hero floor */
.hero__hills {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(190px, 34vh, 360px);
  z-index: -2;
  pointer-events: none;
}
.hill-layer {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
  will-change: transform;
}
.hill-layer.l-back  { background-image: url("../assets/hero-hill-back.svg"); }
.hill-layer.l-mid   { background-image: url("../assets/hero-hill-mid.svg"); }
.hill-layer.l-front { background-image: url("../assets/hero-hill-front.svg"); }
.hill-layer.l-fore  { background-image: url("../assets/hero-foreground.svg"); }

.hero__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.hero__wordmark { height: clamp(46px, 9vw, 78px); width: auto; margin-inline: auto; }
.hero h1 {
  /* visually-hidden real heading for SEO/a11y; wordmark image is decorative-ish */
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 5.5vw, 2.9rem);
  line-height: 1.2;
  margin-top: 1.6rem;
  color: var(--ink);
}
.hero__tagline em { font-style: italic; color: var(--accent); }
.hero__line {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--ink-secondary);
  max-width: 40ch;
  margin: 1.1rem auto 0;
  line-height: 1.6;
}
.hero__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Breathing CTA — slow ~8s expand/contract, mirrors the breath ritual */
.breathe-cta { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(199,123,83,0.30); }
  50%      { transform: scale(1.045); box-shadow: 0 14px 34px rgba(199,123,83,0.44); }
}

/* Hero phone mockup */
.hero__device { margin: clamp(2.6rem, 6vw, 4rem) auto 0; width: min(260px, 70vw); position: relative; z-index: 1; }

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.3;
  background: linear-gradient(150deg, #38332C, #211E19);
  border-radius: 13% / 6.5%;
  padding: 3.2%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.18),
    0 30px 60px -18px rgba(58,53,46,0.45),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 11% / 5.5%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  display: flex;
}
.phone__island {
  position: absolute;
  top: 2.8%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.4%;
  background: #15120E;
  border-radius: 999px;
  z-index: 4;
}
/* mini hills inside the phone */
.phone__hills { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.phone__hills > div { position: absolute; inset: 0; background-repeat: no-repeat; background-position: bottom; background-size: 100% 62%; }
.phone__hills .ph-back  { background-image: url("../assets/hero-hill-back.svg"); }
.phone__hills .ph-mid   { background-image: url("../assets/hero-hill-mid.svg"); }
.phone__hills .ph-front { background-image: url("../assets/hero-hill-front.svg"); }
/* the poem on the keepsake */
.phone__poem {
  position: relative; z-index: 3;
  margin: auto;
  padding: 14% 12%;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(0.78rem, 3.4vw, 0.98rem);
  line-height: 1.85;
}
.phone__poem span {
  display: inline-block;
  background: rgba(251,248,242,0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0.1em 0.55em;
  border-radius: 999px;
  margin: 0.18em 0;
  box-shadow: 0 1px 4px rgba(58,53,46,0.06);
}

/* ----------------------------------------------------------------------------
   9 · How it works — the ritual
   --------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.6vw, 1.6rem);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  text-align: left;
}
.step__num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.step__icon { width: 38px; height: 38px; margin: 0.4rem 0 1rem; color: var(--accent); }
.step__icon svg { width: 100%; height: 100%; }
.step h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
.step p { color: var(--ink); font-size: 0.98rem; line-height: 1.6; }

/* ----------------------------------------------------------------------------
   10 · Feature rows — alternating text / framed visual
   --------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature__media { order: -1; }
.feature__icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.1rem; }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 300; margin-bottom: 0.9rem; }
.feature p { color: var(--ink); max-width: 42ch; }
.feature .feature-list { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.65rem; }
.feature .feature-list li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: 0.98rem; }
.feature .feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); opacity: 0.85;
}

/* Framed "device" visual — placeholder keepsake until real screenshots land */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, var(--sky-top), var(--sky-bottom));
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px -20px rgba(58,53,46,0.30);
  display: flex; align-items: center; justify-content: center;
}
.frame .frame__hills { position: absolute; inset: 0; background: url("../assets/hero-hill-front.svg") bottom / 100% 46% no-repeat; opacity: 0.85; }
.frame .frame__hills::before { content:""; position:absolute; inset:0; background: url("../assets/hero-hill-back.svg") bottom / 100% 58% no-repeat; opacity:0.6; }
.frame__inner { position: relative; z-index: 2; text-align: center; color: var(--accent); padding: 2rem; }
.frame__inner svg { width: 48px; height: 48px; margin-bottom: 0.8rem; }
.frame__inner .frame__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.frame__inner .frame__poem { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.7; margin-top: 0.3rem; }

/* Real app screenshots, in a slim device frame that matches the hero phone bezel */
.shot-frame {
  width: min(264px, 76%);
  margin-inline: auto;
  border: 6px solid #2A2723;
  border-radius: 38px;
  overflow: hidden;
  background: #2A2723;
  box-shadow: 0 26px 54px -20px rgba(58, 53, 46, 0.45);
}
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 32px; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature.reverse .feature__media { order: 0; }
}

/* ----------------------------------------------------------------------------
   11 · Breathe interlude
   --------------------------------------------------------------------------- */
.breathe {
  position: relative;
  padding-block: clamp(40px, 6vw, 90px) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.breathe::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sky-top) 30%, var(--sky-bottom) 60%, var(--cream) 100%);
}
.breathe__hills { position: absolute; left:0; right:0; bottom:0; height: clamp(220px, 40vw, 420px); z-index:-2; pointer-events:none; }
.breathe__hills > div { position:absolute; inset:0; background-repeat:no-repeat; background-position:bottom center; background-size:100% 100%; }
.breathe__hills .b-back { background-image: url("../assets/breathe-back.svg"); }
.breathe__hills .b-mid  { background-image: url("../assets/breathe-mid.svg"); }
.breathe__hills .b-front{ background-image: url("../assets/breathe-front.svg"); }
.breathe__hills .b-fore { background-image: url("../assets/breathe-foreground.svg"); }
.breathe__poem {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  padding-bottom: clamp(110px, 18vw, 200px);
}
.breathe__poem .l { display: block; }

/* ----------------------------------------------------------------------------
   12 · Screenshot carousel + lightbox
   --------------------------------------------------------------------------- */
.carousel { position: relative; max-width: var(--container); margin: clamp(1.4rem, 3vw, 2.4rem) auto 0; }
.carousel__track {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 12px var(--gutter) 32px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__cell { flex: 0 0 auto; scroll-snap-align: center; list-style: none; }
.carousel__item {
  display: block;
  width: clamp(206px, 60vw, 266px);
  padding: 0; border: 0; background: transparent;
  border-radius: 24px;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.carousel__item img {
  display: block; width: 100%; height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 44px -22px rgba(58,53,46,0.42);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.carousel__item:hover img,
.carousel__item:focus-visible img { transform: translateY(-5px); box-shadow: 0 28px 58px -22px rgba(58,53,46,0.52); }
.carousel__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(58,53,46,0.45);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), opacity 0.22s var(--ease);
}
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: clamp(2px, 1vw, 10px); }
.carousel__arrow--next { right: clamp(2px, 1vw, 10px); }
.carousel__arrow:hover { transform: translateY(-50%) scale(1.06); background: var(--surface); }
.carousel__arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (hover: none) { .carousel__arrow { display: none; } }

/* Lightbox: full-screen, scrollable overlay over everything */
.lb-open { overflow: hidden; padding-right: var(--sbw, 0); }
.lightbox { position: fixed; inset: 0; z-index: 9600; opacity: 0; transition: opacity 0.3s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(26, 23, 19, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__scroll {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(60px, 9vh, 104px) 16px clamp(76px, 12vh, 128px);
}
.lightbox__figure {
  margin: 0;
  width: min(640px, 92vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 22px;
  background-size: cover; background-position: center;
  box-shadow: 0 34px 90px -28px rgba(0,0,0,0.65);
}
.lightbox__img {
  display: block; width: 100%; height: 100%;
  border-radius: 22px;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.lightbox__img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lightbox__img { transition: none; } }
.lightbox__btn {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(248, 245, 238, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #2A2723; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn:hover { transform: scale(1.07); background: #fff; }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox__close { top: clamp(14px, 2.5vh, 26px); right: clamp(14px, 2.5vw, 26px); }
.lightbox__prev { left: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vh, 30px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  pointer-events: none; text-align: center;
}
.lightbox__cap { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.92); }
.lightbox__count { font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }
@media (max-width: 520px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

/* ----------------------------------------------------------------------------
   13 · Reflectar+ card
   --------------------------------------------------------------------------- */
/* Reflectar+ subscription sheet (mirrors the in-app paywall) */
.plus-sheet {
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4.5vw, 2.8rem);
  text-align: center;
}
.plus-sheet__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.7rem);
  letter-spacing: -0.5px;
  color: var(--ink);
}
.plus-sheet__plus { color: var(--accent); }
.plus-sheet__sub { color: var(--ink-secondary); font-size: 1.05rem; margin: 0.5rem auto 1.7rem; max-width: 40ch; }

.plus-sheet__perks {
  list-style: none; display: grid; gap: 0.95rem;
  text-align: left; margin: 0 auto 1.8rem; max-width: 440px;
}
.plus-sheet__perks li { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--ink); line-height: 1.4; }
.plus-ic { flex: 0 0 auto; display: inline-flex; color: var(--accent); }
.plus-ic svg { width: 24px; height: 24px; }

.plus-plans { display: grid; gap: 0.8rem; margin-bottom: 1.4rem; }
.plus-plan {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 1rem 1.3rem;
  border-radius: 18px;
  border: 1.5px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.plus-plan:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline)); }
.plus-plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plus-plan.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.plus-plan__radio {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--ink-muted); position: relative;
  transition: border-color 0.18s var(--ease);
}
.plus-plan.is-selected .plus-plan__radio { border-color: var(--accent); }
.plus-plan.is-selected .plus-plan__radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent);
}
.plus-plan__main { flex: 1 1 auto; display: grid; gap: 0.25rem; min-width: 0; }
.plus-plan__name {
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.plus-plan__badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.plus-plan__note { font-size: 0.85rem; color: var(--accent-ink); line-height: 1.35; }
.plus-plan__price { flex: 0 0 auto; text-align: right; display: grid; gap: 0.1rem; }
.plus-plan__amt { font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.plus-plan__per { font-size: 0.82rem; color: var(--ink-muted); }

.plus-subscribe {
  display: block; width: 100%; text-align: center;
  padding: 1.05rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.plus-subscribe:hover { background: color-mix(in srgb, var(--accent) 85%, #3A352E); transform: translateY(-1px); }
.plus-subscribe:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plus-sheet__fine { font-size: 0.82rem; color: var(--ink-muted); margin-top: 1rem; }

/* ----------------------------------------------------------------------------
   14 · About / maker
   --------------------------------------------------------------------------- */
.about {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.about__quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink);
}
.about__body { margin-top: 1.6rem; text-align: left; }
.about__body p { color: var(--ink); margin-bottom: 1rem; }
.about__sign {
  margin-top: 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  text-align: left;
}
.about__signoff {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.about__avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 8px 20px -10px rgba(58, 53, 46, 0.45);
  flex: 0 0 auto;
}
.about__signoff .about__sign { margin-top: 0; }
.about__role { font-size: 0.88rem; color: var(--ink-muted); text-align: left; margin-top: 0.15rem; }

/* ----------------------------------------------------------------------------
   15 · Footer — glassy, on the deepest hill
   --------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 12vw, 130px);
  background: var(--hill-deep);
  color: #F4EEE4;
  padding-bottom: 2.5rem;
}
.site-footer::before {
  /* hill waves rising over the cream body into the deep footer floor */
  content: "";
  position: absolute;
  bottom: 100%; left: 0; right: 0;
  height: clamp(70px, 12vw, 140px);
  background:
    url("../assets/footer-front.svg") bottom / 100% 100% no-repeat,
    url("../assets/footer-back.svg") bottom / 100% 86% no-repeat;
  pointer-events: none;
}
.footer__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  padding-top: calc(clamp(2.4rem, 5vw, 3.4rem) - 50px);   /* −50px */
}
/* The supplied "white" logo is actually the full-colour wordmark; render it as a
   clean light mark on the deep sage footer (the one place a monochrome logo fits). */
.footer__brand img { height: 30px; width: auto; aspect-ratio: 1075 / 234; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__brand p { color: rgba(244,238,228,0.86); max-width: 34ch; font-size: 0.96rem; }
.footer__tag { font-family: var(--font-serif); font-style: italic; color: rgba(244,238,228,0.92); margin-bottom: 0.8rem !important; font-size: 1.05rem; }
.footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.5rem; }
.footer__links a {
  color: rgba(244,238,228,0.9);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
  width: max-content;
}
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  position: relative; z-index: 2;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244,238,228,0.18);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center;
}
.footer__bottom p { color: rgba(244,238,228,0.7); font-size: 0.85rem; }
.footer__bottom .made { color: rgba(244,238,228,0.85); }
.footer__bottom .made a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(244,238,228,0.3); transition: border-color 0.2s var(--ease); }
.footer__bottom .made a:hover { border-color: rgba(244,238,228,0.75); }
/* only the heart is interactive (click / Enter / Space) — not the whole line */
.footer__bottom .heart { color: var(--mark-coral); position: relative; display: inline-block; cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform 0.2s var(--ease); }
.footer__bottom .heart:hover { transform: scale(1.18); }
.footer__bottom .heart:focus-visible { outline: 2px solid var(--mark-coral); outline-offset: 3px; border-radius: 3px; }
/* heart-flutter particles (click the ♥) — spawned from the heart, drift up + fade */
.heart-particle { position: absolute; pointer-events: none; opacity: 0; left: 50%; top: 50%; }

@media (max-width: 620px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ----------------------------------------------------------------------------
   16 · "Make a Reflectar" teaser
   --------------------------------------------------------------------------- */
.teaser {
  max-width: 600px; margin: clamp(2.5rem,6vw,4rem) auto 0;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}
.teaser h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.4rem; }
.teaser p { color: var(--ink-secondary); font-size: 0.96rem; margin-bottom: 1.3rem; }
.teaser__form { display: flex; gap: 0.6rem; max-width: 420px; margin: 0 auto; }
.teaser__form input {
  flex: 1; min-width: 0;
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: 0.8em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.7);
}
.teaser__form input::placeholder { color: var(--ink-muted); }
.teaser__out {
  margin-top: 1.5rem; min-height: 4.5em;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem); line-height: 1.7; color: var(--ink);
}
.teaser__out .l { display: block; opacity: 0; transform: translateY(8px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.teaser__out .l.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   17 · Scene effects — hero particle canvas + nav "play" panel
   --------------------------------------------------------------------------- */
/* Fixed full-page canvas. "Behind" (default): z-index 0 — above section backgrounds
   and the hero hills, below text/cards. "In front": above everything (toggle). */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fx-canvas.fx-front { z-index: 8500; }

/* Nav toggle button (in place of the old "coming soon" pill) */
.nav__fx { position: relative; }
.fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5em 0.9em;
  border-radius: 999px;
  cursor: pointer;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.fx-toggle svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.fx-toggle:hover { transform: translateY(-1px); }
.fx-toggle.active { background: var(--glass-bg-strong); }

/* The popover panel */
.fx-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1200;
  width: min(290px, calc(100vw - 28px));
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}
.fx-panel__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.75rem;
}
.fx-effects {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.26rem;
  margin-bottom: 0.9rem;
}
.fx-effect--off { color: var(--ink-muted); }
.fx-effect--off.active { background: var(--ink-secondary); border-color: var(--ink-secondary); box-shadow: none; }

/* Behind / In-front segmented toggle */
/* Wind + Layer: a 2×2 grid. Labels on the top row, dial + pill below. Wind sits at the
   left edge, Layer at the right edge (aligned with the icons/sliders); each label is
   centred over its control, and the pill centres vertically against the taller dial. */
.fx-windlayer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  row-gap: 0.5rem;
  margin-bottom: 1rem;
}
.fx-windlayer .fx-label { justify-self: center; }
.fx-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(199, 123, 83, 0.08);
  border: 1px solid var(--hairline);
}
.fx-seg__btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 0.34em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fx-seg__btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(199,123,83,0.28); }
.fx-effect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 11px;
  cursor: pointer;
  color: var(--ink-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fx-effect svg { width: 19px; height: 19px; }
.fx-effect:hover { background: rgba(199,123,83,0.08); color: var(--ink); }
.fx-effect.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(199,123,83,0.30);
}

.fx-controls { display: grid; gap: 0.85rem; }
.fx-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fx-dial {
  position: relative;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(199,123,83,0.10);
  border: 1px solid var(--hairline);
  cursor: grab;
  touch-action: none;
}
.fx-dial:active { cursor: grabbing; }
.fx-dial__arrow {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.fx-dial__arrow svg { width: 24px; height: 24px; }

.fx-slider { display: grid; gap: 0.35rem; }
.fx-slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  border-radius: 999px;
  background: var(--hairline);
  outline-offset: 4px;
}
.fx-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(58,53,46,0.25);
  cursor: pointer;
}
.fx-slider input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(58,53,46,0.25);
  cursor: pointer;
}

@media (max-width: 520px) {
  .fx-toggle__label { display: none; }
  .fx-toggle { padding: 0.5em 0.6em; }
}

/* ----------------------------------------------------------------------------
   18 · Legal / placeholder pages
   --------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(130px, 20vh, 200px);
  padding-bottom: clamp(30px, 6vw, 60px);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 70%, transparent);
}
.page-hero__hills { position:absolute; left:0; right:0; bottom:0; height: clamp(80px,14vw,150px); z-index:-1;
  background: url("../assets/hero-hill-front.svg") bottom / 100% 100% no-repeat; opacity: 0.7; pointer-events:none; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 300; }
.page-hero p { color: var(--ink-secondary); margin-top: 0.8rem; font-size: 1.1rem; }
.page-hero .eyebrow { display: inline-block; margin-bottom: 0.6rem; }

.prose {
  max-width: 740px;
  margin: 0 auto;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  margin-top: 2.6rem; margin-bottom: 0.8rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 500; font-family: var(--font-sans); margin-top: 1.6rem; margin-bottom: 0.5rem; color: var(--ink); }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose ul { margin: 0 0 1.2rem 0; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.6rem; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .meta { color: var(--ink-muted); font-size: 0.92rem; }

.callout {
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2rem;
}
.callout.tldr { border-left: 4px solid var(--sage); }
.callout h2 { margin-top: 0 !important; font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.callout p:last-child { margin-bottom: 0; }
.callout.todo { border-left: 4px solid var(--accent); background: rgba(199,123,83,0.06); }
.callout.todo .meta { color: var(--ink-muted); }

.coming-soon {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.coming-soon .cs-icon { width: 54px; height: 54px; color: var(--accent); margin: 0 auto 1.2rem; }
.coming-soon p { color: var(--ink-secondary); margin-bottom: 1rem; }

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 1.1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: grid; gap: 0.4rem; }
.cf-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-secondary); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7268' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.2rem; }
.cf-submit {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 0.8rem 1.8rem;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.cf-submit:hover { background: color-mix(in srgb, var(--accent) 85%, #3A352E); transform: translateY(-1px); }
.cf-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.cf-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-status { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.cf-status.ok { color: var(--sage); font-weight: 600; }
.cf-status.err { color: #C4636B; font-weight: 600; }
.cf-fine { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; margin: 0.4rem 0 0; }
.cf-fine a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cf-notice {
  max-width: 560px; margin: 0 auto 1.6rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--hairline));
  border-radius: 14px; padding: 1rem 1.2rem;
}
.cf-notice__eyebrow {
  margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
}
.cf-notice p:last-child { margin: 0; color: var(--ink); font-size: 0.92rem; line-height: 1.55; }
.cf-notice strong { font-weight: 700; }
/* Top padding so the notice clears the page-hero hill divider (the legal pages get this from .prose). */
.container:has(> .cf-notice) { padding-top: clamp(2.5rem, 6vw, 4rem); }
/* Hide the floating reCAPTCHA badge (allowed: the disclosure is shown in .cf-fine). */
.grecaptcha-badge { visibility: hidden; }

/* Sitemap page */
.sitemap-list { max-width: 640px; margin: 0 auto; display: grid; gap: 1rem; padding-block: clamp(2rem,5vw,3.5rem); }
.sitemap-item {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem 1.4rem; border-radius: var(--radius);
}
.sitemap-item a { font-family: var(--font-serif); font-size: 1.2rem; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.sitemap-item span { color: var(--ink-muted); font-size: 0.92rem; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; padding-block: clamp(2rem,5vw,3.5rem); display: grid; gap: 1rem; }
.faq-item { border-radius: var(--radius); padding: clamp(1.2rem,3vw,1.6rem) clamp(1.3rem,3vw,1.8rem); }
.faq-item h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink); margin: 0; }

/* ----------------------------------------------------------------------------
   19 · Cookie-consent stub
   --------------------------------------------------------------------------- */
/* Cookie consent banner (Consent Mode v2, geo-gated; built in main.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100;
  max-width: 660px; margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: 16px; padding: 1rem 1.2rem;
  box-shadow: 0 16px 44px -18px rgba(58, 53, 46, 0.4);
  transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner__inner { display: flex; align-items: center; gap: 0.8rem 1.2rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner__text { flex: 1 1 280px; margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink-secondary); }
.cookie-banner__text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1.15rem; border-radius: 9px; border: 1px solid transparent;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.1s var(--ease);
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn--reject { background: transparent; color: var(--ink-muted); border-color: var(--hairline); }
.cookie-btn--reject:hover { color: var(--ink); border-color: var(--ink-muted); }
.cookie-btn--accept { background: var(--accent); color: #fff; }
.cookie-btn--accept:hover { background: color-mix(in srgb, var(--accent) 85%, #3A352E); }
.cookie-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 0.9rem 1rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ----------------------------------------------------------------------------
   20 · Reveal-on-scroll + reduced motion
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Poem lines that softly drift up */
.driftline { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.driftline.in { opacity: 1; transform: none; }
.breathe__poem .l.driftline.in:nth-child(1) { transition-delay: 0s; }
.breathe__poem .l.driftline:nth-child(2) { transition-delay: 0.35s; }
.breathe__poem .l.driftline:nth-child(3) { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .driftline { opacity: 1 !important; transform: none !important; transition: none !important; }
  .breathe-cta, .phone { animation: none !important; }
  .teaser__out .l { opacity: 1 !important; transform: none !important; }
}

/* ----------------------------------------------------------------------------
   21 · Interactive AR demo (hero) — mirrors ARScreen / ComposeController
   --------------------------------------------------------------------------- */
.hero__stage { margin-top: clamp(2.6rem, 6vw, 4rem); position: relative; z-index: 1; }
/* device-aware instruction above the AR viewport */
.ar-cue {
  text-align: center;
  max-width: 90%;
  margin: 0 auto clamp(0.7rem, 1.6vw, 1.1rem);
  color: var(--ink-muted);
  font-size: 0.92rem; font-weight: 500; line-height: 1.4;
}
.ar-cue__icon { display: inline-flex; vertical-align: -0.32em; color: var(--accent); margin-right: 0.4rem; }
.ar-cue__icon svg { width: 20px; height: 20px; display: block; }
.ar-cue__icon--touch, .ar-cue__touch { display: none; }
.ar-cue__desktop { display: inline; }
@media (hover: none) and (pointer: coarse) {
  .ar-cue__icon--desktop, .ar-cue__desktop { display: none; }
  .ar-cue__icon--touch { display: inline-flex; }
  .ar-cue__touch { display: inline; }
}
.hero__cta { display: flex; justify-content: center; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
/* Scan-to-download QR beside the badge. Kept light (white card + dark caption) in both themes
   because it wraps a white QR that must stay high-contrast to scan. Hidden on phones (just tap the badge). */
.hero__qr { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  background: #fff; border: 1px solid rgba(58,53,46,0.12); border-radius: 14px; text-decoration: none;
  box-shadow: 0 12px 26px -18px rgba(58,53,46,0.5); transition: transform 0.2s var(--ease); }
.hero__qr:hover { transform: translateY(-2px); }
.hero__qr:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero__qr img { display: block; width: 76px; height: 76px; border-radius: 7px; }
.hero__qr-cap { font-size: 0.82rem; font-weight: 600; line-height: 1.18; color: #3A352E; text-align: left; }
@media (max-width: 560px) { .hero__qr { display: none; } }
.ar-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;             /* mobile: tall enough for the portrait phone */
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 70px -26px rgba(58, 53, 46, 0.5);
  isolation: isolate;
  /* Capture touch so the viewfinder can be dragged in 2D (page scrolls from outside the
     stage). Applies to descendants too, so a drag started on a pill/photo isn't a scroll. */
  touch-action: none;
}
.ar-stage * { touch-action: none; }
@media (min-width: 760px) {
  .ar-stage { aspect-ratio: 16 / 10; }   /* desktop: wide landscape, ~the steps row width */
}
.ar-stage.ar-live { cursor: none; }

/* The world — fixed scene + locked pills; leans (scales) toward the focused line */
.ar-world { position: absolute; inset: 0; z-index: 1; will-change: transform; }
/* The "photo" world. JS sets background-image to a random photo per load. */
.ar-scene {
  position: absolute; inset: 0;
  background-color: var(--sky-bottom);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ar-pills { position: absolute; inset: 0; }
.ar-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 64%;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 3vw, 0.86rem);
  color: var(--ink);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(58, 53, 46, 0.14), inset 0 1px 0 rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.18s var(--ease);
  cursor: inherit;   /* selection is by dwell (hover or drag) — no click affordance */
}
.ar-pill.show { opacity: 1; }
.ar-pill.focused { transform: translate(-50%, -50%) scale(1.12); }
.ar-pill.fade { opacity: 0; transition: opacity 0.4s var(--ease); }
.ar-pill.blow { animation: arBlowOut 0.55s var(--ease) forwards; pointer-events: none; }
@keyframes arBlowOut {
  0%   { transform: translate(-50%, -50%) scale(1.12); opacity: 1; filter: blur(0); }
  100% { transform: translate(-50%, -50%) translate(190px, -14px) rotate(9deg) scale(0.55); opacity: 0; filter: blur(3px); }
}

/* The phone viewfinder. The interior is TRANSPARENT (bezel is a border, not a fill) so the
   world/photo shows straight through it — only the dark frame is opaque. */
.ar-phone {
  position: absolute;
  left: 50%; top: 50%;
  height: 82%;
  aspect-ratio: 9 / 19.3;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  border: 6px solid #2A2723;
  border-radius: 34px;
  background: transparent;
  box-shadow: 0 2px 5px rgba(0,0,0,0.28), 0 22px 44px -16px rgba(58,53,46,0.55);
}
.ar-phone.follow { transition: transform 0.06s linear; }
.ar-phone.recenter { transition: left 0.5s var(--ease), top 0.5s var(--ease), transform 0.5s var(--ease); }
.ar-phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  /* ~90% transparent: just a faint tint + soft vignette so the photo reads through clearly */
  background: rgba(40,36,30,0.10);
  box-shadow: inset 0 0 18px rgba(40,36,30,0.12), inset 0 0 0 1px rgba(255,255,255,0.10);
}
.ar-reticle {
  position: absolute; top: 50%; left: 50%;   /* centred = the cursor = the focus point */
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
}
.ar-reticle__svg { width: 100%; height: 100%; overflow: visible; }
.ar-reticle__base { stroke: rgba(255,255,255,0.75); transition: stroke 0.2s var(--ease); }
.ar-reticle__prog {
  stroke: var(--accent);
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
}
.ar-reticle.focused .ar-reticle__base { stroke: var(--sage); }

.ar-tray {
  position: absolute; left: 6%; right: 6%; bottom: 5%;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.ar-rest {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-serif);
  font-size: clamp(0.6rem, 2.6vw, 0.74rem);
  color: #fff;
  padding: 0.32em 0.7em;
  border-radius: 999px;
  background: rgba(58,53,46,0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
}
.ar-rest.blow-in { animation: arBlowIn 0.6s var(--ease); }
@keyframes arBlowIn {
  0%   { transform: translateX(-90px); opacity: 0; filter: blur(3px); }
  60%  { opacity: 1; }
  100% { transform: none; opacity: 1; filter: none; }
}

.ar-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 4;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.ar-stage.ar-engaged .ar-hint { opacity: 0; }

/* Keepsake reveal — the poem renders INSIDE the phone screen (so it can never clip the
   frame), over a soft full-stage dim, with a corner reload. */
.ar-dim {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 48%, rgba(40,36,30,0.28), rgba(40,36,30,0.55));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.ar-stage.ar-done .ar-dim { opacity: 1; }

.ar-keepsake {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: 82%;
  z-index: 4;
  text-align: center;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 2px 12px rgba(20,17,14,0.75);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.15s;
  pointer-events: none;
}
.ar-keepsake .l { display: block; margin: 0.14em 0; }
.ar-stage.ar-done .ar-keepsake { opacity: 1; }

/* fade the live chrome out once the poem is done */
.ar-stage.ar-done .ar-reticle,
.ar-stage.ar-done .ar-tray { opacity: 0; transition: opacity 0.3s var(--ease); }

/* top-right reload — obvious once a poem is made */
.ar-reload {
  position: absolute; top: 14px; right: 14px;
  z-index: 6;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  opacity: 0; visibility: hidden;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.ar-reload svg { width: 22px; height: 22px; }
.ar-reload:hover { transform: scale(1) rotate(-35deg); color: var(--accent-ink); }
.ar-stage.ar-done .ar-reload { opacity: 1; visibility: visible; transform: scale(1); }

/* Pexels attribution under the viewport (updates to the current random photo) */
.ar-credit {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.ar-credit a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.ar-credit a:hover { color: var(--accent-ink); }

/* Touch / no-hover: the phone rests centred; you tap a line to choose it */
@media (hover: none) {
  .ar-stage.ar-live { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-pill, .ar-phone, .ar-world { transition: none !important; animation: none !important; }
  .ar-dim, .ar-keepsake { transition: none !important; }
}

/* ----------------------------------------------------------------------------
   22 · Dark mode — Clay dark theme (exact from Brand.swift dark variant)
   Toggled via [data-theme="dark"] on <html>. Light remains the brand default.
   --------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --cream:        #2A2622;
  --surface:      #353029;
  --hairline:     #46403A;
  --sky-top:      #292621;
  --sky-bottom:   #1F1C1A;
  --hill-back:    #383D36;
  --hill-mid:     #2E332B;
  --hill-front:   #242924;
  --hill-deep:    #16130F;
  --ink:          #EDE7DD;
  --ink-secondary:#A89F94;
  --ink-muted:    #9C9388;
  --accent:       #D08A63;
  --accent-ink:   #E3A47F;
  --sage:         #74BE86;
  --glass-bg:     rgba(53, 48, 41, 0.60);
  --glass-bg-strong: rgba(53, 48, 41, 0.86);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}
/* Paper grain: multiply vanishes on a dark base — switch to a faint screen tooth. */
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.035; }

/* Hill SVGs are baked-colour, so swap to the dark-palette variants. */
:root[data-theme="dark"] .hill-layer.l-back  { background-image: url("../assets/hero-hill-back-dark.svg"); }
:root[data-theme="dark"] .hill-layer.l-mid   { background-image: url("../assets/hero-hill-mid-dark.svg"); }
:root[data-theme="dark"] .hill-layer.l-front { background-image: url("../assets/hero-hill-front-dark.svg"); }
:root[data-theme="dark"] .hill-layer.l-fore  { background-image: url("../assets/hero-foreground-dark.svg"); }
:root[data-theme="dark"] .breathe__hills .b-back  { background-image: url("../assets/breathe-back-dark.svg"); }
:root[data-theme="dark"] .breathe__hills .b-mid   { background-image: url("../assets/breathe-mid-dark.svg"); }
:root[data-theme="dark"] .breathe__hills .b-front { background-image: url("../assets/breathe-front-dark.svg"); }
:root[data-theme="dark"] .breathe__hills .b-fore  { background-image: url("../assets/breathe-foreground-dark.svg"); }
:root[data-theme="dark"] .site-footer::before {
  background:
    url("../assets/footer-front-dark.svg") bottom / 100% 100% no-repeat,
    url("../assets/footer-back-dark.svg") bottom / 100% 86% no-repeat;
}
:root[data-theme="dark"] .frame .frame__hills { background-image: url("../assets/hero-hill-front-dark.svg"); }
:root[data-theme="dark"] .frame .frame__hills::before { background-image: url("../assets/hero-hill-back-dark.svg"); }
:root[data-theme="dark"] .page-hero__hills { background-image: url("../assets/hero-hill-front-dark.svg"); }

/* Footer cream text already reads on the deep dark floor; nudge opacity for calm. */
:root[data-theme="dark"] .footer__brand p,
:root[data-theme="dark"] .footer__links a { color: rgba(237, 231, 221, 0.82); }

/* ----------------------------------------------------------------------------
   23 · Light/Dark toggle pill (nav)
   --------------------------------------------------------------------------- */
.theme-toggle {
  width: 38px; height: 38px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.3s var(--ease), background 0.25s var(--ease);
}
.theme-toggle:hover { transform: translateY(-1px) rotate(-10deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; color: var(--accent); }
.theme-toggle .moon { display: inline; color: var(--accent); }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
