:root {
  --black: #ffffff;
  --dark: #f8f8fa;
  --dark-2: #f2f2f5;
  --dark-3: #eaeaef;
  --dark-4: #e2e2e8;
  --gray-1: #d0d0d8;
  --gray-2: #9898a4;
  --gray-3: #6b6b78;
  --gray-4: #4a4a58;
  --gray-5: #2a2a35;
  --white: #111118;
  --pure-white: #ffffff;
  --blue: #3B5BF6;
  --blue-light: #2A45CC;
  --blue-dark: #1a35b0;
  --blue-glow: rgba(59, 91, 246, 0.08);
  --blue-glow-strong: rgba(59, 91, 246, 0.15);
  --gradient-blue: linear-gradient(135deg, #3B5BF6, #5B7BFF);
  --gradient-dark: linear-gradient(180deg, #ffffff, #f8f8fa);
  --gradient-radial: radial-gradient(ellipse at 50% 0%, rgba(59,91,246,0.06) 0%, transparent 60%);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--gray-4);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: var(--pure-white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h-display {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.h-large {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
}

.h-medium {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.h-small {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue);
}

.text-body { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7; color: var(--gray-3); }
.text-large { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--gray-4); }
.text-small { font-size: 0.875rem; line-height: 1.6; color: var(--gray-3); }
.text-mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--blue);
  color: var(--pure-white);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,91,246,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-1);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 10px 0;
  color: var(--blue);
  font-weight: 500;
}
.btn-ghost:hover { gap: 16px; }
.btn-ghost .arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease-out-expo);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: rgba(0,0,0,0.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-3);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--blue) !important;
  color: var(--pure-white) !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.3s var(--ease-out-expo) !important;
}
.nav-cta:hover {
  background: var(--blue-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,91,246,0.3);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gray-4);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue); }

/* ── Sections ── */
section { padding: var(--section-pad) 0; position: relative; }

.section-dark { background: var(--black); }
.section-darker { background: var(--dark); }
.section-darkest { background: var(--dark-2); }
.section-gradient { background: var(--gradient-radial), var(--black); }

.section-shimmer {
  position: relative;
  overflow: hidden;
}
.section-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59,91,246,0.03) 25%,
    rgba(59,91,246,0.06) 50%,
    rgba(59,91,246,0.03) 75%,
    transparent 100%
  );
  animation: shimmer-sweep 8s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes shimmer-sweep {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,91,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: aurora-drift 12s var(--ease-in-out) infinite, aurora-fade 12s var(--ease-in-out) infinite;
}
.aurora-blob:nth-child(1) {
  width: 500px;
  height: 400px;
  background: rgba(59,91,246,0.07);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}
