/* =========================================================
   Vorlin Aurora — styles
   ========================================================= */
:root {
	--bg: #15142b;
	--bg2: #1d1b3a;
	--surface: rgba(255, 255, 255, .055);
	--surface2: rgba(255, 255, 255, .09);
	--line: rgba(255, 255, 255, .1);
	--text: #eeedff;
	--muted: #aaa8cc;
	--violet: #8b5cf6;
	--cyan: #22d3ee;
	--pink: #f472b6;
	--grad: linear-gradient(110deg, #a78bfa 0%, #22d3ee 50%, #f472b6 100%);
	--glow1: rgba(139, 92, 246, .35);
	--glow2: rgba(34, 211, 238, .22);
	--glow3: rgba(244, 114, 182, .2);
	--shadow: 0 30px 80px -30px rgba(5, 4, 20, .7);
	--r: 22px;
	--fd: 'Sora', system-ui, sans-serif;
	--fb: 'Inter', system-ui, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: dark;
}
[data-theme="light"] {
	--bg: #f5f3fc;
	--bg2: #ebe7f8;
	--surface: rgba(255, 255, 255, .72);
	--surface2: rgba(255, 255, 255, .95);
	--line: rgba(30, 26, 70, .1);
	--text: #1b1840;
	--muted: #5d5a82;
	--glow1: rgba(139, 92, 246, .22);
	--glow2: rgba(34, 211, 238, .2);
	--glow3: rgba(244, 114, 182, .16);
	--shadow: 0 30px 70px -35px rgba(60, 40, 140, .35);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .5s, color .5s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--fd); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(70px, 10vw, 140px); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--fd); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
[data-theme="light"] .kicker { color: #7c3aed; }
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.glass { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-radius: var(--r); }
.chip { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; background: var(--surface2); border: 1px solid var(--line); }
.ico { width: 18px; height: 18px; flex: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.is-ready:not(.no-anim) .reveal { opacity: 0; }

/* ---------- Background aurora ---------- */
.aurora-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora-bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); animation: drift 26s ease-in-out infinite alternate; }
.aurora-bg i:nth-child(1) { background: var(--glow1); top: -25vmax; left: -15vmax; }
.aurora-bg i:nth-child(2) { background: var(--glow2); bottom: -30vmax; right: -20vmax; animation-delay: -8s; }
.aurora-bg i:nth-child(3) { background: var(--glow3); top: 30%; left: 40%; width: 40vmax; height: 40vmax; animation-delay: -16s; }
@keyframes drift { to { transform: translate(10vmax, 8vmax) scale(1.15); } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-content: center; gap: 22px; clip-path: inset(0 0 0 0); }
.loader__mark { display: flex; gap: .06em; font: 700 clamp(2.4rem, 7vw, 4.5rem)/1 var(--fd); letter-spacing: .1em; overflow: hidden; }
.loader__mark span { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s var(--ease) both; }
.loader__mark span:nth-child(2) { animation-delay: .06s } .loader__mark span:nth-child(3) { animation-delay: .12s } .loader__mark span:nth-child(4) { animation-delay: .18s } .loader__mark span:nth-child(5) { animation-delay: .24s } .loader__mark span:nth-child(6) { animation-delay: .3s }
@keyframes rise { from { transform: translateY(110%); } }
.loader__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(.3); animation: load 2s ease-out forwards; }
@keyframes load { to { transform: scaleX(.85); } }

