/* ============================================================
   Organically landing
   Palette: seafoam sage on warm cream, earthy accents
   Type: Syne (display) + DM Sans (text)
   ============================================================ */

:root {
  --sage: #6b8f71;
  --sage-deep: #5a7d60;
  --sage-text: #527257;
  --sage-dark: #3d5743;
  --ink: #22291f;
  --ink-soft: #4c5347;
  --cream: #f3efe4;
  --cream-deep: #eae4d3;
  --paper: #faf8f1;
  --clay: #b0783f;
  --radius: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
  /* Inline head style paints sage during intro; settle to cream after. */
  background: #6b8f71;
}

html:has(body.intro-done) {
  background: var(--cream);
}

::selection {
  background: rgba(107, 143, 113, 0.28);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  margin: 0;
  text-wrap: balance;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* Soft film grain over the whole page */
.grain {
  pointer-events: none;
  touch-action: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-text);
}

/* ---------- Intro splash (Hinge-style brand beat) ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #fff;
  transition:
    opacity 0.85s var(--ease-soft),
    visibility 0.85s;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.intro-leaf {
  width: clamp(36px, 5vw, 48px);
  height: clamp(36px, 5vw, 48px);
  flex: none;
  filter: drop-shadow(0 8px 24px rgba(34, 41, 31, 0.18));
}

.intro-name {
  display: inline-flex;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.intro-letter {
  display: inline-block;
  will-change: transform, opacity;
}

/* Leaf settles, vein draws, then letters type on with a soft rise. */
.can-animate .intro-leaf {
  opacity: 0;
  transform: scale(0.72) rotate(-12deg);
  animation: intro-leaf 0.8s var(--ease-soft) forwards;
}

.can-animate .intro-leaf-vein {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-vein 0.7s var(--ease-soft) 0.28s forwards;
}

.can-animate .intro-letter {
  opacity: 0;
  transform: translateY(0.4em);
  animation: intro-letter 0.48s var(--ease-soft) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.058s);
}

body:not(.can-animate) .intro-leaf,
body:not(.can-animate) .intro-letter {
  opacity: 1;
  transform: none;
}

body:not(.can-animate) .intro-leaf-vein {
  stroke-dashoffset: 0;
}

@keyframes intro-leaf {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-12deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes intro-vein {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes intro-letter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hold hero title + nav until splash clears, then rise together */
.can-animate:not(.intro-done) .hero-title .line > span {
  animation: none;
  transform: translateY(110%);
}

.can-animate:not(.intro-done) .nav .brand,
.can-animate:not(.intro-done) .nav .nav-cta {
  opacity: 0;
  transform: translateY(18px);
}

.can-animate.intro-done .hero-title .line > span {
  animation: rise 1.05s var(--ease-soft) forwards;
}

.can-animate.intro-done .nav .brand {
  animation: nav-rise 1.05s var(--ease-soft) forwards;
}

.can-animate.intro-done .nav .nav-cta {
  animation: nav-rise 1.05s var(--ease-soft) 0.14s forwards;
}

.can-animate.intro-done .hero-title .line:nth-child(2) > span {
  animation-delay: 0.14s;
}

@keyframes nav-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 56px);
  transition:
    background-color 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft),
    backdrop-filter 0.45s;
}

