/* ============================================================
   ZM AutoLab — main.css
   World: night lab. Purple is identity, black is the room.
   ============================================================ */

:root {
  --bg: #0b0812;
  --bg-2: #120c1d;
  --bg-3: #1a1128;
  --ink: #f2eef9;
  --ink-dim: #b3a6cf;
  --ink-faint: #7e6fa0;
  --violet-deep: #6d28d9;
  --violet: #9d5cff;
  --violet-light: #c9a6ff;
  --grad: linear-gradient(115deg, #6d28d9 0%, #a855f7 55%, #d8b4fe 100%);
  --grad-btn: linear-gradient(115deg, #5b21b6 0%, #7c3aed 60%, #9d5cff 100%);
  --line: rgba(157, 92, 255, 0.18);
  --font-display: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: var(--violet-deep) var(--bg);
}
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: rgba(157, 92, 255, 0.38); color: var(--ink); }

/* custom scrollbar — part of the design */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6d28d9, #a855f7);
  border: 3px solid var(--bg);
  border-radius: 8px;
}

/* dip-to-black veil for long anchor jumps */
.jump-veil {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease-out;
}
.jump-veil.is-on { opacity: 1; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--violet-light);
}

/* ---------- shared ---------- */
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 18px 34px;
  position: relative;
  isolation: isolate;
  color: #fff;
  white-space: nowrap;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: var(--grad-btn);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, #6d28d9 0%, #a855f7 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.btn .btn-arrow { transition: transform 0.35s var(--ease-out); }

.btn-ghost {
  background: rgba(201, 166, 255, 0.4);
  color: var(--violet-light);
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn-ghost::before {
  /* 1px gradient edge that follows the notch shape */
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  clip-path: polygon(11.6px 0, 100% 0, 100% calc(100% - 11.6px), calc(100% - 11.6px) 100%, 0 100%, 0 11.6px);
}
.btn-ghost::after { display: none; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(157, 92, 255, 0.55); }
  .btn:hover::after { opacity: 1; }
  .btn:hover .btn-arrow { transform: translateX(5px); }
  .btn-ghost:hover { color: #fff; box-shadow: none; }
  .btn-ghost:hover { background: var(--violet-light); }
}
.btn:active { transform: translateY(0) scale(0.98); }

/* gradient hash divider — the ZM cut of the tintpros red hashes */
.hashes { display: flex; gap: 7px; height: 20px; }
.hashes span {
  width: 13px;
  background: var(--grad);
  transform: skewX(-24deg);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 8, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(157, 92, 255, 0.35));
}
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(11, 8, 18, 0.9);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease-out);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover { color: var(--ink); }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-cta { padding: 13px 28px; font-size: 0.78rem; letter-spacing: 0.06em; }

/* services dropdown */
.nav-links .nav-drop-inner a::after { display: none; }
.nav-has-drop { position: relative; }
.nav-has-drop > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-caret { transition: transform 0.3s var(--ease-out); }
.nav-has-drop:hover .nav-caret,
.nav-has-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute;
  top: 100%;
  left: -18px;
  padding-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-has-drop:hover .nav-drop,
