/* Faesora home, round 2 */

/* ===== HERO: full-bleed film ===== */
.film { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 128px var(--margin) 96px; background: #120d0c; color: var(--paper); overflow: hidden; isolation: isolate; }
.film-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; display: block;
  background: radial-gradient(60% 70% at 78% 30%, #ed4b44 0%, transparent 60%), radial-gradient(50% 60% at 20% 80%, #f2c21a55 0%, transparent 60%), radial-gradient(40% 50% at 60% 90%, #18bc4233 0%, transparent 60%), #120d0c; }
.film-grain { position: absolute; inset: -50%; z-index: -2; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(8,5,5,.55) 100%), linear-gradient(180deg, rgba(8,5,5,.35), transparent 22%, transparent 78%, rgba(8,5,5,.5)); }

/* viewfinder */
.film-vf { position: absolute; inset: 88px var(--margin) 28px; pointer-events: none; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: rgba(246,242,234,.72); }
.film-vf > i { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(246,242,234,.5); }
.film-vf > i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.film-vf > i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.film-vf > i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.film-vf > i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.vf-tc { position: absolute; right: 40px; top: 8px; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.vf-meta { position: absolute; left: 40px; bottom: 8px; }
.rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--field-1); display: inline-block; animation: pulse 1.2s infinite; }

