/* ==========================================================================
   Evans AI Labs
   Hand-authored CSS. No build step, no framework.

   DIALS      DESIGN_VARIANCE 7 / MOTION_INTENSITY 5 / VISUAL_DENSITY 4
   ACCENT     One accent only (forest green), used identically page-wide.
   RADIUS     Documented two-step scale: cards and media 12px, buttons and
              inputs 8px. Nothing else introduces a radius.
   THEME      One theme for the whole page, following prefers-color-scheme.
              No section inverts mid-scroll.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --bg:            #F7F8F7;
  --surface:       #FCFDFC;
  --surface-tint:  #EDF0EE;
  --ink:           #101413;
  --ink-muted:     #55605C;
  --accent:        #14513F;
  --accent-hover:  #0D3A2C;
  --accent-ink:    #F8FBF9;
  --accent-soft:   #E4EFE9;
  --border:        #E0E4E2;
  --border-strong: #C8D0CC;
  --danger:        #9B2226;

  --r:    12px;   /* cards, media */
  --r-sm:  8px;   /* buttons, inputs */

  --shell: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0C0F0E;
    --surface:       #141817;
    --surface-tint:  #1A211E;
    --ink:           #E9EDEB;
    --ink-muted:     #97A29D;
    --accent:        #59B893;
    --accent-hover:  #77CBAA;
    --accent-ink:    #08110D;
    --accent-soft:   #16241E;
    --border:        #232927;
    --border-strong: #333B38;
    --danger:        #F08A8D;
  }
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- motion (MOTION_INTENSITY 5) ---------- */

/* Content is visible by default. Only once the inline head script has set
   .js do we hide it to animate in, so a JS failure can never leave the page
   blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;          /* CTA labels never wrap */
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .12s var(--ease);
}
.btn--sm { padding: 10px 18px; font-size: 15px; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--border); }

.nav__inner {
  height: 70px;                 /* cap 80px */
  display: flex;
  align-items: center;
  gap: 32px;
}

/* The supplied logo is a raster on a black field with no alpha channel.
   Blend modes key the black out: multiply drops white-ish pixels on light,
   screen drops black pixels on dark. Invert flips the silver mark to ink
   for the light theme. Replace all of this the moment a vector or a
   transparent PNG of the monogram exists. */
.wordmark__mark {
  height: 26px;
  width: auto;
  filter: invert(1) grayscale(1) contrast(1.35);
  mix-blend-mode: multiply;
  flex: none;
}
@media (prefers-color-scheme: dark) {
  .wordmark__mark { filter: grayscale(1) contrast(1.15); mix-blend-mode: screen; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin: 0;
}
.wordmark__text span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  white-space: nowrap;          /* single line at desktop */
}
.nav__links a {
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 42px; height: 42px;
    background: none; border: 1px solid var(--border-strong);
    border-radius: var(--r-sm); cursor: pointer; padding: 0 11px;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .nav__mobile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px 24px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .nav__mobile a { padding: 12px 0; text-decoration: none; font-size: 17px; }
  .nav__mobile .btn { margin-top: 12px; }
}

/* ---------- hero: asymmetric split ---------- */

.hero { padding: 72px 0 96px; }         /* top padding well under the pt-24 cap */

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;  /* asymmetric, not 50/50 */
  gap: 64px;
  align-items: center;
}

/* Scale planned against the media column: an 8-word headline in a ~600px
   column sets to exactly 2 lines at this size. Larger would push it to 3. */
.hero__title {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  max-width: 20ch;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 46ch;
  line-height: 1.55;
}

.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--surface-tint);
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { max-width: none; }
  .hero__media img { aspect-ratio: 4 / 3; }
}

/* ---------- statement: full-width editorial ---------- */

