/*
   Home page only (loaded by Components/Home/HomeDesign.razor): story mockup A "The Bake"
   (docs/mockups/marketing/story/a-the-bake.html) with B's cake builder, G's week dial, H's bake labels and C's word reveal.

   The static page is the baseline: with JS off or prefers-reduced-motion, the kitchen scene is hidden and the chapters are
   cards, the cake is drawn finished, and the week is a list beside its dial. Everything that moves or pins is scoped to
   [data-motion="on"], which js/home.js sets on .bake-home only when motion is allowed. Pinned sections are scoped further to
   data-pin-story/-cake/-week/-about (and the orbit to data-orbit), which home.js sets only while that section's content fits
   the screen under the header. Without them the section stays in normal flow, so nothing pinned can overlap or clip.

   The live palette (--live-*) is the chapter colours from mockup A. home.js blends it on <html> as you scroll; these are the
   chapter-one values it starts from. The scene's SVG colours are the brand palette from tokens.css, written as hex because
   SVG presentation attributes can't read custom properties.
*/
:root {
    --live-bg: var(--color-blush);
    --live-fg: var(--color-ink);
    --live-accent: var(--color-accent);
    --live-soft: var(--color-blush-deep);
    --live-counter: var(--color-ink);
}

body:has(.bake-home) { background: var(--live-bg); color: var(--live-fg); overflow-x: clip; }
html:has(.bake-home) { background: var(--live-bg); overflow-x: clip; }

/* ---------- Header over the story: takes the chapter colours ---------- */
body:has(.bake-home) .site-header { background: color-mix(in srgb, var(--live-bg) 72%, transparent); border-bottom-color: transparent; color: var(--live-fg); }
body:has(.bake-home) .brand__logo { box-shadow: 0 0 0 2px currentColor; }
body:has(.bake-home) .site-header .brand__text small { color: inherit; opacity: .7; }
body:has(.bake-home) .site-header .btn--dark { background: var(--live-fg); border-color: var(--live-fg); color: var(--live-bg); }
body:has(.bake-home) .site-header .btn--dark:hover { background: var(--live-accent); border-color: var(--live-accent); color: var(--color-on-accent); }
body:has(.bake-home) .mobile-nav summary { border-color: currentColor; }
body:has(.bake-home) .mobile-nav__icon, body:has(.bake-home) .mobile-nav__icon::before, body:has(.bake-home) .mobile-nav__icon::after { background: currentColor; }
body:has(.bake-home) .mobile-nav[open] .mobile-nav__icon { background: transparent; }
body:has(.bake-home) .mobile-nav__panel { color: var(--color-ink); }

/* ---------- Hero ---------- */
.story-hero {
    align-items: center; display: grid; gap: var(--space-6); grid-template-columns: 1.1fr .9fr; margin: 0 auto; max-width: 76rem;
    min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); padding: var(--space-7) clamp(1rem, 4vw, 3rem) 5rem; position: relative;
}
.story-hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); margin: var(--space-4) 0 1.25rem; }
.story-hero h1 em { color: var(--live-accent); }
.story-hero .lede { color: inherit; font-size: var(--text-lede); opacity: .85; }
.story-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.story-hero .btn--dark { background: var(--live-fg); border-color: var(--live-fg); color: var(--live-bg); }
.story-hero .btn--line { border-color: var(--live-fg); color: var(--live-fg); }
.story-hero .btn--line:hover { background: var(--live-fg); color: var(--live-bg); }
.story-hero__badge { aspect-ratio: 1; justify-self: center; position: relative; width: min(100%, 30rem); }
.story-hero__badge > .logo-disc, .story-hero__photo { border-radius: 50%; box-shadow: 0 30px 70px var(--color-shadow); inset: 12%; overflow: hidden; position: absolute; }
.story-hero__photo img { height: 100%; object-fit: cover; width: 100%; }
.story-hero__ring { height: 100%; inset: 0; position: absolute; width: 100%; }
.story-hero__ring text { fill: var(--live-fg); font-family: var(--font-body); font-size: 15.5px; font-weight: var(--weight-heavy); letter-spacing: 6px; }
.scroll-cue { display: none; }

