:root {
  --ink:#111017;
  --ink-2:#2d2a35;
  --muted:#74707d;
  --paper:#fbfafc;
  --soft:#f3f0f6;
  --line:rgba(17,16,23,.10);
  --night:#0d0915;
  --night-2:#171020;
  --pink:#f116aa;
  --pink-2:#ff4bbd;
  --purple:#6d0fa4;
  --violet:#8d27c5;
  --green:#8ef3b8;
  --container:1240px;
  --radius:28px;
  --header-h:84px;
  --ease:cubic-bezier(.2,.75,.25,1);
  --shadow:0 24px 80px rgba(38,11,51,.12);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
  overflow-x:hidden;
}
body.menu-open, body.modal-open { overflow:hidden; }
::selection { background:rgba(241,22,170,.2); color:var(--ink); }
img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; }
button { color:inherit; }
.container { width:min(calc(100% - 48px),var(--container)); margin-inline:auto; }
.section-pad { padding:128px 0; }
.section-soft { background:var(--soft); }
.section-dark { position:relative; color:white; background:var(--night); overflow:hidden; }
.skip-link { position:fixed; top:12px; left:12px; transform:translateY(-160%); z-index:9999; padding:10px 14px; background:white; border-radius:10px; box-shadow:var(--shadow); }
.skip-link:focus { transform:none; }
.scroll-progress { position:fixed; inset:0 auto auto 0; width:0; height:2px; z-index:3000; background:linear-gradient(90deg,var(--purple),var(--pink),var(--pink-2)); }

.page-loader { position:fixed; inset:0; z-index:5000; display:grid; place-items:center; background:var(--paper); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .55s var(--ease),visibility .55s; }
.page-loader img { width:66px; animation:loaderFloat 1.2s ease-in-out infinite; }
.page-loader span { position:absolute; width:98px; height:98px; border:1px solid rgba(241,22,170,.22); border-top-color:var(--pink); border-radius:50%; animation:spin 1.1s linear infinite; }
body.loading .page-loader { opacity:1; visibility:visible; pointer-events:auto; }
body.loaded .page-loader { opacity:0; visibility:hidden; pointer-events:none; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes loaderFloat { 50% { transform:translateY(-5px) scale(1.03); } }

.site-header { position:fixed; inset:0 0 auto; height:var(--header-h); z-index:2000; transition:background .35s,border-color .35s,transform .35s var(--ease); border-bottom:1px solid transparent; }
.site-header.scrolled { background:rgba(251,250,252,.86); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-color:var(--line); }
.site-header.hidden { transform:translateY(-110%); }
.header-inner { position:relative; z-index:3; height:100%; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.brand { width:172px; flex:0 0 auto; }
.brand img { width:100%; height:auto; }
.desktop-nav { display:flex; align-items:center; gap:32px; margin-left:auto; }
.desktop-nav a { position:relative; font-size:13px; font-weight:700; letter-spacing:.02em; color:var(--ink-2); }
.desktop-nav a::after { content:""; position:absolute; left:0; bottom:-7px; width:100%; height:1px; background:var(--ink); transform:scaleX(0); transform-origin:right; transition:transform .28s var(--ease); }
.desktop-nav a:hover::after { transform:scaleX(1); transform-origin:left; }
.header-actions { display:flex; align-items:center; gap:12px; }
.icon-link { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; transition:transform .25s var(--ease),background .25s; }
.icon-link:hover { transform:translateY(-2px); background:white; }
.icon-link svg { width:18px; fill:currentColor; }
.menu-toggle { display:none; width:42px; height:42px; border:0; border-radius:50%; background:var(--ink); padding:0; position:relative; z-index:3; }
.menu-toggle span { position:absolute; left:12px; width:18px; height:1.5px; background:white; transition:transform .3s var(--ease),top .3s var(--ease); }
.menu-toggle span:first-child { top:17px; }
.menu-toggle span:last-child { top:24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top:21px; transform:rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top:21px; transform:rotate(-45deg); }
.mobile-menu { display:none; }

.button { min-height:54px; display:inline-flex; align-items:center; justify-content:center; gap:16px; border:1px solid transparent; border-radius:999px; padding:0 24px; font-size:14px; font-weight:800; letter-spacing:-.01em; transition:transform .28s var(--ease),box-shadow .28s,background .28s,color .28s,border-color .28s; cursor:pointer; }
.button span { font-size:18px; transition:transform .28s var(--ease); }
.button:hover span { transform:translate(3px,-3px); }
.button-primary { color:white; background:linear-gradient(135deg,var(--purple),var(--pink)); box-shadow:0 14px 38px rgba(180,17,156,.25); }
.button-primary:hover { transform:translateY(-3px); box-shadow:0 22px 44px rgba(180,17,156,.3); }
.button-dark { color:white; background:var(--ink); }
.button-dark:hover { background:var(--purple); }
.button-small { min-height:44px; padding-inline:19px; font-size:12px; }
.button-light { color:var(--night); background:white; }
.button-light:hover { transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,.22); }
.button-outline { background:transparent; border-color:var(--line); }
.button-outline:hover { border-color:var(--ink); transform:translateY(-2px); }
.text-link { display:inline-flex; align-items:center; gap:12px; font-size:14px; font-weight:800; }
.text-link span { font-size:18px; transition:transform .3s var(--ease); }
.text-link:hover span { transform:translate(4px,-3px); }
.gradient-text { background:linear-gradient(120deg,var(--purple) 0%,var(--pink) 48%,var(--pink-2) 72%,var(--purple) 100%); background-size:200% auto; color:transparent; -webkit-background-clip:text; background-clip:text; animation:gradientMove 7s linear infinite; }
@keyframes gradientMove { to { background-position:200% center; } }

.hero { min-height:100vh; position:relative; display:flex; flex-direction:column; justify-content:center; overflow:hidden; padding-top:var(--header-h); background:radial-gradient(circle at 45% 36%,rgba(247,218,241,.7),transparent 34%),var(--paper); }
.hero-grid-bg { position:absolute; inset:0; opacity:.45; background-image:linear-gradient(rgba(17,16,23,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(17,16,23,.045) 1px,transparent 1px); background-size:72px 72px; mask-image:linear-gradient(to bottom,black 0,transparent 78%); }
.hero-glow { position:absolute; border-radius:50%; filter:blur(20px); opacity:.55; pointer-events:none; }
.glow-one { width:420px; height:420px; right:-110px; top:90px; background:rgba(241,22,170,.16); animation:floatGlow 10s ease-in-out infinite; }
.glow-two { width:320px; height:320px; left:30%; bottom:-140px; background:rgba(109,15,164,.13); animation:floatGlow 13s ease-in-out infinite reverse; }
@keyframes floatGlow { 50% { transform:translate(30px,-24px) scale(1.1); } }
.hero-layout { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) minmax(460px,.82fr); align-items:center; gap:72px; padding-top:70px; padding-bottom:88px; }
.status-pill { width:max-content; display:flex; align-items:center; gap:10px; padding:8px 13px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.65); font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.status-pill span { width:7px; height:7px; border-radius:50%; background:var(--pink); box-shadow:0 0 0 6px rgba(241,22,170,.1); animation:pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 10px rgba(241,22,170,0); } }
.hero-copy h1 { max-width:760px; margin:24px 0 22px; font-family:"Space Grotesk",sans-serif; font-size:clamp(64px,7.3vw,118px); line-height:.88; letter-spacing:-.065em; }
.hero-copy > p { max-width:590px; margin:0; color:var(--muted); font-size:19px; }
.hero-actions { display:flex; align-items:center; gap:28px; margin-top:34px; }
.hero-signals { display:grid; grid-template-columns:repeat(4,1fr); max-width:620px; margin-top:72px; padding-top:18px; border-top:1px solid var(--line); }
.hero-signals div { display:flex; flex-direction:column; gap:6px; }
.hero-signals span { font-size:10px; font-weight:800; color:var(--pink); }
.hero-signals b { font-size:12px; }

