/* bothbanks.com — chart-paper and deep-sea ink. No gradients, no shadows. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 600;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plexsans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plexsans-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0E1B26;
  --paper: #F2F4F3;
  --tideline: #C9D3D8;
  --sounding: #2E6B76;
  --brass: #C8A24A;
  --ink-soft: #4A5A66;
  --error: #9E2F2F;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--sounding); }

:focus-visible {
  outline: 2px solid var(--sounding);
  outline-offset: 2px;
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 760px) {
  .content { padding-left: 48px; padding-right: 48px; }
}

.mono-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
a.mono-label[href^="mailto:"] { text-transform: none; }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  line-height: 1.02;
  text-decoration: none;
  color: var(--ink);
}
.wordmark__accent { color: var(--sounding); }
.wordmark--small { font-size: 1.0625rem; }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
}
@media (min-width: 760px) {
  .hero__header { padding-top: 32px; }
}

.hero .wordmark { color: var(--paper); }

.hero__mail {
  color: var(--paper);
  text-decoration: none;
}
.hero__mail:hover { color: var(--tideline); }

/* The cable line: full-bleed shallow arc, brass landing dots, mono labels. */

.cable {
  position: absolute;
  left: 0;
  right: 0;
  top: 27vh;
  height: 10vh;
  min-height: 56px;
  pointer-events: none;
}

.cable__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cable__path {
  fill: none;
  stroke: var(--sounding);
  stroke-width: 1.5;
}

.cable__dot {
  position: absolute;
  top: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%);
}
.cable__dot--left { left: 6%; }
.cable__dot--right { left: 94%; }

.cable__labels {
  position: absolute;
  left: 6%;
  right: 6%;
  top: calc(10% + 12px);
  display: flex;
  justify-content: space-between;
  color: var(--tideline);
}

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

.hero__main {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 32vh;
  padding-bottom: 4vh;
}

.hero__statement {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  max-width: 14ch;
}

.hero__sub {
  margin-top: 24px;
  color: var(--tideline);
  max-width: 52ch;
}

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

.hero__foot {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 28px;
}

.hero__cta {
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.hero__cta:hover { color: var(--tideline); }

/* ---------- Intake ---------- */

.intake {
  padding-top: 40px;
  padding-bottom: 96px;
}

.eyebrow { color: var(--ink-soft); }

.intake__heading {
  margin-top: 48px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.intake__sub {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* The one reuse of the cable motif: small, static, tideline. */
.rule {
  position: relative;
  height: 24px;
  margin: 40px 0;
}
.rule__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rule__path {
  fill: none;
  stroke: var(--tideline);
  stroke-width: 1.5;
}
.rule__dot {
  position: absolute;
  top: 17%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tideline);
  transform: translate(-50%, -50%);
}
.rule__dot--left { left: 0.8%; }
.rule__dot--right { left: 99.2%; }

/* ---------- Form ---------- */

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 32px;
}
@media (min-width: 760px) {
  .lead-form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--tideline);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--sounding);
  outline: 2px solid var(--sounding);
  outline-offset: 2px;
}

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

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }

.field__error {
  margin-top: 8px;
  color: var(--error);
  font-size: 0.8125rem;
}

.field__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.field__foot .field__error { flex: 1; }

.charcount {
  margin-top: 8px;
  margin-left: auto;
  color: var(--ink-soft);
  text-transform: none;
}

/* Honeypot — off-canvas, not display:none, so naive bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-top: 28px; }

.lead-form__fail {
  margin-top: 24px;
  color: var(--error);
}
.lead-form__fail a { color: var(--error); }

.lead-form__submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px 32px;
  border: 0;
  border-radius: 2px;
  background: var(--brass);
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 760px) {
  .lead-form__submit { width: auto; }
}
.lead-form__submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.lead-form__privacy {
  margin-top: 16px;
  color: var(--ink-soft);
  text-transform: none;
}

/* ---------- Confirmation ---------- */

.confirm__check {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 20px;
}

.confirm__heading {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.confirm__body {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 58ch;
}

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

.footer {
  border-top: 1px solid var(--tideline);
  padding: 24px 0;
}
.footer__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .footer__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}
.footer .mono-label { color: var(--ink-soft); text-decoration: none; text-transform: none; }
.footer a.mono-label:hover { color: var(--sounding); }

/* ---------- Reduced motion ---------- */

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