/* Gorgeous Gelato · independent concept · "A day at the gelato case" */

:root {
  --cream: #fff7e9;
  --paper: #fdeedd;
  --plum: #361a31;
  --plum-deep: #24101f;
  --plum-soft: #6d4563;
  --rose-ink: #a3324a;     /* accent text on light surfaces, 6.4:1 on cream */
  --pink: #f6b4bd;         /* hero field, and accent on dark surfaces */
  --label-red: #b0283a;    /* the shop's dairy label */
  --label-blue: #1f4f8f;   /* the shop's dairy-free label */
  --pistachio: #b8cf85;
  --fragola: #ee8e9c;
  --stracciatella: #f7ecd8;
  --hazelnut: #c99460;
  --caramel: #b9743a;
  --pannacotta: #f1dcb8;
  --mango: #f6b14a;
  --choc: #5b2d29;
  --wafer: #e2a865;
  --wafer-dark: #9c5f3c;
  --steel: #d9d4d2;
  --case: #fbe9e4;
  --marble: #f4efe9;
  --marble-vein: #cfc3bd;
  --sea: #8fb9c9;
  --header: 66px;
  --gutter: clamp(16px, 4.5vw, 72px);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: var(--plum);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-weight: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
@media (min-width: 861px) { :root { --header: 74px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--plum); font: 400 1.0625rem/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; font-variation-settings: "SOFT" 100; line-height: 1; margin: 0; overflow-wrap: anywhere; hyphens: manual; text-wrap: balance; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; 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: -80px; z-index: 50; background: var(--plum); color: var(--cream); padding: .8rem 1.1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
section[id], aside, footer { scroll-margin-top: calc(var(--header) + 8px); }

.eyebrow { font: 700 .78rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow .num { display: inline-block; min-width: 2.4em; padding: .15em .5em; margin-right: .6em; border: 2px solid currentColor; border-radius: 999px; text-align: center; letter-spacing: .06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--plum); cursor: pointer; transition: transform .25s var(--ease-out), background-color .2s, color .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--rose-ink); text-underline-offset: 3px; }

.tag { display: inline-block; padding: 0 .4em; border: 2px solid; border-radius: 4px; font-weight: 700; line-height: 1.35; background: var(--cream); }
.tag-red { color: var(--label-red); border-color: var(--label-red); }
.tag-blue { color: var(--label-blue); border-color: var(--label-blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 94%, transparent); border-bottom: 2px solid var(--plum); backdrop-filter: saturate(1.2) blur(6px); }
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--cream); } }
.bar { display: flex; align-items: center; gap: 1rem; height: calc(var(--header) - 2px); padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; text-decoration: none; font: italic 800 1.35rem/1 var(--display); font-variation-settings: "SOFT" 100; margin-right: auto; min-height: 44px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle, .call, .site-nav { flex: none; }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 999px; }
.site-nav a:hover { background: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; background: var(--plum); color: var(--cream); font-weight: 800; text-decoration: none; white-space: nowrap; }
.call-short { display: none; }
.menu-toggle { min-height: 44px; min-width: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--plum); background: transparent; color: var(--plum); font: 700 1rem var(--body); cursor: pointer; }
@media (min-width: 861px) { .menu-toggle { display: none !important; } }
@media (max-width: 860px) {
  .call-long { display: none; }
  .call-short { display: inline; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 30px; height: 30px; }
  .bar { gap: .5rem; }
  /* Without JS the nav stays visible and the header simply sits in flow. */
  html:not(.scenes) .site-header { position: static; }
  html:not(.scenes) .bar { height: auto; flex-wrap: wrap; padding-block: .5rem; }
  html:not(.scenes) .site-nav { order: 3; width: 100%; flex-wrap: wrap; }
  .scenes .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; background: var(--cream); border-bottom: 2px solid var(--plum); box-shadow: 0 18px 30px -18px #361a3166; }
  .scenes .site-nav:not(.is-open) { display: none; }
  .scenes .site-nav a { min-height: 48px; font-size: 1.1rem; border-bottom: 1px solid var(--paper); border-radius: 0; }
}
@media (max-width: 360px) { .brand span { font-size: 1.02rem; } .brand-mark { display: none; } .menu-toggle { padding: 0 .7rem; } .call { padding: 0 .8rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: calc(100svh - var(--header)); padding: clamp(1rem, 2.6vw, 3.5rem) var(--gutter) calc(clamp(1.5rem, 4vw, 3.5rem) + 40px); background: var(--pink); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: auto -10% -2px -10%; height: 46px; background: var(--cream); clip-path: polygon(0 60%, 8% 45%, 16% 58%, 25% 40%, 34% 55%, 43% 38%, 52% 54%, 61% 40%, 70% 56%, 79% 42%, 88% 57%, 100% 44%, 100% 100%, 0 100%); }
.hero > * { position: relative; }
.concept-note { display: inline-block; margin-bottom: 1rem; padding: .3rem .7rem; border: 1.5px dashed var(--plum); border-radius: 6px; font-size: .82rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.45rem, 1rem + 4.2vw, 4.7rem); line-height: .95; letter-spacing: -.025em; max-width: 17ch; padding-right: .08em; }
.hero h1 em { color: var(--plum); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 144; }
.lede { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); max-width: 46ch; margin-top: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--plum); border-bottom: 2px solid var(--plum); }
.facts > div { padding: .7rem .8rem .75rem 0; }
.facts > div + div { padding-left: .8rem; border-left: 1.5px solid var(--plum); }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.facts a { font-weight: 800; display: inline-block; padding: .2rem 0; min-height: 24px; }
.hero-art { margin: 0; align-self: end; }
.hero-svg { display: block; width: 100%; max-height: min(74svh, 640px); overflow: visible; }
.hero-art figcaption { font-size: .78rem; text-align: right; margin-top: .2rem; }
.petal path:first-child { fill: var(--c); stroke: var(--plum); stroke-width: 6; stroke-linejoin: round; }
.petal .ridge { fill: none; stroke: var(--plum); stroke-width: 4; stroke-linecap: round; opacity: .55; }
.stamp-small { font: 800 11px var(--body); letter-spacing: .16em; fill: var(--plum); }
.stamp-big { font: italic 800 30px var(--display); fill: var(--rose-ink); }
.hero-spatula .dollop { fill: transparent; stroke: transparent; }
.hero-spatula { transform: translate(440px, 516px) rotate(26deg); }

