/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; }
ol, ul { list-style: none; }
figure { margin: 0; }

/* ===== Tokens ===== */
:root {
  --bg: #FAF8F3;
  --bg-elev: #F4F0E6;
  --text: #14181C;
  --ink: #0F1B30;
  --accent: #1F4D44;
  --accent-hover: #163931;
  --teal-bright: #229D8E;
  --muted: #6B6F75;
  --rule: rgba(20, 24, 28, 0.08);
  --rule-strong: rgba(20, 24, 28, 0.18);

  --max-prose: 680px;
  --max-wide: 1080px;

  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6rem);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

p + p { margin-top: 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-prose);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--wide { max-width: var(--max-wide); }

/* ===== Slogan bar ===== */
.slogan-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
}
.slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0;
}
.slogan span {
  display: inline-block;
  margin: 0 0.6rem;
  color: var(--rule-strong);
  font-style: normal;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  flex: 0 0 auto;
  display: block;
  color: var(--ink);
}
.brand-word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--accent); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.25rem, 4.5vw + 1rem, 4.5rem);
  margin-bottom: 1.25rem;
  max-width: 22ch;
  line-height: 1.05;
  color: var(--ink);
}
.hero-lede {
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.3125rem);
  color: var(--text);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}
.btn:active { transform: translateY(1px); }
.btn-secondary {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.hero-cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  flex-basis: 100%;
  margin-top: 0.25rem;
}
@media (min-width: 560px) {
  .hero-cta-note {
    flex-basis: auto;
    margin-top: 0;
  }
}

/* ===== Hero capabilities ===== */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.capability { display: flex; flex-direction: column; gap: 0.65rem; }
.capability-head {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.capability-num {
  color: var(--accent);
  white-space: nowrap;
  font-weight: 600;
}
.capability-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.45;
}
.capability-bullets li {
  position: relative;
  padding-left: 1rem;
}
.capability-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
@media (min-width: 800px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .capability:not(:last-child) {
    border-right: 1px solid var(--rule);
    padding-right: 2rem;
  }
}

/* ===== Affiliations ===== */
.affiliations {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.affiliations ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.affiliations li {
  padding: 0 1.4rem;
  border-right: 1px solid var(--rule-strong);
  line-height: 1.4;
}
.affiliations li:first-child { padding-left: 0; }
.affiliations li:last-child { border-right: none; padding-right: 0; }
@media (max-width: 640px) {
  .affiliations li {
    border-right: none;
    padding: 0.15rem 0;
    width: 100%;
  }
  .affiliations li:not(:last-child) {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* ===== Partners strip ===== */
.partners {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.partners-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 2rem;
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 3.5vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.partners-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}
.partners-list img {
  max-height: 32px;
  max-width: 110px;
  width: auto;
  height: auto;
  display: block;
  filter: grayscale(100%) brightness(1.05) contrast(0.6);
  opacity: 0.45;
  mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .partners-list { gap: 1rem 1.5rem; }
  .partners-list img { max-height: 26px; max-width: 90px; }
}

/* ===== Sections ===== */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
}
.section-title {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.625rem);
  margin-bottom: 2rem;
  color: var(--ink);
}

/* ===== Services ===== */
.service {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.service:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.service-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}
.service h3 {
  font-size: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.service p { color: var(--text); }
.service-deliverables {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.925rem;
  color: var(--text);
}
.service-deliverables li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}
.service-deliverables li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.section-cta {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

/* ===== Steps ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
.step-num {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 2.5vw + 1.25rem, 3rem);
  color: var(--accent);
  line-height: 0.95;
  min-width: 1.5ch;
}
.step-body h3 {
  font-size: clamp(1.25rem, 1vw + 0.875rem, 1.625rem);
  margin-bottom: 0.4rem;
  color: var(--ink);
}

/* ===== Founder ===== */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.founder-text { max-width: var(--max-prose); order: 2; }
.founder-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}
.founder-lede {
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.founder-links {
  margin-top: 1.5rem !important;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.founder-links a { color: var(--accent); }
.founder-links-sep { margin: 0 0.5rem; color: var(--rule-strong); }
.founder-photo {
  order: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  background: var(--bg-elev);
  overflow: hidden;
  border-radius: 6px;
  margin: 0 0 0.5rem;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
@media (min-width: 880px) {
  .founder-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 4rem;
  }
  .founder-text { order: 1; }
  .founder-photo { order: 2; max-width: 360px; }
}

/* ===== Achievements ===== */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.proof-item {
  padding: 1.5rem;
  background: var(--bg-elev);
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.proof-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2.5vw + 1rem, 2.75rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.proof-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.proof-item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.proof-link {
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
@media (min-width: 720px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (min-width: 1000px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ===== Pricing ===== */
#pricing p { margin-bottom: 1.25rem; }
#pricing p:last-child { margin-bottom: 0; }

/* ===== Contact ===== */
.contact-cta-line {
  margin-bottom: 2rem !important;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
}
.contact-list li { line-height: 1.5; }
.contact-list a { word-break: break-word; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-meta { margin: 0; }
.footer-legal {
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-legal span { color: var(--rule-strong); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ===== Legal pages ===== */
.legal-page {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}
.legal-page .container { max-width: var(--max-prose); }
.legal-back {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.legal-back a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.legal-back a:hover { color: var(--accent); }
.legal-page h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.875rem);
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.legal-page h2 {
  font-size: clamp(1.25rem, 1vw + 0.875rem, 1.5rem);
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.legal-page p {
  margin-bottom: 1em;
  color: var(--text);
}

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Mobile nav ===== */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    z-index: 60;
  }
  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    inset: 4rem 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem var(--pad-x) 2rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    z-index: 40;
    visibility: hidden;
  }
  .primary-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .primary-nav a {
    font-size: 1.125rem;
    display: block;
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ===== Audience modal ===== */
.audience-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 48, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.audience-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.audience-modal-card {
  background: var(--bg);
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.audience-modal.is-open .audience-modal-card {
  transform: none;
}
.audience-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.audience-modal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 2vw + 1rem, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.audience-modal-lede {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.audience-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.audience-option {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.audience-option:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.audience-option:active {
  transform: translateY(1px);
}
.audience-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.audience-option--cta {
  background: var(--accent);
  border-color: var(--accent);
}
.audience-option--cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.audience-option-label {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.audience-option--cta .audience-option-label {
  color: var(--bg);
}
.audience-option-meta {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.audience-option--cta .audience-option-meta {
  color: rgba(250, 248, 243, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .audience-modal,
  .audience-modal-card,
  .audience-option {
    transition: none;
  }
}

/* ===== Print ===== */
@media print {
  .site-header, .nav-toggle, .hero-cta, .nav-cta { display: none; }
  body { font-size: 11pt; background: white; }
  a { color: var(--text); text-decoration: underline; }
  .proof-visual, .proof-item { background: white; border: 1px solid #ccc; }
}