.nav-has-drop:focus-within .nav-drop {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drop-inner {
  min-width: 200px;
  background: rgba(18, 12, 29, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 12px 0;
}
.nav-links .nav-drop-inner a {
  display: block;
  padding: 11px 22px 11px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.nav-links .nav-drop-inner a::before {
  display: block;
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 9px;
  height: 6px;
  background: var(--grad);
  transform: skewX(-24deg);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links .nav-drop-inner a:hover {
    color: var(--ink);
    background: rgba(157, 92, 255, 0.10);
    transform: translateX(3px);
  }
  .nav-links .nav-drop-inner a:hover::before { opacity: 1; }
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* full-screen mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 8, 18, 0.97);
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top img { height: 40px; width: auto; }
.menu-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}
.menu-links {
  list-style: none;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-links a {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1.25;
  color: var(--ink);
  display: inline-block;
  padding: 4px 0;
}
.menu-links .menu-num { display: none; }
.menu-overlay .btn { margin-top: auto; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* scrims: bottom-left anchor for the text block */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(11, 8, 18, 0.78) 0%, rgba(11, 8, 18, 0.25) 10%, rgba(11, 8, 18, 0) 20%),
    linear-gradient(to top, rgba(11, 8, 18, 0.95) 0%, rgba(11, 8, 18, 0.55) 38%, rgba(11, 8, 18, 0.10) 62%, rgba(11, 8, 18, 0) 72%),
    linear-gradient(105deg, rgba(11, 8, 18, 0.92) 0%, rgba(11, 8, 18, 0.55) 48%, rgba(11, 8, 18, 0) 72%),
    radial-gradient(70% 60% at 85% 10%, rgba(11, 8, 18, 0.45) 0%, rgba(11, 8, 18, 0) 70%);
}
.hero-scrim::after {
  /* faint violet atmosphere so the film sits in the brand's light */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 18% 88%, rgba(109, 40, 217, 0.28) 0%, rgba(109, 40, 217, 0) 55%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}
.hero-content .wrap {
  width: min(1360px, calc(100% - 48px));
  padding-bottom: clamp(56px, 9vh, 110px);
}
.hero-title {
  font-size: clamp(3rem, 8.2vw, 6rem);
  max-width: 12ch;
  color: var(--ink);
  text-shadow: 0 3px 34px rgba(11, 8, 18, 0.85), 0 1px 8px rgba(11, 8, 18, 0.6);
}
.hero-title .grad-word { color: var(--violet); }
.hero-sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.95vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.42;
  text-shadow: 0 2px 22px rgba(11, 8, 18, 0.85), 0 1px 6px rgba(11, 8, 18, 0.6);
}
.hero-cta-row { margin-top: 34px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  /* 比 --ink-faint 亮一档：这行压在影片上，暗底 token 只有 4.0:1 不达 AA */
  color: #8d7cb0;
}
.hero-note strong { color: var(--ink); font-weight: 600; }
.hero-note .note-mobile { display: none; }
@media (max-width: 900px) {
  .hero-note .note-desktop { display: none; }
  .hero-note .note-mobile { display: inline; }
}

.hero-hashes { margin-bottom: 26px; }

/* scroll cue */
.hero-cue {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(56px, 9vh, 110px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-cue .label { writing-mode: vertical-rl; letter-spacing: 0.34em; color: var(--ink-dim); }
.hero-cue-line {
  width: 1px;
  height: 64px;
  background: rgba(201, 166, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.hero-cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%;
  height: 40%;
  background: var(--grad);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ============================================================
   BLANKET: hero pins, the rest slides over it
   ============================================================ */
.hero { position: sticky; top: 0; z-index: 0; }
.after-hero { position: relative; z-index: 2; background: var(--bg); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 22px 0;
  overflow: clip;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-run {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-faint);
}
.marquee-run i { font-style: italic; color: var(--violet); padding: 0 18px; }

/* ============================================================
   INTRO
   ============================================================ */
.intro { padding: clamp(90px, 12vh, 150px) 0; background: var(--bg); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.intro-copy .hashes { margin-bottom: 28px; }
.intro-title { font-size: clamp(2.2rem, 3.8vw, 3.4rem); color: var(--ink); }
.intro-text { margin-top: 24px; color: var(--ink-dim); max-width: 52ch; }
.intro-media {
  position: relative;
  min-height: 480px;
}
.intro-img {
  position: absolute;
  overflow: clip;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.intro-img-a { width: 72%; aspect-ratio: 16/11; top: 0; left: 0; }
.intro-img-b { width: 52%; aspect-ratio: 4/5; bottom: 0; right: 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); padding-bottom: 0; }
.services-head { padding: clamp(20px, 4vh, 60px) 0 clamp(48px, 7vh, 90px); }
.section-title { font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--ink); }
.section-sub { margin-top: 18px; color: var(--ink-dim); max-width: 52ch; }

/* the tintpros red line, recut as a purple gradient hash strip */
.svc-divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(109, 40, 217, 0) 0%, #6d28d9 18%, #a855f7 50%, #d8b4fe 82%, rgba(216, 180, 254, 0) 100%);
  position: relative;
}

.svc { padding: clamp(64px, 9vh, 120px) 0; }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.svc-flip .svc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.svc-flip .svc-media { order: 2; }
.svc-flip .svc-copy { order: 1; }

.svc-media {
  overflow: clip;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  aspect-ratio: 4/3;
}
.svc-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .svc-media img { transition: scale 0.8s var(--ease-out); }
  .svc:hover .svc-media img { scale: 1.04; }
}

.svc-title { font-size: clamp(2rem, 3.6vw, 3.2rem); color: var(--ink); margin-bottom: 20px; }
.svc-copy p { color: var(--ink-dim); max-width: 50ch; }
.svc-list {
  list-style: none;
  margin: 26px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 13px;
  height: 8px;
  background: var(--grad);
  transform: skewX(-24deg);
}
.svc-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.svc-btns .btn { padding: 15px 26px; font-size: 0.92rem; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-stretch: 108%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  color: var(--violet-light);
  position: relative;
  padding-bottom: 6px;
}
.svc-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.svc-link .btn-arrow { transition: transform 0.35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc-link:hover::after { transform: scaleX(1); }
  .svc-link:hover .btn-arrow { transform: translateX(5px); }
  .svc-link:hover { color: #fff; }
}

/* ============================================================
   FEATURED BUILDS — horizontal scroll scene
   ============================================================ */
.builds { position: relative; background: var(--bg-2); }
/* JS sets .builds height; inner pins via sticky */
.builds-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  gap: clamp(28px, 4vh, 48px);
  padding: calc(var(--nav-h) + 10px) 0 26px;
}
.builds-head { width: min(1240px, calc(100% - 48px)); }
.builds-track-clip { overflow: clip; }
.builds-track {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  width: max-content;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  will-change: transform;
}
.build-card {
  position: relative;
  height: clamp(320px, 54svh, 470px);
  aspect-ratio: 3/4;
  flex: none;
  overflow: clip;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  isolation: isolate;
  background: var(--bg-3);
}
.build-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 8, 18, 0.88) 0%, rgba(11, 8, 18, 0.25) 38%, rgba(11, 8, 18, 0) 60%);
}
.build-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}
.build-name { font-size: 1.5rem; color: var(--ink); }
.build-spec {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
@media (hover: hover) and (pointer: fine) {
  .build-card > img { transition: scale 0.7s var(--ease-out); }
  .build-card:hover > img { scale: 1.05; }
  .build-card .build-name { transition: color 0.4s var(--ease-out); }
  .build-card:hover .build-name { color: var(--violet-light); }
}
.build-card-more {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--bg-3) 0%, #241539 100%);
}
.build-card-more::after { display: none; }
.build-more-inner { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.build-more-text { font-size: 1.6rem; color: var(--ink); }
.builds-progress {
  height: 2px;
  background: rgba(157, 92, 255, 0.15);
  position: relative;
}
.builds-progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: clip;
  padding: clamp(110px, 18vh, 200px) 0;
}
.cta-bg { position: absolute; inset: -8% 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 8, 18, 0.94) 0%, rgba(11, 8, 18, 0.72) 45%, rgba(11, 8, 18, 0.35) 100%),
    radial-gradient(90% 90% at 15% 85%, rgba(109, 40, 217, 0.30) 0%, rgba(109, 40, 217, 0) 60%);
}
.cta-content { position: relative; z-index: 2; }
.cta-content .hashes { margin-bottom: 28px; }
.cta-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); color: var(--ink); }
.cta-sub { margin-top: 22px; max-width: 46ch; color: var(--ink-dim); }

