/* ==========================================================================
   Craelyx — home page
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + clamp(28px, 6vh, 72px)) 0 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(24px, 4vw, 64px); flex: 1; }
.hero__copy { display: grid; gap: 30px; align-content: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; }
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,90,31,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 70% { box-shadow: 0 0 0 10px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.hero__badge-sep { width: 1px; height: 16px; background: var(--line-2); }
.hero__badge-link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--bone); font-size: 13px; transition: background .3s; }
.hero__badge-link:hover { background: var(--ember); }
.hero__title { font-size: clamp(44px, 5.5vw, 84px); line-height: .98; letter-spacing: -0.05em; }
.hero__rotator { display: inline-block; position: relative; height: 1.02em; overflow: hidden; vertical-align: bottom; color: var(--ember-ink); }
.hero__rotator-inner { display: flex; flex-direction: column; animation: rotator 10s var(--ease-io) infinite; animation-play-state: paused; }
body.is-loaded .hero__rotator-inner { animation-play-state: running; }
.hero__rotator-inner span { display: block; height: 1.02em; line-height: 1.02em; white-space: nowrap; }
@keyframes rotator {
  0%, 18% { transform: translateY(0); }
  23%, 41% { transform: translateY(-20%); }
  46%, 64% { transform: translateY(-40%); }
  69%, 87% { transform: translateY(-60%); }
  92%, 100% { transform: translateY(-80%); }
}
.hero__lead { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.orbit { position: absolute; inset: 0; transition: transform .9s var(--ease-out); }
.orbit__svg { width: 100%; height: 100%; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.orbit__ring--dots { stroke-dasharray: 1 9; stroke-linecap: round; stroke-width: 2; stroke: #C9C5BA; }
.orbit__ring--dash { stroke-dasharray: 6 8; }
.orbit__spin { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.orbit__spin--b { animation-duration: 64s; animation-direction: reverse; }
.orbit__spin--c { animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__node { fill: var(--ink); }
.orbit__node--ember { fill: var(--ember); }
.orbit__node--hollow { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.orbit__spark { transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(45deg); } }
.orbit__glow { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-6%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.22), rgba(255,90,31,0) 65%); filter: blur(10px); z-index: -1; animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; transform: translate(-6%, -50%) scale(1.15); } }

.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px var(--line), 0 18px 40px -18px rgba(11,13,18,.25); font-size: 14px; font-weight: 600; font-family: var(--f-display); letter-spacing: -0.01em; white-space: nowrap; transition: transform .9s var(--ease-out); }
.float-chip__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bone); display: grid; place-items: center; }
.float-chip__ic svg { width: 16px; height: 16px; }
.float-chip > * { animation: bob 6s ease-in-out infinite; }
.float-chip--1 { left: -12%; top: 14%; }
.float-chip--2 { right: -8%; top: 2%; }
.float-chip--3 { right: -14%; top: 44%; }
.float-chip--4 { left: -16%; top: 54%; }
.float-chip--1 .float-chip__ic { background: var(--ember); color: #fff; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.agent-card { position: absolute; left: 6%; right: -6%; bottom: -16%; border-radius: 16px; background: var(--ink); color: #D6D7D2; box-shadow: 0 30px 60px -24px rgba(11,13,18,.55); overflow: hidden; transition: transform .9s var(--ease-out); }
.agent-card__head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #23262F; font-size: 12px; color: #8B8F9A; }
.agent-card__dots { display: flex; gap: 5px; }
.agent-card__dots i { width: 8px; height: 8px; border-radius: 50%; background: #2F333D; }
.agent-card__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #9BE3B4; font-family: var(--f-mono); font-size: 11px; }
.agent-card__status i { width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.agent-card__body { padding: 12px 16px 14px; font-size: 12.5px; line-height: 1.75; min-height: 104px; }
.agent-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-line .k { color: var(--ember); }
.agent-line .ok { color: #3DDC84; }
.agent-line .dim { color: #6C717C; }
.agent-caret { display: inline-block; width: 7px; height: 14px; background: var(--ember); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }

.hero__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hero__foot-r span { color: var(--ember); margin: 0 6px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue__line { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 20px auto 70px; }
  .float-chip--1 { left: -4%; } .float-chip--2 { right: -2%; } .float-chip--3 { right: -4%; } .float-chip--4 { left: -4%; }
  .agent-card { left: 8%; right: 8%; }
  .hero__foot-r { display: none; }
}
@media (max-width: 520px) {
  .float-chip { font-size: 12px; padding: 6px 10px 6px 6px; }
  .float-chip__ic { width: 24px; height: 24px; }
  .float-chip--1 { left: 0; } .float-chip--3 { right: 0; } .float-chip--2 { right: 0; }
  .agent-card { left: 4%; right: 4%; }
}

/* ---------- Capability marquee ---------- */
.cap-marquee { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.cap-marquee .marquee__track span { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.035em; white-space: nowrap; }
.cap-marquee .marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.spark-sep { width: 22px; height: 22px; flex: none; background: var(--ember); clip-path: path("M11 0 Q12.4 9.6 22 11 Q12.4 12.4 11 22 Q9.6 12.4 0 11 Q9.6 9.6 11 0 Z"); animation: spin 8s linear infinite; }

/* ---------- Statement (scroll fill) ---------- */
.statement { padding: clamp(100px, 14vw, 190px) 0; }
.statement .container { display: grid; gap: 34px; }
.statement__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.12; letter-spacing: -0.04em; max-width: 21ch; }
.fill-word { transition: opacity .25s linear, color .4s; }
.fill-word.is-accent { color: var(--ember-ink); }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px;
  grid-template-areas:
    "strat strat genai agents"
    "vision docs docs agents"
    "vision tune mlops mlops"; }
