:root {
  --bg: #080b16;
  --bg-deep: #05070f;
  --bg-alt: #101526;
  --text: #f8fafc;
  --muted: #a1a1b5;
  --nav-text: #2e2e2e;
  --pill-dark: #101526;
  --accent: #8b5cf6;
  --accent-2: #38bdf8;
  --lav: #c4b5fd;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #38bdf8 100%);
  --line: rgba(139, 92, 246, 0.2);
  --line-soft: rgba(248, 250, 252, 0.09);
  --soft-white: rgba(248, 250, 252, 0.82);
  --nav-shadow: 0 6px 18px rgba(2, 4, 12, 0.45);
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: clamp(24px, 3vh, 32px); left: 50%; z-index: 50;
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(8px, 1.6vw, 14px);
  transform: translateX(-50%);
  animation: header-in 700ms var(--ease) both;
}
@keyframes header-in {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.logo {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--nav-shadow);
  display: grid; place-items: center; overflow: hidden;
  transition: transform 250ms var(--ease);
}
.logo img { width: 72%; height: 72%; object-fit: contain; display: block; }
.logo:hover { transform: scale(1.04); }

.nav-pill {
  display: flex; align-items: center; gap: clamp(1px, 0.5vw, 4px);
  height: 47px; max-width: 470px; padding: 0 7px;
  background: #fff; border-radius: 999px; box-shadow: var(--nav-shadow);
}
.nav-link {
  position: relative; display: flex; align-items: center; height: 100%;
  padding: 0 clamp(8px, 1.1vw, 13px); border-radius: 999px;
  color: var(--nav-text); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; opacity: 0.72;
  transition: opacity 200ms ease, color 200ms ease;
}
.nav-link:hover { opacity: 1; color: var(--accent); }  .nav-link.is-active { opacity: 1; color: var(--text); }  .nav-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
/* three-dot active indicator, built from one pseudo-element + box-shadow */
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--accent);
  box-shadow: -5px 0 0 var(--accent), 5px 0 0 var(--accent);
  transform: translateX(-50%); opacity: 0;
  transition: opacity 200ms ease;
}
.nav-link.is-active::after { opacity: 1; }

.cta-dark {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 47px; padding: 0 clamp(18px, 2vw, 24px); border-radius: 999px;
  background: var(--pill-dark); color: #cfcfcf;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 200ms ease, color 200ms ease, transform 200ms var(--ease);
}
.cta-dark:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(139, 92, 246, 0.32); }
.cta-dark:active { background: #6d3fe0; transform: translateY(0) scale(0.98); }

.burger { display: none; }

/* ---------- Mobile menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(5, 7, 15, 0.66);
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .menu-overlay { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
.mobile-menu {
  position: fixed; z-index: 45; left: 50%; top: 50%;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none;
  background: #fff; color: #000; border-radius: 28px;
  padding: clamp(14px, 3vw, 20px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 2px;
  transition: opacity 250ms ease, transform 350ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.m-link {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 54px; padding: 0 20px;
  color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  text-align: center;
  border-radius: 18px; opacity: 0; transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms var(--ease), background 150ms ease;
}
.m-link.is-active { color: var(--accent); }
.m-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -3px; }
.m-link::after {
  content: ""; position: absolute; left: 50%; bottom: 10px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--accent);
  box-shadow: -5px 0 0 var(--accent), 5px 0 0 var(--accent);
  transform: translateX(-50%); opacity: 0;
  transition: opacity 200ms ease;
}
.m-link.is-active::after { opacity: 1; }
.mobile-menu.is-open .m-link {
  opacity: 1; transform: none;
  transition: opacity 400ms ease calc(var(--i) * 60ms + 120ms), transform 400ms var(--ease) calc(var(--i) * 60ms + 120ms), background 150ms ease;
}
.m-link:hover { background: rgba(139, 92, 246, 0.1); }
.m-cta { background: var(--grad); }
.m-cta:hover { background: var(--grad); color: #080b16; filter: brightness(1.07); }
.m-cta::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(96px, 14vh, 132px) clamp(20px, 4vw, 40px) clamp(22px, 4vh, 44px);
  overflow: hidden; isolation: isolate; background: var(--bg);
}
.bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); pointer-events: none; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bg-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
/* restrained ambient lighting that complements (never replaces) the animated background */  .bg::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
      radial-gradient(65% 60% at 16% 26%, rgba(139, 92, 246, 0.26), transparent 68%),
      radial-gradient(55% 55% at 88% 78%, rgba(56, 189, 248, 0.16), transparent 70%);
  }
  .bg-video { z-index: 0; }
  .bg-overlay { z-index: 2; }
  .bg::after { z-index: 3; pointer-events: none; }
  .no-video .bg-video { display: none; }