/* Hero choreography: one spatula, three pans, three petals laid in order. */
.motion.scenes .hero-art:not(.is-in) .petal, .motion.scenes .hero-art:not(.is-in) .hero-stamp { transform: scale(0); }
.motion.scenes .hero-art:not(.is-in) .hero-cone, .motion.scenes .hero-art:not(.is-in) .hero-spatula { opacity: 0; }
.motion.scenes .hero-art.is-in .hero-cone { animation: cone-in 1s var(--ease-out) both; }
.motion.scenes .hero-art.is-in .petal { transform-box: view-box; transform-origin: 0 0; animation: petal-lay .7s var(--ease-out) both; }
.motion.scenes .hero-art.is-in .p1 { animation-delay: 1.1s; }
.motion.scenes .hero-art.is-in .p2 { animation-delay: 2.3s; }
.motion.scenes .hero-art.is-in .p3 { animation-delay: 3.5s; }
.motion.scenes .hero-art.is-in .hero-spatula { animation: spatula-hero 4.6s var(--ease-weight) .2s both; }
.motion.scenes .hero-art.is-in .hero-spatula .dollop { animation: dollop-hero 4.6s linear .2s both; }
.motion.scenes .hero-art.is-in .hero-stamp { transform-box: fill-box; transform-origin: center; animation: stamp 0.6s cubic-bezier(.3, 1.6, .5, 1) 4.4s both; }
@keyframes cone-in { from { transform: translateY(60px); opacity: 0; } }
@keyframes petal-lay { 0% { transform: scale(.25, .06) skewX(-30deg); opacity: 0; } 6% { opacity: 1; } 60% { transform: scale(1.06, .92) skewX(4deg); } 100% { transform: none; } }
@keyframes spatula-hero {
  0%   { transform: translate(560px, 300px) rotate(30deg); }
  8%   { transform: translate(52px, 448px) rotate(-14deg); }
  14%  { transform: translate(66px, 438px) rotate(18deg); }
  22%  { transform: translate(214px, 288px) rotate(-52deg); }
  28%  { transform: translate(252px, 276px) rotate(-30deg); }
  36%  { transform: translate(120px, 448px) rotate(-14deg); }
  42%  { transform: translate(134px, 438px) rotate(18deg); }
  50%  { transform: translate(362px, 288px) rotate(52deg); }
  55%  { transform: translate(332px, 276px) rotate(30deg); }
  63%  { transform: translate(188px, 448px) rotate(-14deg); }
  69%  { transform: translate(202px, 438px) rotate(18deg); }
  77%  { transform: translate(272px, 238px) rotate(-38deg); }
  83%  { transform: translate(306px, 230px) rotate(10deg); }
  100% { transform: translate(440px, 516px) rotate(26deg); }
}
@keyframes dollop-hero {
  0%, 13% { fill: transparent; stroke: transparent; }
  14%, 25% { fill: var(--pistachio); stroke: var(--plum); }
  26%, 41% { fill: transparent; stroke: transparent; }
  42%, 52% { fill: var(--fragola); stroke: var(--plum); }
  53%, 68% { fill: transparent; stroke: transparent; }
  69%, 79% { fill: var(--stracciatella); stroke: var(--plum); }
  80%, 100% { fill: transparent; stroke: transparent; }
}
@keyframes stamp { from { transform: scale(1.6) rotate(-28deg); opacity: 0; } }

