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

:root {
  --ink: #0f0f0f;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --paper: #fff4ee;
  --paper-2: #ffe8d8;
  --accent: #c8381e;
  --accent-2: #e85234;
  --brand-deep: #0e1c2f;
  --brand-mid: #1a3050;
  --gold: #c9a84c;
  --orange-light: #fff4ee;
  --orange-mid: #ffe0cc;
  --white: #ffffff;
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
  --max-w: 1200px;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── PAGE SYSTEM ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.08; }
p { line-height: 1.7; color: var(--ink-2); }
a { color: inherit; text-decoration: none; }

.display-xl { font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 300; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 300; letter-spacing: -0.025em; }
.display-md { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.display-sm { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; }
.eyebrow { font-family: var(--ff-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.body-lg { font-size: 1.125rem; }
.body-sm { font-size: 0.875rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-body); font-size: 0.9rem; font-weight: 600;
  padding: 0.9rem 2rem; border-radius: 3px;
  cursor: pointer; border: none;
  transition: all 0.25s var(--ease); letter-spacing: 0.03em;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute;
  inset: 0; background: rgba(255,255,255,0.12);
  transform: translateX(-100%); transition: transform 0.4s var(--ease);
}
.btn:hover::after { transform: translateX(0); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,56,30,0.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1rem; }
.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.8rem; }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: all 0.4s var(--ease);
  background: rgba(255,244,238,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(0);
  opacity: 1;
}
nav.scrolled {
  background: rgba(255,244,238,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
nav.nav-home-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
nav.nav-home-top .morphic-nav {
  background: rgba(255, 224, 204, 0.5);
  border-color: rgba(200, 56, 30, 0.12);
  box-shadow: 0 2px 10px rgba(200,56,30,0.08);
}
nav.nav-home-top .morphic-nav-item {
  color: var(--ink);
}
nav.nav-home-top .morphic-nav-item:hover:not(.active) {
  color: var(--accent);
  background: rgba(255, 224, 204, 0.55);
}
nav.nav-home-top .morphic-nav-item.active {
  background: rgba(200, 56, 30, 0.92);
  color: var(--white);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); margin: 0 auto; }
.nav-logo {
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  cursor: pointer;
}
.nav-logo span { color: var(--accent); }

/* Morphic Navigation */
.morphic-nav {
  display: flex; 
  align-items: center; 
  background: rgba(255, 224, 204, 0.9);
  border: 1px solid rgba(200, 56, 30, 0.18);
  border-radius: 12px;
  overflow: visible;
  padding: 0.25rem;
  box-shadow: 0 6px 18px rgba(200,56,30,0.12);
}
.morphic-nav-item {
  font-size: 0.875rem; 
  font-weight: 500; 
  color: var(--ink-2);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border-radius: 0;
  margin: 0;
  white-space: nowrap;
  position: relative;
}
.morphic-nav-item:hover:not(.active) {
  color: var(--accent);
  background: rgba(255,255,255,0.45);
}
.morphic-nav-item.active {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 9px;
  margin: 0 0.4rem;
  box-shadow: 0 4px 12px rgba(200,56,30,0.32);
}
.morphic-nav-item:first-child.active {
  margin-left: 0;
}
.morphic-nav-item:last-child.active {
  margin-right: 0;
}
/* Round corners on items adjacent to active */
.morphic-nav-item:first-child:not(.active),
.morphic-nav-item.after-active {
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}
.morphic-nav-item:last-child:not(.active),
.morphic-nav-item.before-active {
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff4ee 0%, #ffe0cc 50%, #fff4ee 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 80% at var(--mouse-x, 50%) var(--mouse-y, 40%), rgba(255, 140, 60, 0.15) 0%, rgba(200, 56, 30, 0.05) 30%, transparent 70%),
              radial-gradient(ellipse 100% 100% at calc(100% - var(--mouse-x, 50%)) calc(100% - var(--mouse-y, 40%)), rgba(255, 160, 80, 0.1) 0%, transparent 60%);
  transition: --mouse-x 0.05s ease-out, --mouse-y 0.05s ease-out;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}
.hero-content { position: relative; z-index: 2; padding: 0 clamp(1.25rem,4vw,3rem); max-width: var(--max-w); margin: 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-tag { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.hero-tag-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.2)} }
.hero h1 { color: var(--ink); margin-bottom: 1.5rem; max-width: 1000px; line-height: 1.15; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub { color: var(--ink-2); font-size: clamp(1rem,2vw,1.2rem); max-width: 580px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 4rem; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-stat-label { font-size: 0.8rem; color: var(--ink-3); margin-top: 0.3rem; letter-spacing: 0.05em; }

/* ── TICKER ── */
.ticker-wrap { background: var(--accent); overflow: hidden; padding: 0.75rem 0; }
.ticker-track { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 0.8rem; font-weight: 600; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 2.5rem; }
.ticker-sep { color: rgba(255,255,255,0.4); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.75rem; }
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08), 
              0 4px 12px rgba(0,0,0,0.1), 
              0 8px 24px rgba(0,0,0,0.06);
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 8px 16px rgba(0,0,0,0.12), 
              0 16px 32px rgba(0,0,0,0.15), 
              0 24px 48px rgba(0,0,0,0.1); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-icon { width: 40px; height: 40px; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.card p { font-size: 0.85rem; line-height: 1.5; }
.card-link { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; transition: gap 0.2s; }
.card-link:hover { gap: 0.75rem; }

.services-grid-home .card {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), 
              0 8px 20px rgba(0,0,0,0.12), 
              0 16px 32px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.services-grid-home {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}
.services-grid-home .card {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
}
.services-grid-home .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
}
.services-grid-home .card-icon svg {
  stroke: var(--ink) !important;
}
.services-grid-home .card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.services-grid-home .card p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0;
  flex-grow: 1;
}
.services-grid-home .card-link {
  margin-top: 0.85rem;
  font-size: 0.78rem;
}
.services-grid-home .card:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1), 
              0 12px 28px rgba(0,0,0,0.14), 
              0 24px 48px rgba(0,0,0,0.12);
}