.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  width: 100%; max-width: 1180px; margin: 0 auto; text-align: left;
}

.eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding-left: 22px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; color: var(--lav);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85);
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: status-pulse 2600ms ease-out infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.eyebrow-rule { width: clamp(24px, 3vw, 44px); height: 1px; background: linear-gradient(90deg, var(--accent), rgba(56, 189, 248, 0.25)); }

.marks { display: flex; }
.mark {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #0b0b0c; border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 2px #000; margin-left: -8px;
  transition: transform 250ms var(--ease);
}
.mark:first-child { margin-left: 0; }
.mark svg { width: 14px; height: 14px; }
.mark:hover { transform: translateY(-3px); }
.trust-text {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--muted);
}
.trust-line {
  display: flex; align-items: center; gap: 14px; width: 100%;
  margin: clamp(26px, 4vh, 44px) 0 0;
  padding-top: clamp(16px, 2.2vh, 24px);
  border-top: 1px solid var(--line-soft);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

.headline {
  width: 100%;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.08; letter-spacing: -0.03em; color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.headline .line { display: block; white-space: nowrap; }
.line-accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-lead {
  width: 100%;
  margin-top: clamp(22px, 3vh, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: clamp(20px, 3vw, 48px);
}
.lede {
  margin: 0; max-width: 520px;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: #d0d0d0;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.85);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.4vw, 18px); }
.hero-lead .actions { justify-content: flex-end; }
.cta-light {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #080b16;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 32px; border-radius: 999px; border: 0;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  transition: transform 250ms var(--ease), box-shadow 250ms ease, filter 250ms ease;
}
.cta-light:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(139, 92, 246, 0.42); filter: brightness(1.06); }
.cta-light:active { transform: translateY(0) scale(0.99); box-shadow: 0 8px 22px rgba(139, 92, 246, 0.3); }
.cta-light span[aria-hidden] { transition: transform 250ms var(--ease); }
.cta-light:hover span[aria-hidden] { transform: translate(3px, -3px); }
.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border: 1px solid rgba(196, 181, 253, 0.34); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--soft-white);
  background: rgba(8, 11, 22, 0.35);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.link-quiet span[aria-hidden] { transition: transform 200ms var(--ease); }
.link-quiet:hover { color: #fff; border-color: var(--accent); background: rgba(139, 92, 246, 0.14); }
.link-quiet:hover span[aria-hidden] { transform: translateY(3px); }

/* ---------- Capability strip ---------- */
.metrics {
  width: 100%; max-width: 1180px; margin: clamp(18px, 3vh, 34px) auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px); text-align: left;
}
.metric {
  display: grid; gap: 8px; align-content: start;
  padding-top: 14px; border-top: 1px solid var(--line);
  transition: border-color 300ms ease, transform 300ms var(--ease);
}
.metric:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.m-val { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; color: #fff; }
.m-label { font-size: 13px; line-height: 1.4; color: var(--muted); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85); }

/* ---------- Entrance + scroll reveal (visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 640ms var(--ease) var(--d, 0ms), transform 640ms var(--ease) var(--d, 0ms);
}
.js .reveal.reveal-x { transform: translateX(-26px); }
.js .reveal.reveal-x.in { transform: none; }
.js .reveal.reveal-pop { transform: translateY(18px) scale(0.985); }
.js .reveal.reveal-pop.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Section primitives ---------- */
.panel {
  position: relative; background: transparent; border-top: 1px solid var(--line-soft);
  padding: clamp(72px, 11vh, 132px) clamp(20px, 4vw, 40px);
}
#approach { background: linear-gradient(180deg, #101526 0%, #0c1020 100%); }
#services { background: #0a0e1c; }
#services::before, #work::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), rgba(56, 189, 248, 0.35), transparent);
}
#work { background: #080b16; }
#about { background: linear-gradient(180deg, #101526 0%, #0c1122 100%); }
#process { background: #080b16; }
#tech { background: #0a0e1c; }
#faq { background: #090d1a; }
#contact {
  background:
    radial-gradient(110% 90% at 12% 0%, rgba(139, 92, 246, 0.24), transparent 58%),
    radial-gradient(85% 75% at 92% 88%, rgba(56, 189, 248, 0.16), transparent 62%),
    #0a0e1e;
}
.label { color: var(--lav); }
.panel-inner { max-width: 1180px; margin: 0 auto; }
.panel-inner.narrow { max-width: 860px; }
.panel-note { margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.panel-note code { color: #fff; }
.label {
  margin: 0 0 clamp(18px, 2.4vh, 26px);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--muted);
}
.section-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; color: #fff;
}
.section-lede {
  margin: clamp(18px, 2.4vh, 24px) 0 0; max-width: 640px;
  font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; color: var(--soft-white);
}
.section-title, .statement-title, .contact-title {
  text-shadow: 0 2px 34px rgba(139, 92, 246, 0.18);
}