/* quote form */
.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.cta-direct { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 34px; }
.cta-mail { color: var(--ink-dim); font-size: 0.98rem; transition: color 0.3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cta-mail:hover { color: var(--violet-light); }
}
.quote-form {
  background: rgba(18, 12, 29, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qf-hp { position: absolute; left: -9999px; }
.qf-title { font-size: 1.6rem; color: var(--ink); margin-bottom: 4px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qf-field { display: flex; flex-direction: column; gap: 7px; }
.qf-field span {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.qf-field input:not([type=checkbox]):not([type=radio]),
.qf-field select,
.qf-field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(11, 8, 18, 0.7);
  border: 1px solid rgba(157, 92, 255, 0.22);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.3s var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.qf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' fill='none' stroke='%23b3a6cf' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.qf-field textarea { resize: vertical; min-height: 74px; }
.qf-field input:focus-visible,
.qf-field select:focus-visible,
.qf-field textarea:focus-visible {
  outline: none;
  border-color: var(--violet);
}
.qf-field input::placeholder, .qf-field textarea::placeholder { color: var(--ink-faint); }
.qf-submit { justify-content: center; margin-top: 6px; }
.qf-status {
  color: var(--violet-light);
  font-size: 0.95rem;
  line-height: 1.5;
}
.qf-status.is-error { color: #f2a6b8; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080510;
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 8vh, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vh, 72px);
}
.footer-logo { width: 210px; height: auto; }
.footer-tag { margin-top: 18px; color: var(--ink-faint); font-size: 0.95rem; line-height: 1.7; }
.footer-col ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--ink-dim);
  font-size: 0.98rem;
  transition: color 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--violet-light); }
}
.footer-ph { color: var(--ink-faint); font-size: 0.82rem; font-style: italic; margin-top: 4px; }
.btn-arrow svg, .case-card-arrow svg, .case-next-arrow svg { display: block; }
.footer-bottom { border-top: 1px solid rgba(157, 92, 255, 0.1); padding: 22px 0; }
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-hashes { height: 12px; }
.footer-hashes span { width: 9px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-logo img { height: 36px; }
  .hero-cue { display: none; }
  .hero-title { font-size: clamp(2.6rem, 11.5vw, 4rem); }
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(11, 8, 18, 0.62) 0%, rgba(11, 8, 18, 0.22) 12%, rgba(11, 8, 18, 0) 24%),
      linear-gradient(to top, rgba(11, 8, 18, 0.96) 0%, rgba(11, 8, 18, 0.74) 42%, rgba(11, 8, 18, 0.34) 66%, rgba(11, 8, 18, 0.06) 100%);
  }
  .hero-scrim::after {
    background: radial-gradient(120% 60% at 50% 100%, rgba(109, 40, 217, 0.20) 0%, rgba(109, 40, 217, 0) 60%);
  }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; padding: 17px 30px; }

  .intro-grid { grid-template-columns: 1fr; }

