/* =====================================================================================
   Home — living specimen hero and showcase sections.
   ===================================================================================== */

/* Hero */
.hx { position: relative; padding: clamp(21px, 3.44vw, 48px) 0 clamp(34px, 4.3vw, 69px); overflow: hidden; }
.hx__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(21px, 2.58vw, 48px); align-items: center; min-height: calc(100svh - var(--hdr) - 38px - 60px); }
.hx h1 { font-size: clamp(45px, 5.68vw, 96px); margin: 0 0 28px; }
.hx__sub { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 560px; margin: 0 0 34px; line-height: 1.55; }
.hx__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hx__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--mute); }
.hx__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hx__trust svg { width: 16px; height: 16px; color: var(--acc); }

/* Specimen stage */
.spec { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 760px; justify-self: center; }
.spec canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.spec.is-drag canvas { cursor: grabbing; }
.spec__poster { position: absolute; inset: 18%; display: grid; place-items: center; transition: opacity .8s, visibility 0s .8s; pointer-events: none; }
.spec__poster span { width: 62%; aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 18px; animation: spinslow 18s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }
.spec.is-3d .spec__poster { opacity: 0; visibility: hidden; }
.spec.is-3d .spec__poster span { animation: none; }
.spec__hud { position: absolute; left: 4%; top: 4%; display: grid; gap: 4px; font: 500 11.5px/1.5 var(--mono); color: var(--mute); letter-spacing: .02em; pointer-events: none; }
.spec__hud b { color: var(--ink); font-weight: 600; }
.spec__hud [data-layer] { color: var(--acc); display: inline-block; min-width: 3ch; text-align: right; }
.spec__note { position: absolute; right: 2%; top: 9%; max-width: 230px; display: flex; gap: 10px; font: italic 400 14px/1.45 var(--serif); color: var(--ink-2); pointer-events: none; }
.spec__note i { flex: none; width: 34px; height: 1px; margin-top: 10px; background: var(--ink); }
.spec__drag { position: absolute; left: 50%; bottom: 31%; transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); pointer-events: none; transition: opacity .5s; }
.spec.is-touched .spec__drag { opacity: 0; }
.qcard { position: absolute; left: 6%; right: 6%; bottom: 2%; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -30px rgba(13, 13, 15, .35); display: grid; gap: 12px; }
.qcard__mats { display: flex; flex-wrap: wrap; gap: 6px; }
.qcard__mats button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font: 600 12.5px/1 var(--sans); color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.qcard__mats button i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.qcard__mats button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.qcard__row { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qcard__qty { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.qcard__qty button { min-width: 40px; height: 32px; border: 0; border-radius: 999px; background: transparent; font: 600 13px/1 var(--mono); color: var(--mute); }
.qcard__qty button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px rgba(13, 13, 15, .12); }
.qcard__qty span { font-size: 12px; color: var(--mute); padding: 0 8px 0 4px; }
.qcard__price { text-align: right; }
.qcard__price b { display: block; font: 800 clamp(26px, 2.58vw, 34px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qcard__price small { font-size: 12px; color: var(--mute); }
.qcard__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 10px; }
.qcard__save { color: var(--ok); font-weight: 600; }
@media (max-width: 1100px) { .hx__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } .spec { max-width: 680px; } }
@media (max-width: 640px) {
	.hx { padding-top: 18px; }
	.hx h1 { font-size: 48px; }
	.hx__cta .btn { width: 100%; }
	.spec { aspect-ratio: 1 / 1.18; }
	.spec__note { display: none; }
	.qcard { left: 0; right: 0; bottom: 0; padding: 14px; }
	.qcard__price b { font-size: 30px; }
}

/* Marquee */
.marq { background: var(--acc); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: 10px 0 -10px; position: relative; z-index: 2; }
.marq__in { display: flex; gap: 28px; width: max-content; animation: marq 46s linear infinite; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.marq__in i { font-style: normal; opacity: .55; }
.marq:hover .marq__in { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* KPI */
.kpi { padding: clamp(48px, 6.02vw, 83px) 0 clamp(34px, 4.3vw, 55px); }
.kpi__in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.kpi__in > div { padding: 8px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.kpi__in > div:first-child { border-left: 0; padding-left: 0; }
.kpi b { display: block; font: 800 clamp(38px, 4.47vw, 69px)/.98 var(--display); letter-spacing: -.025em; color: #fff; margin-bottom: 12px; }
.kpi b small { font-size: .38em; letter-spacing: -.01em; margin-left: 4px; color: var(--acc); font-weight: 700; }
.kpi span { font-size: 14px; color: #8F8F96; }
@media (max-width: 900px) { .kpi__in { grid-template-columns: 1fr 1fr; gap: 28px 0; } .kpi__in > div { border-left: 0; padding-left: 0; } .kpi__in > div:last-child { grid-column: 1 / -1; } }

/* Studio showcase */
.studio-show { padding: clamp(34px, 5.16vw, 69px) 0 var(--sec); }
.studio-show h2 { color: #fff; }
.studio-show__frame { position: relative; height: min(78vh, 760px); min-height: 520px; border-radius: 28px; overflow: hidden; background: #1A1A1E; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9); }
.studio-show__frame .app { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.studio-show__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: #8F8F96; font-size: 14px; background: radial-gradient(60% 60% at 50% 45%, rgba(19, 56, 190, .16), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 56px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 56px); }
.studio-show__feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 22px; overflow: hidden; }
.studio-show__feats li { background: var(--ink); padding: 24px; display: grid; gap: 6px; grid-template-columns: 34px 1fr; align-items: start; }
.studio-show__feats svg { width: 22px; height: 22px; color: var(--acc); grid-row: span 2; margin-top: 2px; }
.studio-show__feats b { color: #fff; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.studio-show__feats span { color: #8F8F96; font-size: 14px; }
@media (max-width: 900px) { .studio-show__feats { grid-template-columns: 1fr; } .studio-show__frame { height: 72vh; min-height: 480px; } }

/* How it works */
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; position: relative; }
.how__steps li { position: relative; padding: 28px 24px 30px; border-radius: 24px; background: var(--white); border: 1px solid var(--line-2); min-height: 300px; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.how__steps li:hover { transform: translateY(-6px); border-color: var(--ink); }
.how__n { font: 800 clamp(55px, 5.16vw, 83px)/.93 var(--display); letter-spacing: -.03em; color: var(--paper-2); -webkit-text-stroke: 1.5px var(--line); transition: color .4s, -webkit-text-stroke-color .4s; }
.how__steps li:hover .how__n { color: var(--acc); -webkit-text-stroke-color: var(--acc); }
.how__ic { position: absolute; right: 22px; top: 26px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.how__ic svg { width: 22px; height: 22px; }
.how__steps h3 { margin: auto 0 10px; font-size: 26px; }
.how__steps p { color: var(--mute); margin: 0; font-size: 15px; }
@media (max-width: 1000px) { .how__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how__steps { grid-template-columns: 1fr; } .how__steps li { min-height: 220px; } }

/* Technologies index */
.techx__list { position: relative; border-top: 1px solid var(--ink); }
.techx__row { display: grid; grid-template-columns: 60px 140px minmax(0, 1fr) auto 50px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: padding .5s var(--ease), color .3s; }
.techx__row::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.techx__row:hover { padding-left: 24px; padding-right: 12px; }
.techx__row:hover::before { transform: none; }
.techx__list { isolation: isolate; }
.techx__n { font: 500 13px/1 var(--mono); color: var(--mute); }
.techx__abbr { font: 800 clamp(38px, 4.3vw, 62px)/.98 var(--display); letter-spacing: -.025em; }
.techx__row:hover .techx__abbr { color: var(--acc); }
.techx__name b { display: block; font: 700 21px/1.15 var(--display); letter-spacing: -.01em; }
.techx__name small { font-size: 15px; color: var(--mute); }
.techx__meta { display: grid; gap: 4px; text-align: right; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.techx__go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 20px; transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.techx__row:hover .techx__go { background: var(--acc); color: #fff; border-color: var(--acc); transform: rotate(-45deg); }
.techx__float { position: absolute; left: 0; top: 0; width: 280px; height: 280px; object-fit: contain; pointer-events: none; z-index: 3; opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-6deg); transition: opacity .3s, transform .5s var(--ease); background: radial-gradient(closest-side, #fff 60%, transparent); border-radius: 50%; mix-blend-mode: multiply; }
.techx__list.is-hover .techx__float { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
@media (max-width: 900px) { .techx__row { grid-template-columns: 90px minmax(0, 1fr) 44px; gap: 14px; padding: 22px 0; } .techx__n, .techx__meta { display: none; } .techx__abbr { font-size: 40px; } .techx__go { width: 40px; height: 40px; } .techx__float { display: none; } }

/* Materials rail */
.mats__nav { display: flex; align-items: center; gap: 8px; }
.mats__nav .arrow { margin-right: 10px; }
.mats__nav .iconbtn { border: 1.5px solid var(--line); }
.mats__nav .iconbtn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 640px) { .rail { grid-auto-columns: 82%; } }

/* AI */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5.16vw, 83px); align-items: center; }
.ai h2 { color: #fff; }
.chat { border-radius: 28px; background: #19191D; border: 1px solid rgba(255, 255, 255, .1); padding: 22px; display: grid; gap: 12px; }
.chat .msg--me { background: var(--acc); }
.chat .msg--bot { background: rgba(255, 255, 255, .07); color: #EDEBE6; }
.chat .msg--bot b { color: #fff; }
.chat .msg--bot .links a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.chat .ask { margin-top: 8px; }
.chat .ask .input { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); color: #fff; }
.chat .ask .input::placeholder { color: #8F8F96; }
@media (max-width: 900px) { .ai__grid { grid-template-columns: minmax(0, 1fr); } }

/* Why */
.why__q { margin: 0 0 clamp(41px, 5.16vw, 76px); font: 700 clamp(31px, 4.47vw, 69px)/1 var(--display); letter-spacing: -.02em; max-width: 18ch; }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.why__i { padding: 28px 24px 0 0; }
.why__i + .why__i { padding-left: 24px; border-left: 1px solid var(--line); }
.why__i span { font: 600 12px/1 var(--mono); color: var(--acc); }
.why__i h3 { margin: 18px 0 10px; font-size: 22px; }
.why__i p { color: var(--mute); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; } .why__i:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } .why__i + .why__i { border-left: 0; padding-left: 0; } }

/* FAQ block */
.faqx { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5.16vw, 83px); align-items: start; }
.faqx > div:first-child { position: sticky; top: calc(var(--hdr) + 30px); }
@media (max-width: 900px) { .faqx { grid-template-columns: minmax(0, 1fr); } .faqx > div:first-child { position: static; } }
.studio-show__frame.is-live .studio-show__ph { display: none; }
@media (max-width: 640px) { .studio-show__frame:not(.is-live) { height: 300px; min-height: 0; } .studio-show__frame.is-live { height: 86svh; } .sec .grid.g4:has(> a.card) { grid-template-columns: 1fr 1fr; gap: 10px; } .sec .grid.g4 > a.card { padding: 14px; } .sec .grid.g4 > a.card .card__img { margin: -14px -14px 12px; } .sec .grid.g4 > a.card h3 { font-size: 15px !important; } .sec .grid.g4 > a.card p { font-size: 12.5px; } }
.kpi b small { white-space: nowrap; } .kpi b { white-space: nowrap; }

/* Markets */
.mk h2 { color: #fff; margin-bottom: 20px; }
.mk .lead { color: #B9B8B2; max-width: 520px; margin-bottom: 26px; }
.mk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4.3vw, 62px); align-items: center; }
.mk__zones { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.mk__zones li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mk__zones b { font: 700 18px/1.2 var(--display); color: #fff; letter-spacing: -.01em; }
.mk__zones span { font: 500 13px/1 var(--mono); color: #EDEBE6; }
.mk__zones em { font-style: normal; font-size: 13px; color: #9DB4FF; min-width: 70px; text-align: right; }
.mk__facts { display: grid; gap: 10px; }
.mk__facts > div { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.mk__facts svg { grid-row: span 2; width: 20px; height: 20px; color: var(--acc); margin-top: 2px; }
.mk__facts b { color: #fff; font-size: 15px; }
.mk__facts span { color: #A3A3AA; font-size: 13.5px; }
.mk__map { position: relative; aspect-ratio: 1000 / 1110; width: 100%; }
.mk__map canvas { position: absolute; inset: 0; }
@media (max-width: 900px) { .mk__grid { grid-template-columns: minmax(0, 1fr); } .mk__map { order: -1; max-width: 520px; margin: 0 auto; width: 100%; aspect-ratio: 1000 / 900; } }
@media (max-width: 640px) { .mk__zones li { grid-template-columns: minmax(0, 1fr) auto; } .mk__zones em { grid-column: 2; text-align: right; } .mk__zones span { grid-column: 1; } .mk__facts > div { padding: 12px; } }
.spec__view { position: absolute; inset: 0; }
.spec.is-drag canvas { cursor: grabbing; }

/* Sample strip: spinning parts */
.smps { padding: 0 0 clamp(24px, 3.44vw, 41px); }
.smps__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.smps__head b { font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }
.smps__head span { color: var(--mute); font-size: 14.5px; }
.smps__rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.smps__c { display: grid; gap: 2px; text-align: left; padding: 10px 12px 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--white); transition: border-color .25s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.smps__c:hover { border-color: var(--acc); transform: translateY(-5px); box-shadow: var(--sh2); }
.smps__tt { aspect-ratio: 1; border-radius: 14px; margin-bottom: 8px; background-color: var(--paper); background-repeat: no-repeat; background-position: 0 0; background-size: calc(var(--f, 24) * 100%) 100%; position: relative; overflow: hidden; }
.smps__tt:not(.is-on)::after { content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.smps__tt.is-on { animation: tt 3.6s steps(var(--f, 24)) infinite; }
.smps__c:hover .smps__tt.is-on { animation-duration: 1.4s; }
/* steps(f) lands on k/(f-1) → exactly frame k of f */
@keyframes tt { from { background-position: 0 0; } to { background-position: calc(100% * var(--f, 24) / (var(--f, 24) - 1)) 0; } }
.smps__c b { font-size: 15px; }
.smps__c small { font: 500 11.5px/1.3 var(--mono); color: var(--mute); }
.smps__c em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--acc); margin-top: 6px; }
@media (max-width: 1000px) { .smps__rail { grid-auto-flow: column; grid-auto-columns: 38%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; } .smps__c { scroll-snap-align: start; } }
@media (max-width: 640px) { .smps__rail { grid-auto-columns: 44%; gap: 8px; } .smps__c { padding: 8px 8px 12px; border-radius: 16px; } .smps__c b { font-size: 13.5px; } }