/* ---------- Kitchen story: static chapters (the baseline) ---------- */
.story { padding: var(--space-section) 0; }
.story .stage { margin: 0 auto; max-width: var(--wrap); padding: 0 var(--gutter); }
.scene, .rail { display: none; }
.chapters { counter-reset: chapter; display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); }
.chapter { background: var(--color-paper); border: var(--border); border-radius: var(--radius); color: var(--color-ink); padding: var(--space-6) 1.75rem 2rem; }
.chapter:nth-child(3n+2) { background: var(--color-blush-deep); }
.chapter:nth-child(3n) { background: var(--color-ink); color: var(--color-on-dark); }
.chapter__step { color: var(--color-accent-strong); display: block; font-family: var(--font-gothic); font-size: 3rem; line-height: 1; }
.chapter:nth-child(3n) .chapter__step, .chapter:nth-child(3n) h2 em { color: var(--color-blush-deep); }
.chapter h2 { font-size: 2rem; margin: var(--space-2) 0 var(--space-3); }
.chapter p { opacity: .85; }
.chapter .btn { margin-top: var(--space-5); }
.chapter:nth-child(3n) .btn--dark { background: var(--color-blush-deep); border-color: var(--color-blush-deep); color: var(--color-ink); }
.chapter__photo img { aspect-ratio: 4 / 3; border: var(--border); border-radius: var(--radius-small); margin-top: var(--space-4); object-fit: cover; width: 100%; }

