/* ============================================================
   MarketPilot AI — design tokens
   ============================================================ */
:root {
  --cream: #F6F3EC;
  --cream-2: #EFEAE0;
  --paper: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #1A1E25;
  --muted: #5C5E66;
  --line: rgba(14, 17, 22, 0.10);
  --line-2: rgba(14, 17, 22, 0.18);

  --accent: #1E5BFF;
  --accent-2: #4F7FFF;
  --navy: #0F1F4D;
  --accent-soft: rgba(30, 91, 255, 0.15);
  --accent-soft-2: rgba(30, 91, 255, 0.10);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.05), 0 4px 12px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 8px 30px rgba(14, 17, 22, 0.08);
  --shadow-lg: 0 30px 80px rgba(14, 17, 22, 0.18);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --t: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  margin: 0 0 24px;
  color: var(--ink);
}
.display.sm { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.ital {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.section-dark .ital { color: var(--accent-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin: 0 0 28px;
}
.eyebrow .num {
  display: inline-block;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 6px;
  font-feature-settings: "tnum";
}
.eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(30, 91, 255, 0.10); }
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  max-width: 60ch;
  margin: 0 0 32px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(80px, 10vw, 140px);
  position: relative;
}
.section-dark {
  background: var(--ink);
  color: #EDEAE2;
}
.section-dark .display, .section-dark h3, .section-dark h4, .section-dark .eyebrow { color: #F6F3EC; }
.section-dark .eyebrow .num { background: var(--cream); color: var(--ink); }
.section-dark .lede, .section-dark p { color: #B6B7BD; }
.section-dark .section-sub { color: #B6B7BD; }
.section-cream { background: var(--cream-2); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px 0 0;
  max-width: 60ch;
}

.grid { display: grid; gap: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-lg { padding: 17px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.section-dark .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.section-dark .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section-dark .btn-ghost {
  color: var(--cream);
  border-color: rgba(246, 243, 236, 0.24);
}
.section-dark .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.arrow { transition: transform var(--t); display: inline-block; }
.btn:hover .arrow, .card-cta:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow.flip, .arrow.flip { /* leftward arrows shouldn't flip */ }
.btn:hover .arrow.flip { transform: translateX(-4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(246, 243, 236, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 236, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark { color: var(--ink); display: inline-flex; }
.brand-dot { color: var(--accent); }
.brand-word { font-feature-settings: "ss01"; }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo--footer { height: 44px; }
@media (max-width: 520px) { .brand-logo { height: 44px; } }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--t);
}
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  width: 44px; height: 44px;
  border-radius: 12px;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform var(--t), top var(--t), opacity var(--t);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn { margin-top: 8px; align-self: flex-start; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at 50% 50%, rgba(30, 91, 255, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  z-index: 1;
}
.hero-copy { max-width: 720px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.hero-meta span { font-size: 0.85rem; color: var(--muted); }

/* hero-card mock terminal */
.hero-card {
  background: var(--ink);
  color: #EDEAE2;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid #1f242c;
  transform: rotate(0.6deg);
}
.hero-card-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #232830;
  margin-bottom: 14px;
}
.dots { display: inline-flex; gap: 6px; }
.dots i {
  width: 10px; height: 10px;
  background: #2a2f38;
  border-radius: 50%;
  display: block;
}
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.hero-card-label { color: #8A8E96; font-size: 12px; }
.hero-card .line { margin: 0; padding: 2px 0; color: #C8CAD0; }
.hero-card .prompt { color: var(--accent); margin-right: 8px; }
.hero-card .hl { color: #F6F3EC; }
.hero-card .tag {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(30, 91, 255, 0.18);
  color: var(--accent-2);
  border-radius: 999px;
  margin-right: 4px;
  font-size: 12px;
}
.hero-card .typing .cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-card .out {
  margin-top: 10px; padding: 10px 12px;
  background: #11151c; border-radius: 10px;
  border: 1px dashed #2a3140; color: #F6F3EC;
}
.hero-card .meta { color: #6E7480; font-size: 12px; margin-top: 8px; }

/* marquee */
.marquee {
  position: relative;
  margin-top: clamp(60px, 8vw, 100px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink);
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Services
   ============================================================ */
.services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.service-num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  font-feature-settings: "tnum";
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.service-tag {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-card p { color: var(--muted); margin: 0 0 20px; }
.check { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.check li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--ink);
}
.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color var(--t), border-color var(--t);
}
.card-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Stack
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stack-card {
  background: #14181f;
  border: 1px solid #1f242c;
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: #181d26;
}
.stack-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.10);
  color: var(--accent-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.stack-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 4px;
  color: #F6F3EC;
}
.stack-tag {
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.stack-card p { color: #B6B7BD; margin: 0; font-size: 0.95rem; }

/* ============================================================
   Process
   ============================================================ */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process li {
  background: var(--cream);
  padding: 32px 28px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  transition: background var(--t);
}
.process li:hover { background: var(--paper); }
.process-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.process h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 4px 0 4px;
  letter-spacing: -0.01em;
}
.process p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ============================================================
   Founder
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.founder-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.founder-photo:hover img { transform: scale(1.03); }
.founder-photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(14, 17, 22, 0.78);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.founder-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.founder-meta div { display: flex; flex-direction: column; gap: 2px; }
.founder-meta strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.founder-meta span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* ============================================================
   CTA / Contact
   ============================================================ */
.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.cta-copy .display { color: #F6F3EC; }
.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #C8CAD0;
}
.contact-list a { color: #F6F3EC; }
.contact-list a:hover { color: var(--accent-2); }
.ico {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.08);
  color: var(--accent-2);
}

.contact-form {
  background: #14181f;
  border: 1px solid #1f242c;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #B6B7BD;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: #0E1116;
  border: 1px solid #232830;
  color: #F6F3EC;
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
  font-family: var(--font-sans);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #11151c;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { justify-content: center; margin-top: 6px; }
.form-note {
  margin: 6px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(255, 90, 31, 0.24);
}
.form-note.success {
  background: rgba(40, 200, 64, 0.10);
  color: #58D072;
  border-color: rgba(40, 200, 64, 0.30);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 88px);
  margin-bottom: 60px;
}
.footer-brand p { color: var(--muted); margin: 16px 0 0; max-width: 28ch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer-cols a, .footer-cols p {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 8px;
  transition: color var(--t);
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Mission section
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.mission-grid header { position: sticky; top: 100px; }
.mission-copy p { color: var(--muted); margin: 0 0 16px; }
.mission-copy .lede { color: var(--ink); }

/* ============================================================
   Team section
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.team-card--lead {
  background: var(--ink);
  border-color: var(--ink);
  color: #F6F3EC;
}
.team-card--lead h3 { color: #F6F3EC; }
.team-card--lead .team-role { color: var(--accent-2); }
.team-card--lead .team-bio { color: #B6B7BD; }

.team-photo {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 4 / 5;
  position: relative;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-card:hover .team-photo img { transform: scale(1.04); }

.team-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  line-height: 1.15;
}
.team-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}
.team-bio {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Bottom CTA (homepage)
   ============================================================ */
.cta-bottom { padding-block: clamp(80px, 10vw, 140px); }
.cta-bottom-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-bottom-inner .display { color: #F6F3EC; }
.cta-bottom-inner .lede { color: #B6B7BD; margin-inline: auto; }
.cta-bottom-inner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ============================================================
   Contact page tweaks
   ============================================================ */
.contact-page .site-header { background: rgba(14, 17, 22, 0.85); border-bottom-color: rgba(246, 243, 236, 0.06); }
.contact-page .site-header .nav a { color: #C8CAD0; }
.contact-page .site-header .nav a:hover { color: var(--cream); }
.contact-page .site-header .brand-logo { filter: brightness(1.05); }
.contact-page .site-header .menu-toggle { border-color: rgba(246, 243, 236, 0.18); }
.contact-page .site-header .menu-toggle span { background: var(--cream); }
.contact-page .header-cta.btn-ghost { color: var(--cream); border-color: rgba(246, 243, 236, 0.24); }
.contact-page .header-cta.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.contact-hero { padding-top: clamp(80px, 10vw, 140px); }
.contact-hero .display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }

.contact-form label em { color: var(--accent-2); font-style: normal; }
.extra-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.extra-ctas .btn-ghost {
  color: var(--cream);
  border-color: rgba(246, 243, 236, 0.24);
}
.extra-ctas .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-grid header { position: static; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 520px; }
  .services-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-meta { grid-template-columns: repeat(3, auto); gap: 16px; }
  .cta-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .extra-ctas { flex-direction: column; align-items: stretch; }
  .extra-ctas .btn { justify-content: center; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .founder-meta { grid-template-columns: 1fr; }
}
