/* ============================================================
   DARK INK — Design System
   ============================================================ */

:root {
  /* Colors */
  --bg:           #0a0a0a;
  --bg-alt:       #0f0f0f;
  --surface:      #141414;
  --surface-2:    #1a1a1a;
  --border:       rgba(245, 245, 245, 0.07);
  --border-hover: rgba(245, 245, 245, 0.14);

  --text-primary:   #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted:     #8a8a8a; /* ~5:1 on the dark surfaces — was #555 (2.6:1, failed WCAG AA) */

  --accent:         #c41e3a;
  --accent-text:    #e8475f; /* lighter red for SMALL text only — passes AA (~4.5:1) on dark surfaces; fills/borders keep --accent */
  --accent-dim:     rgba(196, 30, 58, 0.15);
  --accent-glow:    rgba(196, 30, 58, 0.35);

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container:   1240px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.65s;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden; /* iOS doesn't reliably contain horizontal overflow on <body> alone */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul { list-style: none; }

/* ============================================================
   Particle Network Canvas
   ============================================================ */

#particle-canvas {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Noise Grain Overlay
   ============================================================ */

.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' type='fractalNoise' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-header p {
  margin-top: 1.25rem;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: #a01830;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
}

.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent-text);
}

.btn--outline:hover {
  background-color: var(--accent-dim);
  transform: translateY(-1px);
}

/* ============================================================
   Scroll Animations
   ============================================================ */

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.animate--visible {
  opacity: 1;
  transform: translateY(0);
}

.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }
.animate--delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 0;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav__logo span {
  color: var(--accent-text);
}

.nav__logo:hover {
  color: var(--accent-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 450;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--text-primary);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  padding-top: 68px;
  overflow: hidden;
}

/* ── Scrolling marquee strip ── */
.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 3%, black 97%, transparent 100%);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}

.hero__marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 44s linear infinite;
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 2.5rem;
  flex-shrink: 0;
}

.hero__marquee-track span {
  color: var(--accent-text);
  margin: 0 1.5rem;
  font-size: 1em;
  line-height: 1;
  opacity: 0.8;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(245,245,245,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Crimson glow orb */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* Radial glow sitting behind the hero title */
.hero__inner::before {
  content: '';
  position: absolute;
  width: 680px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 30, 30, 0.22) 0%, transparent 68%);
  top: 10%;
  left: -6%;
  pointer-events: none;
  z-index: -1;
}

.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 16vw, 14rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards,
             title-glow 2.5s ease-out 1.4s forwards;
  margin-bottom: 2rem;
}

@keyframes title-glow {
  from { text-shadow: 0 0 0 rgba(196, 30, 58, 0); }
  to   { text-shadow: 0 0 80px rgba(196, 30, 58, 0.22), 0 0 160px rgba(196, 30, 58, 0.08); }
}

.hero__title em {
  font-style: normal;
  color: var(--accent-text);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
  margin-bottom: 3rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}


@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}


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

.services {
  padding: var(--section-pad) 0;
  background: rgba(15, 15, 15, 0.68);
  border-top: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: rgba(10, 10, 10, 0.84);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  background: rgba(20, 20, 20, 0.9);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-text);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, gap 0.2s;
  margin-top: auto;
}

.service-card:hover .service-card__link {
  color: var(--accent-text);
  gap: 0.75rem;
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* ============================================================
   Results Band
   ============================================================ */

.results {
  padding: var(--section-pad) 0;
  background: rgba(10, 10, 10, 0.62);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Subtle crimson glow top-left */
.results::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.07) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}

.results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.results__context {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.6;
  font-style: italic;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.results__stat {
  background: rgba(10, 10, 10, 0.84);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.3s;
}

.results__stat:hover {
  background: rgba(20, 20, 20, 0.9);
}

.results__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.results__unit {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.results__label {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.results__footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .results__grid {
    grid-template-columns: 1fr;
  }

  .results__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Automation Consulting
   ============================================================ */

.automation {
  padding: var(--section-pad) 0;
  background: rgba(10, 10, 10, 0.62);
  position: relative;
  overflow: hidden; /* clip the decorative ink blobs so they can't widen the page */
}

/* Morphing ink blobs */
.automation::before {
  content: '';
  position: absolute;
  width: 780px;
  height: 780px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.03) 50%, transparent 70%);
  top: -15%;
  left: -8%;
  pointer-events: none;
  animation: ink-morph-a 22s ease-in-out infinite;
}

.automation::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 40% 60% 65% 35% / 45% 55% 45% 55%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.07) 0%, rgba(196, 30, 58, 0.02) 50%, transparent 70%);
  bottom: -8%;
  right: 3%;
  pointer-events: none;
  animation: ink-morph-b 28s ease-in-out infinite;
}

.automation__ink {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 55% 45% 40% 60% / 50% 65% 35% 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.055) 0%, transparent 65%);
  top: 38%;
  left: 52%;
  pointer-events: none;
  animation: ink-morph-c 32s ease-in-out infinite;
}

