/* ============================================================
   REDPLUM TECHNOLOGIES — DESIGN SYSTEM
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Palette */
  --warm-white:   #FFFFFF;
  --light-surface:#F5F4F2;
  --parchment:    #F0EDE8;
  --charcoal:     #1A1A1A;
  --obsidian:     #0D0D0D;
  --ink:          #111111;
  --body-color:   #444444;
  --muted:        #555555;
  --subdued:      #9A9690;
  --plum-red:     #C8102E;
  --harvest-gold: #D4A843;
  --border:       #E8E8E8;

  /* Typography */
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing — 8px grid */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-20: 160px;

  /* Layout */
  --container-max: 1200px;
  --container-px:  clamp(20px, 5vw, 56px);
  --section-py:    clamp(80px, 10vw, 140px);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:   160ms;
  --dur-base:   280ms;
  --dur-slow:   480ms;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--warm-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

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


/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section { padding-block: var(--section-py); }


/* ── Typography Primitives ────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-gold);
  margin-bottom: var(--sp-3);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

.section-body {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--body-color);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 3px;
  padding: 14px 28px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--plum-red);
  color: #fff;
}
.btn--primary:hover {
  background: #a80d25;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.28);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--outline {
  background: transparent;
  color: var(--plum-red);
  border: 1.5px solid var(--plum-red);
}
.btn--outline:hover {
  background: var(--plum-red);
  color: #fff;
  transform: translateY(-1px);
}


/* ── Link Styles ──────────────────────────────────────────── */
.link-secondary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-bottom: 2px;
}
.link-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: opacity var(--dur-base) var(--ease);
  opacity: 0.4;
}
.link-secondary:hover::after { opacity: 1; }

.link-arrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-fast) var(--ease);
}
.link-arrow:hover { gap: 8px; }


/* ── Scroll-enter Animations ──────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
[data-animate][data-delay="1"] { transition-delay: 80ms; }
[data-animate][data-delay="2"] { transition-delay: 160ms; }
[data-animate][data-delay="3"] { transition-delay: 240ms; }
[data-animate][data-delay="4"] { transition-delay: 320ms; }
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cards ────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.card {
  background: var(--light-surface);
  padding: var(--sp-5) var(--sp-4);
  transition: transform var(--dur-base) var(--ease);
}
.card:hover { transform: translateY(-3px); }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.card__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.card__body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}


/* ============================================================
   01 — NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: var(--sp-8);
}

/* Logo shared */
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--plum-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

/* Nav logo */
.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subdued);
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}

.nav__item { position: relative; }

.nav__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 3px;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav__link:hover,
.nav__link--btn:hover { background: var(--light-surface); }

.nav__link--btn {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--dur-fast) var(--ease);
}

.nav__chevron {
  transition: transform var(--dur-fast) var(--ease);
  opacity: 0.5;
}
.nav__item--has-dropdown.open .nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  min-width: 200px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              visibility var(--dur-fast) var(--ease);
  pointer-events: none;
}

.nav__item--has-dropdown.open .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.nav__dropdown-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--body-color);
  padding: 10px 18px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.nav__dropdown-link:hover {
  background: var(--light-surface);
  color: var(--ink);
}

.nav__dropdown-link--overview {
  color: var(--plum-red);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }


/* ============================================================
   02 — HERO
   ============================================================ */
.hero {
  padding-top: calc(72px + 80px);
  padding-bottom: var(--sp-20);
  background: var(--warm-white);
}

.hero__inner { max-width: 860px; }

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 82px);
  font-weight: 400;
  line-height: 1.03;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--body-color);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}

.hero__rule {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: var(--border);
  margin-bottom: var(--sp-6);
}

.hero__stats {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
}

.hero__stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__stat-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--subdued);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__stat-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--subdued);
  opacity: 0.6;
  letter-spacing: 0.04em;
}


/* ============================================================
   03 — SOCIAL PROOF
   ============================================================ */
.proof {
  background: var(--light-surface);
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.proof__label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--subdued);
  white-space: nowrap;
  flex-shrink: 0;
}

.proof__logos {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  flex: 1;
}

.proof__logo {
  width: 110px;
  height: 36px;
  background: var(--border);
  border-radius: 2px;
  opacity: 0.5;
  flex-shrink: 0;
}


/* ============================================================
   04 — THE PROBLEM
   ============================================================ */
.problem {
  background: var(--warm-white);
  padding-block: var(--section-py);
}