.aurora-blob:nth-child(2) {
  width: 400px;
  height: 350px;
  background: rgba(59,91,246,0.05);
  top: 20%;
  left: -10%;
  animation-delay: -4s;
}
.aurora-blob:nth-child(3) {
  width: 350px;
  height: 300px;
  background: rgba(91,123,255,0.06);
  bottom: 10%;
  right: 10%;
  animation-delay: -8s;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes aurora-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: rgba(59,91,246,0.06);
  border: 1px solid rgba(59,91,246,0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero h1 {
  margin-bottom: 28px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero .text-large {
  max-width: 560px;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray-3);
  margin-top: 4px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.service-card {
  background: var(--dark-2);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
}
.service-card:hover {
  border-color: rgba(59,91,246,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card.card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(59,91,246,0.04) 0%, var(--dark-2) 100%);
  border-color: rgba(59,91,246,0.1);
}
.service-card.card-featured .service-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-blue);
  color: var(--pure-white);
}

.service-card.card-accent {
  background: var(--blue);
  color: var(--pure-white);
  border-color: transparent;
}
.service-card.card-accent h3 { color: var(--pure-white); }
.service-card.card-accent p { color: rgba(255,255,255,0.8); }
.service-card.card-accent .btn-ghost { color: var(--pure-white); }
.service-card.card-accent .service-icon {
  background: rgba(255,255,255,0.15);
  color: var(--pure-white);
}
.service-card.card-accent:hover {
  background: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,91,246,0.3);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::after { opacity: 1; }
.service-card.card-accent::after { display: none; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card .btn-ghost { font-size: 0.85rem; }

/* ── Process / How we work ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  position: relative;
}

.process-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--dark-3);
  z-index: 0;
}
.process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s var(--ease-out-expo);
  box-shadow: 0 0 12px rgba(59,91,246,0.4);
}
.process-line.animate::after {
  transform: scaleX(1);
}

.process-step {
  position: relative;
  padding-top: 72px;
  z-index: 1;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--dark-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-3);
  font-weight: 600;
  transition: all 0.5s var(--ease-out-expo);
  z-index: 2;
}
.process-step.step-active::before {
  background: var(--blue);
  color: var(--pure-white);
  box-shadow: 0 0 20px rgba(59,91,246,0.4);
  transform: translateX(-50%) scale(1.15);
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--gray-3);
  line-height: 1.6;
  text-align: center;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: auto;
  gap: 24px;
}
.portfolio-grid .portfolio-item:nth-child(even) {
  margin-top: 48px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-2);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: all 0.4s var(--ease-out-expo);
}

.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #f5f5f5;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: #cccccc;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
}
.portfolio-item:hover .portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item.featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 36px;
  transition: all 0.4s var(--ease-out-expo);
}
.testimonial-card:hover {
  border-color: rgba(59,91,246,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #FFB800;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-4);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-weight: 600;
  font-size: 0.85rem;
}
.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-3);
}

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59,91,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 20px; }
.cta-section p { max-width: 500px; margin: 0 auto 40px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--gray-1);
  white-space: nowrap;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: '✦';
  color: var(--blue);
  font-size: 0.6em;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-3);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-3);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  color: var(--gray-2);
}

.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--dark-3);
  color: var(--gray-3);
  transition: all 0.3s;
  font-size: 0.9rem;
}
.footer-socials a:hover {
  background: var(--blue);
  color: var(--pure-white);
}

/* ── Numbers / Counters ── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item .number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.number-item .number-label {
  font-size: 0.85rem;
  color: var(--gray-3);
  margin-top: 8px;
}

/* ── Blog cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--dark-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s var(--ease-out-expo);
}
.blog-card:hover {
  border-color: rgba(59,91,246,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Samma format som bildfilerna (1200x632) så inget beskärs bort. */
.blog-card-img {
  aspect-ratio: 1200 / 632;
  background: var(--dark-3);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 28px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--gray-3);
  margin-bottom: 12px;
}
.blog-card-tag {
  background: var(--blue-glow);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--gray-3);
  line-height: 1.6;
}

/* ── 3D Card tilt effect ── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease-out;
}

/* ── Animated gradient border ── */
.gradient-border {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), transparent 40%, transparent 60%, var(--blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.gradient-border:hover::before { opacity: 1; }

/* ── Tech stack pills ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tech-pill {
  padding: 4px 12px;
  background: rgba(59,91,246,0.06);
  border: 1px solid rgba(59,91,246,0.1);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-4);
}

/* ── Page header ── */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .hero-glow { top: -30%; }
.page-header h1 { margin-bottom: 16px; }
.page-header .text-large { max-width: 600px; margin: 0 auto; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-4);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark-2);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-textarea { resize: vertical; min-height: 140px; }

.form-status {
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  min-height: 1.4em;
}
.form-status.is-ok { color: #15803d; }
.form-status.is-error { color: #b91c1c; }
.form-status a { color: inherit; text-decoration: underline; }

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark-2);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

/* ── Pricing cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--dark-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s var(--ease-out-expo);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: rgba(59,91,246,0.3);
  background: linear-gradient(180deg, rgba(59,91,246,0.06) 0%, var(--dark-2) 100%);
  position: relative;
}
.pricing-card.popular::before {
  content: 'Populärast';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-blue);
  color: var(--pure-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-3);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-3);
  margin-bottom: 32px;
  line-height: 1.5;
}

.pricing-features { margin-bottom: 32px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--gray-4);
}
.pricing-feature .check { color: var(--blue); font-size: 1rem; }

.pricing-card .btn { width: 100%; justify-content: center; }

/* ── About page ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--gray-3);
  line-height: 1.6;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.card-featured { grid-column: span 2; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .process-line { display: none; }
  .process-step::before { left: 0; transform: none; }
  .process-step { padding-top: 48px; }
  .process-step h4, .process-step p { text-align: left; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .h-display { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.card-featured { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid .portfolio-item:nth-child(even) { margin-top: 0; }
  .portfolio-item.featured { grid-column: span 1; aspect-ratio: 16/10; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }

  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════
   Precision layer — dark inversion sections
   ══════════════════════════════════════════════════ */

:root {
  --ink: #0A0A11;
  --ink-2: #10101A;
  --ink-line: rgba(255, 255, 255, 0.09);
  --ink-line-soft: rgba(255, 255, 255, 0.05);
  --ink-text: #EDEDF4;
  --ink-dim: #8B8B9E;
  --blue-neon: #4C6BFF;
  --chamfer: 12px;
}

.section-ink {
  background: var(--ink);
  color: var(--ink-dim);
  position: relative;
  overflow: hidden;
}
.section-ink h1,
.section-ink h2,
.section-ink h3,
.section-ink h4 { color: var(--ink-text); }
.section-ink .text-large,
.section-ink .text-body { color: var(--ink-dim); }
.section-ink .eyebrow { color: var(--blue-neon); }
.section-ink .eyebrow::before { background: var(--blue-neon); }

/* Hairline geometry drifting behind dark sections */
.ink-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 72%);
}