/* ── CASE STUDY FEATURE ── */
.case-feature {
  background: var(--brand-deep); border-radius: 6px;
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.case-feature-content { padding: clamp(2.5rem,5vw,5rem); display: flex; flex-direction: column; justify-content: center; }
.case-feature-visual {
  background: linear-gradient(135deg, rgba(200,56,30,0.2), rgba(201,168,76,0.15));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.case-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.case-metric-num { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.case-metric-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.08em; }
.case-quote-text { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; font-style: italic; margin-bottom: 1rem; }
.case-quote-attr { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ── TESTIMONIALS ── */
.testimonial {
  background: var(--white); border: 1px solid var(--paper-2); border-radius: 4px;
  padding: 2rem; position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12), 0 16px 32px rgba(0,0,0,0.16);
}
.testimonial::before { content: '\201C'; font-family: var(--ff-display); font-size: 5rem; color: var(--accent); opacity: 0.15; position: absolute; top: 1rem; left: 2rem; line-height: 1; }
.testimonial-text { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; color: var(--white); font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; text-align: center; }
.founders-card .testimonial-name { margin-bottom: 1.5rem; }
.testimonial-role { font-size: 0.8rem; color: var(--ink-3); margin-top: 0.15rem; }

.founders-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.founders-scroll::-webkit-scrollbar { display: none; }
.founders-card { flex: 0 0 min(580px, 88vw); padding: 1.5rem 2.5rem; position: relative; }
.founders-card .testimonial-text { margin-bottom: 1rem; }
.founders-card p { margin-bottom: 1rem; }

/* ── TEAM ── */
.team-grid-custom { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2rem; }
.team-grid-custom .team-card:nth-child(1) { grid-column: 1 / 3; }
.team-grid-custom .team-card:nth-child(2) { grid-column: 3 / 5; }
.team-grid-custom .team-card:nth-child(3) { grid-column: 5 / 7; }
.team-grid-custom .team-card:nth-child(4) { grid-column: 7 / 9; }
.team-grid-custom .team-card:nth-child(5) { grid-column: 2 / 4; }
.team-grid-custom .team-card:nth-child(6) { grid-column: 4 / 6; }
.team-grid-custom .team-card:nth-child(7) { grid-column: 6 / 8; }
.team-card { text-align: center; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); background: var(--white); border-radius: 8px; padding: 1.5rem; box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.12), 0 0 20px rgba(200,56,30,0.15); }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 8px 16px rgba(0,0,0,0.12), 0 16px 32px rgba(0,0,0,0.16), 0 0 30px rgba(200,56,30,0.3); }
.team-avatar { width: 100%; padding-bottom: 100%; border-radius: 6px; position: relative; overflow: hidden; margin-bottom: 1.25rem; }
.team-avatar-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 2.5rem; font-weight: 700;
  color: var(--white);
}
.team-name { font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.05em; }
.team-superpower { font-size: 0.8rem; color: var(--accent); margin-top: 0.5rem; font-style: italic; }