.hero-stage { position:relative; aspect-ratio:1/1; min-width:0; display:grid; place-items:center; }
.stage-core { position:relative; z-index:5; width:210px; height:210px; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.98),rgba(255,255,255,.8) 38%,rgba(248,227,246,.82)); box-shadow:0 38px 100px rgba(99,11,97,.22),inset 0 0 0 1px rgba(255,255,255,.8); animation:coreFloat 6s ease-in-out infinite; }
.stage-core::before { content:""; position:absolute; inset:-18px; border:1px solid rgba(241,22,170,.12); border-radius:50%; }
.stage-core img { width:100px; filter:drop-shadow(0 20px 28px rgba(102,12,89,.18)); }
.core-shine { position:absolute; inset:20px; border-radius:50%; background:linear-gradient(135deg,rgba(255,255,255,.9),transparent 45%); filter:blur(3px); }
@keyframes coreFloat { 50% { transform:translateY(-12px) rotate(1deg); } }
.stage-orbit { position:absolute; border:1px solid rgba(59,29,66,.13); border-radius:50%; }
.orbit-a { width:330px; height:330px; animation:spin 24s linear infinite; }
.orbit-b { width:470px; height:470px; border-style:dashed; animation:spin 34s linear infinite reverse; }
.orbit-c { width:590px; height:590px; opacity:.55; animation:spin 54s linear infinite; }
.stage-node { position:absolute; z-index:7; display:flex; align-items:center; gap:8px; padding:9px 13px 9px 9px; border:1px solid rgba(17,16,23,.08); border-radius:999px; background:rgba(255,255,255,.8); backdrop-filter:blur(12px); box-shadow:0 14px 34px rgba(37,16,44,.1); font-size:11px; font-weight:800; animation:nodeFloat 5s ease-in-out infinite; }
.stage-node i { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,var(--purple),var(--pink)); color:white; font-style:normal; }
.node-labs { top:11%; left:7%; }
.node-data { top:21%; right:0; animation-delay:-1.2s; }
.node-design { bottom:17%; left:1%; animation-delay:-2.4s; }
.node-secure { bottom:9%; right:8%; animation-delay:-3.3s; }
@keyframes nodeFloat { 50% { transform:translateY(-9px); } }
.stage-card { position:absolute; z-index:8; padding:18px 20px; border-radius:20px; background:rgba(16,11,23,.94); color:white; box-shadow:0 28px 60px rgba(29,9,35,.22); backdrop-filter:blur(14px); }
.stage-card-top { top:5%; right:17%; min-width:190px; transform:rotate(3deg); }
.stage-card-top small { display:block; color:#d7a2d0; font-size:8px; letter-spacing:.2em; }
.stage-card-top strong { display:block; margin-top:7px; font-size:15px; }
.stage-card-top span { font-size:10px; color:#a8a0ae; }
.stage-card-bottom { left:14%; bottom:3%; display:flex; align-items:center; gap:10px; font-size:10px; transform:rotate(-2deg); }
.pulse-dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(142,243,184,.5); animation:greenPulse 2s infinite; }
@keyframes greenPulse { 70% { box-shadow:0 0 0 10px rgba(142,243,184,0); } }
.marquee { position:relative; z-index:3; width:100%; overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.56); }
.marquee::before,.marquee::after { content:""; position:absolute; inset:0 auto 0 0; z-index:2; width:8vw; pointer-events:none; background:linear-gradient(90deg,var(--paper),transparent); }
.marquee::after { inset:0 0 0 auto; transform:scaleX(-1); }
.marquee-track { width:max-content; display:flex; align-items:center; animation:marquee 26s linear infinite; will-change:transform; }
.marquee-group { flex:0 0 auto; display:flex; align-items:center; gap:34px; padding:17px 34px 17px 0; }
.marquee-group span { font-family:"Space Grotesk",sans-serif; font-size:11px; font-weight:700; letter-spacing:.18em; white-space:nowrap; }
.marquee-group i { color:var(--pink); font-style:normal; }
.marquee:hover .marquee-track { animation-play-state:paused; }
@keyframes marquee { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }

.section-label { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.section-label span { color:var(--pink); }
.section-label.light { color:rgba(255,255,255,.48); }
.section-head { display:grid; grid-template-columns:180px 1fr auto; align-items:end; gap:38px; margin-bottom:56px; }
.section-head h2,.intro-copy h2,.method-copy h2,.github-copy h2 { margin:0; font-family:"Space Grotesk",sans-serif; font-size:clamp(44px,5.2vw,78px); line-height:.96; letter-spacing:-.055em; }
.section-head > p { max-width:350px; margin:0; color:var(--muted); }
.section-head.light h2 span,.github-copy h2 span { color:#cfc5d5; }
.section-head.light > p { color:rgba(255,255,255,.52); }

.intro-grid { display:grid; grid-template-columns:180px 1fr; gap:46px; }
.intro-copy { display:grid; grid-template-columns:1fr 320px; align-items:end; gap:60px; }
.intro-copy p { margin:0 0 8px; color:var(--muted); font-size:18px; }
.intro-cards { grid-column:2; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.mini-panel { position:relative; overflow:hidden; min-height:210px; padding:30px; border:1px solid var(--line); border-radius:24px; background:white; transition:transform .3s var(--ease),box-shadow .3s,border-color .3s; }
.mini-panel::after { content:""; position:absolute; right:-40px; bottom:-48px; width:130px; height:130px; border-radius:50%; background:radial-gradient(circle,var(--pink),transparent 65%); opacity:.08; }
.mini-panel:hover { transform:translateY(-7px); border-color:rgba(241,22,170,.22); box-shadow:var(--shadow); }
.mini-panel > .mini-icon { width:46px; height:46px; display:grid; place-items:center; border:1px solid rgba(109,15,164,.09); border-radius:15px; background:linear-gradient(145deg,#f8f3fa,#f1edf4); color:var(--purple); box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
.mini-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; transition:transform .4s var(--ease); }
.mini-panel:hover .mini-icon svg { transform:scale(1.08) rotate(-3deg); }
.mini-panel h3 { margin:38px 0 6px; font-size:20px; }
.mini-panel p { margin:0; color:var(--muted); font-size:13px; }

.dark-grid { position:absolute; inset:0; opacity:.12; background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size:80px 80px; mask-image:radial-gradient(circle at 55% 40%,black,transparent 75%); }
.divisions .container { position:relative; z-index:2; }
.division-list { border-top:1px solid rgba(255,255,255,.12); }
.division-row { position:relative; display:grid; grid-template-columns:70px minmax(280px,.82fr) 1fr 50px; align-items:center; min-height:100px; border-bottom:1px solid rgba(255,255,255,.12); cursor:pointer; outline:none; transition:background .35s var(--ease),padding .35s var(--ease),border-color .35s; }
.division-row::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:0; background:radial-gradient(circle at 18% 50%,rgba(241,22,170,.18),transparent 34%); transition:opacity .35s var(--ease); }
.division-row:hover,.division-row:focus-visible,.division-row:focus-within,.division-row.active { padding-inline:18px; border-color:rgba(241,22,170,.25); background:linear-gradient(90deg,rgba(241,22,170,.1),rgba(255,255,255,.025)); }
.division-row:hover::before,.division-row:focus-visible::before,.division-row.active::before { opacity:1; }
.division-index { position:relative; z-index:1; color:rgba(255,255,255,.34); font-size:10px; }
.division-name { position:relative; z-index:1; display:flex; align-items:center; gap:18px; }
.division-icon { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(255,255,255,.16); border-radius:50%; color:#f4b7e3; background:rgba(255,255,255,.02); box-shadow:inset 0 0 0 0 rgba(241,22,170,.15); transition:transform .38s var(--ease),color .3s,border-color .3s,box-shadow .38s; }
.division-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.division-row:hover .division-icon,.division-row:focus-visible .division-icon,.division-row.active .division-icon { transform:rotate(-5deg) scale(1.08); color:white; border-color:rgba(241,22,170,.7); box-shadow:inset 0 0 0 22px rgba(241,22,170,.15),0 0 28px rgba(241,22,170,.11); }
.division-name h3 { margin:0; font-family:"Space Grotesk",sans-serif; font-size:26px; letter-spacing:-.025em; }
.division-row p { position:relative; z-index:1; margin:0; color:rgba(255,255,255,.5); font-size:14px; }
.division-row button { position:relative; z-index:1; width:42px; height:42px; display:grid; place-items:center; border:0; border-radius:50%; background:rgba(255,255,255,.08); color:white; cursor:pointer; transition:transform .3s,background .3s,box-shadow .3s; }
.division-row button span { display:block; transition:transform .3s var(--ease); }
.division-row:hover button,.division-row:focus-visible button { background:var(--pink); box-shadow:0 10px 28px rgba(241,22,170,.22); }
.division-row:hover button span,.division-row:focus-visible button span { transform:translate(2px,-2px); }

.product-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:20px; }
.product-card { position:relative; grid-column:span 4; min-height:600px; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:30px; padding:26px; transition:transform .35s var(--ease),box-shadow .35s; transform-style:preserve-3d; }
.product-card:hover { box-shadow:var(--shadow); }
.product-purple { color:white; border-color:transparent; background:linear-gradient(145deg,#6b0e9d,#e51d9e 80%); }
.product-dark { color:white; border-color:transparent; background:#120d19; }
.product-white { background:white; }
.product-meta { display:flex; justify-content:space-between; gap:14px; position:relative; z-index:3; }
.product-meta span,.product-meta small { font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.product-meta small { padding:7px 10px; border:1px solid currentColor; border-radius:999px; opacity:.65; }
.product-visual { flex:1; min-height:360px; display:grid; place-items:center; position:relative; }
.product-copy { position:relative; z-index:3; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.product-copy h3 { margin:0 0 7px; font-family:"Space Grotesk",sans-serif; font-size:31px; letter-spacing:-.04em; }
.product-copy p { max-width:280px; margin:0; opacity:.68; font-size:13px; }
.product-copy a { flex:0 0 auto; width:50px; height:50px; display:grid; place-items:center; border:1px solid currentColor; border-radius:50%; font-size:20px; transition:transform .3s var(--ease),background .3s,color .3s; }
.product-copy a:hover { transform:rotate(45deg); background:white; color:var(--ink); }
.mock-window { width:92%; height:260px; position:relative; display:grid; grid-template-columns:70px 1fr; overflow:hidden; border:1px solid rgba(255,255,255,.38); border-radius:18px; background:rgba(255,255,255,.92); box-shadow:0 30px 70px rgba(63,2,61,.28); transform:rotate(-4deg); }
.mock-bar { position:absolute; top:0; left:0; right:0; height:28px; display:flex; align-items:center; gap:5px; padding-left:11px; background:#f2eaf1; }
.mock-bar i { width:6px; height:6px; border-radius:50%; background:#d3bed0; }
.mock-side { margin-top:28px; background:#22162c; }
.mock-content { margin-top:28px; padding:22px; }
.mock-title { width:45%; height:12px; border-radius:6px; background:#d7ccd5; }
.mock-chart { height:105px; display:flex; align-items:end; gap:11px; margin-top:24px; padding:14px; border-radius:12px; background:#faf7fa; }
.mock-chart b { flex:1; border-radius:5px 5px 2px 2px; background:linear-gradient(var(--pink),var(--purple)); }
.mock-chart b:nth-child(1){height:35%}.mock-chart b:nth-child(2){height:62%}.mock-chart b:nth-child(3){height:47%}.mock-chart b:nth-child(4){height:88%}.mock-chart b:nth-child(5){height:72%}
.mock-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:14px; }
.mock-cards span { height:38px; border-radius:8px; background:#f0e9ef; }
.id-core::before { content:""; position:absolute; width:280px; height:280px; border:1px solid rgba(241,22,170,.3); border-radius:50%; animation:spin 16s linear infinite; }
.id-core::after { content:""; position:absolute; width:350px; height:350px; border:1px dashed rgba(255,255,255,.15); border-radius:50%; animation:spin 24s linear infinite reverse; }
.id-phone { width:190px; height:340px; position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; padding:38px 20px 20px; border:1px solid rgba(255,255,255,.26); border-radius:34px; background:linear-gradient(160deg,#25142e,#0d0913); box-shadow:0 30px 80px rgba(0,0,0,.5); transform:rotate(5deg); }
.id-notch { position:absolute; top:12px; width:66px; height:16px; border-radius:999px; background:#08060b; }
.id-phone img { width:68px; margin-top:18px; }
.id-status { margin-top:28px; padding:8px 10px; border-radius:999px; background:rgba(142,243,184,.11); color:var(--green); font-size:8px; font-weight:800; }
.id-status i { display:inline-block; width:5px; height:5px; margin-right:5px; border-radius:50%; background:var(--green); }
.id-lines { width:100%; display:grid; gap:9px; margin-top:24px; }
.id-lines span { height:10px; border-radius:5px; background:rgba(255,255,255,.08); }
.id-lines span:nth-child(2){width:75%}.id-lines span:nth-child(3){width:58%}
.task-board { width:96%; height:270px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:14px; border:1px solid var(--line); border-radius:18px; background:#f8f6f9; box-shadow:0 30px 70px rgba(31,20,37,.12); transform:rotate(3deg); }
.task-col { padding:12px; border-radius:12px; background:white; }
.task-col b { font-size:8px; text-transform:uppercase; letter-spacing:.12em; }
.task-col span { display:block; height:66px; margin-top:10px; border:1px solid #eee6ef; border-radius:10px; background:linear-gradient(145deg,#fff,#f5eff6); }
.task-col:nth-child(2) span:first-of-type { border-color:rgba(241,22,170,.25); background:rgba(241,22,170,.07); }

.project-showcase { display:grid; grid-template-columns:1.25fr .75fr; gap:20px; }
.case-card { display:flex; flex-direction:column; min-height:520px; overflow:hidden; border-radius:28px; background:white; border:1px solid rgba(17,16,23,.08); transition:transform .35s var(--ease),box-shadow .35s; }
.case-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); }
.case-wide { grid-row:span 2; min-height:760px; }
.case-visual { flex:1; min-height:300px; position:relative; overflow:hidden; background:#ece7ef; }
.case-copy { display:grid; grid-template-columns:1fr auto; gap:8px 20px; padding:28px; }
.case-copy span { grid-column:1/-1; color:var(--pink); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.case-copy h3 { margin:0; font-family:"Space Grotesk",sans-serif; font-size:29px; letter-spacing:-.035em; }
.case-copy p { grid-column:1; margin:0; color:var(--muted); font-size:13px; }
.case-copy b { grid-column:2; grid-row:2/4; align-self:center; width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; transition:transform .3s,background .3s,color .3s; }
.case-card:hover .case-copy b { transform:rotate(45deg); background:var(--ink); color:white; }
.field-ui { display:grid; place-items:center; background:radial-gradient(circle at 50% 30%,#fff,#e7ddea); }
.field-phone { width:260px; height:490px; position:relative; overflow:hidden; border:10px solid #17111b; border-radius:42px; background:white; box-shadow:0 38px 90px rgba(49,24,55,.25); transform:rotate(-5deg); }
.field-map { position:absolute; inset:0; background:linear-gradient(35deg,transparent 47%,rgba(241,22,170,.2) 48%,rgba(241,22,170,.2) 51%,transparent 52%),linear-gradient(145deg,transparent 45%,rgba(109,15,164,.17) 46%,rgba(109,15,164,.17) 50%,transparent 51%),#eee9f0; background-size:110px 110px,140px 140px,auto; }
.field-sheet { position:absolute; left:12px; right:12px; bottom:12px; display:flex; flex-direction:column; align-items:center; padding:25px 18px 18px; border-radius:24px; background:white; box-shadow:0 12px 30px rgba(20,10,25,.15); }
.field-sheet span { width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,var(--purple),var(--pink)); }
.field-sheet strong { margin-top:14px; font-size:13px; }
.field-sheet button { width:100%; margin-top:18px; padding:11px; border:0; border-radius:12px; background:var(--ink); color:white; font-size:10px; }
.field-pin { position:absolute; width:42px; height:42px; display:grid; place-items:center; border-radius:50% 50% 50% 4px; transform:rotate(-45deg); background:linear-gradient(135deg,var(--purple),var(--pink)); color:white; box-shadow:0 10px 25px rgba(117,14,130,.2); }
.field-pin::first-letter { transform:rotate(45deg); }
.pin-one { top:18%; right:16%; }.pin-two { bottom:23%; left:12%; }
.analytics-ui { display:grid; place-items:center; background:linear-gradient(145deg,#16101d,#291432); }
.analytics-panel { width:78%; height:250px; position:relative; border:1px solid rgba(255,255,255,.13); border-radius:20px; background:rgba(255,255,255,.05); box-shadow:0 30px 60px rgba(0,0,0,.3); }
.analytics-panel .line { position:absolute; left:18px; right:18px; height:1px; background:rgba(255,255,255,.08); }
.line-a{top:28%}.line-b{top:52%}.line-c{top:76%}
.donut { position:absolute; top:42px; left:34px; width:92px; height:92px; border:17px solid rgba(255,255,255,.08); border-top-color:var(--pink); border-right-color:var(--purple); border-radius:50%; transform:rotate(30deg); }
.bars { position:absolute; left:150px; right:28px; bottom:35px; height:140px; display:flex; align-items:end; gap:10px; }
.bars i { flex:1; border-radius:5px 5px 0 0; background:linear-gradient(var(--pink-2),var(--purple)); }.bars i:nth-child(1){height:30%}.bars i:nth-child(2){height:70%}.bars i:nth-child(3){height:48%}.bars i:nth-child(4){height:88%}.bars i:nth-child(5){height:62%}
.automation-ui { display:grid; place-items:center; background:linear-gradient(135deg,#f8edf7,#eee7f2); }
.automation-flow { display:flex; align-items:center; gap:12px; padding:18px; border-radius:18px; background:white; box-shadow:0 20px 50px rgba(55,20,65,.12); }
.automation-flow span { padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:9px; font-weight:800; }
.automation-flow i { color:var(--pink); font-style:normal; }
.automation-pulse { position:absolute; width:200px; height:200px; border:1px solid rgba(241,22,170,.25); border-radius:50%; animation:pulseRing 3s infinite; }
@keyframes pulseRing { to { transform:scale(1.6); opacity:0; } }

.method { position:relative; overflow:clip; }
.method::before { content:""; position:absolute; width:520px; height:520px; left:-280px; top:18%; border-radius:50%; background:radial-gradient(circle,rgba(241,22,170,.08),transparent 67%); pointer-events:none; }
.method-grid { position:relative; display:grid; grid-template-columns:.78fr 1.22fr; gap:92px; align-items:start; }
.method-copy { position:sticky; top:140px; }
.method-copy h2 { margin-top:22px; }
.method-copy p { max-width:430px; margin:18px 0 30px; color:var(--muted); }
.method-steps { position:relative; border-top:1px solid var(--line); }
.method-steps::before { content:""; position:absolute; left:29px; top:0; bottom:0; width:1px; background:linear-gradient(var(--pink),rgba(109,15,164,.12) 75%,transparent); transform-origin:top; transform:scaleY(0); transition:transform 1.2s .25s var(--ease); }
.method-steps:has(.method-step.is-visible)::before { transform:scaleY(1); }
.method-step { position:relative; display:grid; grid-template-columns:60px 1fr auto; align-items:center; min-height:118px; padding:0 14px 0 0; border-bottom:1px solid var(--line); transition:padding .35s var(--ease),background .35s,border-color .35s; }
.method-step::after { content:""; position:absolute; left:24px; top:50%; width:11px; height:11px; border:3px solid var(--paper); border-radius:50%; background:var(--pink); box-shadow:0 0 0 1px rgba(241,22,170,.28); transform:translate(-50%,-50%) scale(.72); opacity:0; transition:opacity .35s,transform .35s var(--ease); }
.method-step:hover { padding-left:14px; border-color:rgba(241,22,170,.2); background:linear-gradient(90deg,rgba(241,22,170,.04),transparent 70%); }
.method-step:hover::after { opacity:1; transform:translate(-50%,-50%) scale(1); }
.method-step > span { position:relative; z-index:1; color:var(--pink); font-size:10px; font-weight:800; }
.method-step h3 { margin:0; font-family:"Space Grotesk",sans-serif; font-size:29px; letter-spacing:-.035em; }
.method-step p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.method-step i { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; font-style:normal; transition:transform .3s,background .3s,color .3s,border-color .3s; }
.method-step:hover i { transform:translate(2px,-2px); border-color:var(--ink); background:var(--ink); color:white; }

.github-section { min-height:720px; display:flex; align-items:center; }
.github-glow { position:absolute; width:680px; height:680px; right:-140px; top:50%; transform:translateY(-50%); border-radius:50%; background:radial-gradient(circle,rgba(241,22,170,.18),transparent 65%); filter:blur(20px); }
.github-grid { position:relative; z-index:2; display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; align-items:center; }
.github-copy h2 { margin:24px 0 20px; }
.github-copy p { margin:0 0 30px; color:rgba(255,255,255,.55); }
.code-window { overflow:hidden; border:1px solid rgba(255,255,255,.13); border-radius:24px; background:rgba(255,255,255,.055); backdrop-filter:blur(18px); box-shadow:0 50px 100px rgba(0,0,0,.28); transform:rotate(1deg); }
.code-top { height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid rgba(255,255,255,.1); }
.code-top > div { display:flex; gap:7px; }.code-top i { width:8px; height:8px; display:block; border-radius:50%; background:rgba(255,255,255,.22); }
.code-top span { color:rgba(255,255,255,.42); font-size:10px; }
.code-window pre { margin:0; padding:50px 42px; overflow:auto; font:13px/1.9 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:#e9e5ed; }
.code-purple { color:#c792ea; }.code-pink { color:#ff62c6; }.code-green { color:#a6e3a1; }.code-gray { color:#77717d; }
.code-status { height:48px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.42); font-size:9px; }
.code-status i { display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--green); }

.article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.article-card { transition:transform .35s var(--ease); }
.article-card:hover { transform:translateY(-7px); }
.article-cover { height:310px; position:relative; overflow:hidden; border-radius:24px; }
.article-cover > span { position:absolute; top:22px; left:22px; z-index:2; font-size:10px; font-weight:800; }
.cover-one { background:linear-gradient(145deg,#f7d8ed,#d9b7e9); }
.cover-orbit { position:absolute; width:210px; height:210px; left:50%; top:50%; transform:translate(-50%,-50%); border:1px solid rgba(109,15,164,.38); border-radius:50%; box-shadow:0 0 0 35px rgba(109,15,164,.08),0 0 0 72px rgba(241,22,170,.06); }
.cover-orbit::after { content:""; position:absolute; width:52px; height:52px; top:16px; right:5px; border-radius:50%; background:linear-gradient(135deg,var(--purple),var(--pink)); box-shadow:0 18px 40px rgba(98,8,107,.28); }
.cover-two { background:#14101a; }
.cover-two > span { color:white; }
.cover-grid { position:absolute; inset:35px; background-image:linear-gradient(rgba(255,255,255,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.11) 1px,transparent 1px); background-size:34px 34px; transform:perspective(600px) rotateX(60deg) translateY(40px); }
.cover-grid::after { content:""; position:absolute; width:120px; height:120px; left:50%; top:35%; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,var(--pink),transparent 68%); filter:blur(6px); }
.cover-three { background:linear-gradient(145deg,#f2edf5,#e4d8e9); }
.cover-lock { position:absolute; left:50%; top:50%; width:130px; height:160px; display:grid; place-items:center; transform:translate(-50%,-45%); border:2px solid rgba(109,15,164,.28); border-radius:28px; color:var(--purple); font-size:56px; }
.cover-lock::before { content:""; position:absolute; width:70px; height:60px; top:-48px; border:2px solid rgba(109,15,164,.28); border-bottom:0; border-radius:45px 45px 0 0; }
.article-meta { display:flex; justify-content:space-between; margin-top:20px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.article-meta span { color:var(--pink); }
.article-card h3 { margin:13px 0 9px; font-family:"Space Grotesk",sans-serif; font-size:24px; line-height:1.12; letter-spacing:-.035em; }
.article-card p { margin:0; color:var(--muted); font-size:13px; }

.contact { color:white; background:var(--paper); }
.contact-shell { position:relative; overflow:hidden; display:grid; grid-template-columns:.85fr 1.15fr; gap:90px; padding:80px; border-radius:36px; background:radial-gradient(circle at 8% 0,rgba(241,22,170,.22),transparent 34%),var(--night); box-shadow:0 40px 100px rgba(30,11,38,.18); }
.contact-shell::after { content:""; position:absolute; width:500px; height:500px; right:-220px; bottom:-280px; border:1px solid rgba(255,255,255,.08); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.015); }
.contact-copy { position:relative; z-index:2; }
.contact-copy > img { width:72px; margin-bottom:42px; filter:drop-shadow(0 16px 20px rgba(241,22,170,.18)); }
.contact-copy h2 { margin:24px 0 18px; font-family:"Space Grotesk",sans-serif; font-size:clamp(44px,5vw,72px); line-height:.98; letter-spacing:-.055em; }
.contact-copy p { color:rgba(255,255,255,.52); }
.contact-location { position:absolute; left:0; bottom:0; color:rgba(255,255,255,.36); font-size:10px; letter-spacing:.08em; }
.contact-form { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label { display:grid; gap:8px; }
.contact-form label span { color:rgba(255,255,255,.48); font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.contact-form input,.contact-form select,.contact-form textarea { width:100%; border:1px solid rgba(255,255,255,.13); border-radius:14px; outline:none; padding:15px 16px; color:white; background:rgba(255,255,255,.06); transition:border-color .25s,background .25s; }
.contact-form input,.contact-form select { height:54px; }
.contact-form textarea { resize:vertical; min-height:120px; }
.contact-form input::placeholder,.contact-form textarea::placeholder { color:rgba(255,255,255,.25); }
.contact-form select { color:rgba(255,255,255,.76); }
.contact-form option { color:var(--ink); }
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus { border-color:rgba(241,22,170,.7); background:rgba(255,255,255,.085); }
.contact-form .invalid { border-color:#ff7392; }
.form-wide { grid-column:1/-1; }
.form-note { margin:0; text-align:center; color:rgba(255,255,255,.3); font-size:9px; }

.site-footer { padding:80px 0 28px; color:white; background:#08050c; }
.footer-main { display:flex; justify-content:space-between; gap:70px; padding-bottom:72px; }
.footer-brand { width:210px; height:max-content; }
.footer-links { display:flex; gap:90px; }
.footer-links > div { display:flex; flex-direction:column; gap:9px; min-width:130px; }
.footer-links span { margin-bottom:8px; color:rgba(255,255,255,.3); font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.footer-links a { color:rgba(255,255,255,.66); font-size:13px; transition:color .2s; }
.footer-links a:hover { color:white; }
.footer-bottom { display:flex; justify-content:space-between; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.3); font-size:10px; }

.division-modal { position:fixed; inset:0; z-index:4000; display:grid; place-items:center; padding:24px; opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s; }
.division-modal.open { opacity:1; visibility:visible; }
.modal-backdrop { position:absolute; inset:0; background:rgba(8,5,12,.72); backdrop-filter:blur(12px); }
.modal-card { position:relative; z-index:2; width:min(620px,100%); padding:50px; border-radius:28px; background:white; box-shadow:0 50px 120px rgba(0,0,0,.35); transform:translateY(30px) scale(.97); transition:transform .35s var(--ease); }
.division-modal.open .modal-card { transform:none; }
.modal-close { position:absolute; top:18px; right:18px; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:white; font-size:22px; cursor:pointer; }
.modal-kicker { color:var(--pink); font-size:9px; font-weight:800; letter-spacing:.14em; }
.modal-card h2 { margin:14px 0; font-family:"Space Grotesk",sans-serif; font-size:42px; line-height:1; letter-spacing:-.045em; }
.modal-card > p { color:var(--muted); }
.modal-services { display:flex; flex-wrap:wrap; gap:9px; margin:26px 0 32px; }
.modal-services span { padding:9px 11px; border:1px solid var(--line); border-radius:999px; font-size:10px; }
.toast { position:fixed; left:50%; bottom:26px; z-index:5000; max-width:min(520px,calc(100% - 30px)); padding:14px 18px; border-radius:14px; color:white; background:var(--ink); box-shadow:0 20px 50px rgba(0,0,0,.22); font-size:12px; opacity:0; transform:translate(-50%,20px); pointer-events:none; transition:opacity .3s,transform .3s; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.reveal { --reveal-delay:0ms; opacity:1; filter:none; transform:none; }
body.motion-ready .reveal { opacity:0; filter:blur(9px); transform:translate3d(0,34px,0) scale(.988); transition:opacity .9s var(--ease) var(--reveal-delay),transform .9s var(--ease) var(--reveal-delay),filter .9s var(--ease) var(--reveal-delay); will-change:opacity,transform,filter; }
body.motion-ready .reveal.reveal-left { transform:translate3d(-42px,0,0); }
body.motion-ready .reveal.reveal-right { transform:translate3d(42px,0,0); }
body.motion-ready .reveal.reveal-scale { transform:translate3d(0,20px,0) scale(.965); }
body.motion-ready .reveal.is-visible { opacity:1; filter:none; transform:none; }
.reveal-delay-1 { --reveal-delay:.12s; }
.reveal-delay-2 { --reveal-delay:.24s; }
body.motion-ready .hero-stage.reveal.is-visible { transform:translate3d(var(--stage-x,0),var(--stage-y,0),0) scale(var(--stage-scale,1)); }

/* Interior pages */
.inner-hero { padding:180px 0 90px; background:radial-gradient(circle at 80% 10%,rgba(241,22,170,.13),transparent 34%); }
.inner-hero .section-label { margin-bottom:24px; }
.inner-hero h1 { max-width:900px; margin:0; font-family:"Space Grotesk",sans-serif; font-size:clamp(58px,8vw,112px); line-height:.9; letter-spacing:-.065em; }
.inner-hero p { max-width:620px; margin:26px 0 0; color:var(--muted); font-size:18px; }
.inner-nav-space { height:var(--header-h); }
.catalog-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.catalog-card { min-height:520px; display:flex; flex-direction:column; justify-content:space-between; padding:42px; border:1px solid var(--line); border-radius:30px; background:white; }
.catalog-card.dark { color:white; background:var(--night); }
.catalog-card .catalog-number { color:var(--pink); font-size:10px; font-weight:800; }
.catalog-card h2 { margin:18px 0 12px; font-family:"Space Grotesk",sans-serif; font-size:48px; line-height:.95; letter-spacing:-.05em; }
.catalog-card p { max-width:440px; color:var(--muted); }
.catalog-card.dark p { color:rgba(255,255,255,.55); }
.catalog-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.catalog-tags span { padding:8px 10px; border:1px solid currentColor; border-radius:999px; opacity:.55; font-size:9px; }
.blog-list { display:grid; grid-template-columns:repeat(3,1fr); gap:34px 22px; }
.article-page { padding:170px 0 120px; }
.article-header { max-width:900px; margin:0 auto 70px; text-align:center; }
.article-header .article-meta { justify-content:center; gap:20px; }
.article-header h1 { margin:22px 0; font-family:"Space Grotesk",sans-serif; font-size:clamp(54px,7vw,92px); line-height:.93; letter-spacing:-.06em; }
.article-header p { max-width:650px; margin-inline:auto; color:var(--muted); font-size:18px; }
.article-body { width:min(760px,calc(100% - 48px)); margin-inline:auto; font-size:18px; line-height:1.85; }
.article-body h2 { margin:64px 0 18px; font-family:"Space Grotesk",sans-serif; font-size:36px; letter-spacing:-.04em; }
.article-body p { color:#4c4853; }
.article-hero-visual { width:min(1100px,calc(100% - 48px)); height:560px; margin:0 auto 90px; border-radius:32px; background:radial-gradient(circle at 50% 50%,rgba(241,22,170,.8),transparent 22%),linear-gradient(145deg,#100b16,#2e1439); }


/* V3 motion polish */
.case-card { position:relative; }
.stage-core img,.contact-copy > img,.id-phone img { image-rendering:auto; }
.hero-stage { transition:transform .28s ease-out; }
.section-head.is-visible h2,.intro-copy.is-visible h2,.method-copy.is-visible h2 { animation:headlineSettle .9s .08s var(--ease) both; }
@keyframes headlineSettle { from { letter-spacing:-.075em; } to { letter-spacing:-.055em; } }
.product-card::after,.case-card::after { content:""; position:absolute; inset:-70% auto auto -35%; width:45%; height:220%; pointer-events:none; opacity:0; transform:rotate(20deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent); transition:opacity .2s; }
.product-card:hover::after,.case-card:hover::after { opacity:1; animation:surfaceSweep 1.05s var(--ease); }
@keyframes surfaceSweep { from { translate:-60% 0; } to { translate:420% 0; } }
.divisions,.github-section,.site-footer { isolation:isolate; }

@media (max-width:1080px) {
  .hero-layout { grid-template-columns:1fr; gap:30px; padding-top:130px; }
  .hero-stage { width:min(620px,100%); margin:0 auto; }
  .hero-copy h1 { max-width:920px; }
  .hero-copy > p { max-width:720px; }
  .section-head { grid-template-columns:140px 1fr; }
  .section-head > .text-link,.section-head > p { grid-column:2; }
  .intro-grid { grid-template-columns:140px 1fr; }
  .intro-copy { grid-template-columns:1fr; gap:20px; }
  .product-card { grid-column:span 6; }
  .product-card:last-child { grid-column:4/span 6; }
  .method-grid,.github-grid,.contact-shell { gap:56px; }
}

@media (max-width:820px) {
  :root { --header-h:72px; }
  .container { width:min(calc(100% - 28px),var(--container)); }
  .section-pad { padding:88px 0; }
  .desktop-nav,.header-actions > .button,.header-actions > .icon-link { display:none; }
  .brand { width:148px; }
  .menu-toggle { display:block; }
  .mobile-menu { display:block; position:fixed; inset:0; padding-top:var(--header-h); color:white; background:var(--night); transform:translateY(-105%); transition:transform .45s var(--ease); }
  .mobile-menu.open { transform:none; }
  .mobile-menu-inner { height:100%; display:flex; flex-direction:column; justify-content:center; gap:20px; width:min(calc(100% - 48px),620px); margin:auto; padding-bottom:70px; }
  .mobile-menu a { display:flex; align-items:center; gap:18px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.1); font-family:"Space Grotesk",sans-serif; font-size:36px; letter-spacing:-.04em; }
  .mobile-menu a span { color:var(--pink); font:800 9px "Manrope",sans-serif; }
  .site-header:has(.mobile-menu.open) .brand { filter:brightness(0) invert(1); }
  .site-header:has(.mobile-menu.open) { transform:none; }
  .hero { min-height:auto; }
  .hero-layout { padding-top:110px; padding-bottom:55px; }
  .hero-copy h1 { font-size:clamp(55px,16vw,88px); }
  .hero-copy > p { font-size:16px; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:20px; }
  .hero-signals { grid-template-columns:repeat(2,1fr); gap:18px; margin-top:48px; }
  .hero-stage { --stage-scale:.88; min-height:520px; margin-top:-20px; }
  .orbit-c { width:540px; height:540px; }
  .section-head,.intro-grid { grid-template-columns:1fr; gap:24px; }
  .section-head > .text-link,.section-head > p,.intro-cards { grid-column:1; }
  .intro-copy { grid-template-columns:1fr; }
  .intro-cards { grid-template-columns:1fr; margin-top:10px; }
  .mini-panel { min-height:160px; }
  .mini-panel h3 { margin-top:25px; }
  .division-row { grid-template-columns:42px 1fr 42px; min-height:92px; }
  .division-row p { display:none; }
  .division-name h3 { font-size:21px; }
  .division-icon { width:38px; height:38px; }
  .division-icon svg { width:19px; height:19px; }
  .product-grid { display:grid; grid-template-columns:1fr; }
  .product-card,.product-card:last-child { grid-column:1; min-height:560px; }
  .project-showcase { grid-template-columns:1fr; }
  .case-wide { grid-row:auto; min-height:640px; }
  .method-grid,.github-grid,.contact-shell { grid-template-columns:1fr; }
  .method-copy { position:static; }
  .github-section { min-height:auto; }
  .article-grid,.blog-list { grid-template-columns:1fr; }
  .article-cover { height:280px; }
  .contact-shell { padding:50px 26px; }
  .contact-copy > img { margin-bottom:30px; }
  .contact-location { position:static; margin-top:26px; }
  .contact-form { grid-template-columns:1fr; }
  .contact-form label,.form-wide { grid-column:1; }
  .footer-main { flex-direction:column; }
  .footer-links { gap:38px; }
  .catalog-grid { grid-template-columns:1fr; }
  .catalog-card { min-height:430px; padding:30px; }
  .article-hero-visual { height:380px; }
}

@media (max-width:560px) {
  .hero-stage { --stage-scale:.72; width:140%; margin-left:-20%; margin-top:-70px; margin-bottom:-70px; }
  .hero-copy h1 { font-size:clamp(48px,15.2vw,72px); }
  .section-head h2,.intro-copy h2,.method-copy h2,.github-copy h2 { font-size:44px; }
  .section-head { margin-bottom:38px; }
  .product-card { min-height:520px; padding:22px; }
  .product-visual { min-height:310px; }
  .mock-window { width:105%; transform:rotate(-3deg) scale(.9); }
  .case-copy h3 { font-size:25px; }
  .field-phone { transform:rotate(-4deg) scale(.86); }
  .method-step { grid-template-columns:48px 1fr auto; min-height:108px; }
  .method-steps::before { left:23px; }
  .method-step::after { left:18px; }
  .code-window pre { padding:34px 22px; font-size:10px; }
  .footer-links { flex-direction:column; }
  .footer-bottom { flex-direction:column; gap:7px; }
  .modal-card { padding:42px 24px 28px; }
  .modal-card h2 { font-size:34px; }
  .inner-hero { padding-top:140px; }
}


/* --------------------------------------------------------------------------
   Okapify V4: mobile stability + graceful motion
   -------------------------------------------------------------------------- */

@media (max-width:820px) {
  /* Keeping the header itself untransformed prevents fixed menu descendants
     from being measured against the 72px header instead of the viewport. */
  .site-header,
  .site-header.hidden,
  .site-header:has(.mobile-menu.open) {
    transform:none;
  }

  body.menu-open {
    width:100%;
    overscroll-behavior:none;
  }

  body.menu-open .site-header {
    background:rgba(13,9,21,.96);
    border-color:rgba(255,255,255,.09);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
  }

  body.menu-open .brand {
    filter:brightness(0) invert(1);
  }

  body.menu-open .menu-toggle {
    background:white;
  }

  body.menu-open .menu-toggle span {
    background:var(--night);
  }

  .mobile-menu {
    display:block;
    position:fixed;
    inset:0;
    z-index:2;
    width:100%;
    height:100dvh;
    min-height:100svh;
    padding:
      calc(var(--header-h) + env(safe-area-inset-top))
      max(24px,env(safe-area-inset-right))
      max(28px,env(safe-area-inset-bottom))
      max(24px,env(safe-area-inset-left));
    color:white;
    background:
      radial-gradient(circle at 82% 18%,rgba(241,22,170,.17),transparent 31%),
      radial-gradient(circle at 12% 82%,rgba(109,15,164,.18),transparent 34%),
      var(--night);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate3d(0,-18px,0) scale(.995);
    transform-origin:top center;
    transition:
      opacity .32s ease,
      transform .44s var(--ease),
      visibility 0s linear .44s;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
  }

  .mobile-menu::-webkit-scrollbar {
    display:none;
  }

  .mobile-menu.open {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
    transition-delay:0s;
  }

  .mobile-menu-inner {
    width:min(100%,620px);
    min-height:calc(100dvh - var(--header-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height:auto;
    justify-content:center;
    gap:14px;
    margin:auto;
    padding:30px 0 46px;
  }

  .mobile-menu a {
    opacity:0;
    transform:translate3d(0,18px,0);
    padding:13px 0;
    font-size:clamp(31px,9vw,43px);
    transition:
      opacity .34s ease,
      transform .46s var(--ease),
      color .22s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    color:#f7b9e5;
  }

  .mobile-menu.open a {
    opacity:1;
    transform:none;
  }

  .mobile-menu.open a:nth-child(1) { transition-delay:.05s; }
  .mobile-menu.open a:nth-child(2) { transition-delay:.09s; }
  .mobile-menu.open a:nth-child(3) { transition-delay:.13s; }
  .mobile-menu.open a:nth-child(4) { transition-delay:.17s; }
  .mobile-menu.open a:nth-child(5) { transition-delay:.21s; }
  .mobile-menu.open a:nth-child(6) { transition-delay:.25s; }

  /* Mobile reveals stay elegant but lighter on the GPU. */
  body.motion-ready .reveal {
    filter:blur(4px);
    transform:translate3d(0,22px,0) scale(.994);
    transition-duration:.68s;
  }

  body.motion-ready .reveal.reveal-left,
  body.motion-ready .reveal.reveal-right {
    transform:translate3d(0,22px,0);
  }

  .hero {
    overflow:clip;
  }

  .hero-copy h1,
  .section-head h2,
  .intro-copy h2,
  .method-copy h2,
  .github-copy h2 {
    text-wrap:balance;
  }
}

@media (max-width:560px) {
  .hero-layout {
    padding-top:92px;
    padding-bottom:38px;
  }

  .hero-copy h1 {
    font-size:clamp(47px,14.3vw,66px);
    line-height:.91;
    letter-spacing:-.058em;
  }

  .hero-copy > p {
    max-width:36ch;
  }

  .hero-actions {
    width:100%;
  }

  .hero-actions .button {
    width:min(100%,360px);
  }

  .hero-stage {
    --stage-scale:.76;
    width:100%;
    min-height:430px;
    margin:10px auto -18px;
    aspect-ratio:1/1;
    transform-origin:center;
  }

  .orbit-c {
    width:510px;
    height:510px;
  }

  .stage-card-top {
    top:7%;
    right:2%;
  }

  .stage-card-bottom {
    left:4%;
    bottom:7%;
  }

  .node-labs {
    left:-2%;
  }

  .node-data {
    right:-3%;
  }

  .node-design {
    left:-4%;
  }

  .node-secure {
    right:0;
  }

  .section-head h2,
  .intro-copy h2,
  .method-copy h2,
  .github-copy h2 {
    font-size:clamp(39px,11.2vw,46px);
    line-height:.97;
  }

  .division-row:hover,
  .division-row:focus-visible,
  .division-row:focus-within,
  .division-row.active {
    padding-inline:8px;
  }

  .contact-shell {
    border-radius:26px;
  }
}

@media (max-width:420px) {
  .container {
    width:min(calc(100% - 24px),var(--container));
  }

  .brand {
    width:138px;
  }

  .hero-layout {
    padding-top:82px;
  }

  .hero-copy h1 {
    font-size:clamp(44px,14vw,58px);
  }

  .hero-stage {
    --stage-scale:.69;
    min-height:390px;
    margin-top:-2px;
    margin-bottom:-34px;
  }

  .stage-card-top {
    right:-8%;
  }

  .stage-card-bottom {
    left:-8%;
  }

  .mobile-menu {
    padding-inline:20px;
  }

  .mobile-menu a {
    font-size:clamp(29px,9.5vw,38px);
  }

  .division-row {
    grid-template-columns:34px 1fr 38px;
  }

  .division-name {
    gap:12px;
  }

  .division-name h3 {
    font-size:19px;
  }
}

/* Motion-lite keeps the page alive on systems that request reduced motion.
   It removes parallax and abrupt movement, but preserves slow brand motion. */
@keyframes coreFloatLite { 50% { transform:translateY(-4px); } }
@keyframes nodeFloatLite { 50% { transform:translateY(-3px); } }

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }

  body.motion-ready .reveal {
    opacity:0;
    filter:none;
    transform:translate3d(0,10px,0);
    transition:opacity .52s ease var(--reveal-delay),transform .52s ease var(--reveal-delay) !important;
    will-change:opacity,transform;
  }

  body.motion-ready .reveal.reveal-left,
  body.motion-ready .reveal.reveal-right,
  body.motion-ready .reveal.reveal-scale {
    transform:translate3d(0,10px,0);
  }

  body.motion-ready .reveal.is-visible {
    opacity:1;
    filter:none;
    transform:none;
  }

  body.motion-ready .hero-stage.reveal.is-visible {
    transform:scale(var(--stage-scale,1));
  }

  .page-loader { transition:opacity .3s ease,visibility .3s ease; }
  .page-loader img { animation:loaderFloat 2.4s ease-in-out infinite !important; }
  .page-loader span { animation:spin 2.2s linear infinite !important; }
  .gradient-text { animation:gradientMove 18s linear infinite !important; }
  .glow-one { animation:floatGlow 24s ease-in-out infinite !important; }
  .glow-two { animation:floatGlow 30s ease-in-out infinite reverse !important; }
  .status-pill span { animation:pulse 4s ease-in-out infinite !important; }
  .stage-core { animation:coreFloatLite 12s ease-in-out infinite !important; }
  .orbit-a { animation:spin 80s linear infinite !important; }
  .orbit-b { animation:spin 120s linear infinite reverse !important; opacity:.42; }
  .orbit-c { animation:none !important; opacity:.28; }
  .stage-node { animation:nodeFloatLite 14s ease-in-out infinite !important; }
  .pulse-dot { animation:greenPulse 4s ease-in-out infinite !important; }
  .marquee-track { animation:marquee 54s linear infinite !important; }

  .product-card::after,
  .case-card::after { display:none; }

  .hero-stage,
  .button,
  .text-link span,
  .division-row,
  .division-icon,
  .division-row button,
  .method-step,
  .method-step i,
  .mobile-menu,
  .mobile-menu a { transition-duration:.24s !important; }

  .method-steps::before { transform:scaleY(1); transition:none; }
}