/* ---------- Kitchen scene props (positions from mockup A; shown with motion only) ---------- */
.scene { height: 720px; left: 0; position: absolute; top: 0; transform-origin: 0 0; width: 960px; }
.scene .fill-soft { fill: var(--live-soft); }
.scene .fill-bg { fill: var(--live-bg); }
.scene .fill-fg { fill: var(--live-fg); }
.scene .stroke-fg { stroke: var(--live-fg); }
.wall-window { height: 300px; left: 330px; position: absolute; top: 40px; width: 300px; }
.wall-window svg { height: 100%; width: 100%; }
.counter { background: var(--live-counter); border-radius: 26px 26px 0 0; height: 150px; left: 40px; position: absolute; right: 40px; top: 590px; }
.counter::before { background: var(--live-accent); border-radius: var(--radius-pill); content: ""; height: 10px; left: 0; position: absolute; right: 0; top: -5px; }
.stars-bg { inset: 0; position: absolute; }
.stars-bg i { color: var(--live-accent); font-style: normal; position: absolute; }
.stars-bg i:nth-child(1) { font-size: 28px; left: 120px; top: 90px; }
.stars-bg i:nth-child(2) { font-size: 22px; left: 820px; top: 130px; }
.stars-bg i:nth-child(3) { font-size: 16px; left: 760px; top: 40px; }
.stars-bg i:nth-child(4) { font-size: 14px; left: 200px; top: 300px; }
.stars-bg i:nth-child(5) { font-size: 18px; left: 880px; top: 330px; }
.prop { opacity: 0; position: absolute; visibility: hidden; will-change: transform, opacity; }
.prop svg { display: block; height: 100%; overflow: visible; width: 100%; }
#p-flour { height: 230px; left: 120px; top: 370px; width: 150px; }
#p-scale { height: 150px; left: 370px; top: 445px; width: 220px; }
#p-jar { height: 200px; left: 640px; top: 400px; width: 130px; }
#p-eggs { height: 80px; left: 790px; top: 520px; width: 120px; }
#p-bowl { height: 230px; left: 320px; top: 370px; width: 320px; }
#p-whisk { height: 300px; left: 560px; top: 200px; width: 110px; }
#p-c1 { height: 26px; left: 400px; top: 400px; width: 26px; }
#p-c2 { height: 24px; left: 470px; top: 392px; width: 24px; }
#p-c3 { height: 22px; left: 530px; top: 404px; width: 22px; }
#p-c4 { height: 20px; left: 440px; top: 410px; width: 20px; }
#p-butter { height: 80px; left: 150px; top: 520px; width: 130px; }
#p-oven { height: 350px; left: 280px; top: 250px; width: 380px; }
#p-heat { height: 100px; left: 360px; top: 150px; width: 220px; }
#p-timer { height: 160px; left: 720px; top: 300px; width: 160px; }
#p-mitt { height: 180px; left: 110px; top: 410px; width: 130px; }
#p-cake { height: 350px; left: 300px; top: 250px; width: 360px; }
#p-bag { height: 200px; left: 330px; top: 90px; width: 120px; }
#p-cherry1 { height: 80px; left: 420px; top: 240px; width: 56px; }
#p-cherry2 { height: 80px; left: 478px; top: 246px; width: 56px; }
#p-cupcake { height: 160px; left: 720px; top: 430px; width: 120px; }
#p-box { height: 290px; left: 300px; top: 310px; width: 360px; }
#p-label { height: 190px; left: 250px; top: 380px; width: 250px; }
#p-tape { height: 40px; left: 430px; top: 360px; width: 110px; }
#p-note { height: 290px; left: 110px; top: 300px; width: 250px; }
#p-van { height: 270px; left: 430px; top: 330px; width: 320px; }
.readout {
    background: var(--color-ink); border-radius: 8px; color: var(--color-blush-deep); font-family: var(--font-gothic); font-size: 30px;
    left: 62px; line-height: 44px; position: absolute; text-align: center; top: 52px; width: 96px;
}
.swirl, .whisk-inner, .bag-inner, .oven-cookies, .wheel { transform-box: fill-box; transform-origin: center; }
.oven-cookies { transform-origin: center bottom; }
.oven-glow { opacity: 0; }
.timer-text { color: var(--color-blush); font-family: var(--font-gothic); font-size: 34px; inset: 0; line-height: 160px; position: absolute; text-align: center; }
.dot { background: var(--color-paper); border: 3px solid var(--color-ink); border-radius: 50% 50% 46% 46%; height: 30px; position: absolute; top: 52px; transform: scale(0); width: 30px; }
.dot:nth-of-type(1) { left: 96px; }
.dot:nth-of-type(2) { left: 122px; }
.dot:nth-of-type(3) { left: 148px; }
.dot:nth-of-type(4) { left: 174px; }
.dot:nth-of-type(5) { left: 200px; }
.dot:nth-of-type(6) { left: 226px; }
.ticks { bottom: 18px; display: grid; gap: 4px; left: 22px; position: absolute; }
.ticks span { align-items: center; color: var(--color-ink); display: flex; font-size: 14px; font-weight: var(--weight-heavy); gap: 6px; opacity: .25; transition: opacity var(--duration); }
.ticks span b { background: var(--color-accent); border-radius: 50%; color: var(--color-on-accent); display: inline-grid; font-size: 11px; height: 18px; place-items: center; width: 18px; }
.ticks span.on { opacity: 1; }
.heart-float { color: var(--color-paper); font-size: 26px; position: absolute; }
.heart-float:nth-of-type(1) { left: 40px; top: 30px; }
.heart-float:nth-of-type(2) { animation-delay: -.8s; left: 270px; top: 40px; }
.heart-float:nth-of-type(3) { animation-delay: -1.6s; font-size: 18px; left: 230px; top: 0; }