/* ---------- Shared section frame ---------- */
.gelato, .cup, .story, .visit { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2, .day-intro h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.section-head p:last-child { max-width: 58ch; }

/* Reveal grammar 1 (services): cards rise; pans fill as their surface draws. */
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.offer { background: var(--paper); border: 2px solid var(--plum); border-radius: 22px 22px 6px 6px; padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; }
.offer h3 { font-size: 1.65rem; margin: .4rem 0 .7rem; }
.offer p { font-size: .98rem; }
.offer .text-link { margin-top: auto; }
.offer-art { width: 100%; height: auto; aspect-ratio: 220 / 120; display: block; }
.motion.scenes .offer.reveal { clip-path: inset(0 0 100% 0 round 22px 22px 6px 6px); transform: translateY(56px); transition: clip-path .9s var(--ease-weight), transform .9s var(--ease-out); }
.motion.scenes .offer.reveal .wave { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.1s var(--ease-weight) .25s, fill-opacity .6s ease 1.05s; }
.motion.scenes .offer.reveal .steam { opacity: 0; }
.motion.scenes .offer.reveal:nth-child(2) { transition-delay: .09s; }
.motion.scenes .offer.reveal:nth-child(3) { transition-delay: .18s; }
.motion.scenes .offer.reveal:nth-child(4) { transition-delay: .27s; }
.motion.scenes .offer.is-in { clip-path: inset(0 0 0 0 round 22px 22px 6px 6px); transform: none; }
.motion.scenes .offer.is-in .wave { stroke-dashoffset: 0; fill-opacity: 1; }
.motion.scenes .offer.is-in .steam { animation: steam 2.4s ease-in-out 1.2s 3 both; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- 02 The day (pinned) ---------- */
.day { background: var(--plum); color: var(--cream); --focus: var(--pink); }
.day-intro { padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem; max-width: 900px; }
.day-intro a { color: var(--pink); font-weight: 700; }
.skip-scene { display: inline-flex; align-items: center; min-height: 44px; }
.day-track { position: relative; }
.day-stage { position: relative; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: end; padding: 1.5rem var(--gutter) 2rem; overflow: clip; --dusk: 0; --lamp: .35; }
.day-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #fde3cf 0%, #f9c9b9 100%); }
.day-sky::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #1d0d1b 0%, #4c2244 60%, #8a4766 100%); opacity: var(--dusk); }
.day-sky::before { content: "aperto" / ""; position: absolute; left: var(--gutter); top: 6%; z-index: 1; font: italic 600 clamp(2rem, 4vw, 3.4rem)/1 var(--display); font-variation-settings: "SOFT" 100; color: #ffd9e0; opacity: calc(.04 + var(--dusk) * .96); text-shadow: 0 0 calc(var(--dusk) * 18px) #ff8fb0, 0 0 calc(var(--dusk) * 4px) #fff; }
.sun { position: absolute; z-index: 1; width: clamp(56px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; left: calc(6% + var(--sx, .1) * 30%); top: calc(var(--sun-low) - var(--sy, .3) * var(--sun-rise)); background: radial-gradient(circle at 40% 40%, #fff3c4, #ffc65c 70%); box-shadow: 0 0 0 14px #ffd98a44, 0 0 60px 20px #ffcf7a66; opacity: calc(1 - var(--dusk) * 1.1); --sun-low: 62%; --sun-rise: 50%; }
.moon { position: absolute; z-index: 1; left: 32%; top: 9%; width: clamp(40px, 4.5vw, 64px); aspect-ratio: 1; border-radius: 50%; background: #fff4e4; box-shadow: inset -12px -6px 0 #e8d2c0, 0 0 40px 8px #fff1df55; opacity: calc(var(--dusk) * 1.1 - .2); }
.day-case { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; min-height: 0; }
.case-svg { display: block; width: 100%; height: auto; }
.case-lamp { fill: #fff6c9; opacity: var(--lamp); filter: drop-shadow(0 6px 14px #ffe08a); }
.glass { stroke: #ffffff; stroke-width: 6; stroke-linecap: round; opacity: .85; }
.glass-fill { fill: #ffffff; opacity: .14; }
.mound { stroke: var(--plum); stroke-width: 4; stroke-linejoin: round; }
.pan-front { fill: var(--steel); stroke: var(--plum); stroke-width: 4; }
.flag-card { fill: var(--cream); stroke-width: 4; }
.flag-text { font: 700 17px var(--body); fill: var(--plum); }
.noon-list { position: absolute; right: 2%; top: 4%; z-index: 3; width: min(15rem, 46%); padding: .8rem 1rem .6rem; background: var(--cream); color: var(--plum); border: 2px solid var(--plum); border-radius: 4px; box-shadow: 6px 8px 0 #361a3133; transform: rotate(2deg); }
.noon-title { font: italic 800 1.15rem/1 var(--display); margin: 0 0 .4rem; }
.noon-list ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 1.45; }
.noon-list li[hidden] { display: none; }
.noon-list li { display: flex; align-items: center; gap: .45rem; }
.noon-list li::before { content: ""; width: .7rem; height: .7rem; border-radius: 2px; border: 2px solid var(--label-red); flex: none; }
.noon-list li.df::before { border-color: var(--label-blue); }
.noon-list li.stale { text-decoration: line-through dotted; text-decoration-thickness: 2px; }
.noon-foot { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: .4rem 0 0; }
.day-panel { position: relative; z-index: 2; align-self: center; background: var(--cream); color: var(--plum); border: 2px solid var(--plum); border-radius: 18px; padding: 1.2rem 1.3rem; --focus: var(--plum); }
.day-panel a { color: var(--rose-ink); font-weight: 700; }
.clock { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.clock svg { width: 54px; height: 54px; }
.clock .hand-h, .clock .hand-m { transform-box: view-box; transform-origin: 32px 32px; }
.clock .hand-h { transform: rotate(330deg); }
.clock-read { font: italic 800 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.day-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.day-steps li { position: relative; padding: .55rem 0 .55rem 2.3rem; border-top: 1.5px solid #361a3133; }
.day-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: .6rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 2px solid var(--plum); border-radius: 50%; font-weight: 800; font-size: .85rem; }
.day-steps h3 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.day-steps p { font-size: .95rem; margin: 0; }
.day-steps li[aria-current="step"]::before { background: var(--plum); color: var(--cream); }

/* Pinned only when scripts and motion are on and the screen is tall enough. */
.scenes .day-track { height: 420svh; }
.scenes .day-stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); }
.scenes .day-steps li { color: var(--plum-soft); }
.scenes .day-steps li[aria-current="step"] { color: var(--plum); }
.scenes .day-steps li:not([aria-current="step"]):not(:focus-within) p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.scenes) .noon-list, html:not(.scenes) .clock, html:not(.scenes) .sun, html:not(.scenes) .moon { display: none; }

@media (max-width: 860px) {
  .day-stage { grid-template-columns: minmax(0, 1fr); align-items: stretch; align-content: space-between; gap: .8rem; padding: .8rem var(--gutter) 1rem; }
  .scenes .day-stage { grid-template-rows: minmax(0, 1fr) auto; }
  .day-case { padding-top: 7.5rem; }
  .sun { --sun-low: 30%; --sun-rise: 22%; left: calc(4% + var(--sx, .1) * 22%); }
  .moon { left: 8%; top: 3.8rem; }
  .noon-list { top: .4rem; right: 5%; width: min(12.5rem, 58%); padding: .55rem .75rem .45rem; }
  .noon-title { font-size: 1rem; }
  .noon-list ul { font-size: .82rem; line-height: 1.35; }
  .day-sky::before { top: 1rem; font-size: 1.9rem; }
  .day-panel { padding: .8rem 1rem; border-radius: 14px; }
  .clock { margin-bottom: .3rem; }
  .clock svg { width: 40px; height: 40px; }
  .clock-read { font-size: 1.25rem; }
  .scenes .day-steps li { padding: .35rem 0 .35rem 2.1rem; }
  .scenes .day-steps li::before { top: .4rem; width: 1.4rem; height: 1.4rem; font-size: .78rem; }
  .scenes .day-steps h3 { font-size: 1.02rem; }
  .scenes .day-steps p { font-size: .9rem; }
}
/* Short or landscape screens: no pinning, the finished case and every step. */
@media (max-height: 560px), (orientation: landscape) and (max-height: 620px), (max-width: 860px) and (max-height: 700px) {
  .scenes .day-track { height: auto; }
  .scenes .day-stage { position: relative; top: 0; height: auto; }
  .scenes .day-steps li:not([aria-current="step"]) p { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .scenes .day-steps li { color: var(--plum); }
}

/* ---------- 03 Plan your cup ---------- */
.cup { background: var(--cream); }
.cup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "form stage" "form ask"; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: 1rem; align-items: start; }
.cup-controls { grid-area: form; }
.cup-result { grid-area: stage; }
.ask-card { grid-area: ask; }
fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
legend { font: italic 800 1.5rem/1.1 var(--display); padding: 0; margin-bottom: .8rem; }
.legend-note { font: 600 .95rem var(--body); font-style: normal; }
.holder-set { display: flex; flex-wrap: wrap; gap: .6rem; }
.holder-set legend { width: 100%; }
.holder, .df-filter { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.1rem; border: 2px solid var(--plum); border-radius: 999px; font-weight: 700; cursor: pointer; }
.holder input, .pan input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; scroll-margin: calc(var(--header) + 24px) 0 24px; }
.holder:has(input:checked) { background: var(--plum); color: var(--cream); }
.holder:has(input:focus-visible), .pan:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 3px; }
.df-filter { margin-bottom: 1rem; font-size: .95rem; }
.df-filter input { width: 1.5rem; height: 1.5rem; accent-color: var(--label-blue); margin: 0; }
html:not(.scenes) .holder-set, html:not(.scenes) .df-filter { display: none; }
.pan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.pan { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; align-items: center; min-height: 72px; padding: .55rem 1.6rem .55rem .55rem; border: 2px solid var(--plum); border-radius: 12px; background: var(--paper); cursor: pointer; transition: transform .25s var(--ease-out); }
.pan:hover { transform: translateY(-2px); }
.pan-swatch { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50% 50% 8px 8px; background: var(--c); border: 2px solid var(--plum); box-shadow: inset -6px -6px 0 #0000001a; }
.pan-swatch.flecked { background-image: radial-gradient(var(--choc) 2.4px, transparent 3px), radial-gradient(var(--choc) 2px, transparent 2.6px); background-size: 16px 14px, 12px 18px; background-position: 2px 4px, 9px 10px; }
.pan-name { font-weight: 800; line-height: 1.2; }
.pan-tag { justify-self: start; font-size: .75rem; font-weight: 700; padding: 0 .35em; border: 1.5px solid; border-radius: 4px; margin-top: .2rem; }
.pan:has(input:checked) { background: var(--plum); color: var(--cream); }
.pan:has(input:checked) .pan-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pan:has(input:checked) .pan-tag { background: var(--cream); }
.pan:has(input:checked)::after { content: "✓" / ""; position: absolute; right: .6rem; top: .45rem; font-weight: 800; }
.pan:has(input:disabled) { border-style: dashed; background: var(--cream); color: var(--plum-soft); cursor: not-allowed; }
.pan:has(input:disabled) .pan-swatch { filter: saturate(.4); }
.df-only .pan:not([data-df]) { display: none; }
html:not(.scenes) .pan input { display: none; }
html:not(.scenes) .pan { cursor: default; }
.cup-help { font-size: .92rem; margin-top: 1rem; }
.cup-result { position: relative; }
.cup-stage { position: relative; background: var(--pink); border: 2px solid var(--plum); border-radius: 26px 26px 8px 8px; padding: 1rem; }
.cup-svg { display: block; width: 100%; max-height: 42svh; overflow: visible; }
.cup-svg .holder-cup, .cup-svg.is-cup .holder-cone { display: none; }
.cup-svg.is-cup .holder-cup { display: inline; }
.cup-petals .petal, .close-petals .petal { transform-box: view-box; transform-origin: 0 0; }
.motion.scenes .cup-petals .petal.lay { animation: petal-lay .65s var(--ease-out) .32s both; }
.cup-spatula { transform: translate(330px, 360px) rotate(30deg); }
.cup-empty { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: italic 700 1.2rem var(--display); display: none; }
.cup-stage.is-empty .cup-empty { display: block; }
.ask-card { padding: 1.2rem 1.3rem; background: var(--paper); border: 2px dashed var(--plum); border-radius: 8px; }
.ask-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.ask-text { font: italic 700 1.45rem/1.25 var(--display); overflow-wrap: anywhere; }
.ask-notes { margin: 0 0 1rem; padding-left: 1.1rem; font-size: .95rem; }
.ask-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.copy-fallback { margin-top: .8rem; font-weight: 600; }

/* ---------- 04 Story ---------- */
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.route-svg { display: block; width: 100%; height: auto; }
.route { fill: none; stroke: var(--plum); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .012 .02; }
.mark-disc { fill: var(--c); stroke: var(--plum); stroke-width: 4; }
.mark-t { font: 800 11px var(--body); letter-spacing: .08em; fill: var(--plum); }
.mark-s { font: italic 800 18px var(--display); fill: var(--plum); }
.motion.scenes .story .route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-weight); }
.motion.scenes .story .mark { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(1.6) rotate(-16deg); transition: opacity .3s ease, transform .55s cubic-bezier(.3, 1.6, .5, 1); }
.motion.scenes .story .sea-line { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s ease; }
.motion.scenes .story.is-in .sea-line { stroke-dashoffset: 0; }
.motion.scenes .story.is-in .route { stroke-dashoffset: 0; }
.motion.scenes .story.is-in .mark { opacity: 1; transform: none; }
.motion.scenes .story.is-in .m1, .motion.scenes .story.is-in .m2 { transition-delay: .1s; }
.motion.scenes .story.is-in .r1, .motion.scenes .story.is-in .r2 { transition-delay: .55s; }
.motion.scenes .story.is-in .m3 { transition-delay: 1.35s; }
.motion.scenes .story.is-in .r3 { transition-delay: 1.6s; transition-duration: 1.5s; }
.motion.scenes .story.is-in .m4 { transition-delay: 2.2s; }
.motion.scenes .story.is-in .r4 { transition-delay: 2.45s; }
.motion.scenes .story.is-in .m5 { transition-delay: 3.1s; }
/* Once drawn, the route settles back to its dotted line. */
.story.is-done .route { stroke-dasharray: .012 .02; stroke-dashoffset: 0; transition: none; }
.origin-list { margin: 0 0 1.6rem; }
.origin-list > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; padding: .8rem 0; border-bottom: 1.5px solid #361a3133; }
.origin-list dt { font: italic 800 1.25rem/1.2 var(--display); }
.origin-list dd { margin: 0; }
.motion.scenes .origin-list .reveal { clip-path: inset(0 100% 0 0); transform: translateX(-28px); transition: transform .8s var(--ease-out), clip-path .8s var(--ease-weight); }
.motion.scenes .origin-list .reveal.is-in { clip-path: inset(0 0 0 0); transform: none; }
.motion.scenes .origin-list .reveal:nth-child(2) { transition-delay: .12s; }
.motion.scenes .origin-list .reveal:nth-child(3) { transition-delay: .24s; }
.motion.scenes .origin-list .reveal:nth-child(4) { transition-delay: .36s; }
.links-label { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.proof-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.proof-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px solid var(--plum); border-radius: 999px; font-weight: 700; text-decoration: none; }
.proof-links a:hover { background: var(--plum); color: var(--cream); }

/* ---------- 05 Visit: the one deliberately calm chapter ---------- */
.visit { background: var(--cream); border-top: 2px solid var(--plum); }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.visit-block { border-top: 6px solid var(--plum); padding-top: 1rem; }
.visit-block h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.visit-block p { font-size: 1.05rem; }
.visit-block a:not(.btn) { font-weight: 700; color: var(--rose-ink); display: inline-block; padding: .3rem 0; }
.visit-block .note { font-size: .92rem; }

/* ---------- 06 Close ---------- */
.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: clamp(4rem, 9vw, 8rem) var(--gutter); background: var(--plum); color: var(--cream); overflow: clip; --focus: var(--pink); }
.close h2 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.6rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.close-summary { font-size: 1.15rem; max-width: 44ch; }
.close .btn-primary { background: var(--pink); color: var(--plum); border-color: var(--pink); }
.close-svg { display: block; width: 100%; height: auto; overflow: visible; }
.close .petal path:first-child { stroke: var(--cream); }
.close .petal .ridge { stroke: var(--plum); }
.close-svg .close-holder-cup, .close-svg.is-cup .close-holder-cone { display: none; }
.close-svg.is-cup .close-holder-cup { display: inline; }
.tag-t1 { font: 800 13px var(--body); letter-spacing: .16em; fill: var(--plum); }
.tag-t2 { font: italic 800 19px var(--display); fill: var(--rose-ink); }
.motion.scenes .close-slide { transform: translateX(340px) rotate(8deg); transform-box: view-box; transform-origin: 280px 390px; }
.motion.scenes .close-tag { transform-box: fill-box; transform-origin: 10% 0; transform: rotate(-24deg) translateY(-40px); opacity: 0; }
.motion.scenes .close-glow { transform-box: fill-box; transform-origin: center; transform: scaleX(.2); opacity: 0; }
.motion.scenes .close-petals .petal { transform: scale(0); }
.motion.scenes .close.is-in .close-slide { animation: counter-slide 1.3s cubic-bezier(.16, .84, .3, 1) both; }
.motion.scenes .close.is-in .close-petals .petal { animation: petal-lay .6s var(--ease-out) both; }
.motion.scenes .close.is-in .close-petals > g:nth-child(1) .petal { animation-delay: 1.15s; }
.motion.scenes .close.is-in .close-petals > g:nth-child(2) .petal { animation-delay: 1.4s; }
.motion.scenes .close.is-in .close-petals > g:nth-child(3) .petal { animation-delay: 1.65s; }
.motion.scenes .close.is-in .close-tag { transition: transform .8s cubic-bezier(.3, 1.5, .5, 1) 2s, opacity .3s 2s; transform: none; opacity: 1; }
.motion.scenes .close.is-in .close-glow { transition: transform 1.2s var(--ease-out) .6s, opacity 1s .6s; transform: none; opacity: 1; }
@keyframes counter-slide { 0% { transform: translateX(340px) rotate(8deg); } 78% { transform: translateX(-10px) rotate(-1.5deg); } 100% { transform: none; } }

/* ---------- Owner panel + footer ---------- */
.owner { background: var(--plum-deep); color: var(--cream); padding: clamp(3rem, 7vw, 6rem) var(--gutter); --focus: var(--pink); }
.owner h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); margin-bottom: 1rem; }
.owner p { max-width: 68ch; }
.owner a:not(.btn) { color: var(--pink); overflow-wrap: anywhere; display: inline-block; padding: .2rem 0; }
.owner-email { font-weight: 800; user-select: all; }
.owner-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0; }
.small { font-size: .9rem; }
.site-footer { background: var(--cream); padding: 2.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); border-top: 2px solid var(--plum); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; font-size: .95rem; }
.foot-brand { font: italic 800 1.6rem var(--display); margin-bottom: .5rem; }
.site-footer a { font-weight: 700; display: inline-block; padding: .2rem 0; }
.to-top { min-height: 44px; display: inline-flex !important; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 1.2rem; gap: .5rem; }
  .hero-art { max-width: 420px; justify-self: center; width: 100%; }
  .hero-svg { max-height: 46svh; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--plum); }
  .facts > div { padding: .5rem 0; }
  .cup-grid, .story-grid, .close, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cup-grid { grid-template-areas: "stage" "form" "ask"; }
  .scenes .cup-result { position: sticky; top: var(--header); z-index: 5; padding: .5rem 0; background: var(--cream); }
  .cup-stage { padding: .4rem; border-radius: 18px 18px 6px 6px; }
  .cup-svg { max-height: 26svh; }
  .scenes .cup-grid :is(input, a, button) { scroll-margin-top: calc(var(--header) + 26svh + 48px); }
  .mark-t { display: none; }
  .mark-s { font-size: 20px; transform: translateY(-8px); }
  .mark-disc { transform-box: fill-box; transform-origin: center; transform: scale(1.3); }
  .close .cta-row .btn { flex-basis: 100%; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .close-scene { max-width: 460px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .pan { grid-template-columns: 36px minmax(0, 1fr); column-gap: .5rem; min-height: 64px; padding: .45rem 1.4rem .45rem .5rem; }
  .pan-swatch { width: 36px; height: 36px; }
  .pan-name { font-size: .92rem; }
  .pan-tag { font-size: .7rem; }
  .pan:has(input:checked)::after { right: .35rem; top: .2rem; }
  .cta-row .btn { flex: 1 1 40%; padding-inline: .8rem; }
  .hero .cta-row .btn { flex-basis: 100%; }
  .cta-row .btn-primary { flex-basis: 100%; }
  .hero .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .facts > div:nth-child(2) { border-top: 0; padding-left: .8rem; border-left: 1.5px solid var(--plum); }
  .hero .facts > div:nth-child(3) { grid-column: 1 / -1; }
  .origin-list > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

@media (max-width: 374px) {
  .pan-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion: discrete, readable states ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pan { transition: none; }
}

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .pan:has(input:checked), .holder:has(input:checked) { border: 5px double CanvasText; }
  .pan:has(input:checked) .pan-name, .holder:has(input:checked) span { text-decoration: underline; text-decoration-thickness: 3px; }
  .holder:has(input:checked) span::after { content: " ✓" / ""; }
  .holder:has(input:focus-visible), .pan:has(input:focus-visible) { outline: 4px solid Highlight; outline-offset: 4px; }
  .day-steps li[aria-current="step"] h3 { text-decoration: underline; }
  .btn, .call { border: 2px solid ButtonText; }
}

/* ---------- Print ---------- */
@media print {
  .site-header { position: static; }
  .site-nav, .menu-toggle, .skip, .day-sky, .ask-actions, .owner-actions, .copy-email { display: none !important; }
  .scenes .day-track { height: auto; }
  .scenes .day-stage { position: static; height: auto; }
  .day-steps li p { position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important; }
  .reveal, .mark, .route, .close-slide, .close-tag, .close-glow, .petal { opacity: 1 !important; transform: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .day, .close, .owner, .hero { background: #fff !important; color: #000 !important; }
}
