/* ============================================================
   NOVACORE 星核科技 — 全站样式
   ============================================================ */

/* ---------- Tokens & base ---------- */
:root {
  --bg: #050508;
  --bg2: #0a0a14;
  --card: rgba(255, 255, 255, .03);
  --card-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --txt: #e8e8f0;
  --dim: #9a9ab0;
  --c1: #22d3ee;
  --c2: #818cf8;
  --c3: #e879f9;
  --grad: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
  --font: "Space Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

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

::selection { background: rgba(129, 140, 248, .4); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #34344e; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .6s ease, visibility .6s;
}
.loader-logo {
  font-size: 2rem; font-weight: 700; letter-spacing: .35em; text-indent: .35em;
  animation: loaderPulse 1.2s ease-in-out infinite alternate;
}
.loader-logo span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-bar {
  width: 180px; height: 2px; background: rgba(255, 255, 255, .08);
  border-radius: 2px; overflow: hidden;
}
.loader-bar i {
  display: block; height: 100%; width: 40%;
  background: var(--grad);
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(450px); } }
@keyframes loaderPulse { from { opacity: .65; } to { opacity: 1; } }
body.loaded #loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 998;
  border-radius: 50%; pointer-events: none;
  transform: translate(-100px, -100px);
}
.cursor-dot { width: 6px; height: 6px; background: var(--c1); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(139, 148, 250, .55);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
  margin: -15px 0 0 -15px;
}
.cursor-ring.grow {
  width: 58px; height: 58px; margin: -26px 0 0 -26px;
  border-color: rgba(232, 121, 249, .8);
}
@media (hover: none), (max-width: 720px) {
  .cursor-dot, .cursor-ring { display: none; }
}
body.reduced .cursor-dot, body.reduced .cursor-ring { display: none; }

/* ---------- Nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(5, 5, 8, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 30px; height: 30px; }
.logo-text {
  font-weight: 700; letter-spacing: .12em; font-size: .95rem;
  display: flex; flex-direction: column; line-height: 1.25;
}
.logo-text em {
  font-style: normal; font-weight: 400;
  font-size: .62rem; letter-spacing: .5em; color: var(--dim);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 16px;
  font-size: .92rem; color: var(--dim);
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--txt); }
.nav-link.active { color: var(--txt); }
.nav-link.active::after { transform: scaleX(1); }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; margin-left: auto;
}
.nav-toggle i {
  width: 22px; height: 2px; background: var(--txt);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
body.nav-open .nav-toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #06060b;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(129, 140, 248, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(129, 140, 248, .35);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, .18); color: var(--txt);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover {
  border-color: rgba(139, 148, 250, .6);
  background: rgba(129, 140, 248, .08);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
#scene, .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#scene { opacity: 0; transition: opacity 1.2s ease .2s; }
.webgl-on #scene { opacity: 1; }
.hero-fallback {
  background:
    radial-gradient(1px 1px at 12% 24%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 18%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 44%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 74%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 92%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(ellipse 60% 45% at 70% 80%, rgba(129, 140, 248, .14), transparent),
    radial-gradient(ellipse 55% 40% at 25% 70%, rgba(34, 211, 238, .1), transparent),
    var(--bg);
}
.webgl-on .hero-fallback { opacity: .5; }
#hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 120px; padding-bottom: 60px;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem; letter-spacing: .3em; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; margin-bottom: 30px;
  background: rgba(255, 255, 255, .02);
}
#hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: .01em;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--dim); max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(28px, 6vw, 84px);
  justify-content: start;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  display: flex; align-items: baseline;
}
.hero-stats strong em {
  font-style: normal; font-size: .55em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 3px;
}
.hero-stats li > span { font-size: .85rem; color: var(--dim); letter-spacing: .06em; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .65rem; letter-spacing: .4em; color: var(--dim);
}
.scroll-hint span {
  width: 1px; height: 44px;
  background: linear-gradient(var(--c2), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Sections common ---------- */