/* ---------- This week's bakes: the orbit (motion, wide screens) ---------- */
.bakes .section-head h2 em { color: var(--live-accent); }
.orbit { display: none; }
.orbit-board { height: 640px; left: 0; position: absolute; top: 0; transform-origin: 0 0; width: 1000px; }
.orbit-lines { inset: 0; position: absolute; }
.orbit-lines path { fill: none; stroke: var(--live-accent); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 2.5; }
.orbit-lines ellipse { fill: none; stroke: color-mix(in srgb, var(--live-fg) 18%, transparent); stroke-dasharray: 4 8; stroke-width: 2; }
.orbit-badge { height: 230px; left: 385px; position: absolute; top: 185px; width: 230px; }
.orbit-badge .logo-disc { box-shadow: 0 24px 60px var(--color-shadow); height: 100%; width: 100%; }
.tile {
    background: var(--color-surface); border: var(--border); border-radius: 22px; color: var(--color-ink); display: flex; flex-direction: column; height: 150px;
    padding: 12px 10px 10px; position: absolute; text-decoration: none; transition: box-shadow var(--duration); width: 136px;
}
.tile:hover { box-shadow: 6px 6px 0 var(--color-ink); }
/* The art gives way to the name when larger text needs another line. */
.tile-art { align-items: center; background: var(--color-blush); border-radius: 14px; display: flex; flex: 0 1 90px; justify-content: center; min-height: 56px; overflow: hidden; }
.tile:nth-of-type(3n+2) .tile-art { background: var(--color-ink); }
.tile:nth-of-type(3n) .tile-art { background: var(--color-blush-deep); }
.tile-art img { height: 78%; width: auto; }
.tile-art .logo-disc { height: 70%; aspect-ratio: 1; }
.tile strong { display: block; flex: none; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.05; margin-top: 6px; }

