/* Homepage only: hero with the 3D mark, cases, steps, style films, about, ways to work together, FAQ, CTA. */

/* gentle fade-in, once, when something first scrolls into view (never on the hero, so it paints at once) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: 14px; font-weight: 500; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15); }
.hero h1 { font-size: clamp(44px, 5.6vw, 78px); letter-spacing: -0.04em; line-height: 1.0; }
.hl { position: relative; color: var(--orange-text); white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.18em; border-radius: 4px; background: rgba(255, 90, 31, 0.16); z-index: -1; }
.hero .lead { margin: 24px 0 32px; max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li::before { content: '✓'; margin-right: 8px; color: var(--orange); font-weight: 700; }
.hero-visual { position: relative; aspect-ratio: 1 / 0.92; }
.hero-visual::before { /* soft glow + faint dot grid behind the mark */
  content: ''; position: absolute; inset: -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), transparent 70%), radial-gradient(rgba(33, 31, 36, 0.13) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
/* the still render shows first everywhere; on desktop the live canvas (same pose and framing) crossfades over it */
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 1s var(--ease); }
.hero-canvas { position: absolute; inset: 0; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero-visual.is-3d canvas { opacity: 1; }
.hero-visual.is-3d .hero-still { opacity: 0; }
/* screens that never get the live scene let the still float a little */
@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (hover: none) or (pointer: coarse)) { .hero-still { animation: hero-float 7s ease-in-out infinite; } }
@keyframes hero-float { 50% { transform: translateY(-1.6%); } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; } }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.section.narrow { max-width: 880px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 40px; }
.section-head > p:not(.eyebrow) { max-width: 28em; margin: 0; color: var(--muted); }
.section-head.center { flex-direction: column; align-items: center; gap: 0; text-align: center; }
.section-head.center > p:last-child { max-width: 34em; margin: 16px 0 0; }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 18px 18px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 22px 8px 12px 8px; border-radius: 9px; background: var(--ink); color: #fff; font: 700 15px var(--display); }
.step h3, .step p { margin-left: 8px; margin-right: 8px; }
.step p { margin-top: 8px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.step-visual { height: 170px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: grid; place-items: center; }
/* a tiny version of a real demo: the film with our watermark and the "draft for you" label */
.mini-browser { position: relative; width: 78%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.mini-browser > img { width: 100%; height: 100%; object-fit: cover; }
.mini-browser .mini-sym { position: absolute; left: 50%; top: 46%; width: 15%; height: auto; transform: translate(-50%, -50%); opacity: 0.55; }
.mini-label { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 2px 6px; border-radius: 3px; background: rgba(33, 31, 36, 0.6); color: rgba(255, 255, 255, 0.92); font: 700 8px/1.4 var(--display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.chat { align-content: center; gap: 10px; padding: 0 22px; justify-items: start; }
.msg { max-width: 85%; padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.msg.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--orange); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(255, 90, 31, 0.8); }
.formats { display: flex; align-items: center; justify-content: center; gap: 12px; }
.f { display: grid; place-items: end center; padding-bottom: 6px; border-radius: 8px; background: var(--ink); color: rgba(255, 255, 255, 0.8); font: 700 11px var(--display); box-shadow: var(--shadow-lg); }
.f169 { width: 120px; aspect-ratio: 16 / 9; }
.f916 { width: 52px; aspect-ratio: 9 / 16; background: var(--orange); color: var(--ink); }
.f11 { width: 76px; aspect-ratio: 1; }

/* ---------------------------------------------------------------- style menu */
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; font: inherit; color: inherit; background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: #18161b; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-media video { opacity: 0; transition: opacity 0.35s; }
.card.is-playing .card-media video { opacity: 1; }
.play-dot { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); box-shadow: 0 8px 18px -6px rgba(255, 90, 31, 0.7); transition: transform 0.3s var(--ease); }
.play-dot::after { content: ''; position: absolute; left: 16px; top: 13px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.card:hover .play-dot, .case:hover .play-dot, .reel:hover .play-dot { transform: scale(1.1); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.card-title { font: 700 19px var(--display); letter-spacing: -0.015em; }
.card-fits { font-size: 15px; color: var(--muted); }
.card-tags { display: flex; gap: 6px; margin-top: 10px; }
.card-tags i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------------------------------------------------------------- cases */
.case[hidden] { display: none; }
.cases { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.case:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.case-thumb { position: relative; aspect-ratio: 16 / 9; background: #0e1638; overflow: hidden; }
.case-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* vertical customer films: two phones side by side */
.reels { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 18px); padding: clamp(14px, 2vw, 22px); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.reel { position: relative; flex: 0 1 44%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #18161b; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform 0.35s var(--ease); }
.reel:hover { transform: translateY(-3px); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reel video { opacity: 0; transition: opacity 0.35s; }
.reel.is-playing video { opacity: 1; }
.reel .play-dot { right: 10px; bottom: 10px; width: 36px; height: 36px; }
.reel .play-dot::after { left: 14px; top: 11px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
@media (max-width: 900px) { .reel { flex-basis: 40%; max-width: 230px; } }
/* a 16:9 customer film that opens in the lightbox (fills the top of its case) */
.reels.full { padding: 0; }
.reel.wide, .reel.wide:hover { flex: 1 1 100%; max-width: none; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; transform: none; }
.reel.wide .play-dot { right: 16px; bottom: 16px; width: 48px; height: 48px; }
.reel.wide .play-dot::after { left: 19px; top: 15px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.case-body { flex: 1; padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.case-body .case-client { font-size: 14px; font-weight: 600; color: var(--orange-ink); }
.case-body p { margin: 0; color: var(--muted); }
.case-body h3 { font-size: clamp(22px, 2vw, 26px); }
.case .link { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--orange-ink); }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.about-grid h2 { font-size: clamp(30px, 3.4vw, 44px); }
.about-copy p { margin: 0 0 14px; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.about-facts li { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--text); }
.person { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--ink); color: #fff; font: 700 20px var(--display); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.about-copy .person p { margin: 0; }
.about-copy .person-name { color: var(--text); font: 700 18px var(--display); letter-spacing: -0.01em; }
.about-copy .person-role { font-size: 15px; }
.person-role a { color: var(--orange-ink); font-weight: 600; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- ways to work together (no prices) */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.way { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.way h3 { font-size: 21px; }
.way p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.way ul { list-style: none; padding: 0; margin: 18px 0 20px; font-size: 15px; }
.way li { padding: 7px 0; border-top: 1px solid var(--line); }
.way li::before { content: '✓'; color: var(--orange); font-weight: 700; margin-right: 10px; }
.way .link { margin-top: auto; font-weight: 600; color: var(--orange-ink); text-decoration: none; }
.way .link:hover { text-decoration: underline; }
.price-note { margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.price-note a { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- faq */
.faq { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: 4px 24px; }
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font: 600 18px var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--muted), var(--muted)) center / 100% 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { height: 0; overflow: hidden; transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }

/* ---------------------------------------------------------------- CTA + form */
.cta { margin: 24px clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px); border-radius: clamp(24px, 3vw, 36px); background: radial-gradient(90% 140% at 0% 0%, #ff8b57, var(--orange) 50%, #ef4b10); color: #1b0d07; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(44px, 7vw, 96px) clamp(16px, 4vw, 48px); }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }
.cta h2 { font-size: clamp(42px, 5.6vw, 76px); letter-spacing: -0.04em; }
.cta-copy > p { margin: 20px 0 0; font-size: 18px; max-width: 28em; }
.cta-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-weight: 500; }
.cta-points li::before { content: '✓'; margin-right: 10px; font-weight: 700; }
.cta-points a { font-weight: 700; }
.cta :focus-visible { outline-color: #1b0d07; }
.demo-form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -30px rgba(90, 25, 0, 0.55); }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.demo-form .opt { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form textarea, .demo-form select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 16px var(--body); transition: border-color 0.2s, box-shadow 0.2s; }
.demo-form textarea { resize: vertical; min-height: 96px; }
.demo-form input::placeholder { color: #736d79; }
.demo-form input:focus, .demo-form textarea:focus, .demo-form select:focus { outline: none; border-color: #e04812; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.3); }
.demo-form input:user-invalid { border-color: #c62828; }
.demo-form .btn { justify-self: start; margin-top: 4px; }
.demo-form .small { margin: 0; }
