:root {
  --bg: #050407;
  --surface: #111016;
  --surface-2: #17151f;
  --fg: #f7f6fa;
  --muted: #aaa4b5;
  --border: #302d3b;
  --accent: #db3eb1;
  --accent-secondary: #4186e6;
  --danger: #ff6b7a;
  --success: #68e0aa;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 16px 0;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(5, 4, 7, .84);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}
.nav-inner, .brand-lockup, .nav-links, .hero-actions, .hero-values, .modal-actions, .footer-bottom {
  display: flex;
  align-items: center;
}
.nav-inner { justify-content: space-between; gap: 20px; }
.brand-lockup { gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-lockup img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-lockup span { font-size: 21px; line-height: 1; }
.dot { color: var(--accent); }
.nav-links { gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(247, 246, 250, .74);
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links .nav-cta { color: #fff; }

.button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); }
.button-primary, .nav-cta {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
  color: #fff;
}
.button-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--fg);
}
.button-secondary:hover { border-color: rgba(247, 246, 250, .45); }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 132px 0 88px;
}
#threeCanvas, .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-shade {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(219, 62, 177, .16), transparent 34%),
    linear-gradient(180deg, rgba(5, 4, 7, .08), var(--bg) 95%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.wordmark-text {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: var(--fg);
  font-weight: 800;
  line-height: .82;
  letter-spacing: 0;
  white-space: nowrap;
}
.wordmark-dot { color: var(--accent); }
.hero-wordmark {
  margin: 0 auto 28px;
  font-size: clamp(62px, 11vw, 138px);
  filter: drop-shadow(0 0 44px rgba(219, 62, 177, .22));
}
.about-wordmark {
  font-size: clamp(50px, 7vw, 104px);
  filter: drop-shadow(0 0 36px rgba(65, 134, 230, .18));
}
.wordmark-panel {
  min-height: clamp(260px, 34vw, 430px);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(219, 62, 177, .15), transparent 35%),
    linear-gradient(135deg, rgba(65, 134, 230, .08), rgba(219, 62, 177, .06));
  box-shadow: var(--shadow);
}
.hero-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 300;
  letter-spacing: .04em;
}
.hero-title {
  max-width: 920px;
  margin: 0 auto 20px;
  font-size: clamp(40px, 7.2vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}
.hero-actions { justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-values {
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-values span { display: inline-flex; align-items: center; gap: 8px; }
.hero-values span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); }

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-surface { background: var(--surface); }
.split-grid, .contact-layout, .process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.section-heading { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.2; }
.section-copy p, .section-heading p {
  color: var(--muted);
  font-size: 16px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card, .process-step, .contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.service-card {
  min-height: 236px;
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(219, 62, 177, .75); }
.service-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card p, .process-step p { color: var(--muted); margin-bottom: 0; font-size: 14px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)),
    var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(65, 134, 230, .8);
  outline: none;
}
.project-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .38);
}
.project-card span, .modal-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-card h3 { margin-bottom: 0; font-size: 24px; }
.project-card small { color: var(--muted); font-size: 13px; font-weight: 600; }

.process-layout { grid-template-columns: .8fr 1fr; align-items: start; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.process-step { padding: 24px; background: var(--bg); }
.process-step span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-secondary);
  font-weight: 800;
}

.contact-layout { align-items: start; }
.contact-card { padding: clamp(24px, 4vw, 42px); background: var(--surface); }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.form-row input, .form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  padding: 14px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row textarea { min-height: 132px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(219, 62, 177, .16);
}
.form-row.is-invalid input, .form-row.is-invalid textarea { border-color: var(--danger); }
.form-error {
  min-height: 22px;
  margin: -2px 0 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}
.form-submit { width: 100%; border: 0; }
.form-success {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(104, 224, 170, .34);
  background: rgba(104, 224, 170, .08);
}
.form-success h3 { color: var(--success); margin-bottom: 4px; }
.form-success p { color: var(--muted); margin-bottom: 0; }
.contact-card.sent .form-success { display: block; }

.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 36px;
}
.footer-brand { margin-bottom: 16px; justify-content: flex-start; }
.site-footer p { color: var(--muted); max-width: 420px; margin-bottom: 0; }
.site-footer h2 {
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer a:not(.brand-lockup) {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--muted);
}
.site-footer a:hover { color: var(--fg); }
.footer-bottom {
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2001;
  width: min(560px, calc(100% - 32px));
  max-height: min(720px, calc(100svh - 32px));
  overflow: auto;
  transform: translate(-50%, -46%) scale(.96);
  opacity: 0;
  pointer-events: none;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease;
}
.modal-card.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 22px;
}
.modal-card h2 { font-size: 32px; margin: 10px 0 12px; }
.modal-card p { color: var(--muted); }
.modal-actions { gap: 12px; flex-wrap: wrap; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .contact-layout, .process-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(5, 4, 7, .96);
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 42px; display: flex; align-items: center; }
  .hero { padding-top: 112px; }
  .hero-title { font-size: clamp(38px, 13vw, 56px); }
  .services-grid, .projects-grid, .process-steps, .footer-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 224px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-lockup span { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-values { gap: 16px; }
  .contact-card { padding: 22px; }
}