.ink-beam {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(76, 107, 255, 0.30) 0%, transparent 70%);
}

/* Angular outline shards, echoing the mark's diagonals.
   Faded out low so they never cut across the copy or CTAs. */
.ink-shard {
  position: absolute;
  pointer-events: none;
  border-left: 1px solid var(--ink-line);
  border-right: 1px solid var(--ink-line);
  transform: skewX(-18deg);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 42%, transparent 68%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 42%, transparent 68%);
}

/* ── Chamfered corners ── */
.chamfer {
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}
.chamfer-sm { --chamfer: 7px; }

/* ── Monospace utility labels ── */
.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.section-ink .mono-label { color: var(--ink-dim); }
.mono-label .tick { color: var(--blue); }
.section-ink .mono-label .tick { color: var(--blue-neon); }

/* ── Buttons on ink ── */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--blue-neon);
  color: #06060C;
  transition: background 0.3s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.btn-ink:hover {
  background: #6B85FF;
  box-shadow: 0 0 44px rgba(76, 107, 255, 0.45);
}

.btn-ink-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  transition: all 0.3s var(--ease-out-expo);
}
.btn-ink-ghost:hover {
  border-color: rgba(76, 107, 255, 0.5);
  color: var(--blue-neon);
  background: rgba(76, 107, 255, 0.07);
}

/* ── Nav floating over an ink hero, flipping on scroll ── */
.nav-logo .mark-light { display: none; }

.mobile-menu { background: var(--ink); }
.mobile-menu a { color: var(--ink-text); }
.mobile-menu a:hover { color: var(--blue-neon); }

.nav.over-ink:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.nav.over-ink:not(.scrolled) .nav-logo { color: var(--ink-text); }
.nav.over-ink:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.62); }
.nav.over-ink:not(.scrolled) .nav-links a:hover,
.nav.over-ink:not(.scrolled) .nav-links a.active { color: #fff; }
.nav.over-ink:not(.scrolled) .nav-toggle span { background: rgba(255, 255, 255, 0.85); }
.nav.over-ink:not(.scrolled) .nav-logo .mark-light { display: block; }
.nav.over-ink:not(.scrolled) .nav-logo .mark-dark { display: none; }

/* ══════════ Hero — the pinned centrepiece ══════════ */
.hero-ink {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero-ink .ink-beam.b1 {
  width: 640px; height: 520px;
  top: -14%; left: 50%;
  transform: translateX(-50%);
}
.hero-ink .ink-beam.b2 {
  width: 420px; height: 420px;
  bottom: -12%; right: 4%;
  background: radial-gradient(circle, rgba(76, 107, 255, 0.18) 0%, transparent 70%);
}

.hero-ink .ink-shard.s1 { top: -10%; left: 12%; width: 210px; height: 130%; }
.hero-ink .ink-shard.s2 { top: -10%; right: 14%; width: 300px; height: 130%; }

/* Oversized ghost wordmark behind the mark */
.hero-wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 19vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

.hero-mark {
  position: relative;
  z-index: 2;
  width: clamp(150px, 22vw, 300px);
  margin: 0 auto;
  filter: drop-shadow(0 0 70px rgba(76, 107, 255, 0.55));
  will-change: transform;
}

.hero-ink-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding-top: 20px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 30px;
  background: rgba(76, 107, 255, 0.09);
  border: 1px solid rgba(76, 107, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-neon);
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.15s both;
}
.hero-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-neon);
  animation: pulse-dot 2.4s ease infinite;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 24vw, 290px);
  margin-bottom: 30px;
  perspective: 1200px;
}