.sec { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.sec-alt {
  background: linear-gradient(var(--bg), var(--bg2) 18%, var(--bg2) 82%, var(--bg));
}
.sec-head { position: relative; margin-bottom: clamp(48px, 7vw, 80px); }
.sec-en {
  position: absolute; left: -0.04em; top: 50%;
  transform: translateY(-58%);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700; letter-spacing: .02em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none; user-select: none;
}
.sec-head h2 {
  position: relative;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: .04em;
  margin-bottom: 14px;
}
.sec-head h2::before {
  content: ""; display: inline-block;
  width: 34px; height: 4px; border-radius: 2px;
  background: var(--grad);
  margin-right: 16px; vertical-align: .18em;
}
.sec-head p { color: var(--dim); position: relative; max-width: 520px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
body.reduced .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Services ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  --mx: 50%; --my: 50%;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: border-color .4s, background .4s, transform .2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 140, 248, .13), transparent 65%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.svc-card:hover { border-color: rgba(139, 148, 250, .35); background: var(--card-hi); }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px; margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, .35));
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 12px; letter-spacing: .03em; }
.svc-card p { font-size: .92rem; color: var(--dim); margin-bottom: 22px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
  font-size: .74rem; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; letter-spacing: .05em;
  transition: color .3s, border-color .3s;
}
.svc-card:hover .svc-tags li { color: #c8cdf5; border-color: rgba(139, 148, 250, .3); }

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  max-width: 780px;
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 8px;
}
.timeline::before {
  content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px;
  width: 1px; background: var(--line);
}
.tl-item {
  position: relative;
  display: flex; gap: 34px; align-items: flex-start;
  padding: 22px 26px 22px 0;
}
.tl-no {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .05em;
  color: var(--dim);
  background: var(--bg2);
  border: 1px solid var(--line);
  position: relative; z-index: 1;
  transition: color .5s, border-color .5s, box-shadow .5s, background .5s;
}
.tl-item.lit .tl-no {
  color: #fff;
  border-color: rgba(139, 148, 250, .6);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(232, 121, 249, .16));
  box-shadow: 0 0 24px rgba(129, 140, 248, .35);
}
.tl-item h3 { font-size: 1.15rem; font-weight: 600; margin: 8px 0 6px; letter-spacing: .04em; }
.tl-item p { color: var(--dim); font-size: .93rem; max-width: 520px; }

