/* Hero product stage, motion and the second-round sections. Loaded after styles.css. */

/* Hero stage: the editor, tilted, with real pieces of the app floating around it. */
.hero { padding: 128px 0 60px; }
.hero h1 { max-width: 15ch; font-size: clamp(54px, 8vw, 124px); }
.hero .lede { margin: 22px auto 28px; }
.stage { position: relative; width: min(1180px, 100% - 32px); margin: 52px auto 0; perspective: 1800px; }
.window { border-radius: 18px; overflow: hidden; border: 1px solid var(--edge); background: #0d1310; box-shadow: 0 80px 160px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); transform-origin: 50% 0; transition: transform 0.1s linear; }
.window .bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--edge); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a332e; }
.window .bar span { margin: auto; font-size: 12px; color: var(--muted); padding: 4px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); }
.float { position: absolute; z-index: 2; margin: 0; transform: translateY(calc(var(--lift, 0px) * var(--d, 0.5))); }
.f-ai { left: -3%; top: 16%; width: 21%; border-radius: 18px; padding: 6px; }
.f-ai img { border-radius: 12px; }
.f-phone { right: -2%; top: 22%; width: 17%; border-radius: 30px; padding: 7px; background: #050a07; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.8); }
.f-phone img { border-radius: 24px; }
.f-key { left: 8%; bottom: 8%; display: flex; gap: 12px; align-items: center; border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.f-key .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.f-key small { display: block; color: var(--muted); font-size: 11px; }
.f-file { right: 14%; bottom: -4%; border-radius: 16px; padding: 12px 18px; font-size: 14px; }
.f-file small { display: block; color: var(--muted); font-size: 12px; }
.versus { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; margin-top: 70px; font: 400 clamp(20px, 2.4vw, 30px) "Bricolage Grotesque"; color: var(--muted); }
.versus s { text-decoration-thickness: 2px; text-decoration-color: rgba(244, 174, 133, 0.7); }
.versus .win { color: var(--text); font-style: italic; }

/* Kinetic headings: words rise in, letters roll on hover. */
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.16em 0.22em; margin: -0.06em -0.16em -0.22em; }
.kinetic .w > span { display: inline-block; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 60ms); }
.m .kinetic .w > span { transform: translateY(105%); }
.m .kinetic.in .w > span { transform: none; }
.roll { display: inline-flex; overflow: hidden; cursor: default; line-height: 1.28; padding: 0 0.12em; margin: 0 -0.12em; }
.roll .ch { position: relative; display: inline-block; transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1); transition-delay: calc(var(--i) * 22ms); white-space: pre; }
.roll .ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; font-weight: 300; color: var(--clay); }
.pipeline li:hover .roll .ch { transform: translateY(-100%); }

/* Reveal on scroll. */
.reveal { transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.m .reveal { opacity: 0; transform: translateY(40px) scale(0.98); }
.m .reveal.in { opacity: 1; transform: none; }
.spread .reveal:nth-child(2) { transition-delay: 0.12s; }
.spread .reveal:nth-child(3) { transition-delay: 0.24s; }
.m .spread figure.reveal.in:nth-child(2) { transform: translateY(-36px); }

/* How it works: marquee, wipe-in thumbnails, a progress rail and a preview that follows the pointer. */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.marquee div { display: inline-flex; gap: 48px; padding: 14px 0; animation: tick 28s linear infinite; font: italic 400 clamp(40px, 6vw, 88px)/1 "Bricolage Grotesque"; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee span:nth-child(odd) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes tick { to { transform: translateX(-50%); } }
.pipeline { position: relative; border-top: 0; }
.pipeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.pipeline::after { content: ""; position: absolute; left: 20px; top: 0; width: 2px; height: calc(var(--progress, 0) * 100%); background: var(--clay); }
.pipeline li { position: relative; padding: 34px 0 34px 0; cursor: default; }
.pipeline li > .mono { position: relative; z-index: 1; background: var(--paper); padding: 6px 0; text-align: center; }
.pipeline h3 { font-size: clamp(40px, 4.4vw, 64px); }
.pipeline .thumb { overflow: hidden; border-radius: 10px; transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
.m .pipeline .thumb { clip-path: inset(0 100% 0 0); }
.m .pipeline li.in .thumb { clip-path: inset(0 0 0 0); }
.m .pipeline .thumb img { transform: scale(1.12); }
.pipeline .thumb img { transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 0; border-radius: 0; }
.pipeline li.in .thumb img { transform: scale(1); }
.pipeline li:hover .thumb img { transform: scale(1.06); }
.pipeline li p { transition: color 0.3s ease; }
.pipeline li:hover p { color: var(--ink); }
.cursor-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 420px; pointer-events: none; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(20, 40, 29, 0.6); opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-4deg); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cursor-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.cursor-preview img { width: 100%; display: block; }

/* Toolkit: real panels, layered. */
.toolbar-strip { display: block; margin: 0 auto 48px; width: min(560px, 100%); border-radius: 14px; border: 1px solid var(--edge); }
.kit { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.k { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #121212; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease; }
.k:hover { transform: translateY(-8px); box-shadow: 0 60px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--lime); z-index: 5; }
.k img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.k figcaption { position: absolute; left: 12px; bottom: 12px; font: 500 12px Inter; color: var(--text); background: rgba(6, 17, 11, 0.85); border: 1px solid var(--edge); border-radius: 999px; padding: 6px 12px; margin: 0; }
.k-layers { grid-column: 1 / span 3; grid-row: 1 / span 2; height: 640px; }
.k-vars { grid-column: 4 / span 6; grid-row: 1; height: 420px; }
.k-fx { grid-column: 10 / span 3; grid-row: 1 / span 2; height: 640px; }
.k-auto { grid-column: 4 / span 3; grid-row: 2; height: 204px; }
.k-pick { grid-column: 7 / span 3; grid-row: 2; height: 204px; }
.k-fx img { object-position: bottom left; }

/* Materials: zoomed canvas shots with a loupe. */
.materials .split { margin-bottom: 56px; }
.mats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mat { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--edge); cursor: zoom-in; }
.mat img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 40%; width: 100%; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mat:hover img { transform: scale(1.04); }
.mat figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(6, 17, 11, 0.9)); display: flex; flex-direction: column; gap: 2px; }
.mat figcaption b { font: 400 32px "Bricolage Grotesque"; }
.mat figcaption span { color: var(--muted); font-size: 11px; }
.loupe { position: absolute; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.4); background-repeat: no-repeat; transform: translate(-50%, -50%) scale(0.4); opacity: 0; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 3; }
.mat:hover .loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hint { color: var(--muted); text-align: center; margin-top: 18px; }