.problem__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 640px;
}
.problem__body p {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--body-color);
  line-height: 1.75;
}


/* ============================================================
   05 — MECHANISM
   ============================================================ */
.mechanism {
  background: var(--warm-white);
  padding-block: var(--section-py);
  border-top: 1px solid var(--border);
}


/* ============================================================
   06 — CORE CLAIM
   ============================================================ */
.core-claim {
  background: var(--charcoal);
  padding-block: var(--section-py);
}

.core-claim__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 860px;
}

.core-claim__quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-8);
  border: none;
  padding: 0;
}

.core-claim__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.core-claim__stat {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--harvest-gold);
}

.core-claim__sep {
  width: 1px;
  height: 28px;
  background: rgba(212, 168, 67, 0.3);
  flex-shrink: 0;
}


/* ============================================================
   07 — ICP ROUTING
   ============================================================ */
.icp {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.icp__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.icp-card {
  background: var(--light-surface);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur-base) var(--ease);
}
.icp-card:hover { transform: translateY(-3px); }

.icp-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subdued);
}

.icp-card__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.icp-card__body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}


/* ============================================================
   08 — CASE STUDIES
   ============================================================ */
.work {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.work-card {
  background: var(--light-surface);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease);
}
.work-card:hover { transform: translateY(-3px); }

.work-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.work-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(200,16,46,0.04) 0%,
    transparent 60%
  );
}

.work-card__content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.work-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subdued);
}

.work-card__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.work-card__result {
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}


/* ============================================================
   09 — LEAD MAGNET
   ============================================================ */
.lead-magnet {
  background: var(--light-surface);
  padding-block: var(--section-py);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lead-magnet__inner { max-width: 680px; }

.lead-magnet__headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.lead-magnet__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  max-width: 540px;
}


/* ============================================================
   10 — FOUNDER
   ============================================================ */
.founder {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.founder__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-12);
  align-items: center;
}

.founder__photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--light-surface);
  position: relative;
  overflow: hidden;
}
.founder__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(212,168,67,0.08) 0%,
    transparent 50%,
    rgba(200,16,46,0.04) 100%
  );
}

.founder__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.founder__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}


/* ============================================================
   11 — FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--obsidian);
  padding-block: var(--section-py);
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
}

.final-cta__headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--parchment);
  margin-bottom: var(--sp-5);
}

.final-cta__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--subdued);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--sp-6);
}

.final-cta__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subdued);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-3);
  opacity: 0.6;
}


/* ============================================================
   12 — FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  padding-block: var(--sp-12);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner { display: flex; flex-direction: column; gap: var(--sp-10); }

.footer__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-12);
}

.footer__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.footer__logo .logo-mark {
  background: var(--plum-red);
}
.footer__logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--parchment);
}
.footer__logo-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.4);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subdued);
  margin-bottom: var(--sp-3);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__col a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--subdued);
  transition: color var(--dur-fast) var(--ease);
}
.footer__col a:hover { color: var(--parchment); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--subdued);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer__legal a {
  color: var(--subdued);
  transition: color var(--dur-fast) var(--ease);
}
.footer__legal a:hover { color: var(--parchment); }
.footer__legal span { opacity: 0.4; }


/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--warm-white);
  max-width: 480px;
  width: 100%;
  padding: var(--sp-8) var(--sp-8);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur-base) var(--ease);
}
.modal.open .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--subdued);
  padding: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.modal__close:hover { color: var(--ink); }

.modal__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}

.modal__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--body-color);
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.modal__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--light-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.modal__input:focus { border-color: var(--plum-red); }
.modal__input::placeholder { color: var(--subdued); }

.modal__note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--subdued);
  letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .icp__cards { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1fr; }
  .founder__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer__top { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-5) var(--container-px);
    gap: var(--sp-1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    border-top: 1px solid var(--border);
  }
  .nav__links.open { transform: translateX(0); }

  .nav__item { width: 100%; }
  .nav__link,
  .nav__link--btn { width: 100%; padding: 12px 0; }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--light-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-base) var(--ease);
    border-radius: 3px;
    margin-top: 4px;
  }
  .nav__item--has-dropdown.open .nav__dropdown {
    max-height: 400px;
    pointer-events: all;
  }
  .nav__dropdown-link { padding: 10px 14px; }

  .nav__hamburger { display: flex; }
  .nav__actions .btn--primary { display: none; }

  .hero__headline { font-size: clamp(40px, 11vw, 60px); }
  .hero__sub { font-size: 16px; }
  .hero__ctas { flex-wrap: wrap; gap: var(--sp-3); }
  .hero__stats { flex-wrap: wrap; gap: var(--sp-4); }
  .hero__stat-sep { display: none; }

  .proof__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .proof__logos { gap: var(--sp-4); }

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

  .core-claim__stats { flex-wrap: wrap; gap: var(--sp-4); }
  .core-claim__sep { display: none; }

  .founder__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .founder__photo { aspect-ratio: 3/2; }

  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  .modal__content { padding: var(--sp-6) var(--sp-4); }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .footer__nav { grid-template-columns: 1fr; }
}


/* ============================================================
   NAV — ACTIVE STATE
   ============================================================ */
