/* ==========================================================================
   Algognitive — one-pager
   Design tokens and layout follow the handoff spec: radius 0 everywhere
   (except the logo dots), hairline rules only, no shadows.
   ========================================================================== */

/* --- fonts (self-hosted, no third-party request) ------------------------- */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-var-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-var-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poppins-normal-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poppins-normal-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --paper: #f6f3ed;
  --paper-alt: #efebe3;
  --ink: #1e1e1c;
  --ink-soft: #3b3a36;
  --ink-muted: #55524a;
  --ink-faint: #8a8478;
  --rule: #ded8cc;
  --rule-mid: #c9c2b5;
  --accent-red: #bc3a2e;
  --accent-yellow: #edc22e;
  --dark-panel: #211f1a;
  --dark-rule: #35332c;
  --dark-field: #454339;
  --dark-text: #f1ede5;
  --dark-text-muted: #a9a399;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(18px, 5vw, 40px);
  --split-gap: clamp(32px, 5vw, 56px);
  --header-h: 100px;
  --ease: 140ms ease;
}

/* --- base ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  text-wrap: pretty;
}

p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease),
    border-color var(--ease);
}

button {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

::selection {
  background: var(--accent-red);
  color: var(--paper);
}

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

.band--dark :focus-visible,
.form-panel :focus-visible {
  outline-color: var(--accent-yellow);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 243 237 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.brand-mark {
  height: 40px;
  width: auto;
  flex: none;
  margin-left: 31px;
}

.brand-word {
  font-family: "Poppins", var(--sans);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 0.82;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink-muted);
}

.nav-link:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  border: 1px solid var(--rule);
  padding: 2px;
  background: var(--paper-alt);
}

.lang-seg {
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: transparent;
}

.lang-seg:hover {
  color: var(--ink);
}

.lang-seg.is-active {
  background: var(--ink);
  color: var(--paper);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-ghost {
  border: 1px solid var(--ink);
  padding: 9px 14px;
  font-size: 11.5px;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  padding: 15px 26px;
}

.btn-solid:hover {
  background: var(--accent-red);
  color: var(--paper);
}

.btn-outline {
  border: 1px solid var(--rule-mid);
  padding: 15px 26px;
  color: var(--ink-soft);
  background: none;
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-small {
  padding: 11px 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* --- shared section furniture -------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-red);
}

.eyebrow--yellow {
  color: var(--accent-yellow);
}

.eyebrow-bar {
  height: 14px;
  width: auto;
  flex: none;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}

.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-top: 26px;
  max-width: 26em;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--split-gap);
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  margin-top: clamp(72px, 10vw, 110px);
}

.split--plain {
  border-top: 0;
  padding-top: 0;
  margin-top: clamp(64px, 9vw, 96px);
}

.split--flush {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.split-rail {
  flex: 1 1 300px;
  min-width: 0;
}

.split-main {
  flex: 2.2 1 520px;
  min-width: 0;
}

.meta-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.meta-label--spaced {
  margin-top: 14px;
}

.meta-body {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-muted);
}

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

.hero {
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: 88px;
}

.hero-mark {
  margin-bottom: 40px;
}

.hero-mark-svg {
  height: clamp(72px, 9vw, 116px);
  width: auto;
}

.hero .eyebrow {
  margin-bottom: 56px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 94px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15em;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--split-gap);
  margin-top: 64px;
  align-items: end;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-aside {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}

.hero-aside p {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-muted);
}

/* --- bands --------------------------------------------------------------- */

.band--alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band--ruled {
  border-top: 1px solid var(--ink);
  border-bottom: 0;
  margin-top: 110px;
}

/* --- key figures --------------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.figure {
  padding: 44px 28px;
  border-right: 1px solid var(--rule);
}

.figure:first-child {
  padding-left: 0;
}

.figure:last-child {
  padding-right: 0;
  border-right: 0;
}

.figure-marker {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 20px;
}

.figure-bar {
  height: 20px;
  width: auto;
  flex: none;
}

.figure-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-yellow);
  display: block;
}

.figure-value {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.figure-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- positioning + what we do -------------------------------------------- */

.statement {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.sectors {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  line-height: 2;
  color: var(--ink-muted);
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-left: 1px solid var(--rule);
}

.do-card {
  padding: 4px 26px 26px;
  border-right: 1px solid var(--rule);
}

.do-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.do-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-red);
  letter-spacing: 0.1em;
}

.do-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}

.do-body,
.card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--paper);
  padding: 32px;
}

.card-grid:not(.card-grid--2) .card {
  padding: 30px;
}

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 16px 0 12px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.card-title--small {
  font-size: 22px;
  margin: 0 0 12px;
}

.card-body + .card-body {
  margin-top: 12px;
}

/* --- engagement formats -------------------------------------------------- */

.formats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-muted);
}

.format {
  flex: 1 1 200px;
  border-top: 1px solid var(--ink);
  padding: 14px 20px 0 0;
}

.format:last-child {
  padding-right: 0;
}

.format strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- practice accordion -------------------------------------------------- */

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

.acc {
  border-bottom: 1px solid var(--rule);
}

.acc-head {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
}

.acc-btn {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.acc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.acc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 29px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.acc-btn:hover .acc-title {
  color: var(--accent-red);
}

.acc-sign {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent-red);
  text-align: right;
  line-height: 1;
}

.acc-panel {
  padding: 0 clamp(0px, 2vw, 44px) 34px;
  margin-left: clamp(0px, 4vw, 54px);
}

.js .acc-panel[data-collapsed] {
  display: none;
}

.acc-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 44em;
}

