/* =====================================================
   Andrés Arrocha — TEA Models
   Aesthetic: Editorial · Scientific · Founder-friendly · Warm
   ===================================================== */

:root {
  /* Palette — warm off-white background, deep ink text, muted lab-amber accent */
  --bg: #f6f1e8;
  --bg-2: #efe8da;
  --bg-3: #e8dfcc;
  --ink: #1a1814;
  --ink-2: #3d3a32;
  --ink-3: #6b6356;
  --ink-4: #a89e8a;
  --line: #d8cfb9;
  --line-2: #c4b89b;

  /* Accent — a confident, slightly oxidized amber/ochre. Scientific but warm. */
  --accent: #b8541e;
  --accent-2: #d96d2c;
  --accent-soft: #f5d4a8;

  /* Functional colors used sparingly in the case study */
  --good: #5a7a3d;
  --mid: #b8821e;
  --bad: #a83a2a;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Subtle grain overlay on the whole site for warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; }
em, .italic { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-name { letter-spacing: -0.01em; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 18px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, var(--bg-3) 0%, transparent 60%);
  opacity: 0.5;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
  max-width: 1100px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: all 0.9s var(--ease-out);
}

.hero-title .word.italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-title .line.dim .word {
  color: var(--ink-3);
  font-weight: 300;
}

.loaded .hero-title .word.reveal-word {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the word reveals — JS adds inline transition-delay based on word index */
.hero-title .word { transition-delay: calc(var(--i, 0) * 70ms); }
.hero-title .line.dim .word { transition-delay: calc((var(--i, 0) * 60ms) + 200ms); }

.hero-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 1.2s;
}

.loaded .hero-sub { opacity: 1; transform: translateY(0); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 1.4s;
  flex-wrap: wrap;
}

.loaded .hero-cta-row { opacity: 1; transform: translateY(0); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

.btn-primary:hover svg { transform: translateX(4px); }

.btn-large {
  padding: 20px 36px;
  font-size: 17px;
}

.btn-large svg {
  width: 20px;
  height: 20px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: all 0.3s;
}

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

/* Marquee */
.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 1.6s;
  margin: 0 -32px;
}

.loaded .hero-marquee { opacity: 1; }

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-track .sep { color: var(--accent); }

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 2s;
  z-index: 3;
}

.loaded .scroll-indicator { opacity: 1; }

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  to { top: 40px; }
}

/* =====================================================
   PROBLEM (sticky moment)
   ===================================================== */
.problem {
  padding: 180px 0;
  position: relative;
  z-index: 2;
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.problem-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-bottom: 36px;
}

.problem-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.problem-statement em {
  color: var(--accent);
  font-weight: 500;
}

.strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  color: var(--ink-3);
  font-weight: 300;
}

.accent { color: var(--accent); font-style: italic; }

.highlight {
  background: var(--accent-soft);
  padding: 0 6px;
  margin: 0 -2px;
  border-radius: 2px;
}

.problem-byline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-3);
  margin-top: 32px;
  font-size: 18px;
}

/* =====================================================
   CASE STUDY
   ===================================================== */
.case {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
  position: relative;
  z-index: 2;
}

.case-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.case-header {
  max-width: 900px;
  margin-bottom: 80px;
}

.case-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}

.case-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}

.case-story { display: flex; flex-direction: column; gap: 36px; }

.case-block {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

.case-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.case-block p:not(.case-block-label) {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
}

.case-visual { display: flex; flex-direction: column; gap: 32px; }

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.case-mockup {
  background: #fdfaf3;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(26, 24, 20, 0.04),
    0 12px 32px rgba(26, 24, 20, 0.08),
    0 32px 64px rgba(26, 24, 20, 0.06);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-4);
}

.mockup-dot:nth-child(1) { background: #d97766; }
.mockup-dot:nth-child(2) { background: #d9a766; }
.mockup-dot:nth-child(3) { background: #8eb066; }

.mockup-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.mockup-body { padding: 8px 0; }

.mockup-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid rgba(216, 207, 185, 0.4);
}

.mockup-row:last-child { border-bottom: none; }

.mockup-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
}

.mockup-row.winner {
  background: rgba(184, 84, 30, 0.06);
  color: var(--ink);
  font-weight: 600;
}

.good { color: var(--good); font-weight: 600; }
.mid { color: var(--mid); }
.bad { color: var(--bad); }

.mockup-caption {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  text-align: right;
  font-style: italic;
}

/* Live demo CTA */
.case-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  flex-wrap: wrap;
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.case-demo h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--bg);
  max-width: 580px;
}