/* Interview: the conversation and, beside it, the app. */
.talk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.talk .thread { padding-top: 10px; }
.mirror { position: sticky; top: 96px; }
.mirror-frame { border-radius: 18px; overflow: hidden; background: #111613; border: 1px solid #22302a; box-shadow: 0 50px 100px -40px rgba(20, 40, 29, 0.7); }
.mirror-frame .bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid #22302a; }
.mirror-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a332e; }
.mirror-frame .bar span { margin: auto; font: 500 12px Inter; color: #a6b8ab; }
.shots { position: relative; aspect-ratio: 4 / 3.4; background: #161616; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.03); filter: blur(6px); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease; }
.shots img.on { opacity: 1; transform: none; filter: none; }
.mirror-note { color: var(--soft); margin-top: 12px; text-align: center; }
.keycard { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 18px; color: var(--ink); box-shadow: 0 20px 40px -30px rgba(20, 40, 29, 0.4); }
.label-sm { color: var(--soft); font-size: 12px; margin-bottom: 10px; }
.providers-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.providers-mini span { font: 500 12px Inter; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; color: var(--soft); }
.providers-mini span.on { border-color: var(--ai-text); color: var(--ai-text); background: #f8e6dc; }
.keyfield { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px 8px 8px 14px; }
.keyfield .text { flex: 1; min-height: 1.2em; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.keyfield .save { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 7px 12px; font: 600 13px Inter; }
.kept { font-size: 13px; color: var(--ai-text) !important; margin-top: 10px; }
.journey { margin-top: 80px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.journey h3 { font-size: clamp(32px, 3.4vw, 48px); color: var(--ink); }
.journey p { margin-top: 10px; }
.journey-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 40px 80px -40px rgba(20, 40, 29, 0.6); }

/* Key path: requests flowing. */
.flow { stroke-dasharray: 6 8; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

@media (max-width: 960px) {
  .f-ai { width: 30%; left: -2%; top: 30%; }
  .f-phone { width: 24%; }
  .f-file { display: none; }
  .kit { grid-template-columns: 1fr 1fr; }
  .k-layers, .k-vars, .k-fx, .k-auto, .k-pick { grid-column: auto; grid-row: auto; height: 320px; }
  .k-vars { grid-column: 1 / -1; order: -1; height: auto; }
  .mats { grid-template-columns: 1fr 1fr; }
  .talk-grid { grid-template-columns: 1fr; }
  .mirror { position: relative; top: 0; order: -1; }
  .journey { grid-template-columns: 1fr; }
  .cursor-preview { display: none; }
  .pipeline::before, .pipeline::after { left: 14px; }
}
@media (max-width: 560px) {
  .stage { margin-top: 56px; }
  .f-ai { display: none; }
  .f-phone { width: 30%; right: -1%; top: 18%; }
  .f-key { left: 2%; bottom: -10%; padding: 8px 12px; }
  .versus { font-size: 20px; }
  .kit, .mats { grid-template-columns: 1fr; }
  .k-layers, .k-fx, .k-auto, .k-pick { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee div, .flow { animation: none; }
  .window { transform: none; }
}