/* ── PROCESS STEPS ── */
.work-steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.work-step-card {
  background: var(--paper);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.work-step-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.work-step-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 20px 40px rgba(0,0,0,0.2); }
.work-step-card:hover::before { transform: scaleY(1); }
.work-step-card > div:first-child { font-size: 1.15rem !important; margin-bottom: 1rem !important; line-height: 1.3; }
.work-step-card p { font-size: 0.85rem !important; flex-grow: 1; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--paper-2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; cursor: pointer; font-weight: 500; font-size: 1rem;
  transition: color 0.2s; gap: 1rem;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor; border-radius: 50%; transition: transform 0.3s, background 0.3s, color 0.3s; font-size: 1rem; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding-bottom: 1.5rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.75; }

/* ── FORM ── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.5rem; color: var(--ink-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--paper-2); border-radius: 3px;
  font-family: var(--ff-body); font-size: 0.95rem; color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,56,30,0.08); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; text-align: center; padding: 3rem; }
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── BLOG ── */
.blog-card {
  background: var(--white); border: 1px solid var(--paper-2); border-radius: 4px;
  overflow: hidden; transition: all 0.3s var(--ease); cursor: pointer;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.blog-thumb {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.blog-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-content { padding: 1.75rem; }
.blog-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; line-height: 1.35; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: 0.78rem; color: var(--ink-3); }
.blog-author-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}

/* ── SECTION DIVIDER ── */
.divider-line { height: 1px; background: var(--paper-2); margin: 0; }

/* ── DARK SECTION ── */
.section-dark { background: var(--brand-deep); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.section-dark .card:hover { background: rgba(255,255,255,0.07); }
.section-dark .card::before { background: var(--gold); }
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: rgba(255,255,255,0.6); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: var(--white);
  padding: clamp(4rem,8vw,7rem) 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 5rem; }
