/* ==========================================================================
   AccessBG — Artificial Intelligence Studio
   Design language inherited from the personal site guide:
   dark theme · blue primary · side-rail header · particle hero · one page
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-2: #090d1a;
  --surface: #0d1322;
  --line: rgba(238, 241, 249, 0.08);
  --ink: #eef1f9;
  --muted: #9aa3b8;
  --blue: #2e6bff;          /* descendant of color-blue.css #0d6efd */
  --cyan: #37e6ff;
  --violet: #8b5cf6;
  --amber: #ffd166;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 48%, var(--violet));
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --rail-w: 92px;
  --radius: 18px;
  --section-pad: clamp(96px, 12vw, 170px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(22px, 4.5vw, 56px);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-100px, -100px);
}
.cursor-dot { width: 7px; height: 7px; background: var(--cyan); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(55, 230, 255, 0.55);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.08);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ------------------------------------------------------------ progress */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 1200;
  height: 3px; width: 0%;
  background: var(--grad);
}

/* --------------------------------------------------------------- noise */
.noise {
  position: fixed; inset: -50%; z-index: 1100; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 4%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); }
}

/* ----------------------------------------------- ambient particle layer */
#particles-js {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
#particles-js canvas { display: block; }
main, .footer { position: relative; z-index: 1; }

/* word/char wrappers produced by motion.js for letter-stagger titles */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }

/* ------------------------------------------------------------ preloader */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
body.loaded .preloader { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; }
.pre-word {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: .08em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-height: 1.4em;
}
.pre-count { color: var(--muted); font-size: .9rem; letter-spacing: .25em; margin-top: 14px; }
.pre-track {
  width: 220px; height: 2px; margin: 18px auto 0;
  background: var(--line); overflow: hidden;
}
.pre-track span { display: block; height: 100%; width: 0%; background: var(--grad); }

/* ------------------------------------------------------------ topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: none;
  align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 36px);
  transition: background .35s ease, box-shadow .35s ease;
}
.topbar.scrolled {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-logo { display: flex; align-items: baseline; gap: 10px; }
.logo-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1;
}
.logo-mark i, .rail-logo i { font-style: normal; color: var(--cyan); }
.logo-word { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.logo-word b { color: var(--ink); }

.burger { width: 44px; height: 44px; display: grid; place-items: center; gap: 0; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); transition: transform .35s ease, opacity .35s ease, top .35s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------ side rail */
.rail {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 900;
  width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 0;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.6);
  backdrop-filter: blur(10px);
}
.rail-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1;
  display: inline-block;
}
.rail-nav { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.rail-link {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 6px; border-radius: 10px;
  color: var(--muted);
  transition: color .3s ease;
}
.rail-link b { font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.rail-link span {
  font-size: .56rem; text-transform: uppercase; letter-spacing: .14em;
  opacity: 0; transform: translateY(-3px);
  transition: opacity .3s ease, transform .3s ease;
}
.rail-link:hover span, .rail-link.active span { opacity: 1; transform: none; }
.rail-link.active { color: var(--cyan); }
.rail-link.active::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px;
  background: var(--grad);
}
.rail-foot {
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  color: var(--muted); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; line-height: 1.6;
}
.rail-lang { writing-mode: vertical-rl; }

main { margin-left: var(--rail-w); }
.footer { margin-left: var(--rail-w); }

/* ------------------------------------------------------------ overlay menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(5, 7, 15, 0.96);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(28px, 8vw, 80px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.overlay-link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.5vw, 3rem);
  font-weight: 600;
  padding: 10px 0;
  color: var(--ink);
  transition: color .3s ease, transform .3s ease;
}
.overlay-link b { font-size: .8rem; color: var(--cyan); font-weight: 500; }
.overlay-link:hover { color: var(--cyan); transform: translateX(10px); }
.overlay-foot { margin-top: 40px; color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 36px;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .03em;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s ease, background-color .35s ease, color .35s ease;
  will-change: transform;
}
.btn-lg { padding: 18px 46px; font-size: 1rem; }
.btn-solid {
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 10px 34px rgba(46, 107, 255, 0.35);
}
.btn-solid:hover { box-shadow: 0 14px 44px rgba(55, 230, 255, 0.4); }
.btn-ghost {
  border: 1px solid rgba(238, 241, 249, 0.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ------------------------------------------------------------ reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding-block: var(--section-pad); overflow: hidden; }
.section-alt { background: rgba(9, 13, 26, 0.74); } /* translucent: ambient particles read through */
.section-ghost {
  position: absolute; top: 6%; right: -2%;
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 1; letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 249, 0.05);
}
.section > .container { position: relative; z-index: 1; }