.demo-sub {
  margin-top: 12px;
  color: var(--ink-4);
  font-size: 15px;
}

.case-demo .btn-primary {
  background: var(--bg);
  color: var(--ink);
}

.case-demo .btn-primary::before { background: var(--accent); }
.case-demo .btn-primary:hover { color: var(--bg); }

/* =====================================================
   VIDEO SHOWCASE
   ===================================================== */
.showcase {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
  position: relative;
  z-index: 2;
}

.showcase-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.showcase-header {
  margin-bottom: 64px;
  max-width: 820px;
}

.showcase-header .section-title { margin-bottom: 20px; }

.showcase-sub {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.showcase-card {
  background: #fdfaf3;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 24, 20, 0.08);
}

.video-frame {
  position: relative;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--ink);
}

.showcase-card figcaption {
  padding: 32px;
  border-top: 1px solid var(--line);
}

.showcase-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 14px;
}

.showcase-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.showcase-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.showcase-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.12s; }

/* =====================================================
   DELIVERABLES
   ===================================================== */
.deliverables {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.deliverables-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
  max-width: 800px;
}

.deliv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.deliv-card {
  padding: 40px 32px;
  background: #fdfaf3;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.deliv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(1.02);
  transition: all 0.4s var(--ease-out);
}

.deliv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 24, 20, 0.08);
}

.deliv-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.deliv-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.deliv-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.deliv-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* =====================================================
   FIT (Who this is for / not for)
   ===================================================== */
.fit {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg-2), var(--bg));
  position: relative;
  z-index: 2;
}

.fit-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fit-col {
  padding: 48px 40px;
  background: #fdfaf3;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.fit-yes { border-top: 4px solid var(--good); }
.fit-no { border-top: 4px solid var(--bad); }

.fit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.fit-header svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.fit-yes .fit-header svg { color: var(--good); }
.fit-no .fit-header svg { color: var(--bad); }

.fit-header h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.fit-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fit-col li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.fit-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--ink-4);
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  padding: 140px 0;
  position: relative;
  z-index: 2;
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}

.about-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 36px;
}

.about-header .about-title { margin-bottom: 0; }
.about-header .section-eyebrow { margin-bottom: 12px; }

.about-photo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 18px 40px -18px rgba(184, 84, 30, 0.45), 0 4px 12px rgba(60, 30, 10, 0.08);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-self: center;
}

.cred {
  padding: 28px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.cred:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.cred:hover .cred-num,
.cred:hover .cred-label { color: var(--bg); }

.cred-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.cred-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  transition: color 0.3s;
}

/* =====================================================
   CTA / CONTACT
   ===================================================== */
.cta {
  padding: 160px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  top: -200px;
  right: -200px;
  filter: blur(40px);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 32px;
}

.cta-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--bg);
}

.cta-headline .italic {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 300;
}

.cta-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-4);
  margin-bottom: 48px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.cta .btn-primary {
  background: var(--bg);
  color: var(--ink);
}

.cta .btn-primary::before { background: var(--accent); }
.cta .btn-primary:hover { color: var(--bg); }

.cta-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--good);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 122, 61, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(90, 122, 61, 0); }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

/* =====================================================
   SCROLL REVEAL UTILITIES
   ===================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a section */
.case-block.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.case-block.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }

.stat.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stat.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stat.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.deliv-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.deliv-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.24s; }

.fit-col.reveal-on-scroll:nth-child(2) { transition-delay: 0.12s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .case-grid { grid-template-columns: 1fr; gap: 60px; }
  .deliv-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-demo { padding: 32px; }
  .case-demo h3 { font-size: 22px; }
}

@media (max-width: 640px) {
  .nav-inner, .hero-inner, .problem-inner, .case-inner,
  .deliverables-inner, .fit-inner, .about-inner, .cta-inner, .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-photo { width: 224px; height: 224px; }
  .nav-name { display: none; }
  .hero { padding: 120px 0 60px; }
  .problem, .case, .showcase, .deliverables, .fit, .about, .cta { padding: 80px 0; }
  .showcase-card figcaption { padding: 24px; }
  .showcase-card h3 { font-size: 20px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .case-stats { grid-template-columns: 1fr; gap: 0; }
  .stat-num { font-size: 44px; }
  .fit-col { padding: 32px 24px; }
  .about-credentials { grid-template-columns: 1fr 1fr; }
  .case-demo { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
