:root {
  --bg: #07080c;
  --bg-2: #0c0e16;
  --bg-3: #12151f;
  --ink: #f4f1ea;
  --muted: #9aa0b5;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #00e5ff;
  --blue: #3b6cff;
  --purple: #8b5cf6;
  --grad: linear-gradient(115deg, #00e5ff 0%, #3b6cff 48%, #8b5cf6 100%);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header: 84px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only, .skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor, .cursor-dot {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-100px, -100px);
  }
  .cursor {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1px solid rgba(0, 229, 255, 0.55);
    transition: width .2s, height .2s, margin .2s, background .2s;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--cyan);
  }
  body.cursor-grow .cursor {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(0, 229, 255, 0.08);
  }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.wide { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  backdrop-filter: blur(22px);
  background: rgba(7, 8, 12, 0.62);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 12, 0.9);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: auto; display: none; }
.brand-word { width: 158px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
}
.nav-item { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  padding: 22px;
  background: rgba(14, 16, 26, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega a { padding: 12px 14px; border-radius: 12px; }
.mega a:hover { background: rgba(255,255,255,0.04); }
.mega strong { display: block; font-size: 14px; }
.mega span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.header-cta { margin-left: 8px; }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: #fff;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.mobile-nav {
  display: none;
  padding: 16px 24px 28px;
  background: #0a0c14;
  border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  color: #061018;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(59, 108, 255, 0.28);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59, 108, 255, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: none;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  place-items: end start;
  overflow: hidden;
}
.hero-media, .hero-media img, .hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero canvas { z-index: 1; mix-blend-mode: screen; opacity: 0.55; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7,8,12,0.15) 0%, rgba(7,8,12,0.35) 40%, rgba(7,8,12,0.92) 100%),
    radial-gradient(circle at 80% 10%, rgba(139,92,246,0.22), transparent 40%);
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 9vh;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}
h1, h2, h3, .display {
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  overflow: visible;
  font-synthesis: none;
}
h1, .display { font-size: clamp(40px, 7vw, 84px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 650; }
h3 { font-size: 22px; font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 22px); color: #d5d8e6; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card, .service-card, .work-card, .insight-card, .stat, .loc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transform-style: preserve-3d;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover, .service-card:hover, .work-card:hover {
  border-color: rgba(0,229,255,0.28);
}
.service-card h3 { margin-top: 14px; }
.service-card p { color: var(--muted); margin: 0; }
.icon-orb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #061018;
  font-family: Outfit, sans-serif;
  font-weight: 800;
}

.media-frame {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 360px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s ease;
}
.media-frame:hover img { transform: scale(1.1); }
.media-frame.tall { min-height: 520px; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 14px; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process article { min-height: 220px; }
.process .num {
  font-family: Outfit, sans-serif;
  font-size: 28px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.work-card { padding: 0; overflow: hidden; }
.work-card img { width: 100%; height: 280px; object-fit: cover; }
.work-card .meta { padding: 20px 22px 24px; }
.work-card small { color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button.is-on { color: #061018; background: var(--grad); border-color: transparent; }

.page-hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,229,255,0.12), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(139,92,246,0.16), transparent 30%);
}
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }

.prose { max-width: 760px; }
.prose p, .prose li { color: #c9cde0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.rich-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

.cta-band {
  margin: 40px 0 0;
  padding: 64px 48px;
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(0,229,255,0.12), rgba(139,92,246,0.16)),
    #10131c;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: #0b0d14;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(0,229,255,0.5); }
textarea { min-height: 140px; resize: vertical; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.is-ok { color: #7dffe2; }
.form-status.is-err { color: #ff8b8b; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  font-family: Outfit, sans-serif;
  font-size: 20px;
  cursor: pointer;
}
.faq-item div { display: none; padding: 0 0 20px; color: var(--muted); }
.faq-item.is-open div { display: block; }

.site-footer {
  position: relative;
  padding: 80px 0 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: -180px;
  background: radial-gradient(circle, rgba(59,108,255,0.18), transparent 65%);
}
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; position: relative; }
.footer-tag { font-family: Outfit, sans-serif; font-size: 20px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

.legal { max-width: 820px; }
.legal h2 { font-size: 28px; margin-top: 36px; }
.legal p, .legal li { color: #c4c8db; }

.insight-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.insight-card time { color: var(--cyan); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle, .mobile-nav { display: block; }
  .grid-3, .grid-4, .stats, .process, .footer-top { grid-template-columns: 1fr 1fr; }
  .rich-cols, .form-row, .cta-band { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .brand-word { display: none; }
  .brand-mark { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .stats, .process, .footer-top, .grid-2 { grid-template-columns: 1fr; }
  .hero-copy { margin-bottom: 48px; }
  .section { padding: 72px 0; }
  .footer-bottom { flex-direction: column; }
  h1, .display { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
