/* ===================================================================
   CTO Search — "the search brief"
   Serif gravitas (Fraunces) × engineering precision (Space Mono)
   =================================================================== */

:root {
  --ink:        #0C0E12;
  --ink-soft:   #1A1D24;
  --paper:      #F5F6F8;
  --paper-warm: #FBFBFC;
  --line:       #DEE1E7;
  --line-ink:   rgba(255,255,255,.14);
  --muted:      #5C6270;
  --muted-ink:  #9AA1B0;

  --accent:     #2547FF;
  --accent-2:   #6C4CE0;
  --grad:       linear-gradient(135deg, var(--accent), var(--accent-2));

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "Space Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 80px);
  --sec-y: clamp(72px, 11vw, 148px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- keystone mark ---------- */
.keystone { display: inline-flex; width: 22px; height: 22px; }
.keystone svg { width: 100%; height: 100%; }
.keystone svg path { fill: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .02em; padding: 11px 20px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--lg { padding: 15px 28px; font-size: .84rem; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(37,71,255,.6); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--accent); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.brand__word { font-size: 1.05rem; letter-spacing: -.01em; }
.brand__thin { font-weight: 400; color: var(--muted); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .92rem; color: var(--muted); }
.nav__links a { transition: color .18s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle { display: none; }

/* mobile menu */
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) var(--pad) var(--sec-y); }
.hero__inner { max-width: var(--wrap); margin: 0 auto; }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: .98;
  letter-spacing: -.02em; margin-bottom: 26px;
}
.hero__sub {
  max-width: 42ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted); line-height: 1.5; margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

/* hero brief card — the "signature" dossier */
.hero__brief {
  max-width: 460px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper-warm);
  padding: 6px 22px; box-shadow: 0 24px 60px -34px rgba(12,14,18,.4);
}
.brief__row {
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: .82rem;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.brief__row:last-child { border-bottom: 0; }
.brief__row span:first-child { color: var(--muted); letter-spacing: .1em; }
.brief__row span:last-child { color: var(--ink); }
.brief__live { color: var(--accent) !important; font-weight: 700; }

/* ---------- trust ---------- */
.trust { padding: 0 var(--pad) var(--sec-y); max-width: var(--wrap); margin: 0 auto; }
.trust__label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 26px;
}
.trust__logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 64px);
  font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--ink); opacity: .34;
}

/* ---------- generic section ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) var(--sec-y); }
.sec-eyebrow {
  font-family: var(--mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 16px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.sec-eyebrow--light { color: var(--accent-2); border-color: var(--line-ink); }
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.04;
  letter-spacing: -.02em; margin-bottom: 48px;
}

/* ---------- approach cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.card__index {
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  margin-bottom: 18px;
}
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -.01em; }
.card__body { color: var(--muted); font-size: 1.02rem; }

/* ---------- stat ---------- */
.stat { background: var(--ink); color: #fff; padding: var(--sec-y) var(--pad); }
.stat__line {
  max-width: var(--wrap); margin: 0 auto; text-align: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.16; letter-spacing: -.015em;
  color: var(--muted-ink);
}
.stat__pop {
  color: #fff;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- scope tags ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
  font-family: var(--mono); font-size: .86rem;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper-warm); color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.tags li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.role { background: var(--paper-warm); padding: clamp(24px, 3vw, 38px); transition: background .2s ease; }
.role:hover { background: #fff; }
.role__mark {
  display: block; width: 16px; height: 14px; margin-bottom: 20px;
  background: var(--grad);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}
.role h3 { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; letter-spacing: -.01em; margin-bottom: 10px; }
.role p { color: var(--muted); font-size: .96rem; }

/* ---------- testimonial ---------- */
.quote { max-width: 920px; margin: 0 auto; padding: 0 var(--pad) var(--sec-y); text-align: center; }
.quote__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.28; letter-spacing: -.015em;
  margin-bottom: 28px;
}
.quote__by { font-family: var(--mono); font-size: .84rem; color: var(--muted); letter-spacing: .02em; }
.quote__by strong { color: var(--ink); font-weight: 700; }

/* ---------- process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-bottom: 64px; counter-reset: none; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps__n { font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 14px; }
.steps li p { font-size: 1.12rem; color: var(--ink); max-width: 24ch; }

.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); margin-bottom: 56px; }
.engage__item { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-warm); }
.engage__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; letter-spacing: -.01em; margin-bottom: 10px; }
.engage__item p { color: var(--muted); font-size: .98rem; }

/* cta band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--ink); color: #fff; border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
}
.cta-band__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.cta-band__sub { color: var(--muted-ink); margin-top: 6px; }
.cta-band .btn--solid { background: #fff; color: var(--ink); }
.cta-band .btn--solid:hover { background: var(--accent); color: #fff; }

/* ---------- mission (dark) ---------- */
.mission { background: var(--ink); color: #fff; padding: var(--sec-y) var(--pad); }
.mission__inner { max-width: var(--wrap); margin: 0 auto; }
.mission__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 20px; max-width: 20ch; }
.mission__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--accent-2); margin-bottom: 28px; font-family: var(--serif); }
.mission__body { max-width: 62ch; color: var(--muted-ink); font-size: 1.08rem; line-height: 1.6; }

/* ---------- candidates ---------- */
.candidates { text-align: center; }
.candidates .sec-eyebrow { display: inline-block; }
.candidates__body { max-width: 52ch; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--accent); transition: transform .25s ease; }
.faq__plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__plus::after { transform: scaleY(0); }
.faq__item p { padding: 0 4px 26px; color: var(--muted); max-width: 68ch; font-size: 1.02rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) var(--pad) 40px; }
.footer__top { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 40px; border-bottom: 1px solid var(--line-ink); }
.brand--footer .brand__thin { color: var(--muted-ink); }
.footer__tag { font-family: var(--serif); font-size: 1.15rem; color: var(--muted-ink); }
.footer__bottom { max-width: var(--wrap); margin: 32px auto 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: .78rem; color: var(--muted-ink); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { transition: color .18s ease; }
.footer__links a:hover { color: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .cards3, .roles, .steps, .engage { grid-template-columns: 1fr; }
  .roles { border-radius: 14px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px var(--pad) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    position: sticky; top: 65px; z-index: 40;
  }
  .mobile-menu a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; margin-top: 10px; align-self: flex-start; }
  .mobile-menu[hidden] { display: none; }
}

@media (max-width: 560px) {
  .hero__brief { max-width: 100%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__title { font-size: clamp(2.05rem, 9vw, 2.9rem); }
  .hero__sub { font-size: 1.05rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .1em; }
  .stat__line { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .sec-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .quote__text { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .mission__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .btn--lg { padding: 14px 22px; }
  .brief__row { font-size: .76rem; gap: 12px; }
}