.nav__link--active {
  color: var(--plum-red) !important;
}

.link-arrow--on-dark {
  color: var(--harvest-gold);
}


/* ============================================================
   PAGE — INDUSTRIES OVERVIEW
   ============================================================ */

/* Hero */
.ind-hero {
  padding-top: calc(72px + clamp(56px, 7vw, 96px));
  padding-bottom: clamp(64px, 8vw, 100px);
  background: var(--warm-white);
}

.ind-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.ind-hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--body-color);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

/* Industry Cards Section */
.ind-cards {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.ind-cards .label {
  margin-bottom: var(--sp-8);
}

.ind-cards__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ind-card {
  background: var(--light-surface);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur-base) var(--ease);
}
.ind-card:hover { transform: translateY(-2px); }

.ind-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ind-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ind-card__title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.ind-card__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.ind-card__skills {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subdued);
}

/* Domain Skills Callout */
.ind-domain {
  background: var(--charcoal);
  padding-block: var(--section-py);
}

.ind-domain__inner {
  max-width: 780px;
}

.ind-domain__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: var(--sp-5);
}

.ind-domain__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--subdued);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: var(--sp-6);
}

/* Featured Case Studies */
.ind-work {
  background: var(--light-surface);
  border-top: 1px solid var(--border);
}

.ind-work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

/* Responsive — Industries */
@media (max-width: 768px) {
  .ind-hero__sub { font-size: 16px; }
  .ind-card { padding: var(--sp-5) var(--sp-4); }
  .ind-card__title { font-size: 19px; }
  .ind-work__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PAGE — SERVICES OVERVIEW
   ============================================================ */

/* Hero */
.services-hero {
  padding-top: calc(72px + clamp(60px, 8vw, 100px));
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--warm-white);
}

.services-hero__inner { max-width: 720px; }

.services-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 70px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.services-hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--body-color);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.services-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* Services Grid */
.services-grid-section {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.service-card {
  background: var(--light-surface);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--dur-base) var(--ease);
}
.service-card:hover { transform: translateY(-3px); }

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-1);
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.service-card__body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* Delivery OS™ Strip */
.delivery-strip {
  background: var(--charcoal);
  padding-block: var(--section-py);
}

.delivery-strip__inner { max-width: 900px; }

.delivery-strip__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.delivery-strip__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--subdued);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: var(--sp-8);
}

.delivery-strip__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.delivery-strip__col-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-gold);
  margin-bottom: var(--sp-2);
}

.delivery-strip__col-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--subdued);
  line-height: 1.65;
}

.delivery-strip__link { color: var(--parchment); }

/* Path Chooser */
.path-chooser { background: var(--warm-white); border-top: 1px solid var(--border); }

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.path-tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--light-surface);
  padding: var(--sp-4);
  transition: transform var(--dur-base) var(--ease);
}
.path-tile:hover { transform: translateY(-2px); }

.path-tile__prompt {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
}

.path-tile__route {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-red);
}

.path-chooser__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.path-chooser__sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
}

/* Responsive — Services Overview */
@media (max-width: 768px) {
  .services-hero__ctas { flex-wrap: wrap; gap: var(--sp-3); }
  .services-grid { grid-template-columns: 1fr; }
  .delivery-strip__cols { grid-template-columns: 1fr; gap: var(--sp-4); }
  .path-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PAGE — HOW WE WORK
   ============================================================ */

/* Hero */
.hww-hero {
  background: var(--warm-white);
  padding-block: var(--section-py);
}

.hww-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-5);
  max-width: 800px;
}

.hww-hero__sub {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--body-color);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

.hww-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* Old Way vs New Way */
.hww-compare { border-top: 1px solid var(--border); }