/* ---------- Cake builder: the drawn cake (mockup B) ---------- */
.cakes__pin { position: relative; }
.cake-stage {
    --w: 300px; --layer-h: 54px; --stack-h: calc(var(--layer-h) * 3 + 12px);
    --sponge: #f3dcb0; --frost: #fff9f7; --drip: #c64f7c; --bead: #efb7c7;
    align-items: flex-end; display: flex; height: min(64vh, 520px); justify-content: center; min-height: 26rem; position: relative;
}
.cake { align-items: center; bottom: 70px; display: flex; flex-direction: column-reverse; position: absolute; }
.plate { background: var(--color-blush-deep); border: 4px solid var(--color-blush); border-radius: 50%; bottom: 36px; height: 46px; position: absolute; transition: width .4s; width: calc(var(--w) + 120px); }
.stand { background: var(--color-blush-deep); border: 4px solid var(--color-blush); border-radius: 10px 10px 4px 4px; bottom: 0; height: 44px; position: absolute; width: 70px; }
.layer {
    background: var(--sponge); border: 4px solid #0d090b; border-radius: 12px; height: var(--layer-h); position: relative;
    transition: width .4s cubic-bezier(.3, 1.4, .5, 1), background-color .3s, height .3s; width: var(--w);
}
.cream { background: var(--frost); border: 4px solid #0d090b; border-radius: 8px; height: 14px; margin: -4px 0; position: relative; transition: width .4s, background-color .3s; width: calc(var(--w) - 14px); z-index: 1; }
/* The coat leaves a cut slice on the right, so the chosen sponge still shows once it's frosted. */
.coat {
    background: var(--frost); border: 4px solid #0d090b; border-radius: 16px; bottom: 0; clip-path: polygon(0 -40px, 66% -40px, 66% calc(100% + 40px), 0 calc(100% + 40px));
    height: calc(var(--stack-h) + 8px); left: 50%; position: absolute; transform: translateX(-50%); transition: width .4s, background-color .3s, height .3s;
    width: calc(var(--w) + 12px); z-index: 2;
}
.coat::after { background: radial-gradient(circle at 50% 0, var(--frost) 13px, transparent 14px) 0 100% / 34px 30px repeat-x; bottom: -26px; content: ""; height: 30px; left: 0; position: absolute; right: 0; }
.drips { bottom: calc(var(--stack-h) - 62px); height: 80px; left: 50%; position: absolute; transform: translateX(-50%); width: calc(var(--w) + 14px); z-index: 3; }
.drips path { fill: none; stroke: var(--drip); stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; stroke-width: 14; }
.beads { bottom: calc(var(--stack-h) + 4px); display: flex; gap: 4px; justify-content: center; left: 50%; position: absolute; transform: translateX(-50%); z-index: 4; }
.beads i { background: var(--bead); border: 4px solid #0d090b; border-radius: 50% 50% 44% 44%; display: block; height: 30px; width: 30px; }
.cherry { bottom: calc(var(--stack-h) + 22px); height: 70px; position: absolute; width: 50px; z-index: 5; }
.cherry--left { left: calc(50% - 46px); }
.cherry--right { left: calc(50% + 6px); }
.cake-label { bottom: 0; color: var(--color-blush-deep); font-family: var(--font-gothic); font-size: 1.6rem; position: absolute; right: 0; }
.cakes__polaroid { background: var(--color-paper); bottom: 3rem; left: 0; padding: .5rem .5rem 1.5rem; position: absolute; transform: rotate(-6deg); width: 10rem; z-index: 6; }
.cakes__polaroid img { aspect-ratio: 1; object-fit: cover; }

/* ---------- Week dial and about ---------- */
.bake-home .week { background: var(--color-paper); color: var(--color-ink); }
.bake-home .about--short .about__text { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.2; margin-top: var(--space-5); }

/* ---------- Closing call to action ---------- */
.story-cta {
    align-items: center; background: var(--color-accent-strong); border-radius: 32px; color: var(--color-on-accent); display: flex; flex-wrap: wrap;
    gap: var(--space-5); justify-content: space-between; margin: var(--space-7) auto var(--space-8); max-width: var(--wrap); padding: 2.5rem 3rem;
}
.story-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.story-cta h2 em { color: var(--color-ink); }
.story-cta .btn--dark { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-blush); }
.story-cta .btn--dark:hover { background: var(--color-blush); border-color: var(--color-blush); color: var(--color-ink); }

/* =====================================================================================================================
   Motion (progressive enhancement). home.js sets data-motion="on" only with JS on and reduced motion off.
   ===================================================================================================================== */
[data-motion="on"] .scroll-cue {
    align-items: center; bottom: 1.75rem; display: flex; flex-direction: column; font-size: .75rem; font-weight: var(--weight-heavy); gap: var(--space-2);
    left: 50%; letter-spacing: var(--tracking-kicker); position: absolute; text-transform: uppercase; transform: translateX(-50%);
}
[data-motion="on"] .scroll-cue i { border: 2px solid var(--live-fg); border-radius: var(--radius-pill); height: 38px; position: relative; width: 24px; }
[data-motion="on"] .scroll-cue i::after { animation: home-cue 1.6s ease-in-out infinite; background: var(--live-accent); border-radius: 50%; content: ""; height: 6px; left: 7px; position: absolute; top: 7px; width: 6px; }
[data-motion="on"] .story-hero__ring { animation: home-spin 40s linear infinite; }
[data-motion="on"] .heart-float { animation: home-float 2.6s ease-in-out infinite; }
[data-motion="on"] #p-van .wheel { animation: home-spin 1.2s linear infinite; }
[data-motion="on"] .tile:hover .tile-art { animation: home-wobble .5s; }

/* Story: a tall section with a sticky stage; home.js sets the height, the scene scale and the copy column, which stops above the rail. */
[data-motion="on"][data-pin-story] .story { padding: 0; position: relative; }
[data-motion="on"][data-pin-story] .story .stage { height: 100vh; height: 100svh; max-width: none; overflow: hidden; padding: 0; position: sticky; top: 0; }
[data-motion="on"][data-pin-story] .scene { display: block; }
[data-motion="on"][data-pin-story] .chapters { bottom: var(--copy-bottom, 0); display: grid; gap: 0; grid-template-columns: none; left: var(--copy-left, 3rem); position: absolute; top: var(--copy-top, 0); width: var(--copy-w, 30rem); }
[data-motion="on"][data-pin-story] .chapter { align-self: center; background: none; border: 0; border-radius: 0; color: var(--live-fg); grid-area: 1 / 1; padding: 0; will-change: transform, opacity; }
[data-motion="on"][data-pin-story] .chapter__step { color: var(--live-accent); font-size: 4.5rem; }
[data-motion="on"][data-pin-story] .chapter h2 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); margin: .4rem 0 1rem; }
[data-motion="on"][data-pin-story] .chapter h2 em { color: var(--live-accent); }
[data-motion="on"][data-pin-story] .chapter p { font-size: 1.15rem; max-width: 28rem; }
[data-motion="on"][data-pin-story] .chapter .btn--dark { background: var(--live-fg); border-color: var(--live-fg); color: var(--live-bg); }
[data-motion="on"][data-pin-story] .chapter__photo { display: block; max-width: 14rem; transform: rotate(-3deg); }
[data-motion="on"][data-pin-story] .rail { bottom: 1.75rem; display: flex; gap: .4rem; left: var(--copy-left, 3rem); position: absolute; z-index: 2; }
.rail a {
    align-items: center; border: 2px solid var(--live-fg); border-radius: var(--radius-pill); color: var(--live-fg); display: flex; font-size: .78rem;
    font-weight: var(--weight-heavy); height: 34px; justify-content: center; min-width: 34px; padding: 0 .55rem; text-decoration: none;
    transition: background var(--duration), color var(--duration);
}
.rail a span { display: none; margin-left: .35rem; }
.rail a[aria-current="true"] { background: var(--live-fg); color: var(--live-bg); }
.rail a[aria-current="true"] span { display: inline; }

