@property --t { syntax: '<number>'; inherits: false; initial-value: 1; }
/* ==========================================================================
   Consulting · seven scenes + plan builder · 29 Oct 2026
   The page is complete without motion: every scene is shown finished inside its own card, the builder works.
   html.motion pins the stage; consulting-story.js sets --t (0..1) on each animated part and fades scenes in and out.
   ========================================================================== */

/* ---------- the illustration palette (scenes only use these classes) ---------- */
.f-ink { fill: #130A05; } .f-esp { fill: #21120A; } .f-esp2 { fill: #2C190C; }
.f-wood { fill: #6B3F22; } .f-wood2 { fill: #8A5530; } .f-wood3 { fill: #B07A4A; }
.f-saf { fill: #C4891A; } .f-saf2 { fill: #E0A83A; } .f-cream { fill: #F8F0E3; } .f-cream2 { fill: #E6D6BC; }
.f-terra { fill: #A85830; } .f-red { fill: #C0392B; } .f-green { fill: #5C7A45; } .f-green2 { fill: #7C9A5E; } .f-sack { fill: #B08A55; }
.f-barista { fill: var(--t-barista); } .f-brewing { fill: var(--t-brewing); } .f-roasting { fill: var(--t-roasting); }
.f-sensory { fill: var(--t-sensory); } .f-water { fill: var(--t-water); } .f-sust { fill: var(--t-sust, #4C9A5E); }
.f-skin1 { fill: #F1CDA8; } .f-skin2 { fill: #E0AC7C; } .f-skin3 { fill: #C98B5E; } .f-skin4 { fill: #8D5A3B; }
.f-hair1 { fill: #1E120B; } .f-hair2 { fill: #3A2314; } .f-hair3 { fill: #6B3F22; } .f-grey { fill: #9AA0A6; } .f-white { fill: #FFFFFF; }
.s-ink { stroke: #130A05; } .s-esp { stroke: #21120A; } .s-esp2 { stroke: #2C190C; } .s-wood { stroke: #6B3F22; } .s-wood2 { stroke: #8A5530; }
.s-saf { stroke: #C4891A; } .s-saf2 { stroke: #E0A83A; } .s-cream { stroke: #F8F0E3; } .s-cream2 { stroke: #E6D6BC; } .s-terra { stroke: #A85830; }
.s-red { stroke: #C0392B; } .s-green { stroke: #5C7A45; } .s-sack { stroke: #B08A55; } .s-sack2 { stroke: #7A5A2E; }
.s-barista { stroke: var(--t-barista); } .s-brewing { stroke: var(--t-brewing); } .s-roasting { stroke: var(--t-roasting); }
.s-sensory { stroke: var(--t-sensory); } .s-water { stroke: var(--t-water); } .s-sust { stroke: var(--t-sust, #4C9A5E); }
.sc-svg { font-family: Geist, ui-sans-serif, system-ui, sans-serif; }
.sc-svg text { fill: #F8F0E3; font-weight: 400; }

/* ---------- animated parts: finished by default, --t (0..1) set by the script ---------- */
.sc-svg .sc-draw { stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--t, 1)); }
.sc-svg .sc-pop { opacity: var(--t, 1); transform: scale(calc(.8 + .2 * var(--t, 1))); transform-box: fill-box; transform-origin: center; }
.sc-svg .sc-fade { opacity: var(--t, 1); }
.sc-svg .sc-slide { opacity: var(--t, 1); transform: translate(calc((1 - var(--t, 1)) * var(--dx, 0) * 1px), calc((1 - var(--t, 1)) * var(--dy, 0) * 1px)); }
.sc-svg .sc-rot { transform: rotate(calc((1 - var(--t, 1)) * var(--dr, 0) * 1deg)); }
.sc-svg .sc-grow { transform: scale(calc(1 - (1 - var(--t, 1)) * var(--gx, 0)), calc(1 - (1 - var(--t, 1)) * var(--gy, 1))); }
.sc-svg .sc-layer { transform: translate(calc(var(--off, 0) * var(--depth, 0) * 1px), 0); }
html.motion .sc-svg .sc-scene { opacity: 0; }
html.motion .sc-svg .sc-scene:first-child { opacity: 1; }
html.motion .sc-svg.sc-lay .sc-scene { opacity: 1; }
html.motion .sc-svg .sc-a { --t: 0; }

/* ambient life: only the scene on screen runs (the script marks it .is-live) */
@keyframes scSteam { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: .85; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes scBob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes scSway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes scTwinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes scPulse { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes scFlicker { 0%, 100% { opacity: 1; } 43% { opacity: .82; } 47% { opacity: 1; } 71% { opacity: .9; } }
.sc-svg .sc-steam { animation: scSteam 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sc-svg .sc-bob { animation: scBob 2.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.sc-svg .sc-sway { animation: scSway 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.sc-svg .sc-twinkle { animation: scTwinkle 2.6s ease-in-out infinite; }
.sc-svg .sc-pulse { animation: scPulse 1.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.sc-svg .sc-flicker { animation: scFlicker 4.2s linear infinite; }
.sc-svg .sc-d2 { animation-delay: -.8s; } .sc-svg .sc-d3 { animation-delay: -1.6s; } .sc-svg .sc-d4 { animation-delay: -2.4s; }
html.motion .sc-svg .sc-scene:not(.is-live) * { animation-play-state: paused !important; }
html:not(.motion) .sc-svg * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .sc-svg * { animation: none !important; } }

/* ---------- without motion: header, then one card per scene with its finished picture ---------- */
.cs-story { padding-block: var(--sec) 0; }
.cs-st-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.cs-st-head h2 { font-size: calc(var(--ds) * clamp(32px, 2.4vw + 22px, 64px)); color: var(--cream); max-width: 15em; }
.cs-st-sub { color: var(--ink-soft); max-width: 36em; }
.cs-st-scene { position: absolute; width: 0; height: 0; overflow: hidden; }
.cs-st-nav { display: none; }
.cs-st-stops { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: clamp(24px, 3vw, 40px); }
.cs-stop { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 22px; background: var(--espresso-2); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.cs-stop > *:not(.cs-stop-art) { margin-inline: 22px; }
.cs-stop-art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 720; background: #130a05; }
.cs-stop h3 { font: 300 clamp(26px, 1.6vw + 14px, 38px)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--cream); }
.cs-stop p { color: var(--ink-soft); }
.cs-stop-n { font: 400 14px/1 var(--f-mono); letter-spacing: var(--label-track); color: var(--ink-muted) !important; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; color: var(--cream); text-decoration: none; transition: border-color .3s var(--ease), color .3s var(--ease); }
.cs-chip:hover { border-color: var(--saffron); color: var(--saffron-lt); }
.cs-st-note { margin-top: 18px; font-size: 14px; color: var(--ink-muted); }

/* ---------- with motion: the pinned stage ---------- */
html.motion .cs-story { padding-block: 0; }
html.motion .cs-st-track { height: calc(var(--span, 7.6) * 88svh + 100svh); position: relative; }
html.motion .cs-st-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #0d0603; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
html.motion .cs-st-head { padding-top: calc(var(--hdr) + 12px); margin-bottom: 8px; gap: 6px; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; z-index: 3; }
html.motion .cs-st-head h2 { font-size: calc(var(--ds) * clamp(24px, 2vw + 16px, 52px)); max-width: 15em; }
html.motion .cs-st-sub { display: none; }
html.motion .cs-st-scene { position: relative; width: 100%; height: auto; min-height: 0; overflow: visible; padding-inline: var(--gutter); display: grid; }
html.motion .sc-svg { width: 100%; height: 100%; min-height: 0; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .55); background: #130a05; }
html.motion .cs-st-stops { display: grid; margin: 0; padding-block: 10px; gap: 0; grid-template-columns: 1fr; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; min-height: 0; z-index: 3; }
html.motion .cs-stop { grid-area: 1 / 1; border: 0; background: none; padding: 0; opacity: 0; pointer-events: none; will-change: opacity, transform; align-content: start; gap: 8px; overflow: visible; }
html.motion .cs-stop > *:not(.cs-stop-art) { margin-inline: 0; }
html.motion .cs-stop-art, html.motion .cs-stop-n { display: none; }
html.motion .cs-stop.is-on { pointer-events: auto; }
html.motion .cs-stop h3 { font-size: calc(var(--ds) * clamp(28px, 2vw + 16px, 56px)); }
html.motion .cs-stop p:not(.cs-chips) { max-width: 34em; font-size: clamp(15px, .5vw + 12px, 18px); line-height: 1.5; }
html.motion .cs-chips { gap: 6px; }
html.motion .cs-chip { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
html.motion .cs-st-note { display: none; }

/* chapters bar */
html.motion .cs-st-nav { display: block; position: relative; z-index: 4; padding: 6px var(--gutter) calc(10px + env(safe-area-inset-bottom)); max-width: calc(var(--maxw) + var(--gutter) * 2); width: 100%; margin-inline: auto; }
.cs-st-nodes { display: flex; justify-content: space-between; gap: 4px; list-style: none; padding: 0; margin: 0 0 8px; }
.cs-st-nodes button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 36px; padding: 0 3px; background: none; border: 0; cursor: pointer; color: var(--ink-muted); font: 400 14px/1 var(--f-sans); }
.cs-st-nodes i { font: 400 13px/1 var(--f-mono); font-style: normal; letter-spacing: .04em; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.cs-st-nodes span { display: none; }
.cs-st-nodes li.is-on button { color: var(--cream); }
.cs-st-nodes li.is-on i { background: var(--atmos, var(--saffron)); border-color: var(--atmos, var(--saffron)); color: #180C04; }
.cs-st-nodes li.is-past i { border-color: var(--atmos, var(--saffron)); color: var(--cream); }
.cs-st-nodes button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 999px; }
.cs-st-fill { display: block; height: 2px; background: var(--atmos, var(--saffron)); transform-origin: 0 50%; transform: scaleX(var(--jp, 0)); box-shadow: 0 0 10px color-mix(in oklab, var(--atmos, var(--saffron)) 60%, transparent); }

@media (max-width: 979px) {
  html.motion .cs-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  html.motion .cs-chips::-webkit-scrollbar { display: none; }
  html.motion .cs-chip { flex: none; }
}
@media (max-width: 979px) and (max-height: 760px) {
  html.motion .cs-st-head .label { display: none; }
  html.motion .cs-st-head { padding-top: calc(var(--hdr) + 8px); margin-bottom: 6px; }
  html.motion .cs-st-head h2 { font-size: calc(var(--ds) * 22px); }
  html.motion .cs-stop h3 { font-size: calc(var(--ds) * 26px); }
  html.motion .cs-stop p:not(.cs-chips) { font-size: 14.5px; line-height: 1.42; }
  html.motion .cs-st-stops { padding-block: 6px; }
  html.motion .cs-st-nodes button { min-height: 40px; }
  html.motion .cs-st-nodes i { width: 28px; height: 28px; }
}
@media (min-width: 700px) { .cs-st-nodes li.is-on span { display: inline; } }
@media (min-width: 980px) {
  html.motion .cs-st-stage { grid-template-columns: minmax(340px, 36%) 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  html.motion .cs-st-head { grid-column: 1; grid-row: 1; padding-inline: var(--gutter); max-width: none; margin: 0; }
  html.motion .cs-st-stops { grid-column: 1; grid-row: 2; align-content: center; padding-inline: var(--gutter); max-width: none; margin: 0; }
  html.motion .cs-st-scene { grid-column: 2; grid-row: 1 / 3; padding: calc(var(--hdr) + 24px) var(--gutter) 24px 0; }
  html.motion .cs-st-nav { grid-column: 1 / 3; grid-row: 3; max-width: none; padding-inline: var(--gutter); }
}

/* ---------- the plan builder ---------- */
.cs-plan { padding-block: var(--sec); }
.cs-plan-grid { display: grid; gap: 28px; align-items: start; }
.cs-plan-form { display: grid; gap: 28px; }
.cs-pf { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.cs-pf legend { font: 500 18px/1.3 var(--f-sans); color: var(--cream); padding: 0; margin-bottom: 14px; }
.cs-who, .cs-modes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.cs-needs { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-card, .cs-pill { position: relative; display: block; cursor: pointer; }
.cs-card input, .cs-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cs-card > span { display: grid; gap: 10px; align-content: start; min-height: 96px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--espresso-2); color: var(--cream); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.cs-card .ic .dr { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
.cs-card .ic .af { opacity: 1 !important; animation: none !important; }
.cs-card > span .ic { color: var(--ink-muted); transition: color .3s var(--ease); }
.cs-card b { font-weight: 500; font-size: 17px; line-height: 1.3; }
.cs-card--sm > span { min-height: 0; gap: 4px; }
.cs-card em { font-style: normal; font-size: 14.5px; color: var(--ink-muted); line-height: 1.4; }
.cs-pill > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15.5px; color: var(--cream); transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.cs-card input:hover + span, .cs-pill input:hover + span { border-color: var(--cream); }
.cs-card input:checked + span { border-color: var(--saffron); background: color-mix(in oklab, var(--saffron) 14%, var(--espresso-2)); }
.cs-card input:checked + span .ic { color: var(--saffron-lt); }
.cs-pill input:checked + span { background: var(--cream); border-color: var(--cream); color: #180C04; }
.cs-card input:focus-visible + span, .cs-pill input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 3px; }

.cs-plan-out { border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 4px); background: var(--espresso-2); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; position: relative; }
.cs-plan-out h3 { font: 300 clamp(26px, 1.4vw + 16px, 38px)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--cream); }
.cs-plan-empty { color: var(--ink-muted); }
.cs-plan-out:has(.cs-plan-steps:not([hidden])) .cs-plan-empty { display: none; }
.cs-plan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.cs-plan-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line-strong); }
.cs-plan-steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-block: 8px; animation: csIn .5s var(--ease) both; }
.cs-plan-steps li > i { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--saffron); background: var(--espresso-2); display: grid; place-items: center; font: 500 14px/1 var(--f-mono); font-style: normal; color: var(--cream); position: relative; z-index: 1; }
.cs-plan-steps b { display: block; font-weight: 500; font-size: 17px; color: var(--cream); }
.cs-plan-steps span { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
@keyframes csIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cs-plan-msg { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: #130a05; border: 1px dashed var(--line-strong); }
.cs-plan-msg-t { font-size: 15.5px; line-height: 1.55; color: var(--cream); white-space: pre-wrap; }
.cs-plan-copy { min-height: 48px; padding: 0 20px; background: none; border: 0; color: var(--ink-soft); font: 500 15px/1 var(--f-sans); text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 5px; cursor: pointer; }
.cs-plan-copy:hover { color: var(--saffron-lt); }
.cs-plan-fee { font-size: 14px; color: var(--ink-muted); }
@media (min-width: 980px) {
  .cs-plan-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .cs-plan-out { position: sticky; top: calc(var(--hdr) + 20px); }
}
@media (prefers-reduced-motion: reduce) { .cs-plan-steps li { animation: none; } }


/* smooth stage (30 Oct): one layer per scene, a compositor camera, layer opacity for the dissolves */
html.motion .sc-frame { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .55); background: #130a05; contain: paint; isolation: isolate; }
html.motion .sc-cam { position: absolute; left: 0; top: 0; will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
html.motion .sc-svg.sc-lay { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; min-height: 0; border-radius: 0; box-shadow: none; background: none; display: block; visibility: hidden; opacity: 0; pointer-events: none; }
html.motion .sc-svg.sc-lay:first-child { opacity: 1; }
html.motion .sc-svg.sc-lay.is-live { visibility: visible; will-change: opacity; }
html.motion .sc-svg.sc-defs { position: absolute; width: 0; height: 0; min-height: 0; border-radius: 0; box-shadow: none; background: none; overflow: hidden; pointer-events: none; }