.footer-brand h3 { font-family: var(--ff-display); font-size: 1.8rem; margin-bottom: 1rem; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.75rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.3); cursor: pointer; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.policy-link.active {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: 1.25rem clamp(1.25rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.5s var(--ease);
  border-top: 2px solid var(--accent);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.75); max-width: 600px; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ── EXIT INTENT ── */
.exit-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.exit-overlay.show { opacity: 1; visibility: visible; }
.exit-modal {
  background: var(--white); border-radius: 6px;
  max-width: 520px; width: 90%; padding: 3rem;
  position: relative; transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}
.exit-overlay.show .exit-modal { transform: translateY(0); }
.exit-close { position: absolute; top: 1.25rem; right: 1.25rem; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); font-size: 1.2rem; color: var(--ink-2); transition: background 0.2s; }
.exit-close:hover { background: var(--paper-2); }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SERVICE PAGE SECTIONS ── */
.service-hero { background: var(--orange-light); border-bottom: 1px solid var(--orange-mid); padding: clamp(7rem,12vw,10rem) 0 clamp(4rem,8vw,7rem); }
.services-intro { max-width: 900px; margin: 0 auto; text-align: center; }
.services-intro .back-btn { text-align: left; }
.services-overview-grid { align-items: stretch; }
.service-overview-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}
.service-overview-card p { flex-grow: 1; }
.service-overview-card .card-link { margin-top: auto; }
.who-for-list { display: flex; flex-direction: column; gap: 0.75rem; }
.who-for-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.65rem; margin-top: 2px; }
.deliverable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.deliverable-item { background: var(--paper); border: 1px solid var(--paper-2); border-radius: 3px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 500; }
.result-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.result-block { text-align: center; padding: 2.5rem 2rem; background: var(--paper); border-radius: 4px; }
.result-num { font-family: var(--ff-display); font-size: 3.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.result-desc { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.5rem; line-height: 1.5; }

/* ── CASE STUDIES INDEX ── */
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn { padding: 0.55rem 1.25rem; border: 1.5px solid var(--paper-2); border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: var(--white); color: var(--ink-2); }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.case-card { background: var(--white); border: 1px solid var(--paper-2); border-radius: 4px; overflow: hidden; transition: all 0.35s var(--ease); cursor: pointer; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.case-thumb { height: 220px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.case-thumb-label { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: 2px; }
.case-card-content { padding: 2rem; }
.case-metric-big { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }

/* ── ABOUT ── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.value-card { background: var(--paper); border-radius: 4px; border-left: 4px solid var(--accent); box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.12); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12), 0 16px 32px rgba(0,0,0,0.16); }
.value-num { font-family: var(--ff-display); font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.65rem; }
.value-title { font-size: 1.1rem; margin-bottom: 0.65rem; line-height: 1.3; color: var(--accent); }
.value-desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.6; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.tool-pill { background: var(--white); border: 1.5px solid var(--paper-2); border-radius: 100px; padding: 0.6rem 1.25rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); transition: all 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08); }
.tool-pill i { margin-right: 0.5rem; }
.tool-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.12); }

/* ── BLOG ARTICLE ── */
.article-hero { background: var(--orange-light); border-bottom: 1px solid var(--orange-mid); padding: clamp(7rem,12vw,10rem) 0 clamp(4rem,8vw,7rem); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.article-body h3 { margin: 2rem 0 0.75rem; font-size: 1.2rem; }
.article-body p { margin-bottom: 1.25rem; font-size: 1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--ink-2); }
.article-cta-box { background: var(--orange-light); border: 1px solid var(--orange-mid); border-radius: 4px; padding: 2.5rem; margin: 3rem 0; color: var(--ink); }
.article-cta-box h3 { color: var(--ink); margin-bottom: 0.75rem; font-size: 1.3rem; }
.article-cta-box p { color: var(--ink-2); margin-bottom: 1.5rem; }

/* ── CONTACT ── */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.contact-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.steps-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.step-item { display: flex; align-items: flex-start; gap: 1rem; }
.step-num { width: 32px; height: 32px; background: var(--paper-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; color: var(--ink); }

/* ── BACK BTN ── */
.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color 0.2s; margin-bottom: 2rem; }
.back-btn:hover { color: var(--ink); }

/* ── CTA BAND ── */
.cta-band { background: var(--accent); padding: clamp(2.75rem, 5.5vw, 5rem) 0; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; }
.cta-band .eyebrow { color: rgba(255,255,255,0.6); }
.cta-trust { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 1rem; }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; background: var(--paper); z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; list-style: none; }
.mobile-nav-links a { font-family: var(--ff-display); font-size: 2rem; font-weight: 300; cursor: pointer; }

/* ── STAR RATING ── */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.founders-card .stars { position: absolute; top: 1.5rem; right: 2.5rem; margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ticker-track { animation-duration: 14s; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .case-feature { grid-template-columns: 1fr; }
  .case-feature-visual { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 3rem; }
  .result-trio { grid-template-columns: 1fr; }
  .values-grid { flex-direction: column; align-items: center; }
  .values-grid .value-card { max-width: 100% !important; }
  .team-grid-custom { grid-template-columns: repeat(4, 1fr); }
  .team-grid-custom .team-card { grid-column: auto !important; }
  .morphic-nav { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 2rem; }
  .hero h1 { margin-bottom: 1.25rem; }
  .hero-sub { margin-bottom: 1.75rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--paper-2); }
  .work-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid-home { flex-direction: column; align-items: center; }
  .services-grid-home .card { max-width: 100% !important; }
}

@media (max-width: 560px) {
  .ticker-track { animation-duration: 9s; }
  .footer-grid { 
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }
  .footer-brand,
  .footer-col { text-align: center; }
  .footer-brand p { max-width: none; }
  .footer-links { align-items: center; }
  .footer-col h4 { margin-bottom: 1rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.25rem;
  }
  .footer-legal a { font-size: 0.8rem; }
  .team-grid-custom { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .work-steps-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-home .card { min-width: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Rotating Quote Styles */
.rotating-quote-container {
  position: relative;
  min-height: 120px;
  margin: 0 auto 3rem;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-quote {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  text-align: center;
}

.rotating-quote.active {
  opacity: 1;
  position: relative;
}

.rotating-quote-text {
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.rotating-quote-author {
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 600;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

