.demo-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.project-rows h3 a:hover { color: var(--ember); }
.project-story { --rim: #503337; --tint: #ff6a76; margin-top: clamp(5.5rem, 11vw, 11rem); scroll-margin-top: 5rem; }
.story-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 1.4rem 0 clamp(2rem,4vw,4rem); }
.story-heading h3 { font: 500 clamp(3.2rem,7.2vw,8rem)/.87 var(--sans); letter-spacing: -.075em; }
.story-heading > p { font-size: clamp(1rem,1.4vw,1.4rem); max-width: 33ch; line-height: 1.3; }
.story-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.6fr); align-items: start; gap: clamp(1.6rem,6vw,7rem); }
.story-steps li { border-top: 1px solid var(--line); }
.story-steps li:last-child { border-bottom: 1px solid var(--line); }
.story-steps button { display: grid; width: 100%; text-align: left; grid-template-columns: 2.3rem 1fr; align-items: baseline; padding: 1.15rem 0; line-height: 1.15; font-size: clamp(1.12rem,1.65vw,1.7rem); letter-spacing: -.035em; color: #b6a8ab; }
.story-steps button:hover, .story-steps button[aria-pressed=true] { color: var(--paper); }
.story-steps button[aria-pressed=true] .step-number { color: var(--tint); }
.step-number, .demo-controls, .sim-head > span, .sim-label, .receipt small, .reservation-ticket small, .collection-card small, .login-slip small, .range-ends, .network-caption, .atelier-shot > span { font: 400 .75rem/1.35 var(--mono); letter-spacing: .04em; }
.step-copy { max-width: 43ch; margin: -.25rem 0 1.25rem 2.3rem; color: #d7cacd; font-size: 1rem; line-height: 1.5; }
.demo-unit { border: 1px solid var(--rim); background: #100d0e; min-width: 0; }
.demo-surface { display: grid; place-items: center; padding: clamp(1rem,3vw,3rem); min-height: clamp(21rem,32vw,36rem); background: radial-gradient(ellipse at center,#51132144,transparent 72%), radial-gradient(#79383f74 .8px,transparent 1px) 0 0 / 11px 11px, #100c0d; }
.sim-frame { min-width: 0; width: min(100%, 34rem); background: #191416; border: 1px solid #604046; box-shadow: .5rem .5rem 0 #07050666; }
.sim-frame[hidden], .step-copy[hidden] { display: none; }
.demo-icon { display: block; width: 1.6rem; height: 1.6rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sim-head { display: flex; gap: .75rem; align-items: center; border-bottom: 1px solid var(--rim); padding: .8rem 1rem; background: #241a1c; }
.sim-head strong { font-weight: 500; letter-spacing: -.025em; }
.sim-head .demo-icon { color: var(--tint); }
.sim-head > span { margin-left: auto; color: #cbb8bc; text-align: right; }
.sim-content { display: grid; gap: .8rem; align-content: center; min-height: 15rem; padding: clamp(.85rem,2vw,1.6rem); font-size: 1rem; }
.bubble { justify-self: start; background: #33272a; padding: .55rem .85rem; max-width: 92%; border-radius: .75rem .75rem .75rem 0; }
.bubble.outgoing { justify-self: end; color: #fff; background: #9e1730; border-radius: .75rem .75rem 0 .75rem; font-family: var(--mono); }
.login-slip, .receipt, .reservation-ticket, .collection-card { border: 1px solid var(--rim); background: #100e0f; padding: 1rem; }
.login-slip { display: flex; gap: .8rem; align-items: center; }
.login-slip small, .login-slip strong, .receipt small, .collection-card small, .reservation-ticket small { display: block; }
.sim-content small, .sim-label, .network-caption, .range-ends { color: #c6b3b7; }
.login-slip .demo-icon, .receipt .demo-icon, .reservation-ticket .demo-icon, .collection-card .demo-icon { color: var(--tint); }
.receipt, .collection-card, .reservation-ticket { display: grid; gap: .45rem; }
.receipt strong, .collection-card strong, .reservation-ticket strong { font: 500 clamp(1.35rem,2.4vw,2.5rem)/1.08 var(--sans); letter-spacing: -.045em; }
.receipt > span, .collection-card > span { font-size: .85rem; color: #dac6ca; }
.line-progress { height: 3px; margin: .85rem 0 .2rem; overflow: hidden; background: #51343a; }
.line-progress i { display: block; height: 100%; background: var(--tint); transform-origin: left; }
.range-ends { display: flex; justify-content: space-between; }
.choice-list, .food-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.choice, .food-choice { min-height: 2.75rem; padding: 0 .7rem; border: 1px solid #685058; font-size: .85rem; }
.choice[aria-pressed=true], .food-choice[aria-pressed=true] { background: #691e2c; border-color: var(--tint); color: #fff; }
.sim-select { display: flex; gap: .8rem; align-items: center; font-size: .9rem; }
.sim-select select { background: #291d20; color: #fff; border: 1px solid #74545c; font: inherit; padding: .35rem .55rem; min-height: 2.75rem; }
.message-code { color: #ffb1b8; font: .85rem/1.5 var(--mono); overflow-wrap: anywhere; }
.voice-wave { height: 2.3rem; display: flex; align-items: center; gap: 4px; color: var(--tint); }
.voice-wave i { width: 3px; background: currentColor; height: var(--h); }
.utterance strong { display: block; margin: .7rem 0; font: 500 clamp(1.3rem,2.4vw,2.1rem)/1.18 var(--sans); letter-spacing: -.04em; }
.food-choice { flex: 1; display: grid; place-items: center; gap: .35rem; min-width: 4.4rem; padding: .75rem .3rem; }
.food-choice .demo-icon { width: 2rem; height: 2rem; }
.network-map { display: grid; gap: 1rem; }
.node-line { display: flex; align-items: center; }
.route-node { min-width: 0; display: grid; justify-items: center; gap: .4rem; flex: 0 1 5rem; }
.route-node .demo-icon { width: 2.4rem; height: 2.4rem; color: var(--tint); }
.route-node b { font-size: .85rem; font-weight: 500; }
.route-edge { flex: 1; position: relative; border-bottom: 1px dashed #95616c; }
.route-edge::after { position: absolute; content: ''; width: 6px; height: 6px; left: 0; top: -3px; background: var(--tint); }
.catalog-feed { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--rim); font-size: .85rem; }
.catalog-feed b, .catalog-feed .demo-icon { color: var(--tint); }
.catalog-feed .demo-icon { width: 1.1rem; height: 1.1rem; }
.pantry-line { margin-top: -.5rem; color: #ffa7b0; }
.recipe-list { display: grid; gap: .4rem; }
.recipe-list button { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .65rem; min-height: 2.75rem; text-align: left; background: #241c1e; border: 1px solid var(--rim); font-size: .92rem; }
.recipe-list button[aria-pressed=true] { border-color: var(--tint); }
.recipe-list small { flex: none; }
.story-atelier .sim-frame { width: 100%; }
.story-atelier .demo-surface { padding: clamp(.6rem,1.6vw,1.8rem); }
.atelier-shot { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; background: #090909; }
.atelier-shot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.atelier-shot > span { position: absolute; right: .5rem; bottom: .5rem; padding: .35rem .5rem; color: white; background: #20171aee; border: 1px solid #74545c; }
.demo-controls { display: flex; align-items: center; gap: 0; border-top: 1px solid var(--rim); }
.demo-controls button { min-width: 2.85rem; min-height: 2.85rem; border-left: 1px solid var(--rim); }
.demo-controls [data-play] { border-left: 0; text-align: left; padding-inline: 1rem; }
.demo-count { margin-left: auto; padding: 0 .85rem; color: #d0bdc1; }
.demo-controls button:disabled { opacity: .35; cursor: default; }
.demo-controls button:not(:disabled):hover { background: #432129; }
@media (prefers-reduced-motion: no-preference) {
  .sim-frame:not([hidden]) { animation: scene-enter .4s var(--ease) both; }
  .sim-frame:not([hidden]) .bubble, .sim-frame:not([hidden]) .login-slip { animation: message-in .4s var(--ease) both; }
  .bubble:nth-child(2) { animation-delay: .18s !important; }
  .login-slip:nth-child(3) { animation-delay: .35s !important; }
  .line-progress i { animation: meter-run 3s var(--ease) both; }
  .voice-wave i { animation: voice-pulse .9s var(--delay) ease-in-out 4 alternate; }
  .route-edge::after { animation: data-route 1.4s linear 3; }
  .atelier-shot img { animation: reveal-shot .65s var(--ease) both; }
  @keyframes scene-enter { from { opacity: .3; transform: translateY(6px); } }
  @keyframes message-in { from { opacity: 0; transform: translateY(9px); } }
  @keyframes meter-run { from { transform: scaleX(.02); } }
  @keyframes voice-pulse { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
  @keyframes data-route { from { left: 0; } to { left: 95%; } }
  @keyframes reveal-shot { from { opacity: .4; transform: scale(1.025); } }
}
@media (max-width: 800px) {
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .story-heading { display: block; }
  .story-heading > p { margin-top: 1rem; }
  .story-steps button { padding-block: .7rem; min-height: 44px; }
  .demo-surface { min-height: 18rem; }
  .story-atelier .demo-surface { min-height: 0; }
  .project-rows .project-links { flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
}
@media (max-width: 400px) {
  .demo-surface { padding: .55rem; }
  .sim-content { padding: .7rem; }
  .choice { padding-inline: .5rem; }
  .range-ends { font-size: .65rem; }
}
.chroma-comparison { --divide: 50%; position: relative; overflow: hidden; aspect-ratio: 920 / 570; }
.chroma-comparison, .chroma-comparison i { background-image: url("./atelier/trailer-compare.webp"); background-size: 208.696% auto; background-position: 96% 58%; }
.chroma-comparison i { position: absolute; inset: 0; background-position: 4% 58%; clip-path: inset(0 calc(100% - var(--divide)) 0 0); }
.chroma-comparison b { position: absolute; height: 100%; left: var(--divide); width: 2px; background: var(--paper); }
.chroma-comparison span { position: absolute; top: .65rem; left: .65rem; padding: .25rem .4rem; font: .75rem var(--mono); background: #100d0ee8; }
.chroma-comparison span:last-child { left: auto; right: .65rem; }
.compare-slider { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; font: .8rem var(--mono); border-top: 1px solid var(--rim); }
.compare-slider input { flex: 1; min-width: 4rem; min-height: 2.4rem; accent-color: var(--ember); }
