/* ============ TOKENS ============ */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --blue: #2f6bff;
  --blue-600: #1e52e0;
  --muted: #6b7280;
  --muted-dark: #9aa0aa;
  --line: #e7e7e9;
  --line-dark: #232327;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

section { padding: clamp(72px, 12vw, 140px) var(--pad); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 48px;
}
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 10px 20px; font-size: 0.92rem; min-height: 42px; }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; min-height: 56px; }
.btn-block { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.nav.hide { transform: translateY(-110%); }

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-x { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  font-size: 0.98rem;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ============ HERO ============ */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding-top: clamp(48px, 8vw, 90px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow.light { color: var(--muted-dark); }

.hero-title {
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--muted);
  max-width: 44ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ============ STATS BAND ============ */
.stats {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  padding: clamp(48px, 8vw, 80px) var(--pad);
}
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  padding: 8px 4px;
  border-left: 2px solid var(--line-dark);
  padding-left: 22px;
}
.stat:first-child { border-left: none; padding-left: 4px; }
.stat-num {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 12px;
  color: var(--muted-dark);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
}

/* ============ SECTION HEADS ============ */
.section-head { max-width: var(--maxw); margin: 0 auto 56px; }
.tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}
.tag.light { color: var(--blue); }
.section-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
}
.section-lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 50ch;
}

/* ============ SERVICES ============ */
.services { max-width: var(--maxw); margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.card-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.card h3 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.card p { color: var(--muted); font-size: 1.02rem; }
.card:hover {
  transform: translateY(-6px);
  background: var(--ink);
  color: var(--paper);
}
.card:hover .card-num, .card:hover p { color: var(--muted-dark); }

/* ============ PORTFOLIO ============ */
.work { max-width: var(--maxw); margin: 0 auto; }

.work-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.work-tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  min-height: 44px;
}
.work-tab:hover { transform: translateY(-2px); }
.work-tab.is-active { background: var(--ink); color: var(--paper); }
.work-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.work-panel { display: none; }
.work-panel.is-active { display: block; }

.work-grid { display: grid; gap: 18px; }
.work-grid-reels { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.work-grid-long { grid-template-columns: repeat(2, 1fr); gap: 22px; }

.work-item {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
  padding: 0;
}
.work-item-v { aspect-ratio: 9 / 16; }
.work-item-h { aspect-ratio: 16 / 9; }
.work-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ PRICING ============ */
.pricing {
  background: var(--ink);
  color: var(--paper);
}
.pricing .section-title { color: var(--paper); }
.pricing .section-lead { color: var(--muted-dark); }
.pricing-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.step span {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
}
.step p { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; }

.pack {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 36px 32px;
  position: relative;
}
.pack-tag {
  position: absolute;
  top: -13px; left: 32px;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.pack h3 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.pack-count { font-size: 3.4rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; }
.pack-count strong { color: var(--blue); }
.pack ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pack li {
  position: relative;
  padding-left: 28px;
  color: #333;
  font-size: 1rem;
}
.pack li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* ============ TESTIMONIALS ============ */
.words { max-width: var(--maxw); margin: 0 auto; }
.words-grid {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.video-testimonial {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-testimonial figcaption {
  padding: 14px 18px;
  color: var(--paper);
  font-size: 0.95rem;
}
.slack-wall {
  columns: 2;
  column-gap: 20px;
}
.slack-shot {
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f5f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.slack-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.slack-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, #f0f1f4 0 10px, #f6f7f9 10px 20px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 10px;
}

/* ============ BOOK ============ */
.book {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.book-title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 16ch;
}
.book-sub {
  color: var(--muted-dark);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 40ch;
}
.book .btn-lg { background: var(--blue); border-color: var(--blue); margin-top: 10px; }
.book .btn-lg:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px var(--pad);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}
.footer-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.footer-logo { height: 30px; width: auto; display: block; }
.footer-meta { display: flex; gap: 26px; align-items: center; color: var(--muted-dark); font-size: 0.95rem; }
.footer-meta a:hover { color: var(--blue); }

/* ============ REVEAL (JS-driven, safe fallback) ============ */
.reveal { opacity: 1; }
.js-on .reveal { opacity: 0; }
.split-word { display: inline-block; }
.split-char { display: inline-block; will-change: transform; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr; gap: 0; }
  .stat {
    border-left: none;
    border-top: 1px solid var(--line-dark);
    padding: 22px 4px;
  }
  .stat:first-child { border-top: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .work-grid-reels { grid-template-columns: repeat(2, 1fr); }
  .work-grid-long { grid-template-columns: 1fr; }
  .slack-wall { columns: 1; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 82vh; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-on .reveal { opacity: 1 !important; transform: none !important; }
  .split-char { opacity: 1 !important; transform: none !important; }
}