.film-in { position: relative; width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.film-copy { display: grid; justify-items: start; gap: 26px; }
.modepills { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; }
.modepills button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 500; font-size: .9375rem; cursor: pointer; transition: background-color .25s, color .25s, transform .2s var(--ease-out); }
.modepills button:hover { transform: translateY(-1px); }
.pdot { width: 9px; height: 9px; border-radius: 50%; display: block; }
.film .modepills { background: rgba(246,242,234,.1); border: 1px solid rgba(246,242,234,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--paper); }
.film .modepills button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.film-title { font-size: clamp(3rem, calc(1rem + 4.3vw / var(--z)), 6rem); line-height: .95; letter-spacing: -0.05em; font-weight: 700; color: var(--paper); text-wrap: balance; }
.film-title .line:nth-child(2) > span { color: var(--field-4); }
.film-lede { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; max-width: 34ch; color: rgba(246,242,234,.86); }
.film-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-big svg { width: 20px; height: 20px; }
.btn-big:hover svg { transform: none; }
.btn-glass { background: rgba(246,242,234,.08); color: var(--paper); border: 1px solid rgba(246,242,234,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(246,242,234,.16); }
.film-sub { font-size: .9375rem; font-weight: 500; color: rgba(246,242,234,.7); }
.film-sub .link { color: var(--paper); }
body:has(.film) .nav:not(.scrolled) .btn { background: var(--paper); color: var(--ink); }

/* glass recorder */
.film-panel { display: grid; justify-items: center; }
.glass { position: relative; width: min(380px, 100%); padding: 16px; border-radius: 24px; display: grid; gap: 12px; color: var(--paper);
  background: linear-gradient(160deg, rgba(246,242,234,.18), rgba(246,242,234,.05)); border: 1px solid rgba(246,242,234,.22);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .6s var(--ease-out); }
.g-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.g-dots { display: flex; gap: 6px; } .g-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(246,242,234,.3); display: block; }
.g-dots i:first-child { background: #ff5f57; } .g-dots i:nth-child(2) { background: #febc2e; } .g-dots i:nth-child(3) { background: #28c840; }
.g-mode { margin-left: auto; font-size: 12px; color: rgba(246,242,234,.7); }
.g-idle, .g-live { display: grid; gap: 8px; transition: opacity .3s, transform .5s var(--ease-out); }
.glass.rec .g-live { transition-delay: .15s; }
.g-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-opts span { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: rgba(246,242,234,.07); border: 1px solid rgba(246,242,234,.1); font-size: 12px; }
.g-opts span.on { background: rgba(246,242,234,.18); border-color: rgba(246,242,234,.5); }
.g-opts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(246,242,234,.07); font-size: 13px; }
.g-row em { font-style: normal; color: rgba(246,242,234,.6); margin-left: auto; }
.tg { width: 30px; height: 18px; border-radius: 99px; background: rgba(246,242,234,.25); position: relative; display: block; flex: none; }
.tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s; }
.tg.on { background: var(--accent); } .tg.on::after { transform: translateX(12px); }
.g-live { grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 6px 4px; position: absolute; left: 16px; right: 16px; top: 52px; bottom: 80px; align-content: center; opacity: 0; transform: translateY(10px); pointer-events: none; }
.g-cam { width: 76px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(246,242,234,.8); }
.g-cam img { width: 100%; height: 100%; object-fit: cover; }
.g-time { display: flex; align-items: center; gap: 8px; font: 600 28px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.g-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 10px; }
.g-wave i { flex: 1; height: 20%; border-radius: 2px; background: rgba(246,242,234,.75); display: block; }
.glass.rec .g-wave i { animation: wave .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -53ms); }
@keyframes wave { 0% { height: 15%; } 50% { height: 85%; } 100% { height: 35%; } }
.g-go { display: block; text-align: center; padding: 14px; border-radius: 14px; background: var(--field-1); color: #fff; font-weight: 600; font-size: 15px; transition: transform .15s, background-color .3s; }
.g-go.press { transform: scale(.95); }
.glass.rec .g-idle { opacity: 0; transform: translateY(-8px); }
.glass.rec .g-live { opacity: 1; transform: none; }
.glass.rec .g-go { background: rgba(246,242,234,.92); color: var(--ink); }
.g-toast { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 10px) scale(.96); opacity: 0; display: flex; gap: 10px; align-items: center; white-space: nowrap; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); transition: transform .45s var(--ease-out), opacity .3s; }
.g-toast b { display: block; font-size: 13px; } .g-toast span { color: #5f5b52; }
.g-toast .tic { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); flex: none; }
.glass.shared .g-toast { opacity: 1; transform: translate(-50%, 0); }
.g-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 84px; font-weight: 700; border-radius: inherit; background: rgba(18,13,12,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.glass.counting .g-count { opacity: 1; }
@keyframes pulse { 50% { opacity: .35; } }

/* shared bits used by the demos */
.toast { position: absolute; right: 3%; top: 5%; display: flex; gap: 10px; align-items: center; background: #fff; color: #1a1a1a; border-radius: 14px; padding: 10px 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); font-size: 12px; transform: translateY(-14px) scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; z-index: 6; }
.toast b { display: block; font-size: 13px; }
.toast span { color: #5f5b52; }
.toast .tic { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent); flex: none; }
.toast.show { transform: none; opacity: 1; }
.cursor { position: absolute; width: 22px; left: 70%; top: 70%; z-index: 7; transition: left .9s var(--ease-in-out), top .9s var(--ease-in-out), transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.cursor.click { transform: scale(.82); }
.rtime { font-variant-numeric: tabular-nums; }

/* ===== STORY SECTIONS ===== */
.story { padding: 140px var(--margin) 140px; position: relative; overflow: hidden; }
.story-head { max-width: 860px; margin: 0 auto 56px; text-align: center; display: grid; justify-items: center; gap: 20px; }
.story-head h2 { font-size: clamp(2.5rem, 1rem + 4.2vw, 5.25rem); letter-spacing: -0.045em; line-height: .98; font-weight: 700; }
.story-head p { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; max-width: 44ch; }
.demo { max-width: 1100px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; }
[data-scrub="cut"] { clip-path: inset(calc(var(--cut, 0) * 12%) calc(var(--cut, 0) * 10%) round calc(28px + var(--cut, 0) * 40px)); transform: scale(calc(1 - var(--cut, 0) * .06)); will-change: clip-path, transform; }
.stage-wall { position: relative; width: 100%; aspect-ratio: 16 / 9.2; border-radius: 28px; overflow: hidden; background: #222; box-shadow: 0 50px 100px -50px rgba(26,26,26,.55); }
.stage-wall > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; transition: opacity .6s; }
@keyframes kenburns { to { transform: scale(1.14) translate(-2%, -1%); } }
.steps { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); color: var(--paper); flex-wrap: wrap; justify-content: center; }
.steps button { position: relative; overflow: hidden; border: 0; background: transparent; color: inherit; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .9375rem; cursor: pointer; transition: color .25s, background-color .25s; }
.steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--prog, 0%); background: var(--accent); }
.steps button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.caption { max-width: 52ch; margin: 22px auto 0; text-align: center; font-size: 1.0625rem; min-height: 3em; transition: opacity .3s; }

