/* ============================================================
   BAKS MEDIA — styles.css
   Primary: #8B0000 | Black: #0A0A0A | White: #FFFFFF
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #8B0000;
  --red-hover:  #6a0000;
  --red-light:  rgba(139,0,0,0.07);
  --black:      #0A0A0A;
  --off-black:  #111111;
  --grey-dark:  #1e1e1e;
  --grey-mid:   #4a4a4a;
  --grey-light: #f5f5f5;
  --border:     rgba(0,0,0,0.09);
  --white:      #FFFFFF;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:   6px;
  --radius-lg: 12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

  --max-w: 1180px;
  --section-pad: clamp(72px, 10vw, 120px);
  --nav-h: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1, h2 {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-weight: bold;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--black);
}

h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--grey-mid); line-height: 1.75; }
p.lead { font-size: 1.1rem; color: #333; }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139,0,0,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: rgba(0,0,0,0.22);
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #000000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* LOGO — Replace src in HTML with actual logo path */
.nav-logo img {
  height: 83px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 700 !important;
  padding: 10px 22px;
  color: #ffffff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px clamp(20px, 4vw, 56px);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin: 16px clamp(20px, 4vw, 56px) 4px; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Abstract SVG lines overlay */
.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.13;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(139,0,0,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139,0,0,0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(100px, 14vw, 200px) 0 clamp(60px, 8vw, 100px);
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ── Credibility Strip ── */
.cred-strip {
  background: var(--black);
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cred-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.cred-item {
  text-align: center;
}
.cred-item .num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.cred-item .num span { color: var(--red); }
.cred-item .desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── Section Base ── */
.section {
  padding: var(--section-pad) 0;
}
.section-alt { background: var(--grey-light); }
.section-dark { background: var(--off-black); }

.section-header {
  margin-bottom: clamp(48px, 7vw, 72px);
}
.section-header.centered { text-align: center; }
.section-header .label { margin-bottom: 14px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 520px; }
.section-header.centered p { margin: 0 auto; }

/* Dark section text overrides */
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.55); }
.section-dark .label { color: var(--red); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-head);
  font-size: 7rem;
  color: var(--red);
  opacity: 0.07;
  position: absolute;
  top: -16px; left: 20px;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.testimonial-card.screenshot-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: default;
}

/* TESTIMONIAL IMAGE — Replace these img src values with actual screenshots */
.testimonial-card.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.tc-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.tc-stars span { color: var(--red); font-size: 0.95rem; }

.tc-text {
  font-size: 1rem;
  color: #222;
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 400;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tc-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
  flex-shrink: 0;
}
.tc-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  display: block;
}
.tc-role {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  position: relative;
}

.step-card {
  position: relative;
}
.step-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: -12px;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-icon svg { width: 24px; height: 24px; }
.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--white);
}
.step-card p { font-size: 0.95rem; color: rgba(255,255,255,0.5); }
.step-connector {
  display: none;
}

/* ── Case Study Preview ── */
.cs-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cs-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cs-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card-body {
  padding: 28px;
}
.cs-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.cs-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--black);
}
.cs-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cs-stat-val {
  font-family: "Times New Roman", serif;
  font-weight: bold;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--black);
  display: block;
  line-height: 1.1;
  word-break: break-word;
}
.cs-stat-label {
  font-size: 0.74rem;
  color: var(--grey-mid);
  display: block;
  line-height: 1.3;
}

.cs-card-body {
  padding: 24px;
  overflow: hidden;
}

.cs-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.cs-link:hover { gap: 10px; }

