/* ============================================================================
   Bloom + Spark · page styles  (v3, 2026-09-30)
   ----------------------------------------------------------------------------
   Two real brand systems, lifted from the apps themselves:

   BLOOM  (projects/aicoach/prototype/src/styles.css) — a field journal.
          Caveat headings, Patrick Hand body, cream paper #FBF3E0, ink #3A3128,
          terracotta #C75B39, wobbly hand-drawn border radii, 2px ink lines.
   SPARK  (projects/spark/spark-site/index.html) — warm and bright.
          Nunito 600–900, cream #FFF8EC, brown #2E2218, amber #8B6914 / #E8A838,
          soft sun glows (#F5DFA0, #F2C4A0).

   Sections carry data-brand="bloom" | "spark" | "turn". Nested brand blocks
   (the two columns of the turn, the two offer cards) use a doubled selector so
   they win over the section they sit in.
   ========================================================================== */

:root {
  --sc-canvas: transparent;
  --sc-ink: #3A3128;
  --sc-ink-soft: #6F6250;
  --sc-accent: #C75B39;
  --sc-accent-ink: #FDF8EC;
  --sc-font-display: "Caveat", "Segoe Print", cursive;
  --sc-font-text: "Patrick Hand", "Segoe Print", cursive;
  --sc-font-mono: "Patrick Hand", cursive;
  --sc-shadow-color: 30 30% 25%;

  /* Bloom */
  --b-paper: #FBF3E0;  --b-paper-l: #FDF8EC;  --b-ink: #3A3128;  --b-soft: #6F6250;
  --b-terra: #C75B39;  --b-gold: #F0C75E;     --b-green: #3E8E6D;
  --wob1: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wob2: 20px 240px 20px 230px / 240px 20px 250px 20px;
  --wob3: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --wob-sm: 16px 120px 16px 130px / 130px 16px 140px 16px;
  /* Spark */
  --s-bg: #FFF8EC;  --s-ink: #2E2218;  --s-soft: #7A6850;  --s-amber: #8B6914;
  --s-amber-m: #E8A838;  --s-amber-l: #FEF3C7;  --s-border: #E6D7B8;  --s-night: #221F33;

  --bar-h: 64px;
}