.nav.is-solid {
  background: rgba(243, 239, 228, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(34, 41, 31, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  transition: color 0.35s;
}

.nav.is-solid .brand {
  color: var(--ink);
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.leaf {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-cta {
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(107, 143, 113, 0.22) 100%
  );
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    0 8px 28px rgba(18, 24, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(18, 24, 17, 0.28);
  transition:
    background 0.3s,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    border-color 0.3s,
    color 0.3s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(107, 143, 113, 0.28) 100%
  );
  box-shadow:
    0 12px 32px rgba(18, 24, 17, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* On cream nav: keep liquid glass readable */
.nav.is-solid .nav-cta {
  border-color: rgba(107, 143, 113, 0.28);
  color: var(--sage-dark);
  text-shadow: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(243, 239, 228, 0.45) 48%,
    rgba(107, 143, 113, 0.18) 100%
  );
  box-shadow:
    0 8px 24px rgba(61, 87, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(107, 143, 113, 0.08);
}

.nav.is-solid .nav-cta:hover {
  border-color: rgba(107, 143, 113, 0.4);
  color: var(--ink);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(243, 239, 228, 0.55) 48%,
    rgba(107, 143, 113, 0.24) 100%
  );
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
  transform: scale(1.14);
  animation: hero-settle 2.4s var(--ease-soft) forwards;
}

@keyframes hero-settle {
  to {
    transform: scale(1.06);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(18, 24, 17, 0.78) 0%,
      rgba(18, 24, 17, 0.42) 28%,
      rgba(18, 24, 17, 0.12) 52%,
      transparent 72%
    ),
    linear-gradient(
      to right,
      rgba(18, 24, 17, 0.4) 0%,
      transparent 46%
    );
}

.hero-content {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(40px, 7vh, 72px);
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.05s var(--ease-soft) forwards;
}

/* No motion class → show title immediately (don’t rely on a killed animation). */
body:not(.can-animate) .hero-title .line > span {
  transform: none;
  animation: none;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.14s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-img {
    object-position: center 28%;
  }
}

/* Phone: full-bleed 9:16 hero; desktop keeps landscape hero.jpg */
@media (max-width: 700px) {
  .hero {
    min-height: 100svh;
    max-height: none;
    aspect-ratio: auto;
  }

  .hero-img {
    object-fit: cover;
    object-position: center 42%;
  }

  .hero-content {
    left: clamp(20px, 5vw, 28px);
    right: clamp(20px, 5vw, 28px);
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(28px, 7.2vw, 36px);
  }

  .hero-title .line {
    white-space: nowrap;
  }

  /* Mobile: no chalk oval — underline under “near” instead */
  .chalk-circle {
    display: none !important;
  }

  .chalk-word {
    padding: 0 0.04em 0.14em;
  }

  .chalk-word::after {
    content: "";
    display: block;
    position: absolute;
    left: 0.02em;
    right: 0.02em;
    bottom: 0.02em;
    height: 0.11em;
    border-radius: 999px;
    background: rgba(176, 120, 63, 0.88);
    transform: scaleX(0);
    transform-origin: left center;
  }

  body:not(.can-animate) .chalk-word::after,
  .can-animate .chalk-word.is-drawn::after {
    transform: scaleX(1);
  }

  .can-animate .chalk-word.is-drawn::after {
    animation: chalk-underline 0.7s var(--ease-soft) 0.08s both;
  }

  /* Static paths look dead on phone — hide when motion is off */
  body:not(.can-animate) .paths {
    display: none;
  }
}

@keyframes chalk-underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ---------- Email form ---------- */

.access {
  max-width: 520px;
}

.access-row {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.access input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.access input::placeholder {
  color: #97a08f;
}

.access button {
  flex: none;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sage-deep);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s,
    transform 0.3s var(--ease-out);
}

.access button:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.access button:active {
  transform: translateY(0);
}

.form-note {
  margin: 14px 4px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.form-msg {
  margin: 12px 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #d9e8dc;
}

.form-msg.is-error {
  color: #f2c9b8;
}

@media (max-width: 560px) {
  .access-row {
    flex-direction: column;
    padding: 10px;
    border-radius: 24px;
  }

  .access button {
    width: 100%;
  }
}

/* ---------- Belief ---------- */

.belief {
  position: relative;
  padding: clamp(110px, 16vh, 180px) clamp(20px, 4vw, 56px)
    clamp(70px, 10vh, 120px);
  background:
    radial-gradient(
      70% 55% at 50% 0%,
      rgba(107, 143, 113, 0.14),
      transparent 70%
    ),
    var(--cream);
  overflow: hidden;
}

.belief-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.belief h2 {
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  overflow: visible;
}

.belief h2 em {
  font-style: normal;
  color: var(--sage-text);
}

.chalk-word {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Fixed em box — hand-drawn oval path, not a perfect ellipse. */
.chalk-circle {
  position: absolute;
  left: -0.42em;
  right: -0.42em;
  top: -0.08em;
  bottom: -0.42em;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: none;
  display: block;
}

.chalk-ring {
  fill: none;
  stroke: rgba(176, 120, 63, 0.78);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.can-animate .chalk-ring {
  /* >1 hides the round linecap “dot” that peeks at dashoffset:1 */
  stroke-dashoffset: 1.08;
  opacity: 0;
}

/* Draw only once "near" itself is on screen — not when the h2 first peeks in. */
.can-animate .chalk-word.is-drawn .chalk-ring {
  animation: chalk-draw 1.15s var(--ease-soft) 0.12s forwards;
}

@keyframes chalk-draw {
  0% {
    opacity: 1;
    stroke-dashoffset: 1.08;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.belief-copy {
  max-width: 540px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.paths {
  position: relative;
  width: 100vw;
  margin: clamp(48px, 9vh, 100px) 0 0;
  left: 50%;
  transform: translateX(-50%);
}

.paths-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.paths .path-a,
.paths .path-b {
  stroke-dashoffset: 0;
}

.paths-mark {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 6px 16px rgba(90, 125, 96, 0.22));
}

/* JS scrubs stroke-dashoffset and the mark with scroll.
   Without .can-animate (reduced motion) everything stays drawn. */
.can-animate .paths .paths-mark {
  opacity: 0;
  transform: scale(0.6);
}

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

.how {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--cream);
}

.how-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.how-photo {
  margin: 0;
}

.how-photo-frame {
  overflow: hidden;
  border-radius: 4px 28px 28px 4px;
  box-shadow:
    0 30px 70px rgba(34, 41, 31, 0.16),
    0 0 0 1px rgba(34, 41, 31, 0.04);
}

.how-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.35;
  object-fit: cover;
  object-position: 48% center;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-soft);
}

.can-animate .how-photo.reveal.in img {
  transform: scale(1);
}

.how-photo figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(30px, 4.5vh, 48px);
}

.steps li {
  display: flex;
  gap: 20px;
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(107, 143, 113, 0.55);
  color: var(--sage-text);
  background: transparent;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition:
    background-color 0.5s var(--ease-soft),
    color 0.5s var(--ease-soft),
    border-color 0.5s var(--ease-soft),
    transform 0.5s var(--ease-soft);
}

.can-animate .steps li.in .step-num {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  transform: scale(1.05);
}

.steps h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .how-inner {
    grid-template-columns: 1fr;
  }

  .how-photo-frame {
    border-radius: 18px;
  }

  .how-photo img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Interlude ---------- */

.interlude {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 68vh, 620px);
  overflow: hidden;
}

.interlude-media {
  position: absolute;
  inset: 0;
}

.interlude-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.1);
}

.interlude-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      70% 70% at 50% 50%,
      rgba(18, 24, 17, 0.28),
      rgba(18, 24, 17, 0.62)
    );
}