.hero-ink h1 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink-text);
  max-width: 17ch;
  margin: 0 auto 22px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.3s both;
}
.hero-ink h1 em {
  font-style: normal;
  color: var(--blue-neon);
}

.hero-ink-sub {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0 auto 34px;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.4s both;
}

.hero-ink-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.5s both;
}

/* ══════════ Subpage ink header ══════════ */
/* Bottom padding is sized to clear the watermark below, so the whole
   word reads instead of being sliced by the section edge. */
.page-ink {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: calc(var(--nav-height) + 88px) 0 clamp(130px, 15vw, 215px);
  text-align: center;
}
.page-ink .ink-beam.p1 {
  width: 620px; height: 400px;
  top: -34%; left: 50%;
  transform: translateX(-50%);
}
.page-ink .ink-shard.p2 { top: -20%; right: 16%; width: 260px; height: 150%; }

/* Sits low so it reads as a watermark under the copy rather than behind it. */
.page-ink-word {
  position: absolute;
  left: 50%;
  bottom: 0.06em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 14vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-ink-inner { position: relative; z-index: 2; }
.page-ink h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink-text);
  max-width: 20ch;
  margin: 14px auto 18px;
}
.page-ink p {
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}

/* ══════════ Numbered capability index ══════════ */
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.index-rows {
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.index-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.05fr) minmax(0, 1.35fr) 44px;
  align-items: center;
  gap: 28px;
  padding: 30px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  position: relative;
  transition: opacity 0.55s var(--ease-out-expo),
              background 0.45s var(--ease-out-expo);
  opacity: 0.34;
}
.index-row.lit,
.index-row:hover {
  opacity: 1;
  background: linear-gradient(90deg, rgba(59, 91, 246, 0.05), transparent 62%);
}

/* The lit row nudges right. Transform, not padding — this runs on every
   scroll frame and animating padding would relayout the whole list.
   .index-num already transitions `all`, so it is not listed here. */
.index-title,
.index-desc { transition: transform 0.45s var(--ease-out-expo); }

.index-row.lit .index-num,
.index-row.lit .index-title,
.index-row.lit .index-desc,
.index-row:hover .index-num,
.index-row:hover .index-title,
.index-row:hover .index-desc { transform: translateX(12px); }

.index-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--ease-out-expo);
}
.index-row.lit::before,
.index-row:hover::before { transform: scaleY(1); }

.index-row:hover .index-num { background: var(--blue); color: var(--pure-white); }
.index-row:hover .index-go { color: var(--blue); transform: translateX(5px); }

.index-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  padding: 7px 11px;
  background: var(--dark-2);
  justify-self: start;
  transition: all 0.45s var(--ease-out-expo);
}
.index-row.lit .index-num {
  background: var(--blue);
  color: var(--pure-white);
}

.index-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.index-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-3);
}

.index-go {
  justify-self: end;
  color: var(--gray-1);
  font-size: 1.05rem;
  transition: all 0.4s var(--ease-out-expo);
}
.index-row.lit .index-go { color: var(--blue); transform: translateX(5px); }

/* ══════════ Founders ══════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desaturated so two photos shot in different places still read as a set.
   --zoom and --origin let each portrait be framed to a matching crop, since
   the source photos are shot at different distances. */
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center 20%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--origin, center);
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  transition: filter 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.team-card:hover .team-photo img {
  filter: grayscale(0.2) contrast(1.02) brightness(1);
  transform: scale(calc(var(--zoom, 1) * 1.04));
}

.team-fallback {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.12);
}

.team-card h3 {
  font-size: 1.35rem;
  color: var(--ink-text);
  margin: 10px 0 12px;
}
.team-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ══════════ Real imagery layered over the text placeholders ══════════ */
.case-visual,
.blog-featured-img,
.blog-card-img,
.service-detail-visual,
.portfolio-item { position: relative; }

.case-visual > img,
.blog-featured-img > img,
.blog-card-img > img,
.service-detail-visual > img,
.portfolio-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center);
  z-index: 1;
}