html { background: var(--b-paper); }
body { background: transparent; color: var(--b-ink); -webkit-font-smoothing: antialiased; }
main { position: relative; z-index: 1; }
::selection { background: #F6D5DC; color: var(--b-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-sc-progress] { background: var(--b-terra) !important; height: 2px !important; opacity: 0.7; }
:root.is-spark [data-sc-progress] { background: var(--s-amber-m) !important; }

/* ================================================================ ground == */
.ground { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.ground > span { position: absolute; inset: 0; transition: opacity 1200ms ease; }
.ground__bloom { background: var(--b-paper); }
.ground__spark { background: var(--s-bg); opacity: 0; overflow: hidden; }
:root.is-spark .ground__spark { opacity: 1; }
.sun { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.sun--a { width: 70vmax; height: 70vmax; left: -35vmax; top: -35vmax; background: radial-gradient(closest-side, #F5DFA0 0%, rgba(245, 223, 160, 0.45) 45%, rgba(245, 223, 160, 0) 100%); }
.sun--b { width: 60vmax; height: 60vmax; left: -30vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(242, 196, 160, 0.7) 0%, rgba(242, 196, 160, 0) 100%); }
/* paper tooth: fractal noise, multiplied, heavier on Bloom's journal paper */
.ground__grain {
  opacity: 0.55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.38 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root.is-spark .ground__grain { opacity: 0.22; }

/* Bloom's margin studies: multiplied onto the paper, drawn in from the root up */
.margin { position: absolute; transition: opacity 900ms ease; bottom: 2vh; height: 88vh; width: auto; max-width: none; mix-blend-mode: multiply; clip-path: inset(calc(100% - var(--draw, 0) * 100%) 0 0 0); will-change: clip-path, transform; }
.margin--l { left: -1vw; }
.margin--r { right: 0; bottom: 6vh; height: 84vh; }
:root.is-spark .margin { opacity: 0; }
@media (max-width: 900px) { .margin { opacity: 0.35; height: 60vh; } .margin--r { height: 56vh; } }

/* ================================================================== type == */
.display { margin: 0; font-weight: 400; text-wrap: balance; }
.display em { font-style: normal; }

/* Spark first, so nested Bloom blocks below can override inside Spark sections */
[data-brand="spark"] { color: var(--s-ink); }
[data-brand="spark"] .display { font-family: "Nunito", system-ui, sans-serif; font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
[data-brand="spark"] .display em { color: var(--s-amber); background: linear-gradient(transparent 62%, var(--s-amber-l) 62%, var(--s-amber-l) 92%, transparent 92%); padding: 0 0.06em; }
[data-brand="spark"] .lede, [data-brand="spark"] p { font-family: "Nunito", system-ui, sans-serif; }
[data-brand="spark"] .lede { color: var(--s-soft); font-weight: 600; }
[data-brand="spark"] .kicker { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-amber); }

[data-brand="bloom"], [data-brand] [data-brand="bloom"] { color: var(--b-ink); }
[data-brand="bloom"] .display, [data-brand] [data-brand="bloom"] .display { font-family: "Caveat", "Segoe Print", cursive; font-weight: 700; letter-spacing: -0.005em; line-height: 0.92; }
[data-brand="bloom"] .display em, [data-brand] [data-brand="bloom"] .display em {
  color: var(--b-terra); background: none; padding: 0 0 0.12em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C40 3 70 10 105 6 S170 3 197 7' fill='none' stroke='%23C75B39' stroke-width='2.4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 0.2em; background-position: 0 92%;
}
[data-brand="bloom"] p, [data-brand="bloom"] li, [data-brand] [data-brand="bloom"] p { font-family: "Patrick Hand", "Segoe Print", cursive; }
[data-brand="bloom"] .lede { color: var(--b-soft); font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem); line-height: 1.5; }
[data-brand="bloom"] .kicker, [data-brand] [data-brand="bloom"] .kicker { font-family: "Patrick Hand", cursive; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: none; color: var(--b-terra); }

.display--xl { font-size: clamp(3rem, 1.6rem + 5.2vw, 7rem); }
.display--lg { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 5.2rem); }
.display--md { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); }
[data-brand="bloom"] .display--xl { font-size: clamp(3.6rem, 2rem + 6vw, 8.2rem); }
[data-brand="bloom"] .display--lg, [data-brand] [data-brand="bloom"] .display--lg { font-size: clamp(3rem, 1.8rem + 4.4vw, 6.4rem); }

.kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.2rem; }
.kicker__rule { width: 28px; height: 2px; background: currentColor; opacity: 0.55; border-radius: 2px; }
.lede { max-width: 40ch; margin: 1.4rem 0 0; font-size: 1.08rem; line-height: 1.65; }

/* word reveal (page.js wraps every word) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.24em 0.2em 0.18em 0.08em; margin: -0.24em -0.2em -0.18em -0.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.split.is-on .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .split .w > span { transform: none; transition: none; } }

/* =============================================================== buttons == */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem;
  text-decoration: none; cursor: pointer;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 250ms ease, background-color 250ms ease;
}
/* Bloom: the app's .ink-btn */
[data-brand="bloom"] .btn, [data-brand] [data-brand="bloom"] .btn {
  padding: 0.55rem 1.4rem 0.65rem;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--b-ink); background: var(--b-paper-l);
  border: 2px solid var(--b-ink); border-radius: var(--wob3);
  box-shadow: 3px 4px 0 var(--b-ink);
}
[data-brand="bloom"] .btn:hover, [data-brand] [data-brand="bloom"] .btn:hover { transform: translate(-1px, -2px) rotate(-0.6deg); box-shadow: 5px 6px 0 var(--b-ink); }
/* Spark: a warm pill */
[data-brand="spark"] .btn {
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1rem;
  color: #FFF8EC; background: var(--s-ink);
  box-shadow: 0 10px 24px -12px rgba(46, 34, 24, 0.55);
}
[data-brand="spark"] .btn:hover { transform: translateY(-2px); background: var(--s-amber); }
[data-brand="spark"] .btn--bloom { background: var(--s-ink); }