@keyframes ink-morph-a {
  0%,  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0,    0  ) rotate(0deg);  }
  25%        { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(40px, 25px) rotate(6deg);  }
  50%        { border-radius: 50% 60% 30% 40% / 40% 70% 60% 30%; transform: translate(-25px,50px) rotate(-4deg); }
  75%        { border-radius: 40% 30% 60% 70% / 70% 40% 50% 60%; transform: translate(15px,-30px) rotate(10deg); }
}

@keyframes ink-morph-b {
  0%,  100% { border-radius: 40% 60% 65% 35% / 45% 55% 45% 55%; transform: translate(0,    0  ); }
  33%        { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: translate(-50px,35px); }
  66%        { border-radius: 30% 55% 30% 70% / 60% 40% 60% 40%; transform: translate(25px,-40px); }
}

@keyframes ink-morph-c {
  0%,  100% { border-radius: 55% 45% 40% 60% / 50% 65% 35% 50%; transform: translate(0,    0  ) scale(1);    }
  40%        { border-radius: 35% 65% 60% 40% / 65% 35% 65% 35%; transform: translate(30px,-20px) scale(1.1);  }
  70%        { border-radius: 65% 35% 45% 55% / 40% 60% 40% 60%; transform: translate(-20px,30px) scale(0.95); }
}

.automation__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.automation__statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.automation__statement strong {
  color: var(--text-primary);
  font-weight: 400;
  font-style: normal;
}

.automation__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}

.stack-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.stack-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.use-cases {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.use-case {
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.use-case::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease-out);
  transform-origin: bottom;
}

.use-case:hover {
  background: rgba(26, 26, 26, 0.88);
  border-color: var(--border-hover);
}

.use-case:hover::after {
  transform: scaleY(1);
}

.use-case__title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.use-case__desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  padding: var(--section-pad) 0;
  background: rgba(15, 15, 15, 0.68);
  border-top: 1px solid var(--border);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}

/* Card base */
.pricing-card {
  background: rgba(10, 10, 10, 0.84);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: background 0.3s ease;
}

.pricing-card:hover {
  background: rgba(20, 20, 20, 0.9);
}

/* Featured card */
.pricing-card--featured {
  background: rgba(20, 20, 20, 0.86);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.pricing-card--featured:hover {
  background: rgba(26, 26, 26, 0.92);
}

/* Badge */
.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent-text);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  width: fit-content;
}

/* Meta row: number + timeline */
.pricing-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.pricing-card__timeline {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Name & subtitle */
.pricing-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.pricing-card__subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Price */
.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

/* Feature list */
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.pricing-card__features li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pricing-card__features li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.7em;
}

/* Managed services tiers */
.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: auto;
}

.pricing-tier {
  background: rgba(10, 10, 10, 0.84);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.25s;
}

.pricing-card:hover .pricing-tier {
  background: rgba(20, 20, 20, 0.9);
}

.pricing-tier__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.pricing-tier__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.pricing-tier__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pricing-tier__price span {
  font-size: 0.7rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.pricing-tier__desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Hourly callout bar */
.pricing__hourly {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid var(--border);
  border-top: none;
  padding: 1.5rem 2.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pricing__hourly-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}

.pricing__hourly-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.pricing__hourly-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* CTA block */
.pricing__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.pricing__cta-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 68ch;
}

/* Responsive */
@media (max-width: 900px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pricing__hourly {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .pricing__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   About
   ============================================================ */

.about {
  padding: var(--section-pad) 0;
  background: rgba(15, 15, 15, 0.68);
  border-top: 1px solid var(--border);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
  margin-bottom: 2.5rem;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__body p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__card {
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid var(--border);
  padding: 2rem;
}

.about__card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.about__card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.about__card-body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.skills-list li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  padding: var(--section-pad) 0;
  background: rgba(10, 10, 10, 0.62);
  border-top: 1px solid var(--border);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact__sub {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact__link:hover {
  color: var(--text-primary);
}

.contact__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Honeypot — kept in the layout flow but off-screen so bots still "see" it */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select option {
  background: var(--surface-2);
  color: var(--text-primary);
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Tool Modal
   ============================================================ */

.tool-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  visibility: hidden;
  pointer-events: none;
}

.tool-modal.open {
  visibility: visible;
  pointer-events: all;
}

.tool-modal__backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.tool-modal.open .tool-modal__backdrop {
  opacity: 1;
}

.tool-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border-hover);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.tool-modal.open .tool-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.tool-modal__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.tool-modal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.tool-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tool-modal__body p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.tool-modal__body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.tool-modal__footer {
  display: flex;
  justify-content: center;
}

.tool-modal__return {
  gap: 0.6rem;
}

.tool-modal__return:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
  background: var(--bg-alt);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer__logo span { color: var(--accent-text); }

.footer__tagline {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer__col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col ul li a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__built {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   Divider
   ============================================================ */

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

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

@media (max-width: 1024px) {
  .automation__layout,
  .streaming__layout,
  .about__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .clips-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    text-align: center;
    justify-content: center;
  }

  .automation__layout { gap: 3rem; }
}
