/* Catapuult Consulting. Design system. Palette: ink and violet. Type: Fraunces + Inter. */

:root {
  --ink: #17151c;
  --paper: #f8f7f4;
  --accent: #6d28d9;
  --accent-deep: #5b21b6;
  --accent-deeper: #4c1d95;
  --accent-bright: #a78bfa;
  --grey: #67646e;
  --hairline: #e6e4ea;
  --paper-dark: #1a1725;
  --paper-dark-2: #232030;
  --ink-on-dark: #f2f1f5;
  --grey-on-dark: #a19dad;
  --max: 1100px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- type ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "opsz" 72;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--grey);
  max-width: 34em;
}

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

a { color: inherit; }

.body-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.body-link:hover { color: var(--accent-deep); }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Readable measure for body copy (cards and heroes set their own) */
main p { max-width: 36em; }

section { padding: 5.5rem 0; }
section.tight { padding: 4rem 0; }

.rule-top { border-top: 1px solid var(--hairline); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark .uu { color: var(--accent); letter-spacing: -0.06em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-links a:not(.btn):hover { color: var(--accent-deep); }
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- buttons & badges ---------- */

.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-deeper); transform: translateY(-1px); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: transparent;
}

.on-dark .badge { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ---------- hero ---------- */

.hero { padding: 6.5rem 0 5.5rem; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 1.5rem; }
.hero-cta { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hero-cta .badge-line { font-size: 0.95rem; color: var(--grey); max-width: 36em; }
.hero-cta .badge-line strong { color: var(--ink); }

/* ---------- manifesto ---------- */

.manifesto {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: #fcfbfa;
}
.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 26em;
}
.manifesto .support {
  margin-top: 1.5rem;
  color: var(--grey);
  max-width: 40em;
}

/* ---------- cards ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

.card {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2rem;
  background: #fcfbfa;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h3 { max-width: 14em; }
.card p { color: var(--grey); font-size: 0.98rem; }
.card .card-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent-deep);
}
.card .card-link:hover { text-decoration: underline; }

a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- dark section ---------- */

.on-dark {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
}
.on-dark .eyebrow { color: var(--grey-on-dark); }
.on-dark .card { background: var(--paper-dark-2); border-color: #363144; }
.on-dark .card p { color: var(--grey-on-dark); }
.on-dark .lede { color: var(--grey-on-dark); }
.on-dark .body-link { color: var(--ink-on-dark); text-decoration-color: var(--accent-bright); }
.on-dark .body-link:hover { color: var(--accent-bright); }
.on-dark .card .card-link { color: var(--accent-bright); }
.on-dark a.card:hover { border-color: var(--accent-bright); }

/* ---------- lists ---------- */

.checklist { list-style: none; margin-top: 1.5rem; }
.checklist li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}
.on-dark .checklist li { border-color: #363144; }

/* ---------- method steps ---------- */

.steps { counter-reset: step; list-style: none; margin-top: 2.5rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.steps p { color: var(--grey); font-size: 0.98rem; }

/* ---------- FAQ ---------- */

.faq { margin-top: 2rem; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  padding: 1.35rem 2.5rem 1.35rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 0 1.5rem; color: var(--grey); max-width: 44em; }

/* ---------- bio block ---------- */

.bio-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--paper-dark);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */

.email-hero {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 560;
  color: var(--accent-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-hero:hover { text-decoration: underline; text-underline-offset: 6px; }

.form { max-width: 560px; margin-top: 2rem; display: grid; gap: 1.15rem; }
.form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.form input, .form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: #fcfbfa;
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .form-note { font-size: 0.88rem; color: var(--grey); }

/* ---------- footer ---------- */

footer {
  background: var(--paper-dark);
  color: var(--ink-on-dark);
  padding: 4rem 0 2.5rem;
  margin-top: 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
footer .wordmark { color: var(--ink-on-dark); font-size: 1.75rem; }
footer .wordmark .uu { color: var(--accent-bright); }
footer .footer-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-bright);
  text-underline-offset: 4px;
}
footer nav { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; }
footer nav a { color: var(--grey-on-dark); text-decoration: none; }
footer nav a:hover { color: var(--ink-on-dark); }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #363144;
  font-size: 0.85rem;
  color: var(--grey-on-dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- motion (budget: fade-up + CTA hover only) ---------- */

/* Fade-up is progressive enhancement: content is visible unless JS confirms it can animate. */
html.js-anim .fade { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-anim .fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .fade { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bio-block { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { max-width: 320px; }
  .nav-links { gap: 1.1rem; font-size: 0.9rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-inner { padding: 0.85rem 1.25rem; }
  .nav-links { width: 100%; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; }
  .steps li { grid-template-columns: 2.6rem 1fr; gap: 0.9rem; }
}
