/* Mohawk AI Partners
   Off-white #F4F1EA, white #FFFFFF, near-black #121212, crimson #A3182B.
   Hanken Grotesk throughout. Square corners everywhere. */

:root {
  --bg: #F4F1EA;
  --white: #FFFFFF;
  --ink: #121212;
  --red: #A3182B;

  --ink-soft: rgba(18, 18, 18, 0.72);
  --line: rgba(18, 18, 18, 0.14);
  --line-strong: rgba(18, 18, 18, 0.5); /* form borders and slider tracks: 3:1 against white and the off-white */
  --on-red-soft: rgba(255, 255, 255, 0.82);
  --on-red-line: rgba(255, 255, 255, 0.3);

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5.5rem, 11vw, 9.5rem);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html:not(.motion) { scroll-behavior: smooth; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.section--red :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */

.display {
  font-weight: 300;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.h2 {
  font-weight: 300;
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.label::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--red);
  flex: none;
}
.label--light::before { background: var(--white); }

.intro {
  margin-top: 1.75rem;
  max-width: 30rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Square bullets */
.squares li {
  position: relative;
  padding-left: 1.6rem;
}
.squares li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px; height: 8px;
  background: var(--red);
}
.squares--light li::before { background: var(--white); }

/* ---------- Buttons: fill sweep ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { transform: translateY(1px); }
.btn span { position: relative; }

.btn--light { background: var(--white); color: var(--red); transition: color 0.35s var(--ease); }
.btn--light:hover, .btn--light:focus-visible { color: var(--white); }

.btn--small { min-height: 44px; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 42px; width: auto; }

/* ---------- Hero ---------- */

.hero { padding: clamp(2rem, 3.4vw, 3rem) 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.hero__copy { padding-top: clamp(0.5rem, 3vw, 2.5rem); }
.hero .display { max-width: 11ch; }

.hero__lede {
  margin-top: 2rem;
  max-width: 32rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}


/* Town band: a slow, endless line of the places we serve */
.towns {
  display: flex;
  align-items: stretch;
  margin-top: clamp(1.75rem, 2.6vw, 2.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.towns__viewport { flex: 1; min-width: 0; overflow: hidden; }
.towns__track {
  display: flex;
  width: max-content;
  animation: towns-drift var(--towns-dur, 170s) linear infinite;
  will-change: transform;
}
.towns:hover .towns__track,
.towns.is-paused .towns__track { animation-play-state: paused; }
.towns__list { display: flex; align-items: center; flex: none; }
.towns__list li {
  display: flex;
  align-items: center;
  padding: 1.15rem 0;
  white-space: nowrap;
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}
.towns__list li::after {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin: 0 clamp(1.1rem, 2vw, 1.75rem);
  background: var(--red);
}
.towns__list .is-core { color: var(--red); font-weight: 400; }
@keyframes towns-drift { to { transform: translateX(-50%); } }

.towns__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.towns__toggle span {
  display: block;
  width: 12px; height: 14px;
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
  transition: border-color 0.2s ease;
}
.towns__toggle:hover span { border-color: var(--red); }
.towns.is-paused .towns__toggle span {
  width: 14px; height: 16px;
  border: 0;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
html:not(.js) .towns__toggle { display: none; }

/* Application card */
.apply {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
}
.apply__title {
  font-weight: 400;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.apply__points {
  margin: 1rem 0 1.35rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.apply__points li + li { margin-top: 0.5rem; }

/* ---------- Forms ---------- */

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 4.75rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { background: var(--white); border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field__error { font-size: 0.875rem; color: var(--red); margin-top: 0.35rem; }
.field__error:empty { display: none; }

.form__status { margin-top: 0.85rem; font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__note { margin-top: 0.85rem; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--red .intro { color: var(--on-red-soft); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

/* Calculator */
/* Heading left, intro right: shared by the calculator and fit sections */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.split-head .label { grid-column: 1 / -1; margin-bottom: 0; }
.split-head .h2 { max-width: 14ch; }
.split-head .intro { margin-top: 0; padding-bottom: 0.4rem; }

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.calc__inputs { padding-top: 0.5rem; }
.slider { padding: 1.6rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.slider--rate { border-bottom: 0; }
.slider__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.slider__top label { font-size: 1.0625rem; font-weight: 500; }
.slider__top output {
  font-size: 1rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

input[type="range"] {
  --p: 15%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--red) 0 var(--p), var(--line-strong) var(--p) 100%);
}
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--red); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -9.5px;
  background: var(--red);
  border: 0;
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--red);
  border: 0;
  border-radius: 0;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

.calc__result {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  padding-top: 2.1rem;
}
.calc__kicker { font-size: 1rem; font-weight: 500; }
.calc__total {
  margin: 0.5rem 0 1rem;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc__line { font-size: 1.3125rem; line-height: 1.4; max-width: 24rem; }
.calc__line span { font-variant-numeric: tabular-nums; }
.calc__math {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
}
.calc__note { margin: 0.5rem 0 2rem; font-size: 0.9375rem; color: var(--ink-soft); }
.calc__note--mobile { display: none; }

/* What we do: rows with square bullets */
.rows { border-top: 1px solid var(--line); }
.rows li {
  padding: 1.6rem 0 1.6rem 1.9rem;
  border-bottom: 1px solid var(--line);
}
.squares--rows li::before { top: 2.15rem; }
.rows h3 {
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.rows p { margin-top: 0.45rem; color: var(--ink-soft); max-width: 34rem; }

/* How we work */
.process__side { position: sticky; top: calc(var(--header-h) + 3rem); }
.steps { border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 2rem 0 2.1rem; border-bottom: 1px solid var(--line); }
.step__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.step__meta span:first-child { color: var(--red); }
.step__meta span:last-child { color: var(--ink-soft); }
.step__title {
  margin: 0.9rem 0 0.6rem;
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.step p { color: var(--ink-soft); max-width: 36rem; }
.step .step__keep {
  position: relative;
  margin-top: 1.1rem;
  padding-left: 1.6rem;
  color: var(--ink);
}
.step__keep::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--red);
}

/* Fit */

.fit__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--on-red-line);
}
.fit__col { padding: 2.25rem clamp(1.5rem, 4vw, 4rem) 0.5rem 0; }
.fit__col + .fit__col {
  border-left: 1px solid var(--on-red-line);
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: 0;
}
.fit__col h3 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.fit__col li {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--on-red-line);
  font-size: 1.0625rem;
}
.fit__col li::before { top: 1.45em; }

/* FAQ */
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.2rem, 1.8vw, 1.4375rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--red); }
.qa__icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  transition: transform 0.35s var(--ease);
}
.qa__icon::before { left: 0; right: 0; top: 7px; height: 2px; }
.qa__icon::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.qa[open] .qa__icon::after { transform: scaleY(0); }
.qa__answer { padding: 0 0 1.75rem; max-width: 38rem; color: var(--ink-soft); }

/* Final CTA */
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
.cta { padding: clamp(6rem, 13vw, 11rem) 0; }
.cta__title { max-width: 12ch; font-size: clamp(3.25rem, 8.4vw, 8rem); line-height: 0.96; }
.cta .btn { min-height: 60px; padding: 0 2.25rem; font-size: 1.0625rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  padding: 3.5rem 0 3rem;
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { color: var(--ink-soft); }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-color: var(--red);
}
.site-footer__links a:hover { color: var(--red); }
.site-footer__links p { color: var(--ink-soft); }

/* ---------- Motion start states (only when the library is running) ---------- */

.motion [data-enter],
.motion [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .towns__track { animation: none; width: auto; }
  .towns__list[aria-hidden="true"], .towns__toggle { display: none; }
  .towns__list {
    flex: 1;
    flex-wrap: wrap;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0.75rem var(--gutter);
  }
  .towns__list li { padding: 0.35rem 0; font-size: 1.125rem; }
  .towns__list li::after { margin: 0 0.85rem; }
  .btn::before, .qa__icon::before, .qa__icon::after,
  input[type="range"]::-webkit-slider-thumb { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero__grid { display: contents; }
  .hero__copy { order: 1; padding-inline: var(--gutter); }
  .towns { order: 2; margin: 2.25rem 0 2.5rem; }
  .apply { order: 3; margin: 0 var(--gutter) clamp(4rem, 10vw, 6rem); }
  .hero__grid,
  .two-col,
  .split-head,
  .calc__grid { grid-template-columns: 1fr; }
  .split-head { gap: 0; }
  .split-head .label { margin-bottom: 1.75rem; }
  .split-head .intro { margin-top: 1.5rem; padding-bottom: 0; }
  .hero .display { max-width: 13ch; }
  .process__side { position: static; }
  .calc__grid { border-top: 0; }
  .calc__result {
    order: -1;
    top: var(--header-h);
    z-index: 5;
    background: var(--white);
    padding: 1.25rem 0 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .calc__total { margin: 0.25rem 0 0.5rem; font-size: clamp(3rem, 13vw, 5rem); }
  .calc__line { font-size: 1.0625rem; }
  .calc__math, .calc__note, .calc__result .btn { display: none; }
  .calc__note--mobile { display: block; margin: 1.5rem 0 0; }
  .h2, .split-head .h2 { max-width: 18ch; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .logo img { height: 34px; }
  .fit__cols { grid-template-columns: 1fr; border-top: 0; }
  .fit__col, .fit__col + .fit__col {
    border-left: 0;
    padding: 2rem 0 0;
    border-top: 1px solid var(--on-red-line);
  }
  .fit__col + .fit__col { margin-top: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .form__grid { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .cta__inner > div { width: 100%; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__links { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-footer__links p { margin-top: 0.75rem; }
}

@media (max-width: 380px) {
  .logo img { height: 30px; }
  .btn--small { padding: 0 1rem; }
}

/* ---------- Privacy page ---------- */

.legal__body { max-width: 44rem; }
.legal .display { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.legal__date { margin-top: 1rem; color: var(--ink-soft); }
.legal h2 {
  font-weight: 400;
  font-size: 1.625rem;
  letter-spacing: -0.015em;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }
.legal a { color: var(--ink); text-decoration-color: var(--red); }
.legal__back { margin-top: 3.5rem; }