/* ---------- Section 03 — statement ---------- */
.statement .panel-inner { max-width: 1040px; }
.statement-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.02em;
}
.statement-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement-text {
  margin: clamp(22px, 3vh, 32px) 0 0; max-width: 660px;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--soft-white);
}

/* ---------- Section 04 — services ---------- */
.service-list { margin-top: clamp(40px, 6vh, 72px); }
.service {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(28px, 4vh, 44px) clamp(8px, 1.4vw, 20px);
  margin: 0 -8px;
  border-top: 1px solid var(--line-soft);
  transition: background 300ms ease, border-color 300ms ease;
}
.service:hover { background: rgba(139, 92, 246, 0.07); border-color: var(--line); }
.service:last-child { border-bottom: 1px solid var(--line-soft); }
.service-head { display: flex; flex-direction: column; gap: 14px; }
.service-no {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 300ms var(--ease);
}
.service:hover .service-no { transform: translateX(6px); }
.service-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.01em;
}
.service-intro { margin: 0; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.65; color: var(--soft-white); }
.service-details {
  margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
}
.service-details li {
  position: relative; padding-left: 18px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.service-details li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 1px; background: var(--accent-2);
}
.service-outcome { margin: 20px 0 0; font-size: 14px; line-height: 1.65; color: var(--soft-white); }
.outcome-label {
  display: inline-block; margin-right: 10px; padding: 3px 10px;
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--lav);
  border: 1px solid var(--line); border-radius: 999px;
  vertical-align: 1px;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--lav);
  transition: color 200ms ease;
}
.service-link span { transition: transform 200ms var(--ease); }
.service-link:hover { color: var(--accent-2); }
.service-link:hover span { transform: translate(3px, -3px); }

