/* ============================================
   COMPACTUM MEDIA — Metony-Matched Design System
   ============================================ */

/* --- Reset & Variables --- */
:root {
  /* Colors — White base, navy text, blue accent (B2B Service) */
  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --bg-card: #ffffff;
  --surface: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --text-3: #64748B;
  --accent: #2563EB;
  --accent-light: rgba(37, 99, 235, 0.08);
  --accent-hover: #1D4ED8;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --white: #ffffff;
  --black: #0F172A;

  /* Typography — Playfair Display + Inter + Roboto Mono */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing (8px rhythm) */
  --s-4: 0.25rem;
  --s-8: 0.5rem;
  --s-12: 0.75rem;
  --s-16: 1rem;
  --s-20: 1.25rem;
  --s-24: 1.5rem;
  --s-32: 2rem;
  --s-40: 2.5rem;
  --s-48: 3rem;
  --s-64: 4rem;
  --s-80: 5rem;
  --s-100: 6.25rem;
  --s-120: 7.5rem;

  /* Layout */
  --container: 1200px;
  --container-sm: 800px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;
  --t-slow: 0.6s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-32);
}

.container--sm {
  max-width: var(--container-sm);
}

/* --- Typography --- */
.h-display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}

.h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-2);
}

.body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

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

/* --- Section Label (Metony-style) --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--s-20);
}

.section-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* --- Navigation (Metony-style: logo left, CTA right, clean) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--s-20) 0;
  transition: all var(--t-med) var(--ease);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__logo span {
  font-weight: 400;
  color: var(--text-3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-32);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--t-med) var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Primary CTA — Metony style with arrow */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-full);
  transition: all var(--t-med) var(--ease);
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.nav__cta .arrow {
  transition: transform var(--t-med) var(--ease);
}

.nav__cta:hover .arrow {
  transform: translateX(3px);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1001;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--t-med) var(--ease);
}

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

/* Mobile Overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s-32);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t-fast);
}

.nav__mobile a:hover {
  color: var(--text);
}

/* --- Buttons (Metony-style with arrow icons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
}

.btn .arrow {
  font-size: 1.125rem;
  transition: transform var(--t-med) var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--primary {
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-full);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn--outline {
  padding: 0.875rem 2rem;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--r-full);
}

.btn--outline:hover {
  border-color: var(--text-3);
  background: var(--bg-alt);
}

.btn--ghost {
  padding: 0.5rem 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

/* --- Sections (Metony spacing: ~100px between major sections) --- */
.section {
  padding: var(--s-100) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  margin-bottom: var(--s-64);
}

.section__header--center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s-64);
}

.section__subtitle {
  margin-top: var(--s-16);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.7;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ============================================
   HERO SECTION — Metony pattern:
   Centered headline, sub, CTAs, hero image,
   floating badge, scroll indicator
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px var(--s-32) var(--s-64);
  position: relative;
}

.hero__content {
  max-width: 860px;
  margin: 0 auto;
}

/* Badge pill — like Metony's review badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-32);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

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

/* Headline — large display, slide-up line by line */
.hero__headline {
  margin-bottom: var(--s-24);
}

.hero__headline .line {
  display: block;
  overflow: hidden;
}

.hero__headline .line span {
  display: inline-block;
  transform: translateY(115%);
  animation: slideUp 0.9s var(--ease) forwards;
}

.hero__headline .line:nth-child(2) span { animation-delay: 0.08s; }
.hero__headline .line:nth-child(3) span { animation-delay: 0.14s; }

/* Sub text */
.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.35s forwards;
}

/* CTA row */
.hero__cta {
  margin-top: var(--s-32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-16);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}

/* Hero image area — Metony has a large featured image below CTAs */
.hero__image {
  width: 100%;
  max-width: 1040px;
  margin: var(--s-64) auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.02),
    0 12px 40px rgba(0,0,0,0.06);
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.7s forwards;
}

.hero__image-inner {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--surface), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Floating proof card — like Metony's "500+ Verified Reviews" */
.hero__proof {
  position: absolute;
  bottom: -16px;
  right: var(--s-32);
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.1s forwards;
  z-index: 2;
}

.hero__proof-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.hero__proof-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.hero__proof-label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-3);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--s-32);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-8);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.3s forwards;
  cursor: pointer;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