/* ══════════ Portfolio on ink ══════════ */
.case-ink {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
}
.case-ink > :nth-child(even) { margin-top: 56px; }

.case-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  transition: border-color 0.45s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}
.case-tile:hover {
  border-color: rgba(76, 107, 255, 0.4);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(76,107,255,0.12);
  transform: translateY(-5px);
}

.case-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(76, 107, 255, 0.16) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}
.case-tile:hover::before { opacity: 1; }

/* Skärmdumpen ligger bakom texten, mörknad nedåt så brödtexten håller kontrast. */
.case-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.62;
  filter: saturate(0.9);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 17, 0.10) 0%,
    rgba(10, 10, 17, 0.34) 45%,
    rgba(10, 10, 17, 0.72) 78%,
    rgba(10, 10, 17, 0.90) 100%
  );
}
.case-tile:hover .case-media img {
  opacity: 0.68;
  transform: scale(1.04);
}

/* Spöktexten är reserv och visas bara om skärmdumpen inte laddar. */
.case-ghost { display: none; }
.case-tile.no-media .case-ghost { display: block; }

.case-ghost {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  transition: color 0.5s var(--ease-out-expo);
}
.case-tile:hover .case-ghost { color: rgba(76, 107, 255, 0.14); }

.case-body { position: relative; z-index: 2; }

/* Följer textblocket, inte brickan, så kontrasten håller oavsett höjd. */
.case-body::before {
  content: '';
  position: absolute;
  left: -34px;
  right: -34px;
  bottom: -34px;
  top: -28px;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 17, 0.94) 42%);
  pointer-events: none;
}
.case-body h3 {
  font-size: 1.35rem;
  margin: 12px 0 8px;
  color: var(--ink-text);
}
.case-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 42ch;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.case-chip {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--ink-line);
}

/* ══════════ CTA on ink ══════════ */
.cta-ink { text-align: center; }
.cta-ink .ink-beam.c1 {
  width: 700px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-ink h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.cta-ink p {
  max-width: 46ch;
  margin: 0 auto 42px;
  color: var(--ink-dim);
}
.cta-ink-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Marquee restyled to instrument tape ── */
.marquee-wrap.tape {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 22px 0;
}
.marquee-wrap.tape .marquee-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  gap: 52px;
}
.marquee-wrap.tape .marquee-track { gap: 52px; }
.marquee-wrap.tape .marquee-item::after {
  content: '/';
  color: var(--blue-neon);
  font-size: 1em;
}

/* ── Process nodes, squared off to match the chamfers ── */
.process-step::before { border-radius: 0; }

/* ══════════ Responsive ══════════ */
@media (max-width: 1024px) {
  .case-ink { grid-template-columns: 1fr; }
  .case-ink > :nth-child(even) { margin-top: 0; }
  .index-row {
    grid-template-columns: 62px minmax(0, 1fr) 32px;
    grid-template-areas:
      'num title go'
      '.   desc  .';
    gap: 10px 20px;
    row-gap: 8px;
  }
  .index-num  { grid-area: num; }
  .index-title{ grid-area: title; }
  .index-desc { grid-area: desc; }
  .index-go   { grid-area: go; }
}

@media (max-width: 768px) {
  .hero-wordmark { font-size: clamp(3.4rem, 23vw, 7rem); }
  .hero-stage { min-height: 220px; margin-bottom: 42px; }
  .hero-status { margin-bottom: 38px; }
  .hero-ink-actions { flex-direction: column; align-items: stretch; }
  .btn-ink, .btn-ink-ghost { justify-content: center; }
  .index-head { margin-bottom: 44px; }
  .index-row { padding: 24px 6px; }
  /* Let the tile grow to its copy instead of clipping it, and drop the
     ghost wordmark — at this width it collides with the body text. */
  .case-tile { padding: 26px; aspect-ratio: auto; min-height: 280px; }
  .case-ghost { display: none; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; max-width: 380px; }
}

/* Motion is loud here — let it be switched off. */
@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  .hero-wordmark { transform: none !important; }
  .ink-beam { animation: none !important; }
  .marquee-track { animation: none; }
  .section-shimmer::before { animation: none; }
  .aurora-blob { animation: none; opacity: 0.5; }
  .index-row { opacity: 1; }
}