.section-head { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-no {
  font-family: var(--font-display); font-weight: 300;
  font-size: .95rem; color: var(--cyan); letter-spacing: .15em;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.1;
}
.section-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin-bottom: clamp(44px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(55, 230, 255, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 230, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(55, 230, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 230, 255, 0); }
}

/* ====================================================== HERO */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 50% at 62% 42%, rgba(46, 107, 255, 0.13), transparent 70%),
    radial-gradient(40% 38% at 22% 75%, rgba(139, 92, 246, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(5,7,15,0.25), transparent 30%, transparent 70%, var(--bg));
}
.hero-ghost {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 20vw, 19rem);
  letter-spacing: .04em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 249, 0.055);
  white-space: nowrap;
}
.hero-inner { position: relative; z-index: 2; padding-top: 70px; margin-block: auto; }
.hero-eb { margin-bottom: clamp(20px, 3vw, 34px); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.2vw, 6.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.hero-title em { font-style: normal; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
body.loaded .hero-title .line > span { transform: none; }
body.loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.blink { font-style: normal; color: var(--cyan); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease .5s, transform 1s ease .5s;
}
body.loaded .hero-lede { opacity: 1; transform: none; }

.hero-typed {
  margin-top: clamp(20px, 2.6vw, 30px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink);
  display: flex; align-items: baseline;
  opacity: 0; transition: opacity 1s ease .7s;
}
body.loaded .hero-typed { opacity: 1; }
#typed { color: var(--cyan); min-height: 1.4em; }
.caret {
  width: 2px; height: 1.15em; margin-left: 4px;
  background: var(--cyan); align-self: center;
  animation: blink 1s steps(2) infinite;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease .85s, transform 1s ease .85s;
}
body.loaded .hero-cta { opacity: 1; transform: none; }

.hero-meta {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 34px;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; transition: opacity 1.2s ease 1.1s;
}
body.loaded .hero-meta { opacity: 1; }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); letter-spacing: .3em;
}
.scroll-line {
  width: 1px; height: 52px; overflow: hidden; position: relative;
  background: var(--line);
}
.scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--grad);
  animation: scrollLine 2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 110%; } }

/* ------------------------------------------------------------ marquee */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(9, 13, 26, 0.62);
  will-change: transform;
}
.marquee-track {
  display: flex; align-items: center; gap: 42px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(.95rem, 1.7vw, 1.25rem);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--cyan); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ====================================================== STUDIO */
.manifesto {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.1vw, 2.3rem);
  line-height: 1.42;
  max-width: 1020px;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.manifesto em { font-style: normal; }
