/* ==========================================================================
   Maryam Tabatabaei · motion layer · 17 Oct 2026
   Sits on top of site.css. Every hidden "before" state lives under html.motion, which
   the head script adds only when the visitor has NOT asked for reduced motion. With JS or
   motion off, every section already looks finished.
   Ideas: the six petals of her mark are the six tracks; each track owns a colour; the page
   takes on the colour of the craft you are looking at; icons draw themselves like a pen.
   ========================================================================== */

@property --atmos { syntax: "<color>"; inherits: true; initial-value: #C4891A; }
/* --atmos changes at once; the two elements that show it fade their own copy (--ac). Transitioning an inherited property on <html> restyled the whole page on every frame of the fade (30 Oct) */
@property --ac { syntax: "<color>"; inherits: false; initial-value: #C4891A; }
:root { --atmos: #C4891A; }

/* ---------- atmosphere: a soft colour wash that follows the section in view ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --ac: var(--atmos); transition: --ac 1.4s var(--ease);
  background:
    radial-gradient(70vmax 55vmax at 88% 4%, color-mix(in oklab, var(--ac) 20%, transparent), transparent 62%),
    radial-gradient(55vmax 45vmax at 2% 98%, color-mix(in oklab, var(--ac) 13%, transparent), transparent 66%);
}

/* ---------- scroll progress: a hairline in the current track colour ---------- */
.progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); will-change: transform;
  --ac: var(--atmos); transition: --ac 1.4s var(--ease);
  background: var(--ac); pointer-events: none;
}

/* ---------- animated line icons ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic .a { stroke: var(--acc, var(--c, var(--saffron))); }
.ic .af { fill: var(--acc, var(--c, var(--saffron))); stroke: none; }
html.motion .ic .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.motion .ic .af { opacity: 0; }
html.motion .is-in .ic .dr, html.motion .ic.is-in .dr { animation: draw 1.5s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 90ms + var(--d, 0ms)); }
html.motion .is-in .ic .af, html.motion .ic.is-in .af { animation: fadeIn .6s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- headline words rise out of a mask ---------- */
html.motion .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
html.motion .split .wi { display: inline-block; transform: translateY(112%); }
html.motion .split.is-in .wi { animation: wordUp .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
@keyframes wordUp { from { transform: translateY(112%); } to { transform: none; } }

/* ---------- hero: the room wakes up ---------- */
html.motion .hero-photo img { animation: heroIn 2.6s var(--ease) both; will-change: transform; }
@keyframes heroIn { from { transform: scale(1.14); } to { transform: scale(1); } }
html.motion .hero-photo::before {          /* one warm light sweep across the photo */
  content: ""; position: absolute; inset: -10% -30%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(224, 168, 58, .16) 50%, transparent 62%);
  transform: translateX(-70%); animation: sweep 2.8s 1s var(--ease) forwards;
}
@keyframes sweep { to { transform: translateX(70%); } }
html.motion .hero-copy > * { animation: fadeUp .9s var(--ease) both; }
html.motion .hero-copy > .label { animation-delay: .1s; }
html.motion .hero-copy > .hero-sub { animation-delay: .75s; }
html.motion .hero-copy > .hero-actions { animation-delay: .9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* warm motes and chaff drifting up through the light, like in a roastery */
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.motes i {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #F6CC74 0%, rgba(224, 168, 58, .0) 70%); opacity: 0;
  animation: mote var(--t) linear var(--d) infinite; will-change: transform, opacity;
}
@keyframes mote {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  14% { opacity: .95; }
  70% { opacity: .45; }
  100% { transform: translate3d(var(--dx), -640px, 0); opacity: 0; }
}

/* ---------- labels draw a short rule when they arrive ---------- */
html.motion .sec-head .label::before {
  content: ""; display: inline-block; width: 0; height: 1px; margin-right: 12px; vertical-align: middle;
  background: var(--atmos); transition: width .9s var(--ease) .2s;
}
html.motion .sec-head.is-in .label::before, html.motion .is-in > .label::before { width: 30px; }

/* ---------- buttons: arrow slides, press squeezes ---------- */
.btn [aria-hidden], .text-link [aria-hidden], .door-cta [aria-hidden] { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover [aria-hidden], .text-link:hover [aria-hidden], .door:hover .door-cta [aria-hidden] { transform: translateX(5px); }
.btn:active, .hdr-book:active { transform: scale(.96); }
html.motion .btn-primary, html.motion .hdr-book { transition: background-color .4s var(--ease), color .4s var(--ease), transform .35s var(--ease); }
html.motion .btn-primary.is-pulse { animation: pulse 3.6s 4s ease-out infinite; }
@keyframes pulse { 0%, 78% { box-shadow: 0 0 0 0 rgba(196, 137, 26, 0); } 86% { box-shadow: 0 0 0 0 rgba(196, 137, 26, .5); } 100% { box-shadow: 0 0 0 16px rgba(196, 137, 26, 0); } }

/* ---------- doors: icon + colour rises from below ---------- */
.door { position: relative; }
.door-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--c) 55%, transparent), transparent 70%);
  opacity: .0; transition: opacity .7s var(--ease);
}
.door:hover .door-media::after, .door:focus-visible .door-media::after, .door.is-in .door-media::after { opacity: .55; }
.door-ic {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  color: var(--cream); --acc: var(--c);
  background: rgba(24, 12, 4, .62); border: 1px solid color-mix(in oklab, var(--c) 55%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.door-ic .ic { width: 38px; height: 38px; }

/* ==========================================================================
   The mark: her real logo, told part by part. Never recoloured, never rotated (brand book 3.x).
   ========================================================================== */
.mark { background: var(--espresso); position: relative; }
.mark-grid { display: grid; gap: 20px; }
.mark-stage {
  position: sticky; top: calc(var(--hdr) + 6px); z-index: 2; margin-inline: auto;
  width: 100%; padding: 10px 0 22px;
  background: var(--espresso);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.mark-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mark-stage .mark-svg { width: min(62vw, 240px); margin-inline: auto; }
.mark-svg .m-g { transition: opacity .8s var(--ease), filter .8s var(--ease); }
.mark-stage[data-part="petals"] .m-g:not(.m-petals), .mark-stage[data-part="bean"] .m-g:not(.m-petals):not(.m-crease),
.mark-stage[data-part="sham"] .m-g:not(.m-sham), .mark-stage[data-part="compass"] .m-g:not(.m-dia),
.mark-stage[data-part="rings"] .m-g:not(.m-rings) { opacity: .16; }
.mark-stage[data-part="sham"] .m-petals { opacity: .32; }
.mark-stage[data-part="petals"] .m-crease { opacity: .25; }
.mark-stage[data-part="petals"] .m-petals, .mark-stage[data-part="bean"] .m-petals { filter: drop-shadow(0 0 10px rgba(196, 137, 26, .55)); }
.mark-stage[data-part="sham"] .m-sham { filter: drop-shadow(0 0 12px rgba(224, 168, 58, .9)); }
.mark-stage[data-part="compass"] .m-dia { filter: drop-shadow(0 0 10px rgba(224, 168, 58, .9)); }
.mark-stage[data-part="rings"] .m-rings { filter: drop-shadow(0 0 8px rgba(196, 137, 26, .7)); }
.mark-stage[data-part="bean"] .m-crease .cr { stroke-width: 1.6; opacity: .9; }
.mark-svg .m-crease .cr { transition: stroke-width .6s var(--ease), opacity .6s var(--ease); }
.mark-steps { display: grid; gap: 0; }
.mark-step { display: grid; gap: 8px; align-content: start; padding: 18px 0 18px 18px; border-left: 2px solid var(--line); opacity: .5; transition: opacity .6s var(--ease), border-color .6s var(--ease); }
.mark-step.is-on { opacity: 1; border-left-color: var(--saffron); }
.mark-step .label { color: var(--saffron); }
.mark-step h3 { font-size: calc(var(--ds) * clamp(26px, 1.6vw + 18px, 40px)); color: var(--cream); }
.mark-step p { color: var(--ink-soft); max-width: 36em; }
html:not(.js) .mark-step { opacity: 1; }
@media (min-width: 900px) {
  .mark-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .mark-stage .mark-svg { width: 100%; }
  .mark-stage { top: calc(var(--hdr) + 40px); width: min(100%, 460px); background: none; margin: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }
  .mark-step { min-height: 62vh; align-content: center; padding-left: 28px; }
}
/* the logo draws itself once when it arrives (the finished mark is the default state) */
html.motion .mark-svg .r1, html.motion .mark-svg .r2, html.motion .mark-svg .cr { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.motion .is-in .mark-svg .r1, html.motion .mark-svg.is-in .r1 { animation: draw 1.8s var(--ease) forwards; }
html.motion .is-in .mark-svg .r2, html.motion .mark-svg.is-in .r2 { animation: draw 1.8s var(--ease) .25s forwards; }
html.motion .is-in .mark-svg .cr, html.motion .mark-svg.is-in .cr { animation: draw 1s var(--ease) calc(1.5s + var(--i) * .1s) forwards; }
html.motion .mark-svg .dia { transform-box: fill-box; transform-origin: center; transform: scale(0); }
html.motion .is-in .mark-svg .dia, html.motion .mark-svg.is-in .dia { animation: pop .7s var(--ease) calc(.9s + var(--k, 0) * .12s) forwards; }
html.motion .mark-svg .pet { transform-origin: 100px 100px; transform: scale(0); }
html.motion .is-in .mark-svg .pet, html.motion .mark-svg.is-in .pet { animation: pop 1s var(--ease) calc(1.1s + var(--i) * .13s) forwards; }
html.motion .mark-svg .star { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-45deg); }
html.motion .is-in .mark-svg .star, html.motion .mark-svg.is-in .star { animation: pop 1.1s var(--ease) 2.2s forwards; }
@keyframes pop { to { transform: none; } }
.ft-mark { display: grid; justify-items: center; gap: 18px; padding-block: clamp(32px, 6vw, 72px) 8px; text-align: center; }
.ft-mark .mark-svg { width: min(72vw, 360px); }
.ft-mark-name { font: 400 14px/1.4 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }

/* ==========================================================================
   Roast curve: scroll draws a real-looking profile
   ========================================================================== */
.roast .roast-stage { display: grid; gap: 18px; }
.roast-readout { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; }
.roast-temp { font: 300 calc(var(--ds) * clamp(56px, 6vw + 24px, 112px))/1 var(--f-display); letter-spacing: -.04em; color: var(--cream); font-variant-numeric: tabular-nums; }
.roast-temp small { font-size: .38em; color: var(--ink-muted); letter-spacing: 0; margin-left: .1em; }
.roast-time { font: 400 17px/1 var(--f-mono); color: var(--atmos); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.roast-chart { position: relative; }
.roast-svg { display: block; width: 100%; height: auto; overflow: visible; }
.roast-grid { stroke: var(--line); stroke-width: 1; }
.roast-axis { fill: var(--ink-muted); font: 400 11px var(--f-mono); }
.roast-line { fill: none; stroke: var(--c, var(--t-roasting)); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 10px color-mix(in oklab, var(--t-roasting) 70%, transparent)); }
.roast-ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.roast-axes { display: flex; justify-content: space-between; margin-top: 6px; font: 400 13px var(--f-mono); color: var(--ink-muted); letter-spacing: .04em; }
.roast-bean { fill: var(--cream); }
.roast-bean-glow { fill: color-mix(in oklab, var(--t-roasting) 55%, transparent); }
.roast-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.roast-step { align-content: start; display: grid; grid-template-columns: 14px 1fr; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: .42; transition: opacity .6s var(--ease); }
.roast-step::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 1px solid var(--ink-muted); transition: background .5s, border-color .5s, transform .5s var(--ease); }
.roast-step b { font-weight: 500; font-size: 18px; color: var(--cream); }
.roast-step span { grid-column: 2; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.roast-step.is-on { opacity: 1; }
.roast-step.is-on::before { background: var(--t-roasting); border-color: var(--t-roasting); transform: scale(1.3); }
html:not(.motion) .roast-step { opacity: 1; }
@media (min-width: 900px) {
  .roast-line { stroke-width: 3.5; }
  .roast .roast-stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .roast-steps { margin-top: 0; grid-template-columns: 1fr; }
}
.roast-note { color: var(--ink-muted); font-size: 14px; margin-top: 14px; }

/* ---------- page transitions: soft cross-fade between pages (supporting browsers only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ==========================================================================
   Round 2 (17 Oct): story timeline, date odometer, drawing icons on Consulting and track heroes
   ========================================================================== */

/* ---------- story: a rail that fills as you scroll, dots that light, years that tick ---------- */
.steps { position: relative; padding-left: 22px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line-strong); }
.steps::after { background: var(--atmos); transform-origin: 0 0; transform: scaleY(var(--sp, 1)); box-shadow: 0 0 12px color-mix(in oklab, var(--atmos) 60%, transparent); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: -23px; top: 22px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--espresso); border: 2px solid var(--ink-muted); z-index: 1; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.step.is-passed::before, .step.is-on::before { background: var(--atmos); border-color: var(--atmos); }
.step.is-on::before { transform: scale(1.5); }
html.motion .step { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.motion .step:not(.is-seen) { opacity: 0; transform: translateX(16px); }
html:not(.motion) .steps::after { transform: scaleY(1); }
.step-thumb { transition: transform .8s var(--ease); }
.step.is-on .step-thumb { transform: scale(1.08) rotate(-2deg); }

/* ---------- cohort dates: digits roll like an odometer ---------- */
.od { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.od-r { display: block; transition: transform 1.1s var(--ease) calc(var(--r, 0) * 45ms); transform: translateY(0); }
.od-r > span { display: block; height: 1.1em; line-height: 1.1; }
html.motion .cohort-list.is-armed .od-r { transform: translateY(calc(var(--from, 0) * -1.1em)); transition: none; }
html.motion .cohort-list.is-armed.is-go .od-r { transform: translateY(calc(var(--d, 0) * -1.1em)); transition: transform 1.1s var(--ease) calc(var(--r, 0) * 45ms); }
html.motion .cohort-list:not(.is-armed) .od-r { transform: translateY(calc(var(--d, 0) * -1.1em)); }
html.motion .cohort { transition: opacity .7s var(--ease) calc(var(--r, 0) * 45ms), transform .7s var(--ease) calc(var(--r, 0) * 45ms), background .3s; }
html.motion .cohort-list.is-armed:not(.is-go) .cohort { opacity: 0; transform: translateY(12px); }

/* ---------- Consulting: icons for the seven services ---------- */
.cs-svc { grid-template-columns: 56px 1fr; }
.cs-ic {
  grid-row: span 4; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: var(--cream); --acc: var(--saffron); border: 1px solid var(--line-strong); background: rgba(248, 240, 227, .03);
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .6s var(--ease);
}
.cs-ic .ic { width: 28px; height: 28px; }
.cs-svc:hover .cs-ic { border-color: var(--saffron); background: color-mix(in oklab, var(--saffron) 14%, transparent); transform: rotate(-6deg) scale(1.06); }
.cs-svc .cs-num { grid-row: auto; grid-column: 2; font: 400 14px/1 var(--f-mono); letter-spacing: .1em; padding-top: 0; }
.cs-svc > h3, .cs-svc > p, .cs-svc > .cs-ask { grid-column: 2; }

/* ---------- track icon in headings (course hero, Academy groups) ---------- */
.trk-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none;
  color: var(--cream); --acc: var(--c, var(--saffron));
  border: 1px solid color-mix(in oklab, var(--c, var(--saffron)) 60%, transparent);
  background: color-mix(in oklab, var(--c, var(--saffron)) 16%, transparent);
}
.trk-ic .ic { width: 34px; height: 34px; }
.cp-hero .trk-ic { --c: var(--atmos); margin-bottom: 4px; }
.ac-group-head { position: relative; }
.ac-group-head .trk-ic { width: 44px; height: 44px; margin-right: 12px; }
.ac-group-head .trk-ic .ic { width: 26px; height: 26px; }

/* ==========================================================================
   Cherry to cup: a drawn scene (SVG) that is played by the scroll. Cherry -> pulp opens -> green bean -> drum roast -> first crack -> roasted.
   Default (reduced motion, no JS) = four plain cards with a small icon each. html.motion = one sticky stage.
   ========================================================================== */
.jr { padding-block: var(--sec); }
.jr-head { display: grid; gap: 12px; margin-bottom: 28px; }
.jr-head h2 { font-size: calc(var(--ds) * clamp(30px, 2.4vw + 20px, 60px)); color: var(--cream); max-width: 16em; }
.jr-stage { display: grid; gap: 22px; }
.jr-scene { display: none; }
.jr-step { margin-inline: var(--gutter); }
.jr-text { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.jr-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); --acc: var(--saffron); border: 1px solid var(--line-strong); }
.jr-ic .ic { width: 30px; height: 30px; }
.jr-text .label { color: var(--saffron); }
.jr-text h3 { font-size: calc(var(--ds) * clamp(30px, 2vw + 20px, 52px)); color: var(--cream); }
.jr-text p { color: var(--ink-soft); max-width: 34em; }
.jr-ui { display: none; }
@media (min-width: 900px) { .jr-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .jr-head { grid-column: 1 / -1; } }

html.motion .jr { padding-block: 0; }
html.motion .jr-track { height: 260svh; position: relative; }
html.motion .jr-stage { position: sticky; top: 0; height: 100svh; display: block; overflow: hidden; background: #0d0603; }
html.motion .jr-head { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--hdr) + 22px); margin: 0; pointer-events: none; padding-inline: var(--gutter); }
html.motion .jr-scene { display: block; position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--hdr) + 84px); height: 48svh; }
html.motion .jr-svg { width: 100%; height: 100%; display: block; overflow: visible; }
html.motion .jr-step { position: static; margin: 0; }
html.motion .jr-text { position: absolute; z-index: 3; left: 0; right: 0; bottom: 112px; padding: 0 var(--gutter); max-width: 46em; opacity: 0; margin-inline: auto; width: 100%; border-top: 0; }
html.motion .jr-step:first-of-type .jr-text { opacity: 1; }
html.motion .jr-ic { display: none; }
html.motion .jr-text .label { font-size: 14px; }
html.motion .jr-ui { display: block; position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 30px; }
.jr-line { position: relative; height: 2px; background: rgba(248, 240, 227, .22); margin-inline: 6px; }
.jr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--bean, var(--saffron)); transform-origin: 0 50%; transform: scaleX(var(--jp, 0)); box-shadow: 0 0 12px var(--bean, transparent); }
.jr-nodes { display: flex; justify-content: space-between; margin-top: 14px; }
.jr-nodes li { font: 400 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(248, 240, 227, .5); transition: color .5s var(--ease); }
.jr-nodes li.is-on { color: var(--cream); }
.s-glow { fill: var(--bean, #C0392B); opacity: .35; }
.s-glow { fill: url(#jrg); }
html.motion .jr-svg .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.motion .jr.is-in .jr-svg .dr { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 140ms); }
html.motion .jr-svg .st { stroke-dasharray: .5 .5; animation: steam 3.6s linear infinite; }
html.motion .jr-svg .st:nth-child(2) { animation-delay: -1.2s; }
html.motion .jr-svg .st:nth-child(3) { animation-delay: -2.3s; }
@keyframes steam { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html.motion .jr-svg .s-flame { animation: flick 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flick { from { transform: translate(262px, 438px) scale(1.2, 1.15); } to { transform: translate(262px, 438px) scale(1.2, 1.3); } }
@media (min-width: 900px) {
  html.motion .jr-head { left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); right: auto; padding-inline: 0; width: min(900px, 90vw); }
  html.motion .jr-scene { left: 46%; right: 0; top: calc(var(--hdr) + 24px); bottom: 110px; height: auto; }
  html.motion .jr-text { bottom: 128px; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); right: auto; margin: 0; padding-inline: 0; width: min(500px, 42vw); max-width: none; }
  html.motion .jr-ui { left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
}

/* ==========================================================================
   The logo as a picker (homepage): the exact mark, gold. The active petal alone takes its track colour.
   ========================================================================== */
.pk-grid { display: grid; gap: 22px; align-items: center; }
.pk-logo { width: min(80vw, 380px); margin-inline: auto; }
.pk-svg .petal { cursor: pointer; outline: none; transition: transform .8s var(--ease), filter .8s var(--ease), opacity .6s var(--ease); }
.pk-svg .petal .pet { transition: fill .6s var(--ease); }
.pk-svg .petal .hit { fill: transparent !important; stroke: none !important; }
.pk-svg.has-on .petal:not(.is-on) { opacity: .5; }
.pk-svg .petal:hover .pet { fill: var(--c); }
.pk-svg .petal.is-on { transform: translateY(-3.5px); filter: drop-shadow(0 0 9px color-mix(in oklab, var(--c) 75%, transparent)); }
.pk-svg .petal.is-on .pet { fill: var(--c); }
.pk-svg .petal:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.pk-side { display: grid; gap: 6px; }
.pk-stack { display: grid; }
.pk-panel { grid-area: 1 / 1; display: grid; gap: 12px; justify-items: start; align-content: start; --acc: var(--c); transition: opacity .5s var(--ease), visibility .5s; }
.pk-panel.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
html:not(.js) .pk-panel { grid-area: auto; margin-bottom: 28px; }
.pk-ic { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); border: 1px solid color-mix(in oklab, var(--c) 60%, transparent); background: color-mix(in oklab, var(--c) 18%, transparent); }
.pk-ic .ic { width: 42px; height: 42px; }
.pk-name { font-size: calc(var(--ds) * clamp(32px, 2.2vw + 20px, 54px)); color: var(--cream); }
.pk-sub { color: var(--ink-soft); max-width: 34em; }
.pk-why { max-width: 34em; padding-left: 14px; border-left: 2px solid var(--c); }
.pk-why .label { display: block; margin-bottom: 4px; color: color-mix(in oklab, var(--c) 50%, var(--cream)); }
html.motion .pk-panel.is-live > * { animation: fadeUp .8s var(--ease) both; }
html.motion .pk-panel.is-live > :nth-child(2) { animation-delay: .06s; }
html.motion .pk-panel.is-live > :nth-child(3) { animation-delay: .12s; }
html.motion .pk-panel.is-live > :nth-child(4) { animation-delay: .18s; }
html.motion .pk-panel.is-live > :nth-child(5) { animation-delay: .24s; }
.pk-dots { display: flex; gap: 4px; }
.pk-dots button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.pk-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .5; transition: transform .4s var(--ease), opacity .4s; }
.pk-dots button[aria-selected="true"]::before { opacity: 1; transform: scale(1.7); }
@media (min-width: 900px) {
  .pk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
  .pk-logo { width: min(40vw, 480px); margin: 0; }
}