/* ---------- mobile hero: 标题顶到左上，行动区沉底，中间留出影片窗口 ---------- */
@media (max-width: 900px) {
  .hero-content { align-items: stretch; }
  .hero-content .wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: clamp(34px, 5.5vh, 64px);
  }
  .hero-hashes { margin-bottom: 18px; }
  .hero-sub { margin-top: 0; }
  .hero-cta-row { margin-top: 22px; gap: 12px; }
  .hero-note { margin-top: 18px; }
  /* 上下两端压暗托住文字，中段放清让影片露出来 */
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(11, 8, 18, 0.90) 0%, rgba(11, 8, 18, 0.66) 20%, rgba(11, 8, 18, 0.22) 36%, rgba(11, 8, 18, 0) 48%),
      linear-gradient(to top, rgba(11, 8, 18, 0.96) 0%, rgba(11, 8, 18, 0.80) 26%, rgba(11, 8, 18, 0.34) 48%, rgba(11, 8, 18, 0) 62%);
  }
}
  .intro-media { min-height: 0; height: 340px; margin-top: 8px; }
  .svc-grid, .svc-flip .svc-grid { grid-template-columns: 1fr; gap: 30px; }
  .svc-flip .svc-media { order: 0; }
  .svc-flip .svc-copy { order: 1; }
  .svc { padding: 56px 0; }

  /* builds: native swipe carousel on touch */
  .builds { height: auto !important; }
  .builds-pin {
    position: static;
    height: auto;
    padding: 64px 0;
  }
  .builds-track-clip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .builds-track-clip::-webkit-scrollbar { display: none; }
  .builds-track { transform: none !important; padding-right: 24px; padding-left: 24px; }
  .build-card { scroll-snap-align: start; height: auto; width: 74vw; max-width: 340px; aspect-ratio: 3/4; }
  .builds-progress { display: none; }

  .cta-sub { max-width: none; }
  .cta-split { grid-template-columns: 1fr; gap: 44px; }
  .qf-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