/* ---------- Cursor ---------- */
.cursor { display: none !important; position: fixed; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, var(--glow1), transparent 65%); opacity: .55; transition: width .4s, height .4s, margin .4s, opacity .4s; mix-blend-mode: screen; }
[data-theme="light"] .cursor { mix-blend-mode: multiply; opacity: .35; }
.cursor.is-big { opacity: .85; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 99px; font: 600 .95rem/1 var(--fd); border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, background .35s; overflow: hidden; isolation: isolate; white-space: nowrap; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--grad { color: #fff; background: var(--grad); background-size: 200% 100%; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7); animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.btn--grad:hover { box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .7); }
.btn--ghost { border-color: var(--line); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface2); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--fd); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: gap .3s, border-color .3s; }
.link-arrow:hover { gap: 14px; border-color: var(--cyan); }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%); width: min(1320px, 100% - 28px); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px 10px 20px; border-radius: 99px; border: 1px solid transparent; transition: transform .5s var(--ease), background .4s, border-color .4s, backdrop-filter .4s; }
.admin-bar .hdr { top: 46px; }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hdr.is-hidden { transform: translate(-50%, -140%); }
.hdr__logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark svg { width: 34px; height: 34px; }
.logo-word { font: 700 1.2rem/1 var(--fd); letter-spacing: .22em; }
.hdr__nav { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.hdr__nav a { position: relative; z-index: 1; padding: 9px 18px; font: 500 .88rem/1 var(--fd); color: var(--muted); border-radius: 99px; transition: color .3s; }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--text); }
.hdr__pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }
.hdr__right { display: flex; align-items: center; gap: 10px; }
.mode { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .mode:hover { transform: rotate(40deg); } }
.mode .ico:first-child { display: none; }
[data-theme="light"] .mode .ico:first-child { display: block; }
[data-theme="light"] .mode .ico:last-child { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.menu-open .mnav { opacity: 1; pointer-events: auto; }
.mnav a { font: 600 clamp(2rem, 9vw, 3rem)/1.2 var(--fd); display: flex; gap: 14px; align-items: baseline; }
.mnav small { font-size: .8rem; color: var(--cyan); }
@media (max-width: 1000px) { .hdr__nav { display: none; } .burger { display: block; } .hdr__right .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 60px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--bg) 75%, transparent), transparent 70%), linear-gradient(to bottom, transparent 60%, var(--bg)); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 var(--cyan); animation: ping 2s infinite; }
.hero__kicker::before { display: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { max-width: 13ch; font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: 1.02; }
.hero__text { max-width: 560px; margin-top: 28px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__chips { position: relative; z-index: 2; display: flex; gap: 14px; margin-top: 70px; flex-wrap: wrap; }
.chip-stat { padding: 16px 22px; display: flex; flex-direction: column; min-width: 170px; }
.chip-stat b { font: 600 1.8rem/1 var(--fd); }
.chip-stat span { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.hero__scroll { position: absolute; right: 32px; bottom: 40px; z-index: 2; writing-mode: vertical-rl; font: 600 .7rem var(--fd); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 60px; background: linear-gradient(var(--cyan), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--surface); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 600 clamp(1.3rem, 2.4vw, 2rem)/1 var(--fd); white-space: nowrap; }
.marquee span:nth-of-type(odd) { -webkit-text-stroke: 1px var(--muted); color: transparent; }
.marquee i { color: var(--pink); font-style: normal; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro__text { font: 500 clamp(1.6rem, 3.4vw, 3rem)/1.25 var(--fd); letter-spacing: -.02em; max-width: 22ch; }
.intro { text-align: left; }

/* ---------- Section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head > .muted { max-width: 380px; }

/* ---------- Scenes (expanding panels) ---------- */
.scenes__rail { display: flex; gap: 12px; height: clamp(460px, 62vh, 620px); }
.scene { position: relative; flex: 1; min-width: 0; border-radius: var(--r); overflow: hidden; transition: flex .8s var(--ease); isolation: isolate; }
.scene.is-open { flex: 4.2; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.scene:hover img { transform: scale(1.06); }
.scene__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(12, 10, 30, .88)); }
.scene__num { position: absolute; top: 20px; left: 20px; font: 600 .78rem var(--fd); color: #fff; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); }
.scene__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.scene h3 { font-size: clamp(1.2rem, 2vw, 1.9rem); white-space: nowrap; }
.scene:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.1rem; }
.scene p, .scene__link { max-width: 420px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.scene p { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.scene__link { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font: 600 .9rem var(--fd); }
.scene.is-open p, .scene.is-open .scene__link { opacity: 1; transform: none; transition-delay: .3s; }
@media (max-width: 860px) {
	.scenes__rail { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; width: 100%; padding-inline: 24px; }
	.scene, .scene.is-open { flex: 0 0 78%; height: 440px; scroll-snap-align: center; }
	.scene:not(.is-open) h3 { writing-mode: horizontal-tb; transform: none; font-size: 1.4rem; }
	.scene p, .scene__link { opacity: 1; transform: none; }
}

/* ---------- Categories ---------- */
.cats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat { position: relative; padding: 30px 26px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.cat::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: 0; transition: opacity .6s; }
.cat:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--violet) 60%, transparent); }
.cat:hover::after { opacity: .45; }
.cat__n { font: 600 .8rem var(--fd); color: var(--muted); }
.cat h3 { margin-top: auto; font-size: 1.45rem; }
.cat p { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.cat__count { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font: 600 .85rem var(--fd); }

/* ---------- Product cards ---------- */
.feat__track, .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; transform-style: preserve-3d; }
.pcard:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.pcard__img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .25), transparent 50%); opacity: 0; transition: opacity .4s; mix-blend-mode: overlay; }
.pcard:hover .pcard__glow { opacity: 1; }
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__body .chip { align-self: flex-start; }
.pcard__body p { color: var(--muted); font-size: .9rem; }
.pcard__more { margin-top: auto; padding-top: 10px; display: inline-flex; gap: 8px; align-items: center; font: 600 .85rem var(--fd); color: var(--cyan); }
[data-theme="light"] .pcard__more { color: #7c3aed; }

/* ---------- Studio teaser ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.studio__copy p.muted { margin: 22px 0 34px; max-width: 460px; }
.studio__visual { position: relative; aspect-ratio: 1.15; overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%), var(--surface); }
.studio__visual canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.studio__hint { position: absolute; left: 20px; bottom: 18px; font: 600 .72rem var(--fd); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 36px 28px 10px 0; border-right: 1px solid var(--line); padding-left: 28px; }
.why__item:first-child { padding-left: 0; }
.why__item:last-child { border-right: 0; }
.why__n { font: 700 2.6rem/1 var(--fd); display: block; margin-bottom: 26px; }
.why__item h3 { margin-bottom: 10px; }
@media (max-width: 700px) { .why__item { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 30px; } }

/* ---------- Gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding-block: 40px; }
.gallery__row { display: flex; gap: 16px; width: max-content; }
.gallery__row img { width: clamp(260px, 30vw, 440px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }

/* ---------- News / posts ---------- */
.news__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; margin-bottom: 10px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__date { font: 600 .75rem var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.post-card h3 { font-size: 1.3rem; transition: color .3s; }
.post-card:hover h3 { color: var(--cyan); }

/* ---------- Page hero ---------- */
.phero { position: relative; padding: 180px 0 80px; overflow: hidden; }
.phero--img { min-height: 78vh; display: flex; align-items: flex-end; color: #fff; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 34, .35), rgba(14, 12, 34, .85)); }
.phero h1 { max-width: 16ch; }
.phero__text { max-width: 620px; margin-top: 24px; font-size: 1.12rem; color: var(--muted); }
.phero--img .phero__text, .phero--img .crumbs { color: rgba(255, 255, 255, .8); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 500 .8rem var(--fd); color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 600; }
.phero--img .crumbs b { color: #fff; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filters a { padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font: 500 .88rem var(--fd); transition: all .3s; }
.filters a:hover { border-color: var(--violet); }
.filters a.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.filters sup { opacity: .6; font-size: .7em; }

/* ---------- Scene strip ---------- */
.sstrip__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sstrip__item { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; color: #fff; }
.sstrip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sstrip__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(12, 10, 30, .85)); }
.sstrip__item span { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font: 600 1rem/1.2 var(--fd); }
.sstrip__item:hover img { transform: scale(1.08); }

/* ---------- Scene intro ---------- */
.scene-intro__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.scene-intro__grid .scrub-text { font: 500 clamp(1.4rem, 2.6vw, 2.3rem)/1.3 var(--fd); }
.scene-intro__facts { display: grid; gap: 14px; }
.scene-intro__facts .glass { padding: 26px; display: flex; flex-direction: column; }
.scene-intro__facts b { font: 700 2.4rem/1 var(--fd); }
.scene-intro__facts span { color: var(--muted); margin-top: 6px; }
@media (max-width: 800px) { .scene-intro__grid { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.pd { padding-top: 140px; }
.pd__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.pd__media { overflow: hidden; aspect-ratio: 1; transition: transform .5s var(--ease); }
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__info h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.pd__lead { margin-top: 22px; color: var(--muted); font-size: 1.08rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.specs div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.specs div:nth-child(2n) { border-right: 0; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs b { font: 600 1.15rem var(--fd); }
.specs span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pd__scenes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; font-size: .85rem; }
.pd__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.spec-table { padding: 30px; }
.spec-table h2 { font-size: 1.5rem; margin-bottom: 18px; }
.spec-table dl { margin: 0; }
.spec-table dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 900px) { .pd__grid, .pd__cols { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.8rem; margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .6em; }
.prose p { margin-bottom: 1.1em; color: var(--muted); }
.prose--article { max-width: 760px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 3px, #000 4px); mask: radial-gradient(circle, transparent 3px, #000 4px); }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 34px 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 var(--fd); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); margin-top: 10px; display: block; }
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-block--rev > :first-child { order: 2; }
.split-block__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.3; }
.split-block__img img { width: 100%; height: 100%; object-fit: cover; }
.split-block .muted { margin-top: 22px; font-size: 1.05rem; }
@media (max-width: 860px) { .split-block { grid-template-columns: 1fr; gap: 30px; } .split-block--rev > :first-child { order: 0; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease), border-color .4s; }
a.contact-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.contact-card .ico { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 16px; }
.contact-card span { color: var(--muted); font-size: .85rem; }
.contact-card b { font: 600 1.1rem var(--fd); word-break: break-word; }
.faq__item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font: 600 1.15rem var(--fd); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 18px; height: 18px; flex: none; }
.faq__item summary i::before, .faq__item summary i::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item p { margin-top: 14px; max-width: 720px; }

/* ---------- 3D studio page ---------- */
.studio-page { padding-top: 140px; }
.studio-page__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.studio-page__head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.cfg { display: grid; grid-template-columns: 1fr 360px; overflow: hidden; min-height: 680px; }
.cfg__stage { position: relative; min-height: 560px; background: radial-gradient(ellipse at 50% 75%, rgba(139, 92, 246, .35), transparent 60%), linear-gradient(#0d0c22, #17153a); }
.cfg__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.cfg__stage canvas:active { cursor: grabbing; }
.cfg__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; color: #fff; font: 600 .78rem var(--fd); pointer-events: none; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; box-shadow: 0 0 0 0 #22c55e; }
.cfg__fitted { padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.cfg__controls { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; color: #fff; background: rgba(20, 18, 50, .55); border-color: rgba(255, 255, 255, .12); }
.cfg__group { display: flex; gap: 6px; align-items: center; }
.cfg__btn { padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); font: 600 .78rem var(--fd); transition: all .3s; color: #fff; }
.cfg__btn:hover { background: rgba(255, 255, 255, .14); }
.cfg__btn.is-on { background: var(--grad); border-color: transparent; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); transition: transform .3s; }
.swatch.is-on { border-color: #fff; transform: scale(1.18); }
.cfg__tilt { display: flex; align-items: center; gap: 10px; font: 600 .78rem var(--fd); }
.cfg__tilt input { accent-color: var(--cyan); width: 120px; }
.cfg__side { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-height: 0; }
.cfg__side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 24px 14px; }
.cfg__side-head h2 { font-size: 1.3rem; }
.acc-list { list-style: none; margin: 0; padding: 0 14px; overflow-y: auto; flex: 1; max-height: 560px; }
.acc { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 12px; margin-bottom: 6px; border-radius: 14px; border: 1px solid transparent; background: transparent; transition: background .3s, border-color .3s; }
.acc:hover { background: var(--surface2); }
.acc.is-on { border-color: color-mix(in srgb, var(--cyan) 60%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.acc:disabled { opacity: .5; cursor: not-allowed; }
.acc__n { font: 600 .75rem var(--fd); color: var(--muted); width: 22px; }
.acc__txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc__txt b { font: 600 .95rem var(--fd); }
.acc__txt small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.acc__state { font: 600 .7rem var(--fd); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.acc.is-on .acc__state { background: var(--grad); color: #fff; border-color: transparent; }
.cfg__side-foot { display: flex; gap: 10px; padding: 18px 24px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 1000px) { .cfg { grid-template-columns: 1fr; } .cfg__side { border-left: 0; border-top: 1px solid var(--line); } .studio-page__head { grid-template-columns: 1fr; } .cfg__stage { min-height: 520px; } }
@media (max-width: 600px) { .cfg__stage { min-height: 600px; } .cfg__controls { gap: 8px; } }

/* ---------- Footer ---------- */
.ftr { position: relative; margin-top: 60px; border-top: 1px solid var(--line); overflow: hidden; }
.ftr__cta { padding-block: 110px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ftr__big { font-size: clamp(2.4rem, 6vw, 5.2rem); margin-bottom: 40px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 50px; border-top: 1px solid var(--line); }
.ftr__grid > div { display: flex; flex-direction: column; gap: 10px; }
.ftr__grid p { max-width: 300px; margin-top: 10px; }
.ftr h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ftr__grid a:not(.hdr__logo) { color: var(--text); opacity: .85; transition: opacity .3s, color .3s; }
.ftr__grid a:not(.hdr__logo):hover { color: var(--cyan); opacity: 1; }
.ftr__bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; font-size: .82rem; color: var(--muted); position: relative; }
.ftr__word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font: 700 clamp(5rem, 22vw, 20rem)/1 var(--fd); letter-spacing: .05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .12; pointer-events: none; white-space: nowrap; }
.ftr__bottom { padding-top: 12vw; }
@media (max-width: 800px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }

.pager { margin-top: 50px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager .page-numbers { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); }
.pager .current { background: var(--grad); color: #fff; }

@media (max-width: 600px) {
	.wrap { width: calc(100% - 32px); }
	.hero__chips { gap: 10px; } .chip-stat { min-width: 0; flex: 1 1 140px; padding: 14px 16px; }
	.hero__scroll { display: none; }
	.specs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Gradient text survives word-splitting (background-clip doesn't reach transformed children) */
.grad-text .wi { background: var(--grad); background-size: var(--gw, 300%) 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene:not(.is-open) .scene__num { opacity: 0; }
.scene:not(.is-open) .scene__body { padding: 22px 0; display: flex; justify-content: center; }
.scene:not(.is-open) h3 { font-size: .95rem; max-height: 340px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
	.scenes__rail { width: 100%; padding-inline: 16px; margin: 0; }
	.scene h3, .scene:not(.is-open) h3 { white-space: normal; max-height: none; font-size: 1.4rem; }
	.scene:not(.is-open) .scene__body { display: block; padding: 24px; }
	.scene:not(.is-open) .scene__num { opacity: 1; }
	.scene__body { padding: 24px; }
	.scene p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.scenes__rail { scrollbar-width: none; }
.scenes__rail::-webkit-scrollbar { display: none; }
@media (max-width: 600px) {
	.cfg__stage { min-height: 0; }
	.cfg__stage canvas { height: 400px; bottom: auto; }
	.cfg__controls { position: relative; left: auto; right: auto; bottom: auto; margin: 400px 12px 12px; }
	.cfg__top { font-size: .7rem; }
}

/* Follow the OS setting when mode = system */
@media (prefers-color-scheme: light) {
	[data-theme="system"] {
	--bg: #f5f3fc;
	--bg2: #ebe7f8;
	--surface: rgba(255, 255, 255, .72);
	--surface2: rgba(255, 255, 255, .95);
	--line: rgba(30, 26, 70, .1);
	--text: #1b1840;
	--muted: #5d5a82;
	--glow1: rgba(139, 92, 246, .22);
	--glow2: rgba(34, 211, 238, .2);
	--glow3: rgba(244, 114, 182, .16);
	--shadow: 0 30px 70px -35px rgba(60, 40, 140, .35);
	color-scheme: light;
	}
	[data-theme="system"] .kicker { color: #7c3aed; }
	[data-theme="system"] .pcard__more { color: #7c3aed; }
	[data-theme="system"] .cursor { mix-blend-mode: multiply; opacity: .35; }
}
/* Mode toggle: show the icon for the current mode */
.mode .ico { display: none !important; }
[data-theme="system"] .mode .ico-system, [data-theme="light"] .mode .ico-light, [data-theme="dusk"] .mode .ico-dark { display: block !important; }
.mode { position: relative; }
.mode__tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; font: 600 .7rem var(--fd); white-space: nowrap; background: var(--surface2); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (hover: hover) and (pointer: fine) { .mode:hover .mode__tip { opacity: 1; } }
.mode.show-tip .mode__tip { opacity: 1; }

/* Phones: centre the hero */
@media (max-width: 600px) {
	.hero__inner { text-align: center; }
	.hero__kicker { justify-content: center; width: 100%; }
	.hero__title { margin-inline: auto; }
	.hero__text { margin-inline: auto; }
	.hero__cta { justify-content: center; }
	.hero__chips { justify-content: center; }
	.chip-stat { align-items: center; text-align: center; }
}

/* Letter-level reveal */
.ch { display: inline-block; will-change: transform, opacity, filter; }
.grad-text .ch { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text .wi { background: none; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: currentColor; vertical-align: -2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 3D: exploded-view labels & teaser state */
.cfg__labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.cfg__labels.is-on { opacity: 1; }
.plabel { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #fff; font: 600 .72rem var(--fd); transition: opacity .3s; will-change: transform; }
.plabel i { width: 9px; height: 9px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 0 14px #22d3ee; margin-left: -4.5px; }
.plabel span { padding: 5px 10px; border-radius: 8px; background: rgba(14, 13, 36, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.cfg__btn--x { border-color: rgba(34, 211, 238, .5); }
.studio__state { position: absolute; right: 20px; bottom: 18px; font: 600 .72rem var(--fd); letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.studio__hint { color: rgba(255, 255, 255, .6); }
.studio__visual { background: #0e0d24; }
@media (max-width: 600px) { .plabel span { font-size: .6rem; padding: 3px 7px; } }

/* ---------- Round 3 ---------- */
:root { --grad-title: linear-gradient(100deg, #ffffff 0%, #e9d5ff 30%, #a5f3fc 62%, #f9a8d4 100%); --grad-word: linear-gradient(100deg, #a78bfa 0%, #22d3ee 35%, #f472b6 70%, #a78bfa 100%); }
[data-theme="light"] { --grad-title: linear-gradient(100deg, #1e1b4b 0%, #4c1d95 35%, #7c3aed 65%, #be185d 100%); }
@media (prefers-color-scheme: light) { [data-theme="system"] { --grad-title: linear-gradient(100deg, #1e1b4b 0%, #4c1d95 35%, #7c3aed 65%, #be185d 100%); } }
.grad-title, .grad-title .ch { background-image: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-title[data-chars] { background: none; }
.phero--img .grad-title, .phero--img .grad-title .ch { background-image: linear-gradient(100deg, #ffffff 0%, #e9d5ff 40%, #a5f3fc 100%); }
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
@media (pointer: coarse) { .trail { display: none; } }
.caret { display: none; }

/* Footer: big gradient wordmark with the copyright centred beneath */
.ftr__bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 28px; text-align: center; }
.ftr__word { position: static; transform: none; display: block; font: 700 clamp(4.2rem, 21vw, 19rem)/.9 var(--fd); letter-spacing: .04em; background: var(--grad-word); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55; animation: wordShift 10s linear infinite; white-space: nowrap; max-width: 100%; }
[data-theme="light"] .ftr__word { opacity: .45; }
@media (prefers-color-scheme: light) { [data-theme="system"] .ftr__word { opacity: .45; } }
@keyframes wordShift { to { background-position: 200% 0; } }
.ftr__copy { font-size: .82rem; color: var(--muted); }

/* Model switcher */
.cfg__models { padding: 22px 24px 4px; display: flex; flex-direction: column; gap: 10px; }
.cfg__models .muted { font: 600 .7rem var(--fd); letter-spacing: .16em; text-transform: uppercase; }
.cfg__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cfg__seg button { padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; font: 600 .76rem var(--fd); color: var(--muted); transition: all .3s; }
.cfg__seg button:hover { color: var(--text); }
.cfg__seg button.is-on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(139, 92, 246, .8); }
.cfg__side-head { padding-top: 14px; }

/* Very narrow phones (Galaxy Fold folded, ~280px) */
@media (max-width: 340px) {
	.hdr { padding: 8px 8px 8px 12px; gap: 8px; width: calc(100% - 16px); }
	.logo-mark svg { width: 26px; height: 26px; }
	.logo-word { font-size: .95rem; letter-spacing: .16em; }
	.mode, .burger { width: 38px; height: 38px; }
	.burger i { left: 11px; right: 11px; }
	.burger i:first-child { top: 16px; } .burger i:last-child { top: 22px; }
	.wrap { width: calc(100% - 24px); }
	.hero__title { font-size: 2.3rem; }
	.btn { padding: 13px 20px; font-size: .88rem; }
	.chip-stat { flex-basis: 100%; }
}
/* Grids can never be wider than the screen */
.news__grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.feat__track, .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.cats__grid, .why__grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.contact__grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.sstrip__grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr)); }
@media (max-width: 600px) {
	.hero__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 44px; }
	.chip-stat, .chip-stat { min-width: 0; padding: 12px 6px; flex: none; }
	.chip-stat b { font-size: 1.25rem; }
	.chip-stat span { font-size: .66rem; line-height: 1.25; }
}
@media (max-width: 340px) { .chip-stat { flex-basis: auto; } .chip-stat b { font-size: 1.05rem; } .chip-stat span { font-size: .6rem; } }
@media (min-width: 601px) and (max-width: 860px) {
	.scene, .scene.is-open { flex: 0 0 46%; height: 520px; }
}
@media (max-width: 340px) {
	.scene, .scene.is-open { flex: 0 0 86%; height: 400px; }
	.scene h3, .scene:not(.is-open) h3 { font-size: 1.15rem; }
	.scene__body { padding: 18px; }
}
.cfg__group { flex-wrap: wrap; }
@media (max-width: 600px) {
	.cfg__controls { gap: 8px; padding: 10px; }
	.cfg__btn { padding: 8px 11px; font-size: .72rem; }
	.cfg__tilt input { width: 90px; }
	.cfg__seg button { font-size: .68rem; padding: 9px 4px; }
}
@media (max-width: 340px) {
	.cfg__fitted { display: none; }
	.ftr__grid { grid-template-columns: 1fr; gap: 28px; }
	.ftr__word { font-size: 18vw; letter-spacing: .02em; }
	.ftr__grid a { word-break: break-word; }
}

/* Loader: wordmark that fills with progress */
.loader__word { position: relative; font: 700 clamp(2.8rem, 11vw, 6rem)/1 var(--fd); letter-spacing: .14em; padding-left: .14em; }
.loader__base { display: block; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--text) 35%, transparent); }
.loader__fill { position: absolute; inset: 0; padding-left: .14em; background: linear-gradient(100deg, #a78bfa, #22d3ee, #f472b6, #a78bfa); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(0 100% 0 0); animation: loaderFlow 1.6s linear infinite; }
@keyframes loaderFlow { to { background-position: 300% 0; } }
.loader__mark, .loader__bar { display: none; }

.cfg__seg { grid-template-columns: repeat(4, 1fr); }
.cfg__seg button { font-size: .7rem; padding: 10px 4px; }

/* Loader: soft, feathered fill edge so the word lights up as one piece */
.loader__word { --p: 0%; }
.loader__fill { clip-path: none !important; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 14%), transparent calc(var(--p) + 2%)); mask-image: linear-gradient(90deg, #000 calc(var(--p) - 14%), transparent calc(var(--p) + 2%)); }

.cfg__hint { margin-left: auto; margin-right: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); opacity: .8; }
@media (pointer: coarse), (max-width: 700px) { .cfg__hint { display: none; } }
.acc-list { overscroll-behavior: auto; } /* at the list's end, the page keeps scrolling (touch + wheel) */
/* Split titles: the gradient lives on each letter, never on the heading box itself */
.grad-title[data-chars], .phero--img .grad-title[data-chars] { background-image: none !important; }
/* Over dark photo headers the logo stays white until the bar becomes solid on scroll */
body:has(.phero--img) .hdr:not(.is-scrolled) .logo-word { color: #fff; }
body:has(.phero--img) .hdr:not(.is-scrolled) .mode, body:has(.phero--img) .hdr:not(.is-scrolled) .burger { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }

/* Magnetic buttons are moved by GSAP; no CSS transform transition fighting it */
.magnetic { transition: box-shadow .35s, background .35s, color .35s; }

/* Loader only on the first page of a session */
.va-seen .loader { display: none !important; }

/* Scenes: smooth expanding panels.
   Each photo keeps a fixed width (the open-panel width) and is centred, so widening a panel only reveals
   more of it instead of re-scaling 8 large images every frame. */
.scenes__rail { --open-w: 600px; }
.scene { contain: layout paint; transition: flex .65s cubic-bezier(.25,.8,.25,1); }
.scene img { width: var(--open-w); max-width: none; left: 50%; right: auto; transform: translateX(-50%); will-change: transform; transition: transform 1s var(--ease); }
.scene:hover img { transform: translateX(-50%) scale(1.05); }
.scene__body { will-change: opacity; }
@media (max-width: 860px) { .scene img { width: 100%; left: 0; transform: none; } .scene:hover img { transform: scale(1.05); } }

/* Scenes v3 (desktop): no text reflow during the width animation.
   - open panel content has a fixed width and fades in after the panel opens, fades out fast when closing
   - narrow panels show a separate vertical label (cross-fade) instead of flipping the title mid-animation */
@media (min-width: 861px) {
	.scene { transition: flex .7s cubic-bezier(.65, 0, .35, 1); }
	.scene__num { backdrop-filter: none; background: rgba(10, 8, 30, .45); transition: opacity .3s; }
	.scene h3, .scene:not(.is-open) h3 { writing-mode: horizontal-tb; transform: none; font-size: clamp(1.2rem, 2vw, 1.9rem); white-space: nowrap; max-height: none; }
	.scene__body, .scene:not(.is-open) .scene__body { display: block; width: calc(var(--open-w) - 0px); padding: 28px; }
	.scene__body { opacity: 0; transform: translateY(14px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
	.scene.is-open .scene__body { opacity: 1; transform: none; transition: opacity .45s ease .32s, transform .6s cubic-bezier(.2, .8, .2, 1) .32s; pointer-events: auto; }
	.scene p, .scene__link, .scene.is-open p, .scene.is-open .scene__link { opacity: 1; transform: none; transition: none; }
	.scene__vlabel { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; color: #fff; font: 600 .95rem var(--fd); letter-spacing: .01em; opacity: 1; transition: opacity .3s ease .25s; pointer-events: none; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
	.scene.is-open .scene__vlabel { opacity: 0; transition: opacity .12s ease; }
	.scene:not(.is-open) .scene__num { opacity: 0; }
}
@media (max-width: 860px) { .scene__vlabel { display: none; } }

/* iOS Safari tints the status-bar area from the root background: match the top of the page.
   (body keeps the real page background, so the design itself is unchanged.) */
html { background: #2c2254; }
[data-theme="light"] { background-color: #e6defa; }
@media (prefers-color-scheme: light) { html[data-theme="system"] { background: #e6defa; } }
html[data-theme="dusk"] { background: #2c2254; }
body { background: var(--bg); min-height: 100vh; }

/* Logo: client's VORLIN mark + wordmark (vector, follows the theme colour) */
.hdr__logo { gap: 10px; color: var(--text); }
.logo-mark { display: inline-flex; }
.logo-mark svg { width: 46px; height: auto; display: block; }
.logo-word { display: inline-flex; align-items: center; letter-spacing: 0; }
.logo-word svg { width: 92px; height: auto; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hdr__logo:hover .logo-mark svg { animation: orbit 1.2s var(--ease); }
@keyframes orbit { 50% { transform: rotate(-8deg) scale(1.06); } }
body:has(.phero--img) .hdr:not(.is-scrolled) .hdr__logo { color: #fff; }
.ftr__logo .logo-mark svg { width: 54px; } .ftr__logo .logo-word svg { width: 110px; }
@media (max-width: 340px) { .logo-mark svg { width: 36px; } .logo-word svg { width: 74px; } }
/* body gets its own stacking context so the fixed aurora glow (z-index -1) still paints above body's background */
body { position: relative; z-index: 0; }

/* Featured row: 8 cards → always full rows (4 / 2 / 1 columns) */
.feat__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .feat__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat__track { grid-template-columns: 1fr; } }

/* 3D panels: real rounded corners. Chrome doesn't clip a composited WebGL canvas with overflow+border-radius,
   so clip with clip-path on the containers and round the canvas itself. */
.studio__visual, .cfg { clip-path: inset(0 round var(--r)); }
.cfg__stage { border-radius: var(--r) 0 0 var(--r); clip-path: inset(0 round var(--r) 0 0 var(--r)); }
.studio__visual canvas, .cfg__stage canvas { border-radius: inherit; }
@media (max-width: 1000px) { .cfg__stage { border-radius: var(--r) var(--r) 0 0; clip-path: inset(0 round var(--r) var(--r) 0 0); } }

/* Homepage 3D teaser: blend into the page instead of a hard rectangle */
.studio__visual { --r: 28px; border-radius: var(--r); border: 0; background: #0e0d24; box-shadow: 0 40px 90px -30px rgba(76, 29, 149, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.studio__visual::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(167, 139, 250, .7), rgba(34, 211, 238, .25) 45%, rgba(244, 114, 182, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.studio__visual::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(14, 13, 36, .55) 100%); }
.studio__hint, .studio__state { z-index: 3; }
[data-theme="light"] .studio__visual { box-shadow: 0 40px 80px -35px rgba(76, 29, 149, .45), 0 0 0 1px rgba(30, 26, 70, .06); }
@media (prefers-color-scheme: light) { [data-theme="system"] .studio__visual { box-shadow: 0 40px 80px -35px rgba(76, 29, 149, .45), 0 0 0 1px rgba(30, 26, 70, .06); } }
/* 3D studio frame: same gradient hairline */
.cfg { position: relative; }
.cfg::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: var(--r); padding: 1px; background: linear-gradient(140deg, rgba(167, 139, 250, .6), rgba(34, 211, 238, .2) 45%, rgba(244, 114, 182, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* 3D panels as frosted glass, part of the page (no dark "space box") */
.cfg__stage { background: rgba(255, 255, 255, .045); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.studio__visual { background: rgba(255, 255, 255, .045); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.studio__visual::after { display: none; }
/* Light theme: a soft violet tint behind the model keeps the laser beams visible */
[data-theme="light"] .cfg__stage, [data-theme="light"] .studio__visual { background: linear-gradient(160deg, rgba(76, 52, 160, .55), rgba(28, 22, 70, .72)); }
@media (prefers-color-scheme: light) { [data-theme="system"] .cfg__stage, [data-theme="system"] .studio__visual { background: linear-gradient(160deg, rgba(76, 52, 160, .55), rgba(28, 22, 70, .72)); } }
/* Touch: colour swatches are full-size tap targets */
@media (pointer: coarse), (max-width: 600px) { .swatch { width: 34px; height: 34px; } .cfg__group { gap: 8px; } }
/* Footer on phones/tablets: brand block full width, link columns share the row (never pushed off-screen) */
@media (max-width: 800px) {
	.ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr__grid > div:first-child { grid-column: 1 / -1; }
	.ftr__grid a, .ftr__grid span { overflow-wrap: anywhere; }
}
@media (max-width: 340px) { .ftr__grid { grid-template-columns: 1fr; } }
/* Scenes: a little quicker (user feedback, Issue 4) */
@media (min-width: 861px) {
	.scene { transition: flex .5s cubic-bezier(.6, 0, .3, 1); }
	.scene.is-open .scene__body { transition: opacity .3s ease .18s, transform .4s cubic-bezier(.2, .8, .2, 1) .18s; }
	.scene__body { transition: opacity .12s ease, transform .12s ease; }
	.scene__vlabel { transition: opacity .22s ease .15s; }
	.scene.is-open .scene__vlabel { transition: opacity .1s ease; }
}
@media (min-width: 861px) { .scene h3, .scene:not(.is-open) h3 { white-space: normal; max-width: 100%; line-height: 1.1; } }

/* Contact form */
.cform { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.cform__head h2 { font: 600 clamp(1.4rem, 2.4vw, 1.9rem) var(--fd); margin: 0 0 6px; }
.cform__head p { margin: 0; }
.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.cform__grid label { display: flex; flex-direction: column; gap: 8px; }
.cform__grid span { font: 600 .72rem var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cform__full { grid-column: 1 / -1; }
.cform input, .cform select, .cform textarea { width: 100%; font: 400 1rem var(--fb); color: var(--text); background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .25s, box-shadow .25s; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.cform select option { color: #1b1840; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.cform .btn { align-self: flex-start; }
.cform__note { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.cform__note.is-ok { background: color-mix(in srgb, #22c55e 16%, transparent); border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); }
.cform__note.is-err { background: color-mix(in srgb, #ef4444 14%, transparent); border: 1px solid color-mix(in srgb, #ef4444 45%, transparent); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .cform__grid { grid-template-columns: 1fr; } .cform .btn { align-self: stretch; justify-content: center; } }
.cform__err { color: #f87171; font-size: .82rem; line-height: 1.35; }
[data-theme="light"] .cform__err { color: #dc2626; }
.cform label.is-bad input, .cform label.is-bad textarea { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .16); }
.cform button[disabled] { opacity: .7; cursor: progress; }