.soft-cta {
  margin-top: clamp(40px, 6vh, 64px); padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.1), rgba(56, 189, 248, 0.06) 60%, rgba(8, 11, 22, 0.4));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.soft-cta-title {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em;
}
.soft-cta-text { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Section 05 — selected work ---------- */
.concept-note {
  margin: clamp(24px, 3.4vh, 36px) 0 0; max-width: 640px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--accent);
}
.project-grid {
  margin-top: clamp(36px, 5vh, 60px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
}
.project { display: flex; flex-direction: column; gap: 18px; }
.project-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
}
.project-cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: #0e1324;
  background-image:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.3), transparent 62%),
    radial-gradient(90% 90% at 100% 100%, rgba(56, 189, 248, 0.18), transparent 66%);
  padding: clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: border-color 300ms ease, transform 400ms var(--ease), box-shadow 400ms ease;
}
.project-wide .project-cover { aspect-ratio: 16 / 8; }
.project:hover .project-cover {
  border-color: rgba(139, 92, 246, 0.55); transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(6, 9, 20, 0.6);
}
.cover-b { background-color: #0b1220; background-image: radial-gradient(120% 110% at 100% 0%, rgba(56, 189, 248, 0.26), transparent 60%); }  .cover-c { background: #eef1f8; background-image: none; border-color: rgba(16, 21, 38, 0.14); }
  .cover-c .cover-word { color: #0b0f1e; }
  .cover-c .cover-kicker { color: rgba(11, 15, 30, 0.55); }
  .cover-c .cover-rules i { background: rgba(11, 15, 30, 0.28); }
  .cover-c .cover-marks i { border-color: rgba(11, 15, 30, 0.5); }
  .cover-c .cover-grid i { border-color: rgba(11, 15, 30, 0.18); background: rgba(11, 15, 30, 0.04); }
  .cover-d { background-color: #0a0d1c; background-image: radial-gradient(100% 120% at 0% 100%, rgba(139, 92, 246, 0.24), transparent 62%); }

  .project-cover .cover-word br { display: block; content: ""; }
  .projects-work { padding-bottom: 1px; }
.cover-kicker { font-size: 11px; letter-spacing: 0.18em; color: rgba(248, 250, 252, 0.55); }  .cover-word {
    display: block; font-family: var(--font-display); font-size: clamp(26px, 3.8vw, 58px);
    line-height: 1.05; letter-spacing: -0.02em; color: #fff;
    word-spacing: 0.18em; text-align: left;
    transform-origin: left bottom; transition: transform 500ms var(--ease);
  }
  .cover-word br { display: block; content: ""; }
  .project:hover .cover-word { transform: scale(1.06); }
.cover-marks { display: flex; gap: 8px; }
.cover-marks i { width: 26px; height: 26px; border: 1px solid rgba(196, 181, 253, 0.5); border-radius: 50%; }
.cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cover-grid i { height: 46px; border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 8px; background: rgba(248, 250, 252, 0.05); }
.cover-rules { display: grid; gap: 10px; }
.cover-rules i { height: 1px; background: rgba(248, 250, 252, 0.24); }
.cover-rules i:nth-child(2) { width: 72%; }
.cover-rules i:nth-child(3) { width: 44%; }
.cover-flow { display: flex; align-items: center; gap: 10px; }
.cover-flow i { width: 30px; height: 30px; border: 1px solid rgba(56, 189, 248, 0.55); border-radius: 50%; }
.cover-flow b { flex: 1; height: 1px; background: rgba(139, 92, 246, 0.5); }
.project-cat { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.16em; color: var(--lav); }  .project-title {
    margin: 0 0 10px; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(21px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.02em;
    color: var(--text);
  }
  .project-desc { margin: 0; max-width: 580px; font-size: clamp(13.5px, 1.25vw, 14.5px); line-height: 1.65; color: var(--muted); }
  .project-status { margin: 12px 0 0; font-size: 11.5px; color: var(--lav); letter-spacing: 0.06em; }
  .project-cat { margin: 0 0 9px; font-size: 11px; letter-spacing: 0.16em; color: var(--accent-2); }
  .cover-kicker { font-size: 11px; letter-spacing: 0.18em; color: rgba(248, 250, 252, 0.55); }
  .cover-word {
    display: block; font-family: var(--font-display); font-size: clamp(26px, 3.8vw, 58px);
    line-height: 1.05; letter-spacing: -0.02em; color: #fff;
    word-spacing: 0.18em; text-align: left;
    transform-origin: left bottom; transition: transform 500ms var(--ease);
  }
  .cover-word br { display: block; content: ""; }
  .project:hover .cover-word { transform: scale(1.06); }

/* ---------- Section 06 — why AmbaTech ---------- */
#about { overflow: hidden; }
#about::after {
  content: "AMBATECH"; position: absolute; right: clamp(-10px, 2vw, 40px); top: 50%;
  transform: translateY(-50%); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-size: clamp(72px, 15vw, 210px); line-height: 1;
  letter-spacing: -0.05em; color: transparent;
  -webkit-text-stroke: 1px rgba(196, 181, 253, 0.14);
}
#about .panel-inner { position: relative; z-index: 1; }
@media (min-width: 901px) {
  #about .panel-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 72px); }
  #about .label { grid-column: 1 / -1; }
  #about .section-title { grid-column: 1; font-size: clamp(28px, 3.6vw, 46px); }
  #about .section-lede { grid-column: 2; align-self: end; margin-top: 0; color: var(--soft-white); }
  #about .section-title, #about .value-title { color: var(--text); }
  #about .value-text { color: var(--muted); }
  #about .label { color: var(--lav); }
  #about .values { grid-column: 1 / -1; }
}
.values {
  margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px);
}
.value {
  border-top: 1px solid var(--line-soft); padding-top: 18px;
  transition: border-color 300ms ease, transform 300ms var(--ease);
}
.value:hover { border-color: var(--accent); transform: translateY(-3px); }
.value-no {
  font-family: var(--font-display); font-size: 13px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value-title { margin: 14px 0 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.value-text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Section 07 — process ---------- */
.process {
  position: relative;
  margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
}
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.7), rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.08));
}
.stage {
  position: relative; padding-top: 24px; border-top: 1px solid transparent;
  transition: background 300ms ease;
}
.stage:hover { background: rgba(139, 92, 246, 0.07); }
.stage::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
  transition: transform 300ms var(--ease), background 300ms ease, box-shadow 300ms ease;
}
.stage:hover::before { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.18); }
.stage-no {
  font-family: var(--font-display); font-size: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-title {
  margin: 12px 0 8px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.01em;
}
.stage-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.stage-out { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--soft-white); }
.stage-out span {
  display: block; margin-bottom: 5px;
  font-size: 10.5px; letter-spacing: 0.16em; color: rgba(248, 250, 252, 0.62);
}