.hww-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.hww-compare__col {
  padding: var(--sp-6);
}

.hww-compare__col--old {
  background: var(--light-surface);
}

.hww-compare__col--new {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--plum-red);
}

.hww-compare__col-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subdued);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.hww-compare__col--new .hww-compare__col-title {
  color: var(--plum-red);
  border-bottom-color: rgba(200, 16, 46, 0.15);
}

.hww-compare__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hww-compare__item {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: var(--sp-3);
  position: relative;
}

.hww-compare__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.hww-compare__col--new .hww-compare__item { color: var(--ink); }
.hww-compare__col--new .hww-compare__item::before { background: var(--plum-red); }

/* Delivery OS Architecture */
.hww-dos {
  background: var(--charcoal);
  padding-block: var(--section-py);
}

.hww-dos__headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.hww-dos__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--subdued);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--sp-10);
}

.hww-dos__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.hww-dos-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-6);
}

.hww-dos-card__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: var(--sp-3);
}

.hww-dos-card__body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--subdued);
  line-height: 1.7;
}

/* Agent Breakdown */
.hww-agents { border-top: 1px solid var(--border); }

.hww-agent-card {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--light-surface);
  padding: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.hww-agent-card:last-child { margin-bottom: 0; }

.hww-agent-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  border: 1px solid var(--border);
}

.hww-agent-card__content { flex: 1; }

.hww-agent-card__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.hww-agent-card__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
  max-width: 680px;
}

.hww-agent-card__proof {
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: italic;
  color: var(--subdued);
}

/* Transparency Dashboard */
.hww-dashboard {
  background: var(--light-surface);
  border-top: 1px solid var(--border);
}

.hww-dashboard__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hww-dashboard__terminal {
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.hww-dashboard__term-bar {
  background: #2a2a2a;
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hww-dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hww-dashboard__dot--red    { background: #ff5f57; }
.hww-dashboard__dot--yellow { background: #febc2e; }
.hww-dashboard__dot--green  { background: #28c840; }

.hww-dashboard__term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subdued);
  margin-left: var(--sp-1);
}

.hww-dashboard__term-body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.hww-dashboard__term-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.hww-dashboard__term-line--label {
  color: var(--harvest-gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}

.hww-dashboard__term-line--ok    { color: #28c840; }
.hww-dashboard__term-line--warn  { color: #febc2e; }
.hww-dashboard__term-line--muted { color: var(--subdued); }

.hww-dashboard__progress-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hww-dashboard__progress-track {
  height: 6px;
  width: 180px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.hww-dashboard__progress-track-fill {
  height: 100%;
  width: 62%;
  background: var(--plum-red);
  border-radius: 3px;
}

.hww-dashboard__progress-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--parchment);
}

.hww-dashboard__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.hww-dashboard__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  max-width: 440px;
}

/* Sprint Process */
.hww-process { border-top: 1px solid var(--border); }

.hww-process__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  margin-bottom: var(--sp-8);
}

.hww-process__step {
  background: var(--light-surface);
  padding: var(--sp-5);
}

.hww-process__step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-gold);
  margin-bottom: var(--sp-2);
}

.hww-process__step-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.hww-process__step-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.hww-process__arrow {
  font-size: 20px;
  color: var(--plum-red);
  padding-top: var(--sp-5);
  align-self: start;
}

.hww-process__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hww-process__stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subdued);
}

.hww-process__stat-sep {
  color: var(--border);
  font-size: 18px;
}

/* MCP Connectors */
.hww-mcp {
  background: var(--charcoal);
  padding-block: var(--section-py);
}

.hww-mcp__headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.12;
  margin-bottom: var(--sp-5);
  max-width: 680px;
}

.hww-mcp__body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--subdued);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: var(--sp-8);
}

.hww-mcp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hww-mcp__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-gold);
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: var(--sp-1) var(--sp-3);
}

/* Responsive — How We Work */
@media (max-width: 900px) {
  .hww-dos__cards { grid-template-columns: 1fr; }
  .hww-dashboard__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  .hww-compare__grid { grid-template-columns: 1fr; }
  .hww-process__steps { grid-template-columns: 1fr; }
  .hww-process__arrow { display: none; }
  .hww-agent-card { flex-direction: column; gap: var(--sp-3); }
  .hww-hero__ctas { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .hww-process__stats { gap: var(--sp-3); }
  .hww-process__stat-sep { display: none; }
}