/* ============================================
   ABOUT / STATS SECTION — Metony pattern:
   Two-column: copy left, metric grid right
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-80);
  align-items: start;
}

.about-grid__copy p {
  margin-bottom: var(--s-16);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}

.stat {
  padding: var(--s-24);
  background: var(--bg-alt);
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--t-med) var(--ease);
}

.stat:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-8);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ============================================
   FRAMEWORK / "WHY" SECTION — Metony pattern:
   Numbered cards in a grid (4 cards)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-24);
}

.card {
  padding: var(--s-40);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-20);
  display: block;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--s-12);
  line-height: 1.3;
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--s-20);
  transition: gap var(--t-med) var(--ease);
}

.card:hover .card__link {
  gap: 10px;
}

/* Statement block — big pull quote */
.statement {
  margin-top: var(--s-64);
  padding: var(--s-48) 0;
  border-top: 1px solid var(--border);
}

.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 720px;
  color: var(--text);
}

/* ============================================
   MARQUEE — Metony-style horizontal scroll
   ============================================ */
.marquee {
  overflow: hidden;
  padding: var(--s-48) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee__track {
  display: flex;
  gap: var(--s-16);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__item {
  flex-shrink: 0;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: all var(--t-fast);
}

.marquee__item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ============================================
   CASE STUDIES / FEATURED WORK
   Metony pattern: Large cards, image top,
   content below with result metrics
   ============================================ */
.cases {
  display: flex;
  flex-direction: column;
  gap: var(--s-48);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-48);
  align-items: center;
  padding: var(--s-48);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--t-med) var(--ease);
}

.case-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.case-card:nth-child(even) {
  direction: rtl;
}

.case-card:nth-child(even) > * {
  direction: ltr;
}

.case-card__visual {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  overflow: hidden;
}

.case-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--s-12);
}

.case-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--s-16);
}

.case-card__desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--s-32);
}

.case-card__results {
  display: flex;
  gap: var(--s-16);
  flex-wrap: wrap;
}

.result-badge {
  padding: var(--s-12) var(--s-20);
  background: var(--accent-light);
  border-radius: var(--r-sm);
}

.result-badge__value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.result-badge__label {
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ============================================
   SERVICES / PROCESS SECTION — Metony pattern:
   Numbered steps, left number, right content
   ============================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-32);
  padding: var(--s-40) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med);
}

.process-step:first-child {
  border-top: 1px solid var(--border);
}

.process-step:hover {
  background: var(--bg-alt);
  margin: 0 calc(-1 * var(--s-32));
  padding-left: var(--s-32);
  padding-right: var(--s-32);
  border-radius: var(--r-md);
}

.process-step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--s-8);
}

.process-step__desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 620px;
}

/* ============================================
   CREDENTIALS (Metony's "Why Choose Us" badges)
   ============================================ */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-top: var(--s-40);
}

.cred {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all var(--t-med) var(--ease);
}

.cred:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ============================================
   DIAGNOSTIC TOOL
   ============================================ */
.diagnostic__box {
  margin-top: var(--s-40);
  padding: var(--s-48);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.diagnostic__input-row {
  display: flex;
  gap: var(--s-12);
}

.diagnostic__input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--t-fast);
}

.diagnostic__input::placeholder {
  color: var(--text-3);
}

.diagnostic__input:focus {
  border-color: var(--accent);
  background: var(--white);
}

.diagnostic__btn {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap;
}

.diagnostic__btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.diagnostic__result {
  margin-top: var(--s-24);
}

/* ============================================
   INSIGHTS / BLOG GRID — Metony 3-col cards
   ============================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}

.insight {
  padding: var(--s-32);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}

.insight:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.insight--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-48);
  padding: var(--s-48);
  background: linear-gradient(135deg, var(--white), rgba(37, 99, 235, 0.03));
  border-color: rgba(37, 99, 235, 0.15);
}

.insight__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--s-16);
}

.insight__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--s-8);
  flex: 1;
}

.insight--featured .insight__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.insight__excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--s-20);
}

.insight__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--t-fast);
}

.insight:hover .insight__link {
  color: var(--accent);
  gap: 8px;
}

/* ============================================
   CTA SECTION — Centered, big headline
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--s-120) 0;
}

.cta-section .h2 {
  max-width: 680px;
  margin: 0 auto var(--s-40);
}

/* ============================================
   TEAM GRID — Metony 5-col (we'll do 3-col)
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}

.team-member {
  padding: var(--s-32);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
}

.team-member:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.team-member--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-40);
  align-items: start;
}

.team-member__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--s-20);
}

.team-member--lead .team-member__avatar {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: var(--r-md);
  font-size: 2.5rem;
}

.team-member__role {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--s-12);
}

.team-member__bio {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================
   FEATURED WORK PAGE — Full-width case cards
   ============================================ */
.featured-cases {
  display: flex;
  flex-direction: column;
  gap: var(--s-40);
}