/* ---------- Section 08 — technology ---------- */
.tech-index { margin: clamp(32px, 5vh, 56px) 0 0; }
.tech-row {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px 24px; padding: 20px clamp(4px, 1vw, 14px);
  border-top: 1px solid var(--line-soft);
  transition: background 300ms ease, border-color 300ms ease;
}
.tech-row:hover { background: rgba(56, 189, 248, 0.06); border-color: var(--line); }
.tech-row:last-child { border-bottom: 1px solid var(--line-soft); }
.tech-row dt { font-size: 11px; letter-spacing: 0.18em; color: var(--accent-2); align-self: center; }
.tech-row dd {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px); line-height: 1.4; color: #fff; letter-spacing: -0.01em;
}

/* ---------- Section 09 — FAQ ---------- */
.faq { margin-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); transition: background 300ms ease; }
.faq-item[open] { background: rgba(139, 92, 246, 0.07); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-size: clamp(14px, 1.4vw, 16px); font-weight: 500; letter-spacing: 0.01em;
  color: var(--soft-white); transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--lav);
  transition: transform 250ms var(--ease), color 200ms ease;
}
.faq-item[open] summary::after { content: "\2212"; color: var(--accent-2); transform: rotate(180deg); }
.faq-item summary:hover { color: #fff; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.faq-answer p { margin: 0 0 22px; max-width: 700px; font-size: 15px; line-height: 1.7; color: var(--muted); padding: 0 clamp(4px, 1vw, 14px); }

/* ---------- Section 10 + 11 — contact ---------- */
.contact-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.05; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.contact-actions { margin-top: clamp(26px, 3.4vh, 36px); justify-content: flex-start; }.contact-details {
  margin: clamp(16px, 2vh, 22px) 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font-size: 15px; color: var(--soft-white);
}
.contact-detail-link {
  color: var(--accent-2); font-weight: 500;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.contact-detail-link:hover { color: #fff; }
.contact-detail-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
.contact-detail-sep { color: var(--muted); }
.contact-actions .link-quiet span[aria-hidden] { transform: none; }
  .contact-actions .link-quiet:hover span[aria-hidden] { transform: translateY(-3px); }
  .closing-line {
  margin: clamp(36px, 5vh, 60px) 0 0;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(196, 181, 253, 0.24);
  font-size: 12px; letter-spacing: 0.18em; color: var(--lav);
}
.form-block {
  margin-top: clamp(56px, 8vh, 96px);
  padding-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid rgba(196, 181, 253, 0.24);
  max-width: 780px; scroll-margin-top: 96px;
}
.form-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em;
}
.enquiry-form {
  margin-top: clamp(24px, 3.4vh, 36px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: #d8d8d8;
}
.field label .opt { color: var(--muted); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(8, 11, 22, 0.72); border: 1px solid rgba(196, 181, 253, 0.2);
  color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { color-scheme: dark; appearance: auto; }
.field input::placeholder, .field textarea::placeholder { color: #6f7488; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(139, 92, 246, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(16, 21, 38, 0.9);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}
.field [aria-invalid="true"] { border-color: #f0a1a1; }
.field-error { margin: 0; font-size: 13px; line-height: 1.5; color: #f0a1a1; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-submit { border: 0; cursor: pointer; font-family: var(--font-sans); }
.form-status { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--soft-white); }
.form-status.is-error { color: #f0a1a1; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(48px, 7vh, 80px) clamp(20px, 4vw, 40px) 28px;
  font-size: 13px; color: var(--muted);
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.logo-sm { width: 40px; height: 40px; }
.footer-desc { margin: 18px 0 0; max-width: 320px; font-size: 14px; line-height: 1.65; color: var(--soft-white); }
.footer-line { margin: 18px 0 0; font-size: 11px; letter-spacing: 0.16em; color: var(--lav); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-head { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.18em; color: var(--lav); }
.footer-col a { font-size: 14px; color: var(--muted); padding: 7px 0; transition: color 200ms ease; }
.footer-col a:hover { color: #fff; }
.footer-base {
  max-width: 1180px; margin: clamp(36px, 5vh, 56px) auto 0;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { justify-content: space-between; width: calc(100% - 32px); }
  .nav-pill, .cta-dark { display: none; }
  .logo { width: 48px; height: 48px; }
  .burger {
    display: flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--pill-dark); box-shadow: var(--nav-shadow);
    transition: background 200ms ease, transform 200ms var(--ease);
  }
  .burger:active { transform: scale(0.96); }
  .burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 300ms var(--ease), opacity 200ms ease, background 200ms ease; }
  .burger[aria-expanded="true"] { background: #fff; position: relative; z-index: 60; }
  .burger[aria-expanded="true"] span { background: #000; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 84px 16px 18px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; gap: 10px; }
  .headline { font-size: clamp(40px, 9.5vw, 56px); }
  .headline .line { white-space: normal; }
  .hero-lead { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .hero-lead .actions { justify-content: flex-start; }
  .actions { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lede { font-size: 15px; }
  .trust-line { flex-wrap: wrap; gap: 10px; }
  .trust-text { font-size: 11px; letter-spacing: 0.1em; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .m-val { font-size: 22px; }
  .m-label { font-size: 12px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .service-no { font-size: 30px; }
  .service-details { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cover-word { font-size: clamp(30px, 9vw, 52px); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 18px; }
  .process::before {
    left: 0; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.7), rgba(56, 189, 248, 0.25));
  }
  .stage { border-top: 0; padding-top: 0; padding-bottom: 4px; }
  .stage::before { left: -21.5px; top: 4px; }
  .stage:hover { background: transparent; }
  .tech-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .soft-cta { flex-direction: column; align-items: flex-start; }
  .enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) and (min-width: 721px) {
  .hero-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
  .hero-lead .actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .headline { font-size: clamp(38px, 10vw, 42px); letter-spacing: -0.04em; }
  .trust-text { font-size: 11px; }
  .lede { font-size: 14px; }
  .cta-light { padding: 14px 26px; font-size: 14px; }
  .contact-title { font-size: clamp(34px, 9vw, 46px); }
  .metrics { gap: 12px 16px; }
  .m-val { font-size: 20px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .site-header { width: calc(100% - 24px); }
  .mobile-menu { width: calc(100vw - 24px); padding: 14px; }
  .m-link { padding: 0 16px; }
}
@media (max-height: 700px) {
  .hero { padding-top: 76px; }
  .hero-inner { justify-content: flex-start; padding-top: 3vh; }
  .headline { margin-top: 12px; }
  .hero-lead { margin-top: 16px; }
  .trust-line { margin-top: 20px; padding-top: 14px; }
  .metrics { margin-top: 14px; gap: 10px 20px; }
  .m-label { font-size: 11px; }
}
@media (max-height: 700px) and (max-width: 720px) {
  .headline { font-size: clamp(32px, 8vw, 46px); }
}
@media (max-height: 560px) {
  .m-link { min-height: 46px; font-size: 16px; }
  .m-link::after { bottom: 7px; }
  .m-cta { min-height: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .bg-video { display: none; }
}