.manifesto em:not(.grad) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 93, 115, 0.7); text-decoration-thickness: 2px; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.studio-copy p { color: var(--muted); margin-bottom: 1.3em; }
.studio-copy strong { color: var(--ink); font-weight: 600; }
.studio-copy em { color: var(--cyan); font-style: italic; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line); padding-top: clamp(26px, 4vw, 40px);
}
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* The Core — CSS 3D gyroscope replacing the about photo */
.core-wrap { perspective: 900px; text-align: center; }
.core {
  position: relative;
  width: min(330px, 78%);
  aspect-ratio: 1;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: coreFloat 7s ease-in-out infinite;
}
@keyframes coreFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.core-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(55, 230, 255, 0.5);
  transform-style: preserve-3d;
}
.core-ring.r1 { animation: spinA 9s linear infinite; border-color: rgba(55, 230, 255, 0.55); }
.core-ring.r2 { inset: 7%; animation: spinB 13s linear infinite; border-color: rgba(46, 107, 255, 0.55); }
.core-ring.r3 { inset: 14%; animation: spinC 17s linear infinite; border-color: rgba(139, 92, 246, 0.55); }
@keyframes spinA { from { transform: rotateY(0) rotateX(64deg); } to { transform: rotateY(360deg) rotateX(64deg); } }
@keyframes spinB { from { transform: rotateX(0) rotateY(70deg); } to { transform: rotateX(360deg) rotateY(70deg); } }
@keyframes spinC { from { transform: rotateZ(0) rotateX(54deg) rotateY(28deg); } to { transform: rotateZ(360deg) rotateX(54deg) rotateY(28deg); } }
.core-sphere {
  position: absolute; inset: 30%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.85), rgba(55,230,255,.45) 26%, rgba(46,107,255,.65) 55%, rgba(13,19,34,.95) 100%);
  box-shadow:
    0 0 60px rgba(46, 107, 255, 0.55),
    0 0 140px rgba(139, 92, 246, 0.3),
    inset -14px -18px 40px rgba(5, 7, 15, 0.8);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.core-sat {
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; margin: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.core-sat.s1 { animation: orbit 6s linear infinite; }
.core-sat.s2 { width: 7px; height: 7px; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: orbit 9s linear infinite reverse; }
.core-sat.s3 { width: 6px; height: 6px; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: orbit 12s linear infinite; animation-delay: -4s; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
.core-caption {
  margin-top: 34px;
  font-size: .8rem; letter-spacing: .06em;
  color: var(--muted);
}
.core-caption em { color: var(--cyan); }

/* ====================================================== CAPABILITIES */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.cap-card {
  position: relative;
  background: linear-gradient(160deg, rgba(238, 241, 249, 0.045), rgba(238, 241, 249, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transform-style: preserve-3d;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.cap-card:hover {
  border-color: rgba(55, 230, 255, 0.35);
  box-shadow: 0 24px 60px rgba(5, 7, 15, 0.6), 0 0 0 1px rgba(55, 230, 255, 0.12);
}
.tilt-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border-radius: inherit; overflow: hidden;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(55, 230, 255, 0.1), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
[data-tilt]:hover .tilt-glare { opacity: 1; }
.cap-icon {
  width: 56px; height: 56px;
  color: var(--cyan);
  margin-bottom: 22px;
  transform: translateZ(36px);
}
.cap-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.06rem; line-height: 1.35;
  margin-bottom: 14px;
  transform: translateZ(28px);
}
.cap-card p { color: var(--muted); font-size: .92rem; transform: translateZ(18px); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; transform: translateZ(22px); }
.cap-tags li {
  font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.cap-no {
  position: absolute; right: 22px; bottom: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 249, 0.12);
}

/* ====================================================== WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 50px) clamp(26px, 4vw, 56px);
  margin-bottom: clamp(60px, 8vw, 100px);
}
.why-no {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 12px;
}
.why-item h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; margin-bottom: 10px;
}
.why-item p { color: var(--muted); font-size: .92rem; }

.meters { max-width: 760px; }
.meters-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; margin-bottom: 28px;
}
.meter { margin-bottom: 22px; }
.meter-label {
  display: flex; justify-content: space-between;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.meter-label b { color: var(--ink); }
.meter-track {
  display: block; height: 4px; border-radius: 4px;
  background: var(--line); overflow: hidden;
}
.meter-fill {
  display: block; height: 100%; width: 0;
  border-radius: 4px;
  background: var(--grad);
  transition: width 1.6s cubic-bezier(.16, 1, .3, 1) .2s;
}
.meters-note { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 26px; }

/* ====================================================== CTA BAND */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(110px, 14vw, 190px);
  background: rgba(9, 13, 26, 0.68);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.cta-orb {
  position: absolute; top: 50%; left: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.22), rgba(139, 92, 246, 0.1) 45%, transparent 70%);
  filter: blur(10px);
  animation: orbDrift 11s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.12); }
}
.cta-band .container { position: relative; }
.cta-kicker {
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  margin-bottom: clamp(30px, 4vw, 46px);
}

/* ====================================================== WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  perspective: 1400px;
}
.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.work-card:hover {
  border-color: rgba(55, 230, 255, 0.3);
  box-shadow: 0 30px 80px rgba(5, 7, 15, 0.65);
}
.work-art {
  position: relative; aspect-ratio: 4 / 2.6; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.work-art svg {
  width: 100%; height: 100%;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.work-card:hover .work-art svg { transform: scale(1.09); }
.work-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 19, 34, 0.92));
}
.work-body { padding: clamp(22px, 3vw, 34px); transform: translateZ(24px); }
.work-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.work-metric {
  color: var(--cyan);
  border: 1px solid rgba(55, 230, 255, 0.3);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.work-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
}
.work-body p { color: var(--muted); font-size: .93rem; }

/* ====================================================== PROCESS */
.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(34px, 5vw, 60px) clamp(34px, 5vw, 70px);
  counter-reset: step;
  max-width: 1080px;
}
.step { display: flex; gap: 24px; align-items: flex-start; }
.step-no {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(55, 230, 255, 0.4);
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: var(--cyan);
  position: relative;
}
.step-no::after {
  content: ""; position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  animation: rotateSlow 14s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.step-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; margin-bottom: 10px;
}
.step-body p { color: var(--muted); font-size: .93rem; }

