/* ============================================================
   BrandBlitzed — Design System
   ============================================================ */

:root {
  /* Palette */
  --ink: #0A0A0F;
  --surface: #14101F;
  --surface-2: #1B1630;
  --violet: #7C3AED;
  --violet-strong: #8B5CF6;
  --coral: #FF3D71;
  --cyan: #22D3EE;
  --offwhite: #FAFAF9;
  --muted: #A1A1AA;
  --dim: #6B6B76;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Signature gradient */
  --grad: linear-gradient(135deg, #7C3AED 0%, #FF3D71 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.16) 0%, rgba(255, 61, 113, 0.16) 100%);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--offwhite);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--violet); color: var(--offwhite); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--offwhite);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--coral);
}

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

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  position: relative;
}
.section--tight { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.brand__bracket { color: var(--coral); font-weight: 500; }
.brand__blitz {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav__link:hover { color: var(--offwhite); }
.nav__link[aria-current="page"] {
  color: var(--offwhite);
}
.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
}

.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--offwhite);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--offwhite);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn--primary {
  background: var(--grad);
  color: var(--offwhite);
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.5);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(255, 61, 113, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid var(--hairline-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(34, 211, 238, 0.4);
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn__arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(72px, 8vw, 120px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 900px;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(45% 40% at 75% 40%, rgba(255, 61, 113, 0.28), transparent 60%),
    radial-gradient(30% 30% at 55% 70%, rgba(34, 211, 238, 0.12), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  animation: heroPulse 12s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.8; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(-1%, 1%, 0) scale(1.03); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 960px;
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero__status-text b { color: var(--offwhite); font-weight: 500; }

.hero__title {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero__title .grad-text { display: inline-block; }

.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-left: 8px;
}
.hero__meta::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--hairline-strong);
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.marquee__item::after {
  content: '/';
  color: var(--coral);
  font-family: var(--font-mono);
  font-weight: 400;
}

/* ============================================================
   Stats
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  overflow: hidden;
}
.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--offwhite);
  margin-bottom: 8px;
}
.stat__value .grad-text { display: inline-block; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Services
   ============================================================ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}
.svc-card:hover::before { opacity: 1; }

.svc-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.svc-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.svc-card__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.svc-card__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--offwhite);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-card__link::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.svc-card:hover .svc-card__link::after { transform: translateX(4px); }

/* ============================================================
   Work / Case studies
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform 0.4s var(--ease);
  display: block;
}
.work-card:hover { transform: translateY(-4px); }
.work-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__bg { transform: scale(1.04); }

.work-card__bg--a { background: linear-gradient(135deg, #2A1B4A 0%, #4C1D95 60%, #7C3AED 100%); }
.work-card__bg--b { background: linear-gradient(135deg, #3F0F2C 0%, #8B1E45 60%, #FF3D71 100%); }
.work-card__bg--c { background: linear-gradient(135deg, #0F1F2F 0%, #0E4C5C 60%, #22D3EE 100%); }

.work-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, 0.85));
}
.work-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.work-card__meta span:first-child {
  padding: 4px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.work-card__title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--offwhite);
  max-width: 90%;
}
.work-card__metric {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--offwhite);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.work-card__metric b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ============================================================
   Process (numbered — real sequence)
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.process__step {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process__step:last-child { border-right: 0; }
.process__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--coral);
  letter-spacing: 0.1em;
}
.process__step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.process__step-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonial {
  padding: clamp(40px, 5vw, 64px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.testimonial::after {
  content: '"';
  position: absolute;
  top: -40px;
  right: 40px;
  font-family: var(--font-display);
  font-size: 280px;
  color: var(--surface-2);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--offwhite);
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--offwhite);
}
.testimonial__name {
  font-weight: 500;
  color: var(--offwhite);
  font-size: 15px;
}
.testimonial__role {
  color: var(--muted);
  font-size: 13px;
}
.testimonial__nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.testimonial__dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline-strong);
  transition: background 0.2s var(--ease);
}
.testimonial__dot.active { background: var(--grad); }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  padding: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 100% at 20% 50%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(50% 100% at 80% 50%, rgba(255, 61, 113, 0.35), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(32px, 5vw, 56px);
  max-width: 720px;
}
.cta-band p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand p {
  color: var(--muted);
  font-size: 15px;
  max-width: 360px;
  margin-top: 16px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--offwhite); }

.footer__newsletter p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.footer__form {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s var(--ease);
}
.footer__form:focus-within { border-color: var(--cyan); }
.footer__form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--offwhite);
  font-size: 14px;
  outline: none;
  padding: 8px 0;
  min-width: 0;
}
.footer__form input::placeholder { color: var(--dim); }
.footer__form button {
  background: var(--grad);
  color: var(--offwhite);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
}

.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer__social a:hover { color: var(--offwhite); }

/* ============================================================
   Forms (contact)
   ============================================================ */

.form {
  display: grid;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__input,
.form__select,
.form__textarea {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--offwhite);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: var(--font-body);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface-2);
}
.form__textarea { resize: vertical; min-height: 140px; }

.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__submit {
  justify-self: start;
  margin-top: 8px;
}

.form__success {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--offwhite);
  display: none;
}
.form__success.show { display: block; }
.form__success b { color: var(--cyan); font-weight: 500; }

/* ============================================================
   Contact page layout
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-side {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}
.contact-side__item .form__label { margin-bottom: 6px; display: block; }
.contact-side__item a { color: var(--offwhite); font-size: 16px; }
.contact-side__item a:hover { color: var(--cyan); }

/* ============================================================
   Page header (for internal pages)
   ============================================================ */

.page-header {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-header__glow {
  position: absolute;
  top: -100px;
  left: -100px;
  right: -100px;
  height: 400px;
  background: radial-gradient(50% 50% at 30% 50%, rgba(124, 58, 237, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.03em;
  max-width: 900px;
}
.page-header p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

/* ============================================================
   Insights (blog)
   ============================================================ */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.post-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--grad);
  position: relative;
}
.post-card__cover--a { background: linear-gradient(135deg, #2A1B4A, #7C3AED); }
.post-card__cover--b { background: linear-gradient(135deg, #3F0F2C, #FF3D71); }
.post-card__cover--c { background: linear-gradient(135deg, #0F1F2F, #22D3EE); }
.post-card__cover--d { background: linear-gradient(135deg, #4C1D95, #FF3D71); }
.post-card__cover--e { background: linear-gradient(135deg, #14101F, #7C3AED); }
.post-card__cover--f { background: linear-gradient(135deg, #0E4C5C, #4C1D95); }

.post-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-card__cat { color: var(--coral); }
.post-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--offwhite);
}
.post-card__excerpt { color: var(--muted); font-size: 14px; flex: 1; }

/* ============================================================
   Team
   ============================================================ */

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-card__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background: var(--grad);
  position: relative;
  overflow: hidden;
}
.team-card__photo--a { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
.team-card__photo--b { background: linear-gradient(135deg, #7C3AED, #FF3D71); }
.team-card__photo--c { background: linear-gradient(135deg, #FF3D71, #F59E0B); }
.team-card__photo--d { background: linear-gradient(135deg, #22D3EE, #7C3AED); }
.team-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
}
.team-card__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.team-card__role { color: var(--muted); font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ============================================================
   Values (about page)
   ============================================================ */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.value__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.value__desc { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ============================================================
   Legal pages
   ============================================================ */

.prose {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.prose h2 {
  font-size: 24px;
  color: var(--offwhite);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .svc-grid, .work-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stat:nth-child(2) { border-right: 1px solid var(--hairline); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat:nth-child(3) { border-right: 1px solid var(--hairline); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step:nth-child(2n) { border-right: 0; }
  .process__step { border-bottom: 1px solid var(--hairline); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links.open { display: flex; }
  .nav__link { padding: 12px 14px; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .svc-grid, .work-grid, .posts, .team, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--hairline); }
  .stat:last-child { border-bottom: 0; }
  .process { grid-template-columns: 1fr; }
  .process__step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .process__step:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

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