.interlude-line {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 56px);
  text-align: center;
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

/* ---------- Trust ---------- */

.trust {
  padding: clamp(64px, 9vh, 100px) clamp(20px, 4vw, 56px);
  background: var(--cream-deep);
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(28px, 4vw, 64px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sage-dark);
}

.trust-leaf {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.9;
}

/* ---------- Close ---------- */

.close {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(580px, 92vh, 820px);
  overflow: hidden;
  color: #fff;
}

.close-media {
  position: absolute;
  inset: 0;
}

.close-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.1);
}

.close-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      80% 70% at 50% 45%,
      rgba(18, 23, 17, 0.42),
      rgba(18, 23, 17, 0.72)
    );
}

.close-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 56px);
  text-align: center;
}

.close-brand {
  margin: 0 0 14px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.close-content h2 {
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.close-content > p {
  margin: 16px 0 36px;
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.88);
}

.close .access {
  margin: 0 auto;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 36px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: rgba(243, 239, 228, 0.85);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
}

.footer-trust {
  margin: 0;
  font-size: 14px;
}

.footer-legal {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-copy {
  font-size: 14px;
  color: rgba(243, 239, 228, 0.55);
}

.footer-legal a {
  color: rgba(243, 239, 228, 0.85);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }

  .belief h2 {
    font-size: clamp(28px, 7.6vw, 36px);
    line-height: 1.32;
  }

  .paths {
    width: min(100vw, 560px);
    margin-top: clamp(40px, 8vh, 72px);
  }

  .paths .path-a,
  .paths .path-b {
    /* viewBox is 1200 wide — need high user units to read as ~4px on a phone */
    stroke-width: 14 !important;
  }

  .paths-svg {
    min-height: 168px;
  }
}

/* ---------- Legal pages ---------- */

.legal-page {
  background: var(--cream);
}

.legal-page .nav {
  position: static;
}

.legal-page .grain {
  opacity: 0.03;
}

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 4vw, 48px)
    clamp(70px, 10vh, 120px);
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.legal h2 {
  margin-top: 40px;
  font-size: 21px;
  font-weight: 700;
}

.legal h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
}

.legal p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.legal a {
  color: var(--sage-text);
}

.legal-updated {
  font-size: 14px;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Scroll reveals ---------- */

.can-animate .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.15s var(--ease-soft),
    transform 1.15s var(--ease-soft);
}

.can-animate .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.can-animate .steps li:nth-child(2).in {
  transition-delay: 0.12s;
}

.can-animate .steps li:nth-child(3).in {
  transition-delay: 0.24s;
}

.can-animate .trust-list li:nth-child(2).in {
  transition-delay: 0.1s;
}

.can-animate .trust-list li:nth-child(3).in {
  transition-delay: 0.2s;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-img,
  .hero-title .line > span,
  .nav .brand,
  .nav .nav-cta,
  .intro-leaf,
  .intro-leaf-vein,
  .intro-letter {
    animation: none !important;
  }

  .hero-img {
    transform: none;
  }

  /* Critical: base rule leaves title at translateY(110%). Killing the
     rise animation without resetting transform hides the headline forever. */
  .hero-title .line > span {
    transform: none !important;
  }

  .nav .brand,
  .nav .nav-cta,
  .intro-leaf,
  .intro-letter {
    opacity: 1;
    transform: none;
  }

  .intro-leaf-vein {
    stroke-dashoffset: 0;
  }

  [data-parallax] {
    transform: none !important;
  }

  .chalk-ring {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .chalk-word::after {
    animation: none !important;
    transform: scaleX(1) !important;
  }

  .can-animate .reveal {
    opacity: 1;
    transform: none;
  }

  .can-animate .paths .paths-mark {
    opacity: 1;
    transform: none;
  }
}