/* ── About Preview ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.about-preview-content .label { margin-bottom: 14px; display: block; }
.about-preview-content h2 { margin-bottom: 20px; }
.about-preview-content p { margin-bottom: 32px; }

.about-preview-visual {
  position: relative;
}
.about-metric-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}
.metric-pill-icon {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-pill-icon svg { width: 20px; height: 20px; }
.metric-pill-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  display: block;
  line-height: 1;
}
.metric-pill-label {
  font-size: 0.82rem;
  color: var(--grey-mid);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(139,0,0,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 700px;
}
.cta-banner .label { color: var(--red); }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.55); margin-bottom: 0; max-width: 480px; }
.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Footer ── */
.footer {
  background: var(--off-black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-socials a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--off-black);
  padding: calc(var(--nav-h) + 72px) 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(139,0,0,0.15) 0%, transparent 65%);
}
.page-hero .label { color: var(--red); margin-bottom: 14px; display: block; }
.page-hero h1 { color: var(--white); max-width: 700px; margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.55); max-width: 540px; font-size: 1.05rem; }

/* ── About Page ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.story-content h2 { margin-bottom: 24px; }
.story-content p { margin-bottom: 20px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 48px; height: 48px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; }

.founder-card {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  gap: 40px;
  align-items: center;
}
.founder-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  /* FOUNDER PHOTO — Replace background with img tag if you have a photo */
}
.founder-quote {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}
.founder-name {
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}
.founder-title {
  font-size: 0.83rem;
  color: var(--grey-mid);
}

/* ── Contact Page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info .label { margin-bottom: 14px; display: block; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 36px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cd-icon {
  width: 40px; height: 40px;
  background: var(--grey-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-icon svg { width: 18px; height: 18px; }
.cd-label { font-size: 0.78rem; color: var(--grey-mid); display: block; margin-bottom: 2px; }
.cd-val { font-size: 0.92rem; font-weight: 500; color: var(--black); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--black);
}

/* Form Fields */
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--black);
  background: var(--grey-light);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a4a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.08);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #cc3333;
  background: #fff8f8;
}
.form-error-msg {
  font-size: 0.78rem;
  color: #cc3333;
  margin-top: 5px;
  display: none;
}
.form-error-msg.show { display: block; }

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

.form-submit { width: 100%; justify-content: center; padding: 15px; font-size: 0.95rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg { width: 28px; height: 28px; color: var(--red); }
.form-success h3 { margin-bottom: 10px; font-size: 1.4rem; }
.form-success p { color: var(--grey-mid); }

.contact-alt {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.contact-alt p {
  font-size: 0.85rem;
  color: var(--grey-mid);
  margin-bottom: 12px;
}

/* ── Case Studies Page ── */
.cs-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.cs-full-card:last-child { margin-bottom: 0; }

.cs-full-header {
  background: var(--black);
  padding: 36px 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cs-full-header h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 8px;
}
.cs-full-header .cs-tag {
  background: rgba(139,0,0,0.2);
  color: #ff6b6b;
}
.cs-kpis {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.cs-kpi {
  text-align: right;
}
.cs-kpi-val {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: bold;
  color: var(--red);
  display: block;
  line-height: 1;
}
.cs-kpi-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 4px;
}

.cs-full-body {
  padding: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cs-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.cs-col p { font-size: 0.92rem; color: #333; line-height: 1.7; }

.cs-proof-img {
  padding: 0 44px 44px;
}
.cs-proof-img img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── Utility ── */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; }

/* Divider line */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 20px 0;
}
.centered .section-divider { margin: 20px auto; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .about-preview {
    grid-template-columns: 1fr;
  }
  .story-block {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .cs-full-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 80px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

  .cred-divider { display: none; }
  .cred-inner { gap: 28px; }

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

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

  .cs-full-header {
    padding: 28px 24px;
    flex-direction: column;
    gap: 24px;
  }
  .cs-kpis { justify-content: flex-start; }
  .cs-kpi { text-align: left; }
  .cs-full-body {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cs-proof-img { padding: 0 24px 28px; }

  .founder-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-inner { align-items: center; text-align: center; }
  .cta-btn-row { justify-content: center; }

  .steps-grid { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .cs-stats { gap: 16px; }
}
