/* Product stories: LottieFiles choreography + Vercel Labs web-animation-design.
   One 3.6s narrative per scene; readable final copy never disappears.
   Only transforms/opacity animate. Mobile starts still; reduced motion stays still. */
:root{--story-cycle:3.6s;--story-ease:cubic-bezier(.22,1,.36,1)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.motion-scene{position:relative;isolation:isolate}
.scene-demo-label{font-size:12px;color:#a8afbb;margin-left:auto;white-space:nowrap}
.motion-toggle{width:44px;height:44px;min-width:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#b7bdc7;cursor:pointer}
.motion-toggle:focus-visible{outline:2px solid #f5b83d;outline-offset:0}
.motion-toggle [data-motion-icon]{display:block;width:12px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.motion-toggle [data-mode=play]{width:0;height:0;border:6px solid transparent;border-left:9px solid currentColor;border-right:0;margin-left:3px}
.motion-toggle:active{transform:scale(.96)}
@media(hover:hover) and (pointer:fine){.motion-toggle:hover{color:#f5b83d;background:#ffffff09}}
.motion-scene .window-bar{min-height:44px;padding:0 12px 0 24px;gap:12px}
.scene-eyebrow{display:flex;align-items:center;gap:8px;color:#a8afbb;font:400 11px/1.4 var(--font-mono);letter-spacing:0}
.scene-eyebrow>span{color:#d2ae66}
.hero--centred .hero__window>.hero-scene{width:min(1020px,calc(100% - 64px))}
.hero-story{display:grid;grid-template-columns:1.05fr .8fr 1.25fr;align-items:center;gap:24px;padding:20px 28px 24px}
.story-question h3{font-size:23px;font-weight:400;letter-spacing:-.5px;line-height:1.3;margin:12px 0 20px}
.voice-track{display:flex;align-items:center;gap:12px;font-size:11px;color:#a8afbb}
.waveform{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:24px;color:#f5b83d;flex:none}
.waveform i{display:block;width:3px;height:16px;border-radius:3px;background:currentColor;transform:scaleY(.45);--bar-shift:0s}
.waveform i:nth-child(3n){height:24px;--bar-shift:-.12s}
.waveform i:nth-child(3n + 1){height:10px;--bar-shift:-.24s}
.waveform i:nth-child(4n){height:20px;--bar-shift:-.36s}
.story-context{text-align:center;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}
.story-context .scene-eyebrow{justify-content:center}
.context-orbit{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;margin:16px -10px}
.context-orbit>img{position:relative;z-index:1;filter:drop-shadow(0 5px 16px #f5b83d18)}
.signal-line{height:1px;flex:1;background:#f5b83d20;position:relative}
.signal-line::after{content:'';position:absolute;inset:-1px 0;background:#f5b83d;transform:scaleX(.8);transform-origin:left;opacity:.45}
.context-stack{display:grid;justify-content:center;gap:6px}
.context-stack code{position:relative;border:1px solid #ffffff16;border-radius:5px;padding:5px 8px;color:#d3bd8f;background:#ffffff03;font:10px/1.4 var(--font-mono)}
.context-stack code::after{content:'';position:absolute;inset:-1px;border:1px solid #f5b83d;border-radius:inherit;opacity:0}
.story-reply>.scene-eyebrow{margin-bottom:10px}
.reply-device{position:relative;border:1px solid #5b5140;border-radius:16px 16px 8px 8px;background:#1b2029;padding:18px 18px 14px;box-shadow:0 5px 20px #0003;overflow:hidden}
.device-speaker{position:absolute;left:50%;top:6px;transform:translateX(-50%);height:3px;width:34px;border-radius:3px;background:#080a10}
.reply-title{display:flex;align-items:center;gap:8px;color:#f5b83d;font-size:12px;line-height:1.4;font-weight:500}
.reply-device>p:not(.reply-title){font-size:14px;line-height:1.5;margin-top:8px;color:#f7f6f2}
.reply-grounded{display:flex;align-items:center;gap:6px;margin-top:10px;color:#b0b7c3;font-size:10px}
.reply-grounded>span{color:#f5b83d}
.answer-rail{position:absolute;left:0;top:18px;bottom:18px;width:2px;background:#f5b83d;transform-origin:top;opacity:.7}

/* The interview mockup connects a spoken question to an actual answer. */
.interview-visual.interview-scene{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:24px 36px 32px;min-height:450px;overflow:hidden;background:#d6c6a7}
.scene-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:10px}
.interview-scene .scene-demo-label{margin:0;color:#595449}
.interview-scene .motion-toggle{color:#595449;margin-right:-12px}
.interview-question{position:relative;background:#fbf7ed;color:#191b20;border:1px solid #fff8;border-radius:12px;padding:20px 24px;box-shadow:0 5px 18px #30291c0b}
.interview-question .scene-eyebrow{color:#6d665b}
.interview-question h3{font-size:26px;line-height:1.2;letter-spacing:-.5px;margin:10px 0 12px;font-weight:400}
.interview-question .waveform{color:#8a6321;height:22px}
.interview-context{display:flex;align-items:center;justify-content:center;gap:10px;height:42px;font:10px/1.4 var(--font-mono);color:#5e574a}
.context-link{position:relative;flex:1;height:1px;background:#74664b40;max-width:54px}
.context-link::after{content:'';position:absolute;inset:0;background:#7b5718;transform-origin:left;transform:scaleX(.7);opacity:.5}
.interview-reply{position:relative;border-radius:12px;padding:20px 24px;background:#11151d;color:#f7f6f2;box-shadow:0 8px 24px #30291c1a;overflow:hidden}
.interview-reply .reply-title{font-size:13px;align-items:flex-start}
.reply-title small{display:block;font-size:10px;font-weight:400;color:#a8afbb;margin-top:2px}
.interview-reply>p{font-size:16px;line-height:1.55;margin-top:12px}
.answer-parts{display:flex;gap:8px;margin-top:16px}
.answer-parts>span{position:relative;font-size:10px;padding:4px 8px;border:1px solid #f5b83d25;border-radius:4px;color:#d3bd8f;background:#f5b83d08}
.answer-parts>span::after{content:'';position:absolute;inset:-1px;border:1px solid #f5b83d;border-radius:inherit;opacity:0}

/* Project files connect to an architecture, then to a meeting explanation. */
.work-scene .code-map{padding:28px 40px}
.work-scene .code-map-root{margin-bottom:18px}
.work-scene .code-map-file{position:relative;padding:0 12px;min-height:40px;border-radius:5px;isolation:isolate}
.work-scene .code-map-file::before{content:'';position:absolute;inset:2px 0;background:#f5b83d0c;border:1px solid #f5b83d30;border-radius:inherit;opacity:0;z-index:-1}
.file-dot{width:6px;height:6px;border-radius:2px;background:#8d98a8;flex:none;position:relative}
.file-dot::after{content:'';position:absolute;inset:0;background:#f5b83d;border-radius:inherit;opacity:0}
.architecture-flow{display:flex;align-items:center;gap:8px;margin-top:20px;font:10px/1.4 var(--font-mono);color:#d3bd8f}
.architecture-flow>span{padding:6px 9px;border:1px solid #f5b83d25;border-radius:4px;background:#f5b83d08;white-space:nowrap}
.architecture-flow>i{flex:1;height:1px;position:relative;background:#ffffff18;min-width:8px}
.architecture-flow>i::after{content:'';position:absolute;inset:0;background:#f5b83d;transform-origin:left;transform:scaleX(.8);opacity:.6}
.work-scene .briefing{padding:28px 40px;display:flex;flex-direction:column;justify-content:center}
.meeting-prompt h3{font-size:22px;line-height:1.3;letter-spacing:-.4px;font-weight:400;margin:8px 0 20px}
.meeting-answer{position:relative;padding:16px 18px;border:1px solid #ffffff13;border-radius:10px;background:#191e27;overflow:hidden}
.meeting-answer p{font-size:16px;line-height:1.6;margin-top:10px}
.work-scene .briefing .link{font-size:13px;margin-top:20px;align-self:flex-start}

/* One clock, three steps. Decoration moves; meaning stays available. */
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) .waveform i{animation:voice-input var(--story-cycle) ease-in-out infinite;animation-delay:var(--bar-shift)}
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) :is(.signal-line,.context-link,.architecture-flow>i)::after{animation:context-travel var(--story-cycle) var(--story-ease) infinite}
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) :is(.context-stack code,.answer-parts>span)::after{animation:source-found var(--story-cycle) ease-in-out infinite}
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) .answer-rail{animation:reply-ready var(--story-cycle) var(--story-ease) infinite}
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) .reply-grounded>span{animation:reply-check var(--story-cycle) var(--story-ease) infinite}
.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) .code-map-file::before,.motion-scene:is([data-motion-state=playing],[data-motion-state=paused]) .file-dot::after{animation:file-focus var(--story-cycle) ease-in-out infinite}
.work-scene .code-map-file:nth-child(3)::before,.work-scene .code-map-file:nth-child(3) .file-dot::after{animation-delay:.22s}
.work-scene .code-map-file:nth-child(4)::before,.work-scene .code-map-file:nth-child(4) .file-dot::after{animation-delay:.44s}
.work-scene .code-map-file:nth-child(5)::before,.work-scene .code-map-file:nth-child(5) .file-dot::after{animation-delay:.66s}
.motion-scene .context-stack code:nth-child(2)::after{animation-delay:.12s}
.motion-scene .answer-parts>span:nth-child(2)::after{animation-delay:.15s}
.motion-scene .answer-parts>span:nth-child(3)::after{animation-delay:.3s}
/* Override animation shorthands on the more specific animated descendants. */
.motion-scene:is([data-motion-state=paused],[data-motion-suspended=true]) *,.motion-scene:is([data-motion-state=paused],[data-motion-suspended=true]) *::before,.motion-scene:is([data-motion-state=paused],[data-motion-suspended=true]) *::after{animation-play-state:paused!important}
@keyframes voice-input{0%,30%,100%{transform:scaleY(.4)}5%,16%{transform:scaleY(1)}10%,22%{transform:scaleY(.55)}}
@keyframes context-travel{0%,18%{transform:scaleX(.08);opacity:.2}38%,72%{transform:scaleX(1);opacity:1}88%,100%{transform:scaleX(1);opacity:.2}}
@keyframes source-found{0%,24%,90%,100%{opacity:0}35%,62%{opacity:.7}}
@keyframes reply-ready{0%,42%{transform:scaleY(.12);opacity:.35}62%,88%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1);opacity:.35}}
@keyframes reply-check{0%,45%,100%{transform:scale(.85);opacity:.6}60%,85%{transform:scale(1);opacity:1}}
@keyframes file-focus{0%,3%,45%,100%{opacity:0}13%,27%{opacity:1}}

@media(min-width:1024px) and (max-height:800px){
  .hero-story{padding:14px 24px 18px;gap:18px}.story-question h3{font-size:20px;margin:10px 0 14px}.reply-device{padding:16px 14px 12px}.reply-device>p:not(.reply-title){font-size:13px}.reply-grounded{display:none}
  .interview-visual.interview-scene{min-height:380px;padding:16px 24px}.scene-toolbar{margin-bottom:4px}.interview-question{padding:14px 20px}.interview-question h3{font-size:23px;margin:8px 0}.interview-context{height:30px}.interview-reply{padding:16px 20px}.interview-reply>p{font-size:14px}.answer-parts{margin-top:12px}
  .work-scene .code-map,.work-scene .briefing{padding:20px 24px}.work-scene .code-map-root{margin-bottom:12px}.work-scene .code-map-file{min-height:34px}.architecture-flow{margin-top:14px}.meeting-prompt h3{font-size:20px}
}
@media(min-width:640px) and (max-width:1023px){
  .hero-story{grid-template-columns:1fr 1.1fr;gap:24px;padding:20px 24px}.story-context{display:none}.story-question h3{font-size:22px}
  .interview-visual.interview-scene{display:grid;grid-template-columns:1fr 1.1fr;gap:0 24px;padding:20px 24px;min-height:0;align-items:center}.interview-scene .scene-toolbar{grid-column:1/-1}.interview-question{grid-column:1;grid-row:2}.interview-context{grid-column:1;grid-row:3;height:30px}.interview-reply{grid-column:2;grid-row:2/4;padding:20px}.interview-question h3{font-size:23px}.interview-reply>p{font-size:14px}
  .work-scene .code-map,.work-scene .briefing{padding:24px}.work-scene .code-map-root{font-size:16px}.architecture-flow{gap:5px;font-size:9px}.architecture-flow>span{padding:5px}.meeting-prompt h3{font-size:20px}.meeting-answer{padding:14px}.meeting-answer p{font-size:14px}
}
@media(max-width:639px){
  main>#interviews,main>#work{height:auto;min-height:100svh}
  main>#interviews>.wrap,main>#work>.wrap{height:auto}
  .hero--centred .hero__window>.hero-scene{width:calc(100% - 24px);left:12px;top:12px}
  .hero-scene .window-bar{padding-left:14px;gap:8px}.hero-scene .mini-brand{font-size:14px}.hero-scene .mini-brand img{width:18px;height:18px}.scene-demo-label{font-size:10px}
  .hero-story{display:block;padding:12px 14px 16px}.story-question .scene-eyebrow{font-size:10px}.story-question h3{font-size:17px;line-height:1.25;margin:6px 0 12px}.story-question h3 br{display:none}.story-question .voice-track,.story-context,.story-reply>.scene-eyebrow,.device-speaker,.reply-grounded{display:none}
  .reply-device{border-radius:8px;padding:12px 14px;border-color:#ffffff1c}.reply-title{font-size:11px}.reply-device>p:not(.reply-title){font-size:13px;line-height:1.4;margin-top:6px}
  .interview-visual.interview-scene{padding:12px 16px 16px;min-height:0}.scene-toolbar{margin-bottom:4px}.interview-question{padding:12px 16px}.interview-question .scene-eyebrow{font-size:9px}.interview-question h3{font-size:19px;line-height:1.25;margin:6px 0}.interview-question h3 br{display:none}.interview-question .waveform{display:none}.interview-context{height:28px;font-size:9px}.interview-reply{padding:14px 16px}.interview-reply .reply-title{font-size:12px}.reply-title small{display:none}.interview-reply>p{font-size:13px;line-height:1.45;margin-top:8px}.answer-parts{margin-top:10px}.answer-parts>span{padding:3px 6px;font-size:9px}
  .work-scene .window-bar{padding-left:16px;font-size:12px;gap:8px}.work-scene .code-map{padding:16px}.work-scene .code-map-root{font-size:15px;margin-bottom:8px}.work-scene .code-map-file{min-height:28px;padding:0 8px}.architecture-flow{margin-top:12px;font-size:9px}.architecture-flow>span{padding:5px 8px}.work-scene .briefing{padding:16px}.meeting-prompt .scene-eyebrow{font-size:10px}.meeting-prompt h3{font-size:18px;margin:6px 0 12px}.meeting-answer{padding:12px 14px}.meeting-answer p{font-size:13px;line-height:1.5;margin-top:8px}.work-scene .briefing .link{display:none}
}
@media(prefers-reduced-motion:reduce){
  .motion-scene *,.motion-scene *::before,.motion-scene *::after{animation:none!important;transition:none!important}
  .motion-toggle{display:none}
}