/* =================================================================== bar == */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--b-paper) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 900ms ease;
  font-family: "Patrick Hand", cursive; font-size: 1.1rem;
}
:root.is-spark .bar { background: color-mix(in srgb, var(--s-bg) 82%, transparent); font-family: "Nunito", sans-serif; font-size: 0.85rem; font-weight: 700; }
.bar a { color: inherit; text-decoration: none; }
.bar__mark { justify-self: start; position: relative; display: grid; }
.bar__mark .mark { grid-area: 1 / 1; transition: opacity 700ms ease; white-space: nowrap; }
.mark--bloom { font-family: "Caveat", cursive; font-weight: 700; font-size: 1.9rem; color: var(--b-ink); }
.mark--spark { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--s-ink); opacity: 0; align-self: center; }
:root.is-spark .mark--bloom { opacity: 0; }
:root.is-spark .mark--spark { opacity: 1; }
.bar__mid { margin: 0; color: var(--b-soft); }
.bar__mid span { color: var(--b-terra); padding: 0 0.2rem; }
:root.is-spark .bar__mid, :root.is-spark .bar__nav { color: var(--s-ink); }
:root.is-spark .bar__mid span { color: var(--s-amber-m); }
.bar__nav { justify-self: end; display: flex; align-items: center; gap: 1.4rem; color: var(--b-ink); }
.bar__cta { padding: 0.35rem 1rem 0.45rem; border: 2px solid currentColor; border-radius: var(--wob-sm); }
:root.is-spark .bar__cta { border-radius: 999px; padding: 0.5rem 1.1rem; background: var(--s-ink); color: #FFF8EC; border-color: var(--s-ink); }
@media (max-width: 700px) { .bar__mid, .bar__link { display: none; } .bar { grid-template-columns: 1fr auto; } }

/* ======================================================== click garden == */
.garden, .petals, .sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.petals { z-index: 54; mix-blend-mode: multiply; transition: opacity 900ms ease; }
.garden { z-index: 55; }
.sparks { z-index: 57; }

/* ================================================================ flora == */
/* Real flowers on a white studio backdrop, pre-multiplied into Bloom's paper
   colour, then feathered at the edge with a radial mask so the frame dissolves. */
.flora { position: absolute; left: 50%; top: 50%; width: min(86vh, 60vw); aspect-ratio: 3 / 4; height: auto; max-height: 92vh; transform: translate(-50%, -48%); pointer-events: none; }
.flora__f { position: absolute; inset: 0; will-change: transform, opacity; transform-origin: 50% 55%; }
.flora__f > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); }
.flora__bud, .flora__full { transform-origin: 50% 58%; }
.flora__vid { opacity: 0; background: transparent; }
.flora__label {
  position: absolute; left: 50%; bottom: 10vh; transform: translateX(-50%); z-index: 3; margin: 0; white-space: nowrap;
  font-family: "Caveat", cursive !important; font-weight: 700; font-size: 1.8rem; color: var(--b-ink);
}
.flora__label em { font-family: "Patrick Hand", cursive; font-style: normal; font-weight: 400; font-size: 1rem; color: var(--b-soft); margin-left: 0.4rem; }
.flora__label.is-pop { animation: pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { 0% { transform: translateX(-50%) scale(0.85); opacity: 0.3; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
@media (max-width: 900px) { .flora { top: calc(var(--bar-h) - 2vh); width: min(80vw, 44vh); transform: translateX(-50%); } .flora__label { bottom: auto; top: calc(var(--bar-h) + 6px); left: auto; right: 16px; transform: none; font-size: 1.2rem; }
  .flora__label.is-pop { animation: none; } }

/* ============================================================= monster == */
.monster {
  --w: clamp(104px, 10.5vw, 160px);
  position: fixed; left: 0; top: 0; z-index: 56;
  width: var(--w); height: calc(var(--w) * 1.2545);
  pointer-events: none; cursor: pointer;
  transform: translate3d(calc(var(--mx, 80vw) - 50%), calc(var(--my, 96vh) - 100%), 0);
  will-change: transform;
}
.monster__wrap { position: absolute; inset: 0; transform: scale(0); opacity: 0; transform-origin: 50% 100%;
  transition: transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease; }
.monster.is-here { pointer-events: auto; }
.monster.is-here .monster__wrap { transform: scale(1); opacity: 1; }
.monster__body {
  position: absolute; inset: 0; translate: 0 var(--arc, 0px);
  width: 100%; height: 100%; display: block;
  transform-origin: 50% 100%;
  transform: scaleX(var(--face, 1)) rotate(var(--lean, 0deg)) scale(var(--sqx, 1), var(--sqy, 1));
}
.monster__shadow {
  position: absolute; left: 16%; right: 16%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(46, 34, 24, 0.3), rgba(46, 34, 24, 0));
  transform: scale(var(--shadow, 1)); opacity: var(--shadow, 1);
}
@keyframes breathe { 0%, 100% { transform: scaleX(var(--face, 1)) scale(1, 1); } 50% { transform: scaleX(var(--face, 1)) scale(1.02, 0.975); } }
@media (prefers-reduced-motion: reduce) { .monster__body { animation: none; } }
.monster-hint { margin: 1.4rem 0 0; font-size: 0.92rem; font-weight: 700; color: var(--s-amber); }

/* ============================================================ 1 · BLOOM == */
.bloom {
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
  padding: var(--bar-h) clamp(1.25rem, 4vw, 4rem) 0; overflow: hidden;
}
.flower { position: absolute; left: 50%; top: 50%; width: min(84vh, 64vw); height: min(84vh, 64vw); transform: translate(-50%, -46%); pointer-events: none; }
.bloom__meta {
  position: absolute; left: 0; right: 0; top: calc(var(--bar-h) + 0.6rem);
  display: flex; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 4rem);
  font-family: "Patrick Hand", cursive; font-size: 1rem; color: var(--b-soft);
}
.bloom__col { position: relative; z-index: 2; display: grid; }
.bloom__col > .beat { grid-area: 1 / 1; }
.bloom__col--left { grid-column: 1; align-self: center; }
.bloom__col--right { grid-column: 3; align-self: end; margin-bottom: 16vh; }
.bloom__col--left .display { max-width: 7ch; }
.note__h { margin: 0 0 0.3rem; font-family: "Caveat", cursive !important; font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--b-terra); }
.note__p { margin: 0; max-width: 28ch; font-size: 1.2rem; line-height: 1.45; color: var(--b-soft); }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 28ch; }
.weeks li { font-size: 1.12rem; line-height: 1.4; color: var(--b-soft); padding-top: 0.8rem; border-top: 2px dashed rgba(58, 49, 40, 0.18); }
.weeks strong { display: block; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--b-ink); margin-bottom: 0.15rem; }
.bloom__hint { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); margin: 0; font-family: "Caveat", cursive !important; font-size: 1.55rem; color: var(--b-soft); transition: opacity 800ms ease; }
.bloom__hint.is-gone { opacity: 0; }
@media (max-width: 900px) {
  .bloom { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; align-items: end; padding-bottom: 7vh; }
  .flower { top: calc(var(--bar-h) + 1vh); width: min(92vw, 50vh); height: min(92vw, 50vh); transform: translateX(-50%); }
  .bloom__meta, .bloom__hint { display: none; }
  .bloom__col--left { grid-column: 1; grid-row: 2; }
  .bloom__col--right { grid-column: 1; grid-row: 3; margin: 1rem 0 0; align-self: start; }
  .bloom__col--left .display { max-width: 12ch; font-size: clamp(3rem, 13vw, 4.2rem); }
  .weeks { gap: 0.3rem; } .weeks li { padding-top: 0.3rem; font-size: 1rem; } .weeks li:first-child { display: none; }
}