.meta-grid {
  display: grid;
  gap: 32px;
  max-width: 44em;
}

.meta-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: none;
}

.meta-block {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

/* --- selected work ------------------------------------------------------- */

.work {
  padding-top: 70px;
  padding-bottom: 90px;
}

.work-head {
  margin-bottom: 56px;
}

.work-intro {
  flex: 2.2 1 460px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  align-self: end;
  max-width: 34em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.work-card {
  background: var(--paper);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.work-logo {
  height: 64px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.work-logo:hover {
  border-color: var(--ink);
}

.work-logo img {
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.logo-waitack {
  max-height: 26px;
}

.logo-adaures {
  max-height: 30px;
}

.logo-illigo {
  max-height: 34px;
}

.work-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.02em;
}

.work-name a:hover {
  color: var(--accent-red);
}

.work-descriptor {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--accent-red);
  margin-top: 8px;
}

.work-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.work-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: auto;
}

.work-meta .meta-body {
  font-size: 11.5px;
}

/* --- about --------------------------------------------------------------- */

.capabilities {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  line-height: 1.9;
  color: var(--ink-muted);
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.about-main {
  display: grid;
  gap: 34px;
  align-content: start;
}

.about-story {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44em;
}

.founder {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}

.founder-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.founder-intro {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 52em;
}

.founder-track {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-muted);
  max-width: 60em;
}

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

.band--dark {
  background: var(--ink);
  color: var(--dark-text);
  border-top: 1px solid var(--ink);
  margin-top: 110px;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  padding-top: 80px;
  padding-bottom: 90px;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
}

.contact-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text-muted);
  margin-top: 26px;
  max-width: 32em;
}

.faq {
  margin-top: 46px;
  display: grid;
  gap: 22px;
}

.faq-item {
  border-top: 1px solid var(--dark-rule);
  padding-top: 14px;
}

.faq-q {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-text);
  margin-bottom: 7px;
  line-height: 1.6;
}

.faq-a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dark-text-muted);
}

/* --- form ---------------------------------------------------------------- */

.form-panel {
  background: var(--dark-panel);
  border: 1px solid var(--dark-rule);
  padding: clamp(24px, 4vw, 38px);
  align-self: start;
}

.form-sla {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 26px;
}

.form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
}

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
}

.field-opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: #7c7669;
}

.form input[type="text"],
.form input[type="email"] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dark-field);
  padding: 9px 0;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--dark-text);
  outline: none;
  border-radius: 0;
}

.form textarea {
  background: transparent;
  border: 1px solid var(--dark-field);
  padding: 12px;
  font-size: 15px;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--dark-text);
  outline: none;
  resize: vertical;
  border-radius: 0;
}

.form input:focus {
  border-bottom-color: var(--accent-yellow);
}

.form textarea:focus {
  border-color: var(--accent-yellow);
}

.form input[aria-invalid="true"] {
  border-bottom-color: var(--accent-red);
}

.form textarea[aria-invalid="true"] {
  border-color: var(--accent-red);
}

/* honeypot: off-screen but not display:none, so bots that read styles still
   fill it in. Real users never see or tab into it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note,
.form-privacy {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #7c7669;
}

.form-note.is-working {
  color: var(--dark-text-muted);
}

.form-note.is-done {
  color: var(--accent-yellow);
}

.form-note.is-failed {
  color: var(--accent-red);
}

.form-submit {
  background: var(--dark-text);
  color: var(--ink);
  border: 0;
  padding: 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color var(--ease);
}

.form-submit:hover:not(:disabled) {
  background: var(--accent-yellow);
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-status {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dark-text-muted);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--accent-yellow);
}

.form-status.is-error {
  color: #e9836f;
}

.form.is-sent .form-submit {
  background: var(--accent-yellow);
}

/* --- legal pages --------------------------------------------------------- */

.doc {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(64px, 9vw, 96px);
  max-width: 820px;
}

.doc-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.doc-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 18px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 26px;
}

.doc-section {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 38px;
}

.doc-section:first-of-type {
  border-top: 0;
  margin-top: 34px;
  padding-top: 0;
}

.doc-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.doc p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 44em;
}

.doc p + p,
.doc-list + p {
  margin-top: 14px;
}

.doc-list {
  margin: 14px 0 0;
  padding-left: 1.1em;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 44em;
}

.doc-list li {
  margin-bottom: 6px;
}

.doc-list li::marker {
  color: var(--accent-red);
}

.doc a:not(.doc-back a) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-mid);
}

.doc a:hover {
  color: var(--accent-red);
}

.doc-back {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-footer {
  background: var(--ink);
  color: var(--ink-faint);
  border-top: 1px solid var(--dark-rule);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-block: clamp(24px, 5vw, 40px);
  line-height: 1.8;
}

.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-mark {
  height: 16px;
  width: auto;
  flex: none;
}

.footer-name {
  color: var(--dark-text);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--dark-text);
}

.footer-todo {
  color: #6a655c;
}

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 640px) {
  /* The nav wraps under the logo here, which makes the header tall enough
     that keeping it sticky would eat a third of a phone screen. */
  .site-header {
    position: static;
  }

  .header-row {
    min-height: 0;
    gap: 14px 20px;
  }

  section[id] {
    scroll-margin-top: 12px;
  }

  .nav {
    gap: 14px 20px;
  }

  .figure,
  .figure:first-child,
  .figure:last-child {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .figures .figure:last-child {
    border-bottom: 0;
  }

  .do-grid {
    border-left: 0;
  }

  .do-card,
  .do-card:last-child {
    padding: 0 0 26px;
    border-right: 0;
  }

  .format {
    padding-right: 0;
  }
}