.bento__strat { grid-area: strat; } .bento__genai { grid-area: genai; } .bento__agents { grid-area: agents; }
.bento__vision { grid-area: vision; } .bento__docs { grid-area: docs; } .bento__tune { grid-area: tune; } .bento__mlops { grid-area: mlops; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(11,13,18,.22); }
.card__visual { position: relative; flex: 1; min-height: 130px; border-radius: 14px; background: var(--bg); overflow: hidden; }
.card__body { display: grid; gap: 10px; }
.card__body p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card__tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-ink); }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "strat strat" "genai agents" "vision agents" "docs docs" "tune mlops"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "strat" "genai" "agents" "vision" "docs" "tune" "mlops"; }
}

/* viz: roadmap */
.viz-road { display: flex; flex-direction: column; justify-content: center; padding: 26px; gap: 18px; }
.viz-road__line { position: relative; height: 2px; background: var(--line-2); margin: 0 6%; }
.viz-road__line::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 7px), var(--ink) calc(33.33% - 7px) calc(33.33% + 7px)); }
.viz-road__runner { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 6px rgba(255,90,31,.18); animation: run 5s var(--ease-io) infinite; }
@keyframes run { 0% { left: 0; } 30% { left: 33.33%; } 55% { left: 66.66%; } 85%, 100% { left: 100%; } }
.viz-road__steps { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.viz-road__steps b { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }

/* viz: chat */
.viz-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; justify-content: center; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.bubble--user { align-self: flex-end; background: var(--ink); color: var(--bone); border-bottom-right-radius: 4px; }
.bubble--ai { align-self: flex-start; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 4px; position: relative; min-height: 40px; min-width: 64px; }
.typing { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 4px; animation: typing-hide 6s infinite; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }
.bubble__text { display: block; opacity: 0; animation: typing-show 6s infinite; }
@keyframes typing-hide { 0%, 30% { opacity: 1; } 34%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes typing-show { 0%, 32% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
.viz-chat__src { display: flex; gap: 6px; font-size: 10.5px; color: var(--muted); }
.viz-chat__src span { padding: 3px 8px; border-radius: 6px; background: var(--ember-soft); color: var(--ember-ink); }

/* viz: agent flow */
.viz-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 16px; gap: 0; }
.viz-flow__node { padding: 9px 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.viz-flow__node--hot { background: var(--ink); color: var(--bone); box-shadow: none; }
.viz-flow__node--done { background: var(--ember-soft); color: var(--ember-ink); box-shadow: none; }
.viz-flow__wire { position: relative; width: 2px; height: 26px; background: var(--line-2); overflow: hidden; }
.viz-flow__wire i { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ember); animation: wire 2.4s linear infinite; }
.viz-flow__wire:nth-of-type(4) i { animation-delay: .6s; } .viz-flow__wire:nth-of-type(6) i { animation-delay: 1.2s; } .viz-flow__wire:nth-of-type(8) i { animation-delay: 1.8s; }
@keyframes wire { to { top: 100%; } }

/* viz: vision */
.viz-vision { display: grid; place-items: center; padding: 14px; }
.viz-vision__scene { width: 100%; height: auto; }
.bbox { position: absolute; border: 2px dashed var(--ember); border-radius: 8px; background: rgba(255,90,31,.08); opacity: 0; animation: bbox 5s infinite; }
.bbox em { position: absolute; left: -2px; top: -24px; font-style: normal; font-family: var(--f-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 5px; background: var(--ember); color: #fff; white-space: nowrap; }
.bbox--1 { left: 76%; top: 40%; width: 18%; height: 28%; }
.bbox--2 { left: 40%; top: 44%; width: 22%; height: 24%; animation-delay: .5s; }
.bbox--2 em { top: auto; bottom: -24px; }
@keyframes bbox { 0%, 20% { opacity: 0; transform: scale(1.15); } 30%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, rgba(255,90,31,0), rgba(255,90,31,.25)); border-bottom: 2px solid var(--ember); animation: scan 5s var(--ease-io) infinite; }
@keyframes scan { 0% { transform: translateY(-50px); opacity: 0; } 5% { opacity: 1; } 30% { transform: translateY(260px); opacity: 1; } 31%, 100% { opacity: 0; transform: translateY(260px); } }
.bento__vision .card__visual { min-height: 260px; }

/* viz: document */
.viz-doc { display: flex; align-items: center; gap: 18px; padding: 20px; }
.viz-doc__page { flex: 0 0 42%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 18px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 24px -16px rgba(11,13,18,.2); }
.viz-doc__page i { display: block; height: 7px; border-radius: 4px; background: var(--bg-3); position: relative; overflow: hidden; }
.viz-doc__page i.hl::after { content: ""; position: absolute; inset: 0; background: var(--ember); transform-origin: left; transform: scaleX(0); animation: hl 4.5s var(--ease-out) infinite; }
.viz-doc__page i.hl:nth-of-type(5)::after { animation-delay: .4s; } .viz-doc__page i.hl:nth-of-type(8)::after { animation-delay: .8s; }
@keyframes hl { 0%, 10% { transform: scaleX(0); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.viz-doc__fields { flex: 1; display: grid; gap: 10px; }
.viz-doc__fields span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-display); font-weight: 600; font-size: 15px; opacity: 0; transform: translateX(-16px); animation: field 4.5s var(--ease-out) infinite; }
.viz-doc__fields span:nth-child(2) { animation-delay: .4s; } .viz-doc__fields span:nth-child(3) { animation-delay: .8s; }
.viz-doc__fields small { font-size: 11px; font-weight: 500; color: var(--muted); }
@keyframes field { 0%, 22% { opacity: 0; transform: translateX(-16px); } 34%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@media (max-width: 520px) { .viz-doc { flex-direction: column; } .viz-doc__page { width: 100%; flex-basis: auto; } .viz-doc__fields { width: 100%; } }

/* viz: loss curve */
.viz-loss { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.viz-loss svg { width: 100%; height: 110px; overflow: visible; }
.viz-loss__curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: loss 5s var(--ease-out) infinite; }
.viz-loss__dot { opacity: 0; animation: lossdot 5s infinite; }
@keyframes loss { 0% { stroke-dashoffset: 1; } 50%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lossdot { 0%, 45% { opacity: 0; } 52%, 90% { opacity: 1; } 100% { opacity: 0; } }
.viz-loss__tags { display: flex; gap: 6px; font-size: 11px; }
.viz-loss__tags span { padding: 4px 9px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* viz: ops */
.viz-ops { display: flex; align-items: flex-end; gap: 20px; padding: 20px; }
.viz-ops__bars { flex: 1; height: 100%; min-height: 110px; display: flex; align-items: flex-end; gap: 6px; }
.viz-ops__bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: var(--ink); transform-origin: bottom; animation: bar 3.2s ease-in-out infinite; }
.viz-ops__bars i:nth-child(odd) { background: var(--bg-3); }
.viz-ops__bars i:last-child { background: var(--ember); }
.viz-ops__bars i:nth-child(2n) { animation-delay: .3s; } .viz-ops__bars i:nth-child(3n) { animation-delay: .6s; }
@keyframes bar { 50% { transform: scaleY(.72); } }
.viz-ops__stat { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.viz-ops__stat span { font-size: 11px; color: var(--muted); }
.viz-ops__stat b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 15px; }
.viz-ops__stat b i { width: 8px; height: 8px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 4px rgba(31,157,85,.16); }
@media (max-width: 520px) { .viz-ops { flex-direction: column; align-items: stretch; } }

/* ---------- Products ---------- */
.products { background: var(--bg-2); border-radius: var(--radius-lg); margin: 0 clamp(8px, 1.4vw, 20px); }
.product-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--radius-lg); background: var(--contour); color: var(--bone); overflow: hidden; isolation: isolate; }
.product-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(242,241,236,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(242,241,236,.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); }
.product-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.28), transparent 60%); z-index: -1; filter: blur(20px); }
.product-card__copy { display: grid; gap: 22px; align-content: center; }
.product-card__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-card__brand svg { width: 44px; height: 44px; }
.product-card__brand > span:nth-child(2) { font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -0.045em; }
.product-card__brand em { font-style: normal; color: var(--ember); }
.product-card__pill { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242,241,236,.25); color: #C8D6D2; }
.product-card__title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.04; }
.product-card__lead { color: #C8D6D2; font-size: 17px; max-width: 46ch; }
.product-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.product-card__list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(242,241,236,.14); font-size: 16px; }
.product-card__list li span { font-family: var(--f-mono); font-size: 12px; color: var(--ember); }
.product-card__actions { padding-top: 6px; }