/* Bakes: the orbit flies in on wide screens (home.js leaves it off when a name won't fit its tile). */
[data-motion="on"][data-orbit] .orbit { display: block; margin: 0 auto var(--space-7); max-width: 1000px; overflow: hidden; position: relative; }

/* Cake builder: pinned while scrolling assembles the cake (side by side and fitting the screen; home.js sets the section height). */
[data-motion="on"][data-pin-cake] .cakes { padding: 0; }
[data-motion="on"][data-pin-cake] .cakes__pin { align-items: center; display: flex; height: 100vh; height: 100svh; padding-top: var(--pin-top, var(--header-height)); position: sticky; top: 0; }
[data-motion="on"][data-pin-cake] .cakes__pin > .wrap { width: 100%; }
[data-motion="on"] .opt { opacity: .45; transition: opacity .3s, border-color .3s; }
[data-motion="on"] .opt.is-on, [data-motion="on"] .opt:focus-within { opacity: 1; }

/* Week: pinned, the hand winds through the steps and the section takes each step's colours. */
[data-motion="on"][data-pin-week] .week { --wk-bg: var(--color-blush); --wk-fg: var(--color-ink); --wk-accent: var(--color-accent); background: var(--wk-bg); color: var(--wk-fg); padding: 0 0 var(--space-section); }
[data-motion="on"][data-pin-week] .week__pin { align-items: center; display: flex; height: 100vh; height: 100svh; overflow: hidden; padding-top: var(--pin-top, var(--header-height)); position: sticky; top: 0; }
[data-motion="on"][data-pin-week] .week__pin > .wrap { width: 100%; }
[data-motion="on"][data-pin-week] .week__face { fill: var(--wk-bg); stroke: var(--wk-fg); }
[data-motion="on"][data-pin-week] .week__ring, [data-motion="on"][data-pin-week] .week__seg line { stroke: var(--wk-fg); }
[data-motion="on"][data-pin-week] .week__seg text, [data-motion="on"][data-pin-week] .week__hand path { fill: var(--wk-fg); }
[data-motion="on"][data-pin-week] .week__seg.is-on text, [data-motion="on"][data-pin-week] .week__hand .week__hand-star { fill: var(--wk-accent); }
[data-motion="on"][data-pin-week] .week__seg { cursor: pointer; }
[data-motion="on"][data-pin-week] .week__dial { pointer-events: auto; }
[data-motion="on"][data-pin-week] .week .kicker, [data-motion="on"][data-pin-week] .week h2 em, [data-motion="on"][data-pin-week] .week h3 em { color: var(--wk-accent); }
[data-motion="on"][data-pin-week] .week .section-head__intro { color: inherit; opacity: .8; }
[data-motion="on"][data-pin-week] .week__steps { display: grid; min-height: 15rem; }
[data-motion="on"][data-pin-week] .week-step { align-self: start; border: 0; grid-area: 1 / 1; padding: 0; will-change: transform, opacity; }
[data-motion="on"][data-pin-week] .week-step::before { display: none; }
[data-motion="on"][data-pin-week] .week-step__name { color: var(--wk-accent); font-size: clamp(2.6rem, 5vw, 4rem); }
[data-motion="on"][data-pin-week] .week-step h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin: .3rem 0 .6rem; }
[data-motion="on"][data-pin-week] .week-step p { color: inherit; font-size: 1.1rem; opacity: .85; }
[data-motion="on"][data-pin-week] .week-step__when { background: var(--wk-fg); color: var(--wk-bg) !important; opacity: 1 !important; }
[data-motion="on"][data-pin-week] .week .delivery-card { color: var(--color-ink); }