/* ================================================================ phones == */
.phone { border-radius: 34px; overflow: hidden; border: 7px solid #2E2218; background: #2E2218; box-shadow: 0 30px 60px -28px rgba(46, 34, 24, 0.45); max-width: 100%; }
[data-brand="bloom"] .phone { border-color: var(--b-ink); box-shadow: 6px 8px 0 rgba(58, 49, 40, 0.14); }
.phone img { width: 100%; height: auto; display: block; border-radius: 27px; }
.phone--video { position: relative; aspect-ratio: 1284 / 2778; }
.phone--video img, .phone--video video { border-radius: 27px; }

/* ============================================================== 2 · MAP == */
.map { height: 100vh; height: 100svh; display: grid; grid-template-columns: 1.6fr 0.7fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: var(--bar-h) clamp(1.25rem, 8vw, 10rem) 0; }
.map__body { display: grid; gap: 1.4rem; align-content: center; }
.map__head { max-width: 44rem; }
.map__head .display { max-width: 12ch; margin-bottom: 1rem; }
.map__sub { margin: 0; max-width: 34ch; font-size: 1.25rem; color: var(--b-soft); }
.map__canvas svg { width: 100%; height: auto; overflow: visible; }
.map__note { margin: 0; max-width: 44ch; font-size: 1.1rem; color: var(--b-soft); }
.map__real { margin: 0; justify-self: center; width: min(250px, 46vw); }
.gm-node text { font-family: "Caveat", cursive; font-size: 24px; font-weight: 700; }
.gm-note { font-family: "Patrick Hand", cursive; font-size: 19px; fill: #3A3128; }
.gm-note--sm { font-size: 16px; }
.gm-link { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.gm-base { stroke: #8A7A63; opacity: 0.5; }
@media (max-height: 820px) and (min-width: 761px) {
  .map__head .display { font-size: clamp(2.4rem, 7.5vh, 4.6rem); }
  .map__canvas svg { max-height: 36vh; }
  .map__sub { font-size: 1.1rem; }
  .map__real { width: min(210px, 30vh); }
}
@media (max-width: 760px) { .map { grid-template-columns: 1fr; align-content: center; gap: 1rem; } .map__real { display: none; } }

/* ============================================================ 3 · STACK == */
.sect { padding-block: clamp(6rem, 14vh, 11rem); }
.stack__head { max-width: 44rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.stack { list-style: none; margin: 0; padding: 0; }
.stack__card {
  position: sticky; top: calc(var(--bar-h) + 28px + var(--n, 0) * 16px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  margin-bottom: clamp(2rem, 8vh, 5rem); padding: clamp(1.75rem, 3.4vw, 3.5rem);
  background: var(--b-paper-l); border: 2px solid var(--b-ink); border-radius: var(--wob1);
  box-shadow: 6px 8px 0 rgba(58, 49, 40, 0.1);
}
.stack__card:nth-child(even) { border-radius: var(--wob2); }
.stack__card:last-child { margin-bottom: 0; }
.stack__step { margin: 0 0 0.6rem; font-size: 1.2rem; color: var(--b-terra); }
.stack__text h3 { margin: 0 0 1rem; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.8rem); line-height: 0.95; max-width: 13ch; }
.stack__text p { margin: 0; color: var(--b-soft); max-width: 40ch; font-size: 1.15rem; line-height: 1.5; }
.stack__shot { margin: 0; justify-self: center; width: min(230px, 62%); }
.stack__shot img { width: 100%; height: auto; display: block; border-radius: 22px; border: 2px solid var(--b-ink); }
@media (max-width: 820px) { .stack__card { grid-template-columns: 1fr; top: calc(var(--bar-h) + 12px + var(--n, 0) * 10px); } .stack__shot { width: min(170px, 50%); order: -1; } }

/* ============================================================= 4 · TURN == */
.turn { height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; padding: var(--bar-h) clamp(1.25rem, 4vw, 4rem) 0; overflow: hidden; }
.flower--turn { width: min(76vh, 56vw); height: min(76vh, 56vw); }
.turn__col { position: relative; z-index: 2; }
.turn__col--left { grid-column: 1; }
.turn__col--right { grid-column: 3; text-align: right; }
.turn__col .display { max-width: 8ch; }
.turn__col--right .display { margin-left: auto; }
.turn__foot { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); margin: 0; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s-soft); }
@media (max-width: 900px) {
  .turn { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: end; padding-bottom: 14vh; }
  .flower--turn { top: calc(var(--bar-h) + 2vh); width: min(90vw, 50vh); height: min(90vw, 50vh); transform: translateX(-50%); }
  .turn__col { grid-column: 1 !important; grid-row: 2; text-align: left !important; }
  .turn__col--right .display { margin-left: 0; }
  .turn__col .display { max-width: 11ch; font-size: clamp(2.6rem, 11vw, 3.6rem); }
}

/* ============================================================= 5 · WAKE == */
.wake { height: 100vh; height: 100svh; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: var(--bar-h) clamp(1.25rem, 6vw, 8rem) 0; }
.wake__copy { max-width: 34rem; }
.wake__phone { justify-self: center; width: min(290px, 60vw, 38vh); margin: 0; }
@media (max-width: 820px) { .wake { grid-template-columns: 1fr; align-content: center; gap: 1.5rem; } .wake__phone { order: -1; width: min(200px, 44vw, 34vh); } .wake__copy .lede { margin-top: 1rem; font-size: 0.95rem; } }

/* ============================================================ 6 · ROOMS == */
.act--rooms [data-sc-stage] { padding-top: var(--bar-h); }
.rail-h { display: flex; align-items: center; min-height: 100%; gap: clamp(1.5rem, 4vw, 4.5rem); padding-inline: clamp(1.25rem, 6vw, 8rem); }
.rail-h__lead { flex: 0 0 auto; width: min(26rem, 80vw); }
.rail-h__note { flex: 0 0 auto; width: min(22rem, 70vw); }
.rail-h__note p { margin: 0; font-weight: 800; font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; }
.plate { flex: 0 0 auto; width: clamp(210px, 17vw, 290px); }
.plate .phone { width: 100%; margin-bottom: 1.3rem; border-width: 6px; }
.plate h3 { margin: 0 0 0.3rem; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; }
.plate p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--s-soft); font-weight: 600; }

/* ============================================================ 7 · NIGHT == */
.act--night { background: var(--s-night); color: #F6EFE0; }
.act--night .display em { color: #F0C75E; background: none; }
.night { height: 100vh; height: 100svh; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: var(--bar-h) clamp(1.25rem, 6vw, 8rem) 0; background: var(--s-night); }
.act--night .kicker { color: #E8A838; }
.night__art { justify-self: center; }
.phone--ghost { width: min(250px, 50vw, 60vh); border-color: #3A3552; opacity: 0.92; }
.night__copy { max-width: 36rem; }
.night__copy .display { margin-bottom: 2rem; }
.poem { margin: 0; padding: 0; border: 0; }
.poem p { margin: 0 0 0.45rem; font-weight: 600; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem); line-height: 1.45; color: #E9E2D6; }
.poem cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #E8A838; }
@media (max-width: 820px) { .night { grid-template-columns: 1fr; align-content: center; } .night__art { display: none; } .poem p { font-size: 1.02rem; } }

/* ============================================================ 8 · CLOSE == */
.close__head { max-width: 46rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
.offer__card { position: relative; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.offer__card--bloom { background: var(--b-paper-l); border: 2px solid var(--b-ink); border-radius: var(--wob1); box-shadow: 6px 8px 0 rgba(58, 49, 40, 0.12); }
.offer__card--spark { background: #FFFFFF; border: 1px solid var(--s-border); border-radius: 32px; box-shadow: 0 30px 60px -36px rgba(139, 105, 20, 0.45); }
.offer__kicker { margin: 0 0 1.6rem; }
.offer__card--bloom .offer__kicker { font-size: 1.2rem; color: var(--b-terra); }
.offer__card--spark .offer__kicker { font-weight: 800; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-amber); }
.offer__card h3 { line-height: 0.9; }
.offer__card--bloom h3 { font-size: clamp(4rem, 2.6rem + 3.6vw, 6.4rem); color: var(--b-green); }
.offer__card--spark h3 { font-size: clamp(3.2rem, 2rem + 3vw, 5rem); color: var(--s-amber); }
.offer__tag { margin: 0.8rem 0 1.2rem; }
.offer__card--bloom .offer__tag { font-family: "Caveat", cursive !important; font-weight: 700; font-size: 1.9rem; color: var(--b-ink); }
.offer__card--spark .offer__tag { font-weight: 800; font-size: 1.25rem; color: var(--s-ink); }
.offer__body { margin: 0; max-width: 36ch; line-height: 1.6; flex: 1; }
.offer__card--bloom .offer__body { font-size: 1.15rem; color: var(--b-soft); }
.offer__card--spark .offer__body { font-size: 0.98rem; font-weight: 600; color: var(--s-soft); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }

/* ============================================================ 9 · WATCH == */
.watch__head { max-width: 40rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.watch__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); justify-items: center; }
.watch__item { margin: 0; display: grid; justify-items: center; gap: 1.3rem; }
.watch__phone { width: min(290px, 74vw); }
.watch__phone video { width: 100%; height: auto; display: block; background: #000; }
.watch__cap { margin: 0; max-width: 36ch; text-align: center; font-size: 0.95rem; line-height: 1.55; color: var(--s-soft); font-weight: 600; }
.watch__cap strong { display: block; margin-bottom: 0.2rem; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--s-ink); }
@media (max-width: 760px) { .watch__pair { grid-template-columns: 1fr; } }

.foot { margin-top: clamp(5rem, 14vh, 9rem); padding: 2rem 0 7rem; border-top: 1px solid var(--s-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--s-soft); }
.foot p { margin: 0; }
.foot a { color: var(--s-ink); text-decoration: none; border-bottom: 1px solid var(--s-border); }
.foot__legal { display: flex; gap: 1.5rem; }

/* ============================================================ picker (v5) == */
.bloom__foot { position: absolute; left: 50%; bottom: 2.6vh; transform: translateX(-50%); z-index: 4; display: grid; justify-items: center; gap: 0.35rem; }
.picker { display: flex; gap: clamp(6px, 0.9vw, 12px); }
.picker__b {
  --ink: #3A3128;
  width: clamp(40px, 3.6vw, 54px); height: clamp(40px, 3.6vw, 54px); padding: 3px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  box-shadow: 0 0 0 1.5px transparent;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
}
.picker__b img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.picker__b:hover { transform: translateY(-3px) scale(1.08); }
.picker__b.is-on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.picker__b:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.bloom__foot .flora__label { position: static; transform: none; font-size: 1.55rem; line-height: 1; }
.bloom__foot .flora__label.is-pop { animation: pop2 520ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop2 { 0% { transform: scale(0.85); opacity: 0.3; } 100% { transform: scale(1); opacity: 1; } }
.bloom__foot .bloom__hint { position: static; transform: none; font-size: 1.1rem; margin: 0; white-space: nowrap; }
.plant-note { margin: 0; font-family: "Caveat", cursive !important; font-weight: 700; font-size: 1.45rem; color: var(--b-terra); transform: rotate(-2deg); }
.plant-note.is-planted { opacity: 0.5; transition: opacity 800ms ease; }
@media (max-width: 900px) {
  .flora { width: min(66vw, 34vh); top: calc(var(--bar-h) + 1vh); }
  .bloom__foot { top: calc(var(--bar-h) + 1vh + min(66vw, 34vh) * 1.04); bottom: auto; }
  .bloom__col--left .kicker { display: none; }
  .bloom__foot .flora__label, .bloom__foot .bloom__hint { display: none; }
  .picker__b { width: 36px; height: 36px; }
  .bloom__meta { display: flex; top: auto; bottom: 1.2vh; justify-content: center; }
  .bloom__meta > span { display: none; }
  .plant-note { font-size: 1.15rem; }
}

/* phone hero: a top-down stack (flower, picker, words) instead of bottom-aligned copy,
   so short phones cannot push the headline up into the flower */
@media (max-width: 900px) {
  .bloom { --fw: min(62vw, 30vh); align-content: start; align-items: start; grid-template-rows: auto auto;
    padding-top: calc(var(--bar-h) + 1vh + var(--fw) * 1.04 + 50px); padding-bottom: 0; }
  .flora { width: var(--fw); }
  .bloom__foot { top: calc(var(--bar-h) + 1vh + var(--fw) * 1.04 - 4px); }
  .bloom__col--left { grid-row: 1; }
  .bloom__col--right { grid-row: 2; margin-top: 0.9rem; }
  .bloom__col--left .display { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
}

/* ================================================== v6 · a quieter hero == */
/* Premium is restraint: one focal point, smaller type, more air. */
.act--bloom .bloom__col--left .display {
  font-size: clamp(2.5rem, 1.4rem + 2.7vw, 4.4rem);
  font-weight: 600; line-height: 1.02; letter-spacing: 0; max-width: 9.5ch;
}
.act--bloom .bloom__col--left .display em { background-size: 100% 0.13em; }
.act--bloom .kicker { font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.04em; }
.act--bloom .kicker__rule { width: 22px; height: 1.5px; }
.bloom__col--left { padding-left: clamp(0rem, 2vw, 2rem); }
.bloom__col--right .note__h { font-size: 1.5rem; }
.bloom__col--right .note__p, .weeks li { font-size: 1.05rem; }
.bloom__meta { display: none !important; }
.bloom__foot { gap: 0.2rem; }
.bloom__foot .flora__label { font-size: 1.3rem; font-weight: 600; }
.picker__b { width: clamp(36px, 3vw, 46px); height: clamp(36px, 3vw, 46px); }
.touch-hint { display: none; margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--b-soft); }
@media (hover: none), (max-width: 900px) { .touch-hint { display: block; } }
.touch-hint.is-planted { opacity: 0; transition: opacity 800ms ease; }

/* the pointer hint */
.cursor-hint {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0);
  opacity: 0; transition: opacity 400ms ease;
}
.cursor-hint.is-on { opacity: 1; }
.cursor-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--b-terra); box-shadow: 0 0 0 5px rgba(199, 91, 57, 0.12); }
.cursor-hint span {
  font-family: "Caveat", cursive; font-weight: 600; font-size: 1.15rem; line-height: 1; color: var(--b-terra);
  padding: 0.2rem 0.55rem 0.3rem; border-radius: 999px; background: rgba(253, 248, 236, 0.85);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
:root.is-spark .cursor-hint i { background: var(--s-amber-m); box-shadow: 0 0 0 5px rgba(232, 168, 56, 0.16); }
:root.is-spark .cursor-hint span { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 0.78rem; color: var(--s-amber); background: rgba(255, 248, 236, 0.9); }
@media (hover: none) { .cursor-hint { display: none; } }

/* ============================================== v7 · the gift-map screen == */
/* Same restraint as the hero: modest headline, one line of copy, a column
   that clears the pencil sketch, the phone brought in, all sized to fit. */
.act--map .map {
  grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 6rem);
  align-items: center; align-content: center;
  padding: calc(var(--bar-h) + 3vh) clamp(1.5rem, 7vw, 8rem) 4vh clamp(1.5rem, 17vw, 18rem);
}
.act--map .map__body { gap: clamp(0.6rem, 2.2vh, 1.6rem); max-width: 860px; }
.act--map .map__head .display { font-size: clamp(2.2rem, 1.2rem + 2.3vw, 3.9rem); line-height: 1.02; max-width: 14ch; margin-bottom: 0.6rem; font-weight: 600; }
.act--map .map__head .display em { background-size: 100% 0.13em; }
.act--map .map__sub { font-size: 1.12rem; max-width: 40ch; }
.act--map .map__canvas svg { max-height: 40vh; }
.map__cap { margin: 0; max-width: 46ch; font-size: 1rem; color: var(--b-soft); }
.act--map .map__real { width: clamp(170px, 15vw, 230px); max-height: 62vh; aspect-ratio: 760 / 1645; align-self: center; }
.act--map .map__real img { height: 100%; object-fit: cover; }
.gm-fl { opacity: 0.6; filter: saturate(0.55); }
.gm-fl--lit { opacity: 1; filter: none; }
.gm-node text { font-size: 22px; }
@media (max-height: 820px) and (min-width: 761px) {
  .act--map .map__canvas svg { max-height: 34vh; }
  .act--map .map__head .display { font-size: clamp(2rem, 6.4vh, 3.4rem); }
}
@media (max-width: 760px) {
  .act--map .map { padding: calc(var(--bar-h) + 2vh) 1.25rem 3vh; grid-template-columns: 1fr; }
  .act--map .map__canvas svg { max-height: 52vh; }
}

/* ================================================ v7 · the six cards ==== */
/* The screenshots are now cropped to the phone itself (they were App Store
   frames with blank margins, inside a second drawn border). The phone fills
   most of the card's height, the card is shorter, the gaps are tighter. */
.stack__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.stack__head .display { font-size: clamp(2.2rem, 1.2rem + 2.3vw, 3.9rem); line-height: 1.02; font-weight: 600; }
.stack__card {
  top: calc(var(--bar-h) + 16px + var(--n, 0) * 12px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: min(76vh, 680px);
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.75rem, 5vw, 5rem);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.stack__text h3 { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.2rem); line-height: 1; font-weight: 600; max-width: 15ch; hyphens: none; }
.stack__text p { font-size: 1.12rem; max-width: 36ch; }
.stack__shot { width: auto; height: min(66vh, 600px); justify-self: end; margin-right: clamp(0rem, 3vw, 3rem); }
.stack__shot img {
  width: auto; height: 100%; aspect-ratio: 484 / 1049;
  border: 0; border-radius: 13% / 6%;
  box-shadow: 0 2px 0 rgba(58, 49, 40, 0.06), 0 28px 50px -24px rgba(58, 49, 40, 0.38);
}
@media (max-width: 820px) {
  .stack__card { grid-template-columns: 1fr; min-height: 0; padding: 1.25rem 1.25rem 1.5rem; gap: 1rem; top: calc(var(--bar-h) + 8px + var(--n, 0) * 8px); }
  .stack__shot { height: 42vh; justify-self: center; margin: 0; order: -1; }
  .stack__text h3 { font-size: 2rem; }
  .stack__text p { font-size: 1rem; }
}

/* ======================================================= v8 · phone pass == */
/* small Bloom labels: terracotta at text size needs one shade darker for 4.5:1 */
[data-brand="bloom"] .kicker, .stack__step, .note__h { color: #A9452A; }
@media (max-width: 900px) {
  /* hero: a bigger flower fills the empty lower half */
  .bloom { --fw: min(78vw, 37vh); }
  /* the turn's flower had no width on phones (it inherited the hero's --fw) */
  .act--turn .flora--turn { width: min(78vw, 40vh); top: calc(var(--bar-h) + 3vh); transform: translateX(-50%); }
  /* the monster: smaller, and kept to the bottom corner */
  .monster { --w: 74px; }
}
@media (max-width: 760px) {
  /* gift map: the vertical list of flowers reads on a phone; the four quotes do not */
  #giftmap [data-gm="note"], #giftmap [data-gm="link"] { display: none; }
  .act--map .map__canvas svg { max-height: 46vh; }
  .act--map .map__canvas { display: flex; justify-content: center; }
}

@media (max-width: 900px) { .bloom { padding-top: calc(var(--bar-h) + 1vh + var(--fw) * 1.04 + 68px); } .touch-hint { margin-top: 0.35rem; } }
@media (max-width: 760px) { .act--map .map__canvas svg { max-height: 44vh; width: auto; } #giftmap .gm-node text { font-size: 24px; } }
/* short phones (iPhone SE class): a smaller flower and no body line, so the button stays on screen */
@media (max-width: 900px) and (max-height: 720px) {
  .bloom { --fw: min(66vw, 31vh); }
  .bloom__col--right .note__p { display: none; }
  .bloom__col--right .btn { margin-top: 0.6rem; }
  .bloom__col--left .display { font-size: clamp(2.2rem, 9.5vw, 3rem); }
}