.statement {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement__inner { max-width: 940px; }

.statement__lead {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.statement__body {
  margin-top: 28px;
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

@media (max-width: 700px) { .statement { padding: 64px 0; } }

/* ---------- generic section ---------- */

.section { padding: 104px 0; }
.section--alt { background: var(--surface-tint); }

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin-bottom: 44px;
}
/* Stacked headline plus lead. Never a headline left, floating paragraph right. */
.section__title--tight { margin-bottom: 18px; }
.section__lead {
  max-width: 58ch;
  margin-bottom: 44px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

@media (max-width: 700px) { .section { padding: 68px 0; } }

/* ---------- bento: 4 items, exactly 4 cells ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bento__cell {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento__cell--wide { grid-column: span 4; }

.bento__cell--media { flex-direction: row; align-items: stretch; }
.bento__cell--media img {
  width: 42%;
  object-fit: cover;
  border-right: 1px solid var(--border);
}

.bento__cell--accent { background: var(--accent-soft); border-color: transparent; }
.bento__cell--tint {
  background:
    radial-gradient(120% 140% at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--surface);
}

.bento__body { padding: 34px; }
.bento__cell--media .bento__body { display: flex; flex-direction: column; justify-content: center; }
.bento__body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.bento__body p { color: var(--ink-muted); max-width: 56ch; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--wide { grid-column: span 1; }
  .bento__cell--media { flex-direction: column; }
  .bento__cell--media img { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
  .bento__body { padding: 26px; }
}

/* ---------- proof: anonymous case study ---------- */

.proof {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 56px;
}
.proof__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  max-width: 26ch;
  margin-bottom: 26px;
}
.proof__body {
  color: var(--ink-muted);
  max-width: 62ch;
}
.proof__body + .proof__body { margin-top: 16px; }

.proof__stats {
  margin: 42px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stat__value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.stat__label { margin-top: 10px; color: var(--ink-muted); font-size: .92rem; }

.quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 44ch;
}
.quote figcaption { margin-top: 16px; color: var(--ink-muted); font-size: .92rem; }

@media (max-width: 760px) {
  .proof { padding: 32px 26px; }
  .proof__stats { grid-template-columns: 1fr; gap: 24px; }
}

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

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.steps__item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.steps__item p { color: var(--ink-muted); font-size: .97rem; }

.steps__rule {
  display: block;
  height: 2px;
  background: var(--accent);
  width: 34px;
  margin-bottom: 20px;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.pricing__intro { max-width: 52ch; }
.pricing__intro .section__title { margin-bottom: 20px; }
.pricing__intro p { color: var(--ink-muted); }

.pricing__figures {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 22px;
}

.figure {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.figure__label {
  font-size: .82rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* No figure on the page by choice. A phrase carries the slot a number used
   to, so it is sized as a heading rather than a display number. */
.figure__mode {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 8px 0 14px;
}
.figure__note { color: var(--ink-muted); font-size: .95rem; }

.pricing__foot { margin-top: 26px; color: var(--ink-muted); font-size: .88rem; max-width: 60ch; }

@media (max-width: 760px) { .pricing__figures { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */

.partners {
  padding: 104px 0;
  border-top: 1px solid var(--border);
}
.partners__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.partners__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--surface-tint);
}
.partners__copy .section__title { margin-bottom: 20px; }
.partners__copy > p { color: var(--ink-muted); max-width: 54ch; }

.terms { margin: 36px 0 38px; display: grid; gap: 0; }
.terms__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 0;
}
/* Hairline between rows only, never top and bottom on every row. */
.terms__row + .terms__row { border-top: 1px solid var(--border); }
.terms dt { font-weight: 500; }
.terms dd { margin: 0; color: var(--ink-muted); }

@media (max-width: 900px) {
  .partners { padding: 68px 0; }
  .partners__grid { grid-template-columns: 1fr; gap: 40px; }
  .partners__media { order: 2; }
  .partners__media img { aspect-ratio: 16 / 10; }
  .terms__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- contact + form ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__intro { max-width: 44ch; }
.contact__intro .section__title { margin-bottom: 20px; }
.contact__intro p { color: var(--ink-muted); }
.contact__direct { margin-top: 20px; }
.contact__direct a { color: var(--accent); text-underline-offset: 3px; }

.form { display: grid; gap: 22px; }
.form__hp { position: absolute; left: -9999px; }

.field { display: grid; gap: 8px; }
.field label { font-size: .92rem; font-weight: 500; }

.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field__hint { font-size: .85rem; color: var(--ink-muted); }
.field__error { font-size: .85rem; color: var(--danger); font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }

.form__submit { justify-self: start; min-width: 150px; }
.form__status { font-size: .95rem; color: var(--ink-muted); }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--accent); font-weight: 500; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 44px; } }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}
.footer__brand .wordmark { font-size: 18px; }
.footer__line { color: var(--ink-muted); font-size: .95rem; margin-top: 12px; max-width: 34ch; }

.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: start; }
.footer__col h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer__col a { font-size: .95rem; text-decoration: none; color: var(--ink-muted); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__col .footer__line { margin-top: 0; }

.footer__legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: .85rem;
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- dark header carrying the real logo ----------
   The supplied logo is a chrome-on-black asset. It only reads correctly on a
   dark surface, so the header is dark in both themes while the page body
   stays on the page theme. This is a persistent structural bar, not a
   section that inverts mid-scroll. */

.nav {
  background: #0B0E0D;
  backdrop-filter: none;
  border-bottom: 1px solid #1C2220;
}
.nav.is-stuck { border-bottom-color: #262E2B; }

.wordmark__lockup {
  height: 34px;
  width: auto;
  flex: none;
  mix-blend-mode: screen;   /* keys the black field out cleanly */
}

.nav__links a { color: #9BA5A1; }
.nav__links a:hover { color: #F2F5F3; }

.nav__toggle { border-color: #333B38; }
.nav__toggle span { background: #E9EDEB; }

.nav__mobile { background: #0B0E0D; border-top-color: #1C2220; }
.nav__mobile a { color: #E9EDEB; }