.product-card__stage { position: relative; display: grid; place-items: center; min-height: 520px; transition: transform .8s var(--ease-out); transform-style: preserve-3d; }
.phone { position: relative; width: 270px; height: 540px; border-radius: 42px; background: #0B0D12; padding: 10px; box-shadow: 0 0 0 2px #2A2E38, 0 50px 80px -30px rgba(0,0,0,.6); }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #000; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 33px; background: #F2F1EC; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 48px 14px 16px; }
.phone__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.phone__live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 10px; color: #D92D20; }
.phone__live i { width: 7px; height: 7px; border-radius: 50%; background: #D92D20; animation: blink 1.2s infinite; }
.phone__cam { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 220 / 230; background: #2A3B38; }
.phone__cam svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pbox { position: absolute; border: 2px solid var(--ember); border-radius: 6px; background: rgba(255,90,31,.12); opacity: 0; animation: bbox 6s infinite; }
.pbox em { position: absolute; left: -2px; bottom: calc(100% + 4px); font-style: normal; font-size: 9.5px; font-weight: 600; padding: 3px 6px; border-radius: 4px; background: var(--ember); color: #fff; white-space: nowrap; }
.pbox--1 { right: 2%; top: 48%; width: 22%; height: 22%; }
.pbox--1 em { left: auto; right: -2px; }
.pbox--2 { left: 30%; top: 38%; width: 26%; height: 18%; animation-delay: .6s; }
.phone__scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--ember); box-shadow: 0 0 16px 4px rgba(255,90,31,.5); animation: pscan 6s var(--ease-io) infinite; }
@keyframes pscan { 0% { top: 0; opacity: 0; } 4% { opacity: 1; } 28% { top: 100%; opacity: 1; } 30%, 100% { top: 100%; opacity: 0; } }
.phone__corners { position: absolute; inset: 10px; background:
  linear-gradient(#fff, #fff) left top / 18px 2px no-repeat, linear-gradient(#fff, #fff) left top / 2px 18px no-repeat,
  linear-gradient(#fff, #fff) right top / 18px 2px no-repeat, linear-gradient(#fff, #fff) right top / 2px 18px no-repeat,
  linear-gradient(#fff, #fff) left bottom / 18px 2px no-repeat, linear-gradient(#fff, #fff) left bottom / 2px 18px no-repeat,
  linear-gradient(#fff, #fff) right bottom / 18px 2px no-repeat, linear-gradient(#fff, #fff) right bottom / 2px 18px no-repeat; opacity: .8; }
.phone__shots { display: flex; gap: 5px; }
.phone__shots span { flex: 1; text-align: center; font-size: 9.5px; font-weight: 600; padding: 6px 0; border-radius: 7px; background: var(--bg-3); color: var(--muted); }
.phone__shots .is-done { background: var(--contour); color: var(--bone); }
.phone__shots .is-now { background: var(--ember); color: #fff; }
.phone__meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.phone__btn { margin: auto auto 0; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ink); display: grid; place-items: center; }
.phone__btn i { width: 40px; height: 40px; border-radius: 50%; background: var(--ember); }
.stage-chip { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--bone); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); transform: translateZ(60px); }
.stage-chip b { font-family: var(--f-display); font-size: 15px; }
.stage-chip span { font-size: 11px; color: var(--muted); }
.stage-chip--a { right: 2%; top: 18%; animation: bob 6s ease-in-out infinite; }
.stage-chip--b { left: 2%; bottom: 16%; animation: bob 7s ease-in-out infinite reverse; }
.stage-chip--a::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(255,90,31,.25); }

@media (max-width: 960px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card__stage { min-height: 560px; }
}
@media (max-width: 480px) {
  .stage-chip--a { right: -2%; top: 6%; } .stage-chip--b { left: -2%; bottom: 4%; }
}

.lab-card { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 28px clamp(22px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(11,13,18,.025) 14px 15px); }
.lab-card__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--ember-soft); color: var(--ember-ink); }
.lab-card__icon svg { width: 30px; height: 30px; }
.lab-card__copy { display: grid; gap: 8px; }
.lab-card__copy p:last-child { color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .lab-card { grid-template-columns: 1fr; } }

/* ---------- Approach (sticky + steps) ---------- */
.approach__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.approach__sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 24px; }
.approach__counter { font-size: 14px; color: var(--muted); }
.approach__now { display: inline-block; font-size: 64px; font-family: var(--f-display); font-weight: 600; color: var(--ink); letter-spacing: -0.04em; line-height: 1; transition: transform .5s var(--ease-out); }
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 18px; }
.steps::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 8px; top: 12px; width: 2px; height: calc((100% - 24px) * var(--p, 0)); background: var(--ember); transition: height .2s linear; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); opacity: .45; transform: scale(.98); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .6s; }
.step::before { content: ""; position: absolute; left: -32px; top: 36px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); transition: background .4s, box-shadow .4s; z-index: 1; }
.step.is-active { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(11,13,18,.25); }
.step.is-active::before, .step.is-past::before { background: var(--ember); box-shadow: 0 0 0 5px rgba(255,90,31,.18); }
.step.is-past { opacity: .75; }
.step__num { font-size: 13px; color: var(--ember-ink); padding-top: 8px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.step__tags .chip { background: var(--bg); }
@media (max-width: 900px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__sticky { position: static; }
  .approach__counter { display: none; }
  .step { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- Industries (expanding panels) ---------- */
.ind { display: flex; gap: 12px; height: 460px; }
.ind__panel { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: flex 0.8s var(--ease-out), background .5s, color .5s; }
.ind__panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid currentColor; opacity: 0; transition: opacity .6s, transform 1s var(--ease-out); transform: scale(.6); clip-path: polygon(0 0, 100% 0, 100% 30%, 50% 50%, 100% 70%, 100% 100%, 0 100%); }
.ind__panel.is-active { flex: 3.2; background: var(--ink); color: var(--bone); }
.ind__panel.is-active::after { opacity: .08; transform: none; }
.ind__head { display: flex; flex-direction: column; gap: 14px; }
.ind__head .mono { font-size: 12px; color: var(--ember); }
.ind__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); transition: none; }
.ind__panel.is-active .ind__name { writing-mode: horizontal-tb; transform: none; white-space: normal; font-size: clamp(30px, 3.4vw, 48px); }
.ind__body { display: grid; gap: 18px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease-out); pointer-events: none; max-width: 520px; }
.ind__panel.is-active .ind__body { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.ind__desc { font-size: 18px; color: #C9CBD1; }
.ind__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ind__list span { padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px #2F333D; font-size: 14px; }
.ind__panel:not(.is-active):hover { background: var(--bg-2); }
@media (max-width: 860px) {
  .ind { flex-direction: column; height: auto; }
  .ind__panel { flex: none !important; min-height: 76px; }
  .ind__name { writing-mode: horizontal-tb; transform: none; }
  .ind__head { flex-direction: row; align-items: baseline; }
  .ind__body { display: none; }
  .ind__panel.is-active .ind__body { display: grid; margin-top: 18px; }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__intro { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 40px); }
.about__mark { display: flex; align-items: center; gap: 28px; padding: 24px; margin-top: 10px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.about__mark-svg { width: 120px; flex: none; overflow: visible; }
.about__mark .am-outer, .about__mark .am-inner { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.about__mark .am-inner { transition-delay: .5s; }
.about__mark .am-spark { transform-box: fill-box; transform-origin: center; transform: rotate(45deg) scale(0); transition: transform 1s cubic-bezier(.34,1.7,.64,1) 1.1s; }
.about__mark.is-in .am-outer, .about__mark.is-in .am-inner { stroke-dashoffset: 0; }
.about__mark.is-in .am-spark { transform: rotate(45deg) scale(1); }
.about__mark-legend { display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.about__mark-legend span { display: flex; align-items: center; gap: 10px; }
.lg { width: 22px; height: 8px; border-radius: 4px; flex: none; }
.lg--outer { background: var(--ink); } .lg--inner { background: var(--ink); height: 4px; width: 14px; } .lg--spark { background: var(--ember); width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.principle { display: grid; gap: 14px; align-content: start; padding: 30px; min-height: 260px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.principle:nth-child(2), .principle:nth-child(4) { margin-top: 40px; margin-bottom: -40px; }
.principle__n { font-size: 12px; color: var(--ember-ink); }
.principle h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; margin-top: auto; }
.principle p { color: var(--muted); font-size: 15.5px; }
.stack { margin-top: clamp(80px, 9vw, 120px); display: grid; gap: 18px; }
.stack__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.stack .marquee__track { gap: 10px; padding-right: 10px; }
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__intro { position: static; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(2), .principle:nth-child(4) { margin: 0; }
  .principle { min-height: 0; }
  .about__mark { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(100px, 12vw, 160px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { display: grid; gap: 26px; }
.contact__title { font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -0.05em; }
.contact__direct { display: grid; gap: 8px; margin-top: 14px; }
.contact__mail { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; justify-self: start; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease-out); padding-bottom: 2px; }
.contact__mail:hover { background-size: 100% 2px; }
.contact__direct p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__form-wrap { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(11,13,18,.35); }
.contact__form { display: grid; gap: 22px; transition: opacity .5s, filter .5s; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__submit { justify-self: start; margin-top: 10px; }
.contact__form.is-sending { opacity: .6; pointer-events: none; }
.contact__form.is-sent { opacity: 0; pointer-events: none; filter: blur(6px); }
.form-success { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .6s .2s; }
.form-success.is-visible { opacity: 1; pointer-events: auto; }
.form-success svg { width: 88px; }
.form-success p { color: var(--muted); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact__row { grid-template-columns: 1fr; } }