/* ====================================================== VOICES */
.carousel {
  position: relative;
  max-width: 880px; margin-inline: auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}
.slide {
  flex: 0 0 100%;
  padding: clamp(10px, 3vw, 30px) clamp(8px, 5vw, 60px);
  text-align: center;
}
.slide-quote {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 4rem; line-height: .6;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 26px;
}
.slide p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 32px;
}
.slide footer { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.avatar {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1, var(--cyan)), var(--a2, var(--violet)));
  color: #05070f; font-weight: 700; font-size: .92rem;
}
.slide footer strong { display: block; font-weight: 600; }
.slide footer span:not(.avatar) { color: var(--muted); font-size: .82rem; }

.carousel-ui {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  margin-top: 30px;
}
.car-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.1rem;
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.car-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: scale(1.08); }
.car-dots { display: flex; gap: 10px; }
.car-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--line);
  transition: width .35s ease, background .35s ease;
}
.car-dot.active { width: 26px; background: var(--grad); }

/* ------------------------------------------------------------ clients */
.clients {
  border-block: 1px solid var(--line);
  padding: 34px 0;
  overflow: hidden;
  will-change: transform;
}
.clients-track {
  display: flex; align-items: center; gap: clamp(48px, 7vw, 100px);
  width: max-content;
  animation: marquee 36s linear infinite;
}
.clients-track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: .18em;
  color: rgba(238, 241, 249, 0.22);
  white-space: nowrap;
  transition: color .35s ease;
}
.clients-track span:hover { color: var(--cyan); }

/* ====================================================== CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.field { display: block; margin-bottom: 22px; }
.field span {
  display: block;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(238, 241, 249, 0.18);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  padding: 10px 2px 14px;
  transition: border-color .35s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 163, 184, 0.45); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--cyan);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-form .btn { margin-top: 8px; }
.form-status { margin-top: 18px; font-size: .9rem; color: var(--cyan); min-height: 1.4em; }

.contact-info { display: grid; gap: 30px; }
.ci-block h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.ci-block p { color: var(--muted); font-size: .95rem; }
.ci-block a { border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.ci-block a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.ci-note { border-top: 1px solid var(--line); padding-top: 24px; }
.ci-note p { font-style: italic; font-size: .85rem; }

/* ====================================================== FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(70px, 9vw, 120px) 0 40px;
  background: rgba(9, 13, 26, 0.78);
}
.footer-big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: clamp(50px, 7vw, 80px);
}
.footer-bg-lang {
  display: inline-block;
  font-size: .42em; font-weight: 400;
  color: var(--muted); letter-spacing: .12em;
  margin-top: 14px;
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.footer-logo b { color: var(--cyan); }
.footer-logo span { color: var(--muted); font-weight: 300; }
.footer-social { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-social a {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease;
}
.footer-social a:hover { color: var(--cyan); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  color: var(--muted); font-size: .78rem;
}

/* ------------------------------------------------------------ back to top */
#back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 950;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 19, 34, 0.85);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease, border-color .3s ease;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { border-color: var(--cyan); }

/* ====================================================== RESPONSIVE */
section[id] { scroll-margin-top: 20px; }

@media (max-width: 1099px) {
  .rail { display: none; }
  .topbar { display: flex; }
  main, .footer { margin-left: 0; }
  section[id] { scroll-margin-top: 80px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .studio-grid { grid-template-columns: 1fr; }
  .core-wrap { order: -1; }
  .work-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .hero-meta .hm-item:last-child { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cap-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .hero-ghost { font-size: 24vw; }
  .step { gap: 18px; }
  .step-no { width: 52px; height: 52px; font-size: .85rem; }
}

/* ------------------------------------------------- no-JS fallback */
/* If scripts fail entirely, content must never stay hidden. The same
   rules are delivered via <noscript> in index.html. */