/* instant chat */
.chat { position: absolute; left: 12%; right: 26%; top: 8%; bottom: 8%; background: #fff; color: #1a1a1a; border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); font-size: 14px; }
.chat-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #eee7da; }
.chat-top i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.chat-top b { margin-left: 10px; }
.chat-top span { color: #8a8478; font-size: 13px; }
.chat-body { padding: 16px; display: grid; align-content: end; gap: 14px; overflow: hidden; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; transition: opacity .4s, transform .5s var(--ease-out); }
.msg .av, .ap-head .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.msg b { font-size: 14px; }
.msg em { font-style: normal; color: #8a8478; font-weight: 400; font-size: 12px; margin-left: 4px; }
.msg .lnk { color: #2f5bd3; text-decoration: underline; }
.vcard { margin-top: 8px; width: min(320px, 100%); border-radius: 12px; overflow: hidden; position: relative; background: #111; color: #fff; }
.vcard img { width: 100%; aspect-ratio: 16/8; object-fit: cover; opacity: .9; }
.vcard .play { position: absolute; left: 50%; top: 38%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: rgba(255,255,255,.92); }
.vcard .play::after { content: ""; position: absolute; left: 17px; top: 13px; border: 9px solid transparent; border-left: 14px solid #1a1a1a; }
.vcard .dur { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.6); border-radius: 6px; padding: 2px 6px; font-size: 11px; }
.vcard b { display: block; padding: 8px 10px; font-size: 13px; background: #1a1a1a; }
.chat-in { margin: 0 16px 16px; border: 2px solid #e6dfd1; border-radius: 12px; padding: 12px 14px; min-height: 46px; color: #2f5bd3; display: flex; align-items: center; transition: border-color .3s; }
.chat-in.focus { border-color: #2f5bd3; }
.caret { width: 2px; height: 18px; background: #1a1a1a; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-recbar { position: absolute; left: 50%; top: 5%; transform: translate(-50%, -20px); opacity: 0; display: flex; align-items: center; gap: 10px; background: #1a1a1a; color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; transition: transform .45s var(--ease-out), opacity .3s; z-index: 5; }
.d-toast { right: 3%; top: 6%; }
[data-demo="instant"] .msg.me, [data-demo="instant"] .msg.reply { opacity: 0; transform: translateY(16px); position: absolute; pointer-events: none; }
[data-demo="instant"].s0 .d-recbar { opacity: 1; transform: translate(-50%, 0); }
[data-demo="instant"].s0 .stage-wall { box-shadow: inset 0 0 0 5px var(--field-1), 0 50px 100px -50px rgba(26,26,26,.55); }
[data-demo="instant"].s1 .d-toast { opacity: 1; transform: none; }
[data-demo="instant"].s1 .chat-in, [data-demo="instant"].s0 .chat-in { }
[data-demo="instant"].s2 .msg.me, [data-demo="instant"].s2 .msg.reply { position: relative; opacity: 1; transform: none; }
[data-demo="instant"].s2 .msg.reply { transition-delay: 1.2s; }
[data-demo="instant"].s2 .msg.old { display: none; }

/* studio app */
.app { position: absolute; left: 14%; right: 14%; top: 9%; bottom: 9%; background: #fff; color: #1a1a1a; border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); font-size: 13px; transform-origin: 62% 72%; transition: transform 1.1s var(--ease-in-out), left .8s var(--ease-out), right .8s var(--ease-out), top .8s var(--ease-out), bottom .8s var(--ease-out); }
.app-top { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #f3efe7; }
.app-top i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.app-top .url { margin: 0 auto; background: #fff; border-radius: 8px; padding: 3px 40px; color: #6a655b; font-size: 12px; }
.app-body { display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.app-body nav { background: #faf8f4; padding: 14px; display: grid; gap: 8px; align-content: start; color: #6a655b; }
.app-body nav b { color: #1a1a1a; margin-bottom: 6px; }
.app-body nav .on { background: #ece6da; color: #1a1a1a; border-radius: 6px; padding: 4px 8px; margin: 0 -8px; }
.inv { padding: 18px 22px; display: grid; gap: 10px; align-content: start; }
.crumb { color: #8a8478; font-size: 12px; }
.inv h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv-meta small { display: block; color: #8a8478; font-size: 11px; }
.pii { transition: filter .5s; }
.inv table { width: 100%; border-collapse: collapse; }
.inv td { padding: 7px 0; border-top: 1px solid #eee7da; }
.inv td:last-child { text-align: right; }
.inv .tot td { font-weight: 700; font-size: 16px; }
.send { justify-self: end; background: var(--accent); border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.cap-line { position: absolute; left: 50%; bottom: 7%; transform: translate(-50%, 10px); background: rgba(20,20,20,.86); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .3s, transform .4s var(--ease-out); white-space: nowrap; }
.cap-line span { transition: color .3s; }
.s-cam { position: absolute; right: 3%; bottom: 5%; width: 16%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid #fff; transform: scale(0); transition: transform .6s var(--ease-out); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.s-cam img { width: 100%; height: 100%; object-fit: cover; }
.s-cursor { left: 80%; top: 86%; }
[data-demo="studio"].s0 .app { transform: scale(1.45); }
[data-demo="studio"].s1 .s-cam { transform: scale(1); }
[data-demo="studio"].s2 .cap-line { opacity: 1; transform: translate(-50%, 0); }
[data-demo="studio"].s2 .s-cam, [data-demo="studio"].s3 .s-cam { transform: scale(1); }
[data-demo="studio"].s3 .pii { filter: blur(6px); }
[data-demo="studio"].s4 .app { left: 20%; right: 20%; top: 13%; bottom: 13%; border-radius: 18px; }

/* screenshot section */
.shot-split { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.shot-split h2 { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.75rem); letter-spacing: -0.045em; line-height: .98; font-weight: 700; margin-bottom: 20px; }
.shot-split .lead { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; max-width: 34ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ticks li { background: rgba(26,26,26,.08); border-radius: 14px; padding: 14px 16px; font-size: 1.0625rem; }
.shot-stage { border-radius: 28px; background: var(--paper); aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 8%; position: relative; }
.shot-canvas { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--field-1); display: grid; place-items: center; padding: 10%; animation: bgcycle 9s steps(1) infinite; }
@keyframes bgcycle { 0% { background: var(--field-1); } 33% { background: #4a8cff; } 66% { background: var(--field-4); } }
.shot-card { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); animation: cardin 3s var(--ease-out) infinite; }
@keyframes cardin { 0% { transform: scale(1.15); box-shadow: none; } 25%, 100% { transform: scale(1); } }
.sc-top { display: flex; gap: 6px; padding: 8px 10px; background: #f0ebe1; }
.sc-top i { width: 9px; height: 9px; border-radius: 50%; background: #d4cdbd; display: block; }
.sc-body { padding: 18px; display: grid; gap: 8px; color: #1a1a1a; }
.sc-body span { color: #8a8478; text-align: right; }
.sc-body strong { font-size: clamp(20px, 2.4vw, 30px); text-align: right; letter-spacing: -0.02em; }
.sc-body em { font-style: normal; justify-self: end; background: #3b5bdb; color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.sc-arrow { position: absolute; width: 24%; left: 10%; top: 8%; overflow: visible; }
.sc-arrow path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawloop 3s var(--ease-out) infinite; }
.sc-arrow path + path { animation-name: drawloop2; }
@keyframes drawloop { 0%, 25% { stroke-dashoffset: 1; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes drawloop2 { 0%, 50% { stroke-dashoffset: 1; } 62%, 100% { stroke-dashoffset: 0; } }
.sc-toast { right: -4%; top: -6%; animation: toastloop 3s var(--ease-out) infinite; }
@keyframes toastloop { 0%, 60% { opacity: 0; transform: translateY(-14px) scale(.96); } 70%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* AI */
.ai-stage { width: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; padding: clamp(18px, 3vw, 40px); border-radius: 28px; background: #2a2a2a; }
.ai-player, .ai-panel { background: #fff; color: #1a1a1a; border-radius: 18px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.ap-head { display: flex; gap: 10px; align-items: center; }
.ap-head small { display: block; color: #8a8478; }
.ap-vid { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #ddd; display: grid; place-items: center; }
.ap-vid > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-win { position: relative; width: 66%; background: #fff; border-radius: 8px; padding: 12px; display: grid; gap: 7px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.ap-win span { height: 8px; border-radius: 4px; background: #e8e2d6; }
.ap-cam { position: absolute; right: 5%; bottom: 7%; width: 18%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid #fff; }
.ap-cam img { width: 100%; height: 100%; object-fit: cover; }
.ap-scrub { position: relative; height: 6px; border-radius: 6px; background: #ece6da; }
.ap-fill { position: absolute; inset: 0 auto 0 0; width: 15%; border-radius: 6px; background: var(--field-1); animation: aifill 12s linear infinite; }
.ap-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--field-1); left: 15%; animation: aiknob 12s linear infinite; }
@keyframes aifill { from { width: 0; } to { width: 100%; } }
@keyframes aiknob { from { left: 0; } to { left: 100%; } }
.ap-times { display: flex; justify-content: space-between; color: #8a8478; font-size: 13px; font-variant-numeric: tabular-nums; }
.aip-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee7da; }
.aip-head em { margin-left: auto; font-style: normal; color: #17a03a; font-weight: 600; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #e8e2d6; border-top-color: var(--field-1); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.aip-body small { color: #8a8478; display: block; margin-top: 6px; }
.aip-body p { font-size: 15px; line-height: 1.45; font-weight: 500; }
.type::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--field-1); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.chap { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chap li { display: flex; gap: 12px; padding: 10px 12px; background: #f6f2ea; border-radius: 10px; font-weight: 500; animation: fadein .5s var(--ease-out) both; }
.chap li:nth-child(2) { animation-delay: .1s; } .chap li:nth-child(3) { animation-delay: .2s; } .chap li:nth-child(4) { animation-delay: .3s; }
.chap b, .tr b { color: var(--field-1); font-variant-numeric: tabular-nums; }
.tr { margin-bottom: 8px; animation: fadein .5s var(--ease-out) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

/* storage */
.store-stage { width: 100%; position: relative; border-radius: 28px; background: #d9e8ff; padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; min-height: 360px; transition: background-color .6s; }
.file-card, .dest { background: #fff; color: #1a1a1a; border-radius: 18px; padding: 14px; display: grid; gap: 6px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.35); }
.fc-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.fc-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.file-card small, .dest small { color: #8a8478; display: block; }
.pipe { position: relative; width: clamp(80px, 14vw, 200px); height: 3px; background: repeating-linear-gradient(90deg, #1a1a1a 0 8px, transparent 8px 16px); animation: dash .8s linear infinite; background-size: 32px 3px; }
@keyframes dash { to { background-position: 32px 0; } }
.pct { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.dest { grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 18px; }
.d-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); transition: background-color .4s; }
.d-path { grid-column: 1 / -1; background: #f3efe7; border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.four { max-width: 1100px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.four > div { background: rgba(26,26,26,.07); border-radius: 18px; padding: 20px; font-size: 1rem; }
.field-2 .four > div { background: #262626; }

/* platforms */
.plats { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pl { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 26px; display: grid; gap: 8px; align-content: start; text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s; }
.pl:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(26,26,26,.6); }
.pl b { font-size: 1.5rem; letter-spacing: -0.02em; }
.pl em { font-style: normal; margin-top: 14px; justify-self: start; min-height: 44px; }
.pl-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; margin-bottom: 18px; }
.pl-ic svg { width: 26px; height: 26px; }
.pl.big { background: var(--ink); color: var(--paper); }
.pl.big .pl-ic { background: #2a2a2a; }
.pl.big em { background: var(--accent); color: var(--ink); }
.pl.dev { grid-column: span 2; }
.pl .code { border-radius: 12px; margin-top: 10px; min-height: 6.2em; white-space: pre-wrap; }

/* terminal */
.term { max-width: 1000px; margin: 0 auto; background: #0f0f0f; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0,0,0,.8); }
.term-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; background: #1b1b1b; color: #8d877b; font-size: 13px; }
.term-top i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-top span { margin: 0 auto; }
.term-body { margin: 0; padding: 26px 28px 34px; font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px); line-height: 1.8; color: #e8e2d4; white-space: pre-wrap; min-height: 330px; }
.term-body .tl { display: block; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-out); }
.term-body .tl.on { opacity: 1; transform: none; }
.term-body .ask { color: #fff; font-weight: 700; }
.term-body .ans { color: var(--field-4); margin-top: 8px; }
.term-body .m { color: #8d877b; }
.ck { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: -2px; }

/* free tools */
.ttgrid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tt { position: relative; background: var(--tc); color: var(--ink); border-radius: 22px; padding: 28px; min-height: 180px; display: grid; align-content: space-between; gap: 6px; text-decoration: none; overflow: hidden; transition: transform .35s var(--ease-out); }
.tt:hover { transform: translateY(-6px) rotate(-.6deg); }
.tt b { font-size: 1.625rem; letter-spacing: -0.02em; }
.tt svg { position: absolute; right: 22px; top: 22px; width: 30px; height: 30px; transition: transform .35s var(--ease-out); }
.tt:hover svg { transform: translate(4px, -4px); }

/* pricing */
.bill { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); }
.bill button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background-color .25s; }
.bill button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pcards { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.pc { background: var(--paper); border-radius: 24px; padding: 28px; display: grid; gap: 12px; transition: transform .35s var(--ease-out); }
.pc:hover { transform: translateY(-4px); }
.pc.pro { background: var(--ink); color: var(--paper); }
.pc-name { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.pc-name em { font-style: normal; font-size: .8125rem; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.pc > p { font-size: 1rem; min-height: 4.5em; }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.pc-price .n { font-size: clamp(3rem, 4.6vw, 4.25rem); font-weight: 700; letter-spacing: -0.04em; display: inline-block; transition: transform .35s var(--ease-out), opacity .2s; }
.pc-price .n.flip { transform: translateY(-30%); opacity: 0; }
.pc-note { color: var(--muted); font-size: .9375rem; min-height: 2.6em; }
.pc.pro .pc-note { color: var(--soft-on-dark); }
.pc .btn { width: 100%; }
.pc ul { list-style: none; margin: 10px 0 0; padding: 18px 0 0; display: grid; gap: 10px; border-top: 2px solid rgba(26,26,26,.1); }
.pc.pro ul { border-color: rgba(255,255,255,.12); }
.pc li { padding-left: 28px; position: relative; font-size: 1rem; }
.pc li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.pc li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* loom band */
.loomband { padding: 120px var(--margin); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; overflow: hidden; }
.lb-in { display: grid; gap: 20px; justify-items: start; }
.lb-in h2 { font-size: clamp(2.25rem, 1rem + 3.4vw, 4.5rem); letter-spacing: -0.045em; line-height: 1; }
.lb-in p { font-size: var(--step-lead); max-width: 36ch; font-weight: 500; }
.lb-anim { display: grid; gap: 10px; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); height: 360px; overflow: hidden; }
.lb-anim span { display: flex; justify-content: space-between; background: #262626; border-radius: 14px; padding: 16px 18px; font-weight: 500; animation: scrollup 12s linear infinite; }
.lb-anim span::after { content: "Imported"; color: var(--accent); }
@keyframes scrollup { from { transform: translateY(0); } to { transform: translateY(-370px); } }

/* ===== stacked layouts ===== */
@media (max-width: 60rem) {
  .modepills button { padding: 8px 12px; font-size: .875rem; gap: 6px; }
  .mw { display: none; }
  .cursor { width: 16px; }

  .story { padding: 96px var(--margin); }
  .story-head h2 { font-size: 10vw; }
  .story-head p { font-size: 1.0625rem; }
  .stage-wall { aspect-ratio: 4 / 5; border-radius: 22px; }
  .chat { left: 5%; right: 5%; top: 14%; bottom: 5%; font-size: 12px; }
  .d-recbar { font-size: 11px; }
  .d-toast { left: 5%; right: 5%; top: 3%; }
  [data-demo="studio"].s0 .app { transform: scale(1.25); }
  .app { left: 4%; right: 4%; top: 18%; bottom: 18%; font-size: 10px; }
  .app-body { grid-template-columns: 1fr; } .app-body nav { display: none; }
  .inv { padding: 12px; } .inv h4 { font-size: 16px; } .inv-meta { grid-template-columns: 1fr 1fr; }
  .app-top .url { padding: 2px 10px; font-size: 10px; }
  .cap-line { font-size: 11px; white-space: normal; width: 86%; text-align: center; }
  [data-demo="studio"].s4 .app { left: 9%; right: 9%; top: 22%; bottom: 22%; }
  .steps button { padding: 9px 12px; font-size: .8125rem; }

  .shot-split { grid-template-columns: 1fr; text-align: center; }
  .shot-split .lead { margin: 0 auto; }
  .ticks { text-align: left; }
  .ai-stage { grid-template-columns: 1fr; padding: 14px; }
  .store-stage { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 22px; }
  .pipe { width: 3px; height: 70px; background: repeating-linear-gradient(180deg, #1a1a1a 0 8px, transparent 8px 16px); background-size: 3px 32px; animation-name: dashv; }
  @keyframes dashv { to { background-position: 0 32px; } }
  .file-card, .dest { width: 100%; max-width: 360px; }
  .four { grid-template-columns: 1fr 1fr; }
  .four > div { text-align: center; }
  .plats { grid-template-columns: 1fr; }
  .pl { justify-items: center; text-align: center; }
  .pl em { justify-self: center; }
  .pl.dev { grid-column: auto; text-align: left; justify-items: stretch; }
  .pl.dev b, .pl.dev > span { text-align: center; }
  .term-body { padding: 18px; font-size: 11.5px; min-height: 360px; }
  .ttgrid { grid-template-columns: 1fr 1fr; }
  .tt { min-height: 150px; padding: 20px; text-align: center; justify-items: center; }
  .tt b { font-size: 1.25rem; }
  .tt svg { position: static; order: -1; width: 24px; height: 24px; }
  .pcards { grid-template-columns: 1fr; }
  .pc { text-align: center; justify-items: center; }
  .pc-price { justify-content: center; }
  .pc ul { text-align: left; justify-self: stretch; }
  .loomband { grid-template-columns: 1fr; text-align: center; }
  .lb-in { justify-items: center; }
  .lb-anim { height: 260px; }
}
@media (max-width: 30rem) { .four { grid-template-columns: 1fr; } .ttgrid { grid-template-columns: 1fr 1fr; gap: 8px; } }

@media (prefers-reduced-motion: reduce) {
  .cloud, .bird, .walker, .sun, .stage-wall > img, .ed-win, .ph-line, .shot-canvas, .shot-card, .sc-arrow path, .sc-toast, .lb-anim span, .ap-fill, .ap-knob { animation: none !important; }
  .sc-arrow path { stroke-dashoffset: 0; }
  [data-scrub] { clip-path: none !important; transform: none !important; }
}


@media (max-width: 60rem) {
  .film { padding: 112px var(--margin) 72px; min-height: auto; }
  .film-in { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .film-copy { justify-items: center; gap: 22px; }
  .film-title { font-size: 10vw; }
  .film-lede { font-size: 1.125rem; margin: 0 auto; }
  .film-acts { justify-content: center; }
  .film-vf { inset: 76px 12px 14px; }
  .vf-tc { right: 34px; top: 7px; font-size: 11px; }
  .vf-meta { display: none; }
}
@media (max-width: 30rem) { .film-acts .btn { width: 100%; justify-content: center; } }

/* ===== moving backgrounds on every section ===== */
.has-fx { position: relative; overflow: clip; isolation: isolate; }
.bgfx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx .b { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: var(--bo, .55); will-change: transform; }
.bgfx .b1 { background: var(--b1); left: -25vmax; top: -30vmax; animation: fxa 26s ease-in-out infinite alternate; }
.bgfx .b2 { background: var(--b2); right: -30vmax; top: 0; animation: fxb 32s ease-in-out infinite alternate; }
.bgfx .b3 { background: var(--b3); left: 20%; bottom: -45vmax; width: 60vmax; animation: fxc 38s ease-in-out infinite alternate; }
@keyframes fxa { to { transform: translate(38vw, 22vh) scale(1.2); } }
@keyframes fxb { to { transform: translate(-34vw, 30vh) scale(.85); } }
@keyframes fxc { to { transform: translate(18vw, -34vh) scale(1.15); } }
.bgfx::after { content: ""; position: absolute; inset: -50%; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
/* themed overlays */
.fx-grid { position: absolute; inset: -80px; opacity: .22; background-image: linear-gradient(var(--gl, rgba(26,26,26,.35)) 1px, transparent 1px), linear-gradient(90deg, var(--gl, rgba(26,26,26,.35)) 1px, transparent 1px); background-size: 80px 80px; animation: gridpan 14s linear infinite; mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); }
@keyframes gridpan { to { transform: translate(80px, 80px); } }
.fx-dots { position: absolute; inset: -40px; opacity: .3; background-image: radial-gradient(var(--gl, rgba(26,26,26,.5)) 1.5px, transparent 1.6px); background-size: 28px 28px; animation: dotpan 10s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
@keyframes dotpan { to { transform: translate(56px, 0); } }
.fx-words { position: absolute; inset: 0; display: grid; align-content: space-around; opacity: .08; font-weight: 700; font-size: clamp(2.5rem, 6vw, 6rem); letter-spacing: -0.04em; white-space: nowrap; color: currentColor; }
.fx-words div { display: flex; gap: .6em; width: max-content; animation: marq 60s linear infinite; }
.fx-words div:nth-child(2) { animation-duration: 80s; animation-direction: reverse; }
.fx-words div:nth-child(3) { animation-duration: 70s; }
@keyframes marq { to { transform: translateX(-50%); } }
.fx-code { position: absolute; inset: 0; display: flex; justify-content: space-between; gap: 40px; padding: 0 3vw; opacity: .13; font: 500 13px/1.9 var(--mono); color: currentColor; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.fx-code pre { margin: 0; font: inherit; animation: codeup 40s linear infinite; }
.fx-code pre:nth-child(2) { animation-duration: 55s; } .fx-code pre:nth-child(3) { animation-duration: 47s; } .fx-code pre:nth-child(4) { animation-duration: 62s; }
@keyframes codeup { to { transform: translateY(-50%); } }
.fx-strip { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; rotate: -6deg; opacity: .16; display: flex; gap: 14px; width: max-content; padding: 18px 0; border-block: 10px dashed currentColor; animation: marq 50s linear infinite; }
.fx-strip i { width: 220px; aspect-ratio: 16/10; border-radius: 10px; background: currentColor; display: block; }
@media (max-width: 60rem) { .fx-code pre:nth-child(n+3) { display: none; } .bgfx .b { filter: blur(60px); } }
@media (prefers-reduced-motion: reduce) { .bgfx *, .bgfx::after { animation: none !important; } }

/* centred film hero for inner pages */
.film-c { min-height: 86svh; }
.film-c .film-in { grid-template-columns: 1fr; text-align: center; max-width: 1100px; }
.film-c .film-copy { justify-items: center; }
.film-c .film-lede { margin-inline: auto; max-width: 40ch; }
.film-c .film-acts { justify-content: center; }
.film-c .film-sub { max-width: 52ch; margin-inline: auto; }

/* numbered steps */
.nsteps { list-style: none; max-width: 1100px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: none; }
.nsteps li { position: relative; padding: 28px 26px 30px; border-radius: 24px; background: rgba(246,242,234,.55); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 10px; align-content: start; transition: transform .4s var(--ease-out); }
.nsteps li:hover { transform: translateY(-4px); }
.nsteps .nn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1.125rem; }
.nsteps b { font-size: 1.375rem; letter-spacing: -0.02em; }
.nsteps p { color: inherit; opacity: .8; }
.field-1 .nsteps li { background: rgba(26,26,26,.18); border-color: rgba(255,255,255,.18); }
.field-2 .nsteps li { background: rgba(246,242,234,.07); border-color: rgba(246,242,234,.14); }
.field-2 .nsteps .nn { background: var(--paper); color: var(--ink); }
.four > div { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 60rem) { .nsteps { grid-template-columns: 1fr; max-width: 520px; } .nsteps li { justify-items: center; text-align: center; } }