/* About: the short paragraph lights up word by word (mockup C). */
[data-motion="on"][data-pin-about] .about--short { padding: 0; }
[data-motion="on"][data-pin-about] .about--short .about__pin { align-items: center; display: flex; height: 100vh; height: 100svh; padding-top: var(--pin-top, var(--header-height)); position: sticky; top: 0; }
[data-motion="on"][data-pin-about] .about--short .about__pin > .wrap { width: 100%; }
[data-motion="on"] .about__text .w { opacity: .14; transition: opacity .25s, color .25s; }
[data-motion="on"] .about__text .w.lit { opacity: 1; }

@keyframes home-spin { to { transform: rotate(360deg); } }
@keyframes home-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes home-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes home-wobble { 30% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .chapters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 759px) {
    .story-hero { gap: var(--space-5); grid-template-columns: 1fr; min-height: 0; padding-top: var(--space-5); text-align: center; }
    .story-hero .lede { margin: 0 auto; }
    .story-hero__ctas { justify-content: center; }
    .story-hero__badge { order: -1; width: min(78vw, 22rem); }
    .story-hero h1 { font-size: clamp(2.8rem, 12vw, 3.6rem); }
    [data-motion="on"] .scroll-cue { display: none; }
    .chapters { grid-template-columns: 1fr; }
    .cake-stage { height: 20rem; min-height: 0; }
    .cake-stage > * { scale: .7; transform-origin: 50% 100%; }
    .cake-stage .cake-label { scale: 1; }
    [data-motion="on"][data-pin-story] .chapters { left: 1.25rem; right: 1.25rem; bottom: var(--copy-bottom, 72px); width: auto; }
    [data-motion="on"][data-pin-story] .chapter { align-self: start; }
    [data-motion="on"][data-pin-story] .chapter__step { font-size: 2.6rem; }
    [data-motion="on"][data-pin-story] .chapter h2 { font-size: 2rem; margin: .2rem 0 .5rem; }
    [data-motion="on"][data-pin-story] .chapter p { font-size: 1rem; }
    [data-motion="on"][data-pin-story] .chapter__photo { display: none; }
    [data-motion="on"][data-pin-story] .rail { bottom: 1rem; left: 1.25rem; right: 1.25rem; }
    .rail a { flex: 1; min-width: 0; padding: 0; }
    .rail a[aria-current="true"] span { display: none; }
    [data-motion="on"][data-pin-week] .week__inner { align-content: start; gap: var(--space-3); }
    [data-motion="on"][data-pin-week] .week__dial { max-width: min(70vw, 34vh); }
    [data-motion="on"][data-pin-week] .week .section-head { margin-bottom: var(--space-3); }
    [data-motion="on"][data-pin-week] .week .section-head h2 { font-size: 1.9rem; }
    [data-motion="on"][data-pin-week] .week .section-head__intro, [data-motion="on"][data-pin-week] .week .kicker { display: none; }
    [data-motion="on"][data-pin-week] .week-step__name { font-size: 2.2rem; }
    [data-motion="on"][data-pin-week] .week-step h3 { font-size: 1.7rem; }
    [data-motion="on"][data-pin-week] .week-step p { font-size: 1rem; }
    .story-cta { border-radius: 24px; margin: var(--space-7) 1rem var(--space-8); padding: 2rem 1.5rem; }
}