/* ---------- Works ---------- */
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  border-radius: 18px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 148, 250, .35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}
.work-cover {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-cover i {
  position: absolute;
  transition: transform .8s var(--ease);
}
.work-card:hover .work-cover i { transform: scale(1.12) rotate(3deg); }
.cv1 { background: linear-gradient(135deg, #0e7490 0%, #155e75 45%, #1e1b4b 100%); }
.cv2 { background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #0c0a2e 100%); }
.cv3 { background: linear-gradient(135deg, #86198f 0%, #701a75 45%, #1e1b4b 100%); }
.cv4 { background: linear-gradient(135deg, #134e4a 0%, #115e59 45%, #082f49 100%); }
.cv5 { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0f172a 100%); }
.cv6 { background: linear-gradient(135deg, #9d174d 0%, #831843 45%, #312e81 100%); }

.shape-ring {
  width: 130px; height: 130px; right: 8%; top: 14%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
}
.shape-ring::after {
  content: ""; position: absolute; inset: 22px;
  border: 1px dashed rgba(255, 255, 255, .2); border-radius: 50%;
}
.shape-ring.sm { width: 80px; height: 80px; right: auto; left: 10%; top: auto; bottom: 12%; }
.shape-grid {
  width: 150px; height: 110px; left: 8%; bottom: 10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 21px 21px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.shape-grid.lg { width: 220px; height: 160px; left: 6%; top: 12%; bottom: auto; }
.shape-orbit {
  width: 160px; height: 160px; left: 50%; top: 50%;
  margin: -80px 0 0 -80px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transform: rotateX(62deg);
}
.shape-orbit::after {
  content: ""; position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 14px rgba(255, 255, 255, .9);
}
.shape-orbit.sm { width: 90px; height: 90px; margin: 0; left: auto; right: 10%; top: auto; bottom: 14%; }
.shape-dots {
  width: 120px; height: 90px; right: 10%; bottom: 12%;
  background-image: radial-gradient(rgba(255, 255, 255, .4) 1.5px, transparent 2px);
  background-size: 16px 16px;
}
.shape-dots.lg { width: 190px; height: 130px; right: auto; left: 8%; top: 14%; bottom: auto; }
.shape-waves {
  left: 0; right: 0; bottom: 0; height: 90px;
  background:
    radial-gradient(120% 60% at 50% 120%, transparent 48%, rgba(255, 255, 255, .14) 49%, transparent 52%),
    radial-gradient(130% 70% at 50% 135%, transparent 48%, rgba(255, 255, 255, .1) 49%, transparent 52%),
    radial-gradient(140% 80% at 50% 150%, transparent 48%, rgba(255, 255, 255, .07) 49%, transparent 52%);
}
.shape-waves.lg { height: 140px; }

.work-info { padding: 22px 24px 26px; }
.work-tag {
  display: inline-block;
  font-size: .72rem; letter-spacing: .18em; color: var(--c2);
  margin-bottom: 10px;
}
.work-info h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; letter-spacing: .02em; }
.work-info p { font-size: .88rem; color: var(--dim); }

/* ---------- Tech marquee ---------- */
.tech-marquee {
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-row.rev .marquee-track { animation-direction: reverse; }
.marquee-track span {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .16);
  white-space: nowrap;
  transition: color .3s;
}
.marquee-track span:hover { color: rgba(139, 148, 250, .75); }
@keyframes marquee { to { transform: translateX(-50%); } }
body.reduced .marquee-track { animation: none; }

/* ---------- Testimonials ---------- */
.quotes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color .4s, transform .5s var(--ease);
}
.quote-card:hover { border-color: rgba(139, 148, 250, .3); transform: translateY(-6px); }
.quote-card blockquote {
  font-size: .95rem; color: #c6c6d8; line-height: 1.85;
}
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 600; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg, #0891b2, #6366f1); }
.av2 { background: linear-gradient(135deg, #6366f1, #c026d3); }
.av3 { background: linear-gradient(135deg, #c026d3, #0891b2); }
.quote-card figcaption span { display: flex; flex-direction: column; }
.quote-card strong { font-size: .95rem; font-weight: 600; }
.quote-card em { font-style: normal; font-size: .78rem; color: var(--dim); }

/* ---------- About ---------- */
.about-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-text p {
  color: #c6c6d8; font-size: 1.02rem; line-height: 2;
  margin-bottom: 22px;
}
.values { display: flex; flex-direction: column; gap: 18px; }
.values li {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px;
  background: var(--card);
  transition: border-color .4s, background .4s;
}
.values li:hover { border-color: rgba(139, 148, 250, .35); background: var(--card-hi); }
.v-en {
  font-size: .68rem; letter-spacing: .32em; color: var(--c2);
}
.values h3 { font-size: 1.12rem; font-weight: 600; margin: 6px 0 6px; letter-spacing: .06em; }
.values p { font-size: .88rem; color: var(--dim); }

/* ---------- CTA band ---------- */
#cta-band {
  padding: clamp(90px, 12vw, 150px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-band::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 900px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(129, 140, 248, .14), transparent);
  pointer-events: none;
}
#cta-band h2 {
  position: relative;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  margin-bottom: 18px;
}
#cta-band p { position: relative; color: var(--dim); margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.ci-item { display: flex; flex-direction: column; gap: 6px; }
.ci-label { font-size: .76rem; letter-spacing: .28em; color: var(--dim); }
.ci-value {
  font-size: 1.35rem; font-weight: 600; letter-spacing: .02em;
  transition: color .3s;
}
a.ci-value:hover { color: var(--c2); }
.ci-value.sm { font-size: 1rem; font-weight: 400; color: #c6c6d8; }

#contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 42px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: .82rem; color: var(--dim); letter-spacing: .08em; }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--txt);
  font-family: inherit; font-size: .95rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  width: 100%;
}
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-field select option { background: #12121e; color: var(--txt); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #5b5b72; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: rgba(139, 148, 250, .55);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .12);
  background: rgba(255, 255, 255, .06);
}
.form-field input.err { border-color: rgba(248, 113, 113, .7); animation: shake .35s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
#contact-form button[disabled] { opacity: .85; cursor: default; }
#contact-form button[disabled]:hover { transform: none; box-shadow: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(50px, 7vw, 80px) 0 40px;
}
.footer-brand p { color: var(--dim); font-size: .9rem; margin-top: 18px; }
.footer-col h4 {
  font-size: .8rem; letter-spacing: .3em; color: var(--dim);
  font-weight: 500; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: .92rem; color: #b9b9cc; transition: color .3s; }
.footer-col a:hover { color: var(--c1); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: #6a6a82;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid, .works-grid, .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 26px 60px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(7, 7, 12, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 10px 0 16px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s, visibility .35s;
  }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-link { display: block; padding: 14px 8vw; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .svc-grid, .works-grid, .quotes-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .hero-cta .btn { flex: 1; min-width: 150px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 31px; }
  .tl-no { width: 48px; height: 48px; font-size: .9rem; }
  .tl-item { gap: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .scroll-hint { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #scene { display: none; }
  .scroll-hint { display: none; }
}