.featured-case {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.featured-case:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.featured-case__img {
  height: 380px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.featured-case__body {
  padding: var(--s-48);
}

.featured-case__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--s-12);
}

.featured-case__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: var(--s-16);
  line-height: 1.3;
}

.featured-case__desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: var(--s-32);
}

.featured-case__results {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
}

/* More Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}

.work-thumb {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.work-thumb:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.work-thumb__img {
  height: 200px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.work-thumb__info {
  padding: var(--s-20);
}

.work-thumb__name {
  font-size: 1rem;
  font-weight: 600;
}

.work-thumb__type {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============================================
   INSIGHTS PAGE — 2-col grid with pinned
   ============================================ */
.insights-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-24);
}

.insight-page {
  padding: var(--s-32);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}

.insight-page:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.insight-page--pinned {
  grid-column: 1 / -1;
  padding: var(--s-48);
  background: linear-gradient(135deg, var(--white), rgba(37, 99, 235, 0.03));
  border-color: rgba(37, 99, 235, 0.18);
}

.insight-page__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--s-16);
}

.insight-page__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--s-8);
}

.insight-page--pinned .insight-page__title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.insight-page__excerpt {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--s-20);
  flex: 1;
}

.insight-page__read {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--t-fast);
}

.insight-page:hover .insight-page__read {
  color: var(--accent);
  gap: 8px;
}

/* ============================================
   CONTACT FORM — Minimal 3-field
   ============================================ */
.contact-form {
  max-width: 600px;
  margin-top: var(--s-48);
}

.form-field {
  margin-bottom: var(--s-32);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: var(--s-8);
}

.form-input {
  width: 100%;
  padding: var(--s-16) 0;
  font-size: 1.125rem;
  color: var(--text);
  border-bottom: 1.5px solid var(--border);
  transition: border-color var(--t-fast);
  background: transparent;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-3);
}

.form-textarea {
  width: 100%;
  padding: var(--s-16) 0;
  font-size: 1.125rem;
  color: var(--text);
  border-bottom: 1.5px solid var(--border);
  min-height: 80px;
  resize: vertical;
  transition: border-color var(--t-fast);
  background: transparent;
}

.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea::placeholder {
  color: var(--text-3);
}

/* ============================================
   ABOUT PAGE EXTRAS
   ============================================ */
.page-hero {
  padding: 160px 0 var(--s-64);
}

.origin-text {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 720px;
}

.origin-text p {
  margin-bottom: var(--s-16);
}

.origin-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: var(--s-48) 0;
  padding: var(--s-40) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   FOOTER — Metony multi-column layout
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-80) 0 var(--s-32);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-48);
  margin-bottom: var(--s-64);
}

.footer__brand-text {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: var(--s-16);
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: var(--s-20);
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 5px 0;
  transition: color var(--t-fast);
}

.footer__col a:hover {
  color: var(--accent);
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer__socials {
  display: flex;
  gap: var(--s-12);
}

.footer__social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--text-3);
  transition: all var(--t-fast);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
  to { transform: translateY(0); }
}

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

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* Page transition */
.page-enter {
  animation: fadeUp 0.5s var(--ease) forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s-48);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }

  .case-card:nth-child(even) {
    direction: ltr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-32);
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member--lead {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--s-20);
  }

  .section {
    padding: var(--s-64) 0;
  }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }

  .hero {
    min-height: auto;
    padding: 120px var(--s-20) var(--s-48);
  }

  .hero__scroll { display: none; }

  .hero__proof {
    position: relative;
    bottom: auto;
    right: auto;
    margin: var(--s-16) auto 0;
    width: fit-content;
  }

  .hero__image {
    margin-top: var(--s-40);
  }

  .hero__cta {
    flex-direction: column;
    gap: var(--s-12);
  }

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

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

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

  .insight--featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .process-step:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--s-16);
    text-align: center;
  }

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

  .team-member--lead {
    grid-column: 1;
  }

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

  .insights-page-grid {
    grid-template-columns: 1fr;
  }

  .insight-page--pinned {
    grid-column: 1;
  }

  .featured-case__img {
    height: 220px;
  }

  .diagnostic__input-row {
    flex-direction: column;
  }

  .page-hero {
    padding: 130px 0 var(--s-40);
  }

  .section__header {
    margin-bottom: var(--s-40);
  }

  .section__header--center {
    margin-bottom: var(--s-40);
  }
}

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

  .case-card {
    padding: var(--s-24);
  }

  .case-card__results {
    flex-direction: column;
  }

  .featured-case__body {
    padding: var(--s-32);
  }
}
