/* Tools for People
   Plain CSS, no build step. Sections: tokens, base, type, chrome, hero,
   sections, components, form, prose, motion. */

/* ---------- Fonts (self-hosted, see /assets/fonts/LICENSE.txt) ---------- */

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/fonts/host-grotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #0c1210;
  --ink-2: #171e1b;
  --paper: #ffffff;
  --accent: #d7eaac;

  --muted: #59615c;
  --muted-inv: rgba(255, 255, 255, 0.64);
  --line: rgba(12, 18, 16, 0.16);
  --line-inv: rgba(255, 255, 255, 0.18);

  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 3.4vw, 3rem);
  --max: 86rem;
  --space: clamp(4.5rem, 10vw, 9rem);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, table, figure {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 400;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

svg, canvas {
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

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

.label {
  font: 400 0.75rem/1.35 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-size: clamp(2.75rem, 5.6vw + 0.5rem, 5.75rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  max-width: 9.6em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 3.6vw + 0.5rem, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.125rem, 1vw + 0.85rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 29em;
  text-wrap: pretty;
}

.statement {
  font-size: clamp(1.625rem, 2.6vw + 0.6rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.027em;
  max-width: 21em;
  text-wrap: pretty;
}

.dim {
  color: var(--muted);
}

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ---------- Buttons and chips ---------- */

.chip,
.btn {
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.72rem 0.8rem;
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  color: var(--paper);
}

.chip:hover,
.chip[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
}

.chip--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid transparent;
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

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

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

.btn--line {
  border-color: var(--line-inv);
  color: var(--paper);
}

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

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

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

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

.btn[disabled] {
  opacity: 0.5;
  cursor: progress;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-block: 1rem;
  color: var(--paper);
}

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
  animation: mark-flip 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* The mark flips sideways, then top over bottom, then rests. */
@keyframes mark-flip {
  0% {
    transform: perspective(3em) rotateY(0deg) rotateX(0deg);
  }
  14% {
    transform: perspective(3em) rotateY(180deg) rotateX(0deg);
  }
  18% {
    transform: perspective(3em) rotateY(180deg) rotateX(0deg);
  }
  32%,
  100% {
    transform: perspective(3em) rotateY(180deg) rotateX(180deg);
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .js .nav-toggle {
    display: inline-block;
  }

  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.25rem;
  }

  .js .nav.is-open {
    display: flex;
  }

  .js .nav .chip {
    padding: 1.05rem 0.9rem;
    background: var(--ink-2);
  }

  .js .nav .chip--accent {
    background: var(--accent);
  }
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero .label {
  color: var(--muted-inv);
}

.hero--home {
  min-height: 100vh;
  min-height: 100svh;
}

.hero--sub {
  min-height: min(76vh, 46rem);
}

.hero--plain {
  min-height: 24rem;
}

.hero--note {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
}

.hero__canvas,
.hero__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.24) 1px, transparent 1.6px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 40%, #000 90%);
}

.hero__in {
  position: relative;
  padding-top: clamp(11rem, 26vh, 16rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero--plain .hero__in {
  padding-top: 8rem;
}

.hero__copy {
  width: fit-content;
  max-width: 100%;
}

.hero__copy > .label {
  margin-bottom: 1.5rem;
}

.hero__copy > .lead {
  margin-top: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.hero__strip {
  position: relative;
  border-top: 1px solid var(--line-inv);
}

.hero__strip-in {
  display: flex;
  align-items: center;
  gap: 0.75rem 2.5rem;
  padding-block: 1.2rem;
}

.strip-list {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 1.75rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.strip-list::-webkit-scrollbar {
  display: none;
}

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

.legend {
  display: flex;
  flex: none;
  gap: 1.25rem;
  margin-left: auto;
}

.sq {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border: 1px solid currentColor;
}

.sq--done {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1360px) {
  .legend {
    display: none;
  }
}

@media (max-width: 1150px) {
  /* Fade the cut-off end so it reads as "more this way". */
  .strip-list {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
}

@media (max-width: 720px) {
  .hero__strip-in {
    gap: 1.25rem;
  }
}

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

.section {
  padding-block: var(--space);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .label,
.section--ink .dim {
  color: var(--muted-inv);
}

.section--rule {
  padding-top: 0;
}

.section--rule > .wrap {
  padding-top: var(--space);
  border-top: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1.25rem var(--gutter);
  align-items: start;
}

.grid-2 > .label {
  padding-top: 0.6em;
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.more .arrow {
  transition: transform 0.25s var(--ease);
}

.more:hover .arrow {
  transform: translateX(4px);
}

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

  .grid-2 > .label {
    padding-top: 0;
  }
}

/* ---------- Positioning (home) ---------- */

.positioning .lead {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 33em;
  color: var(--muted);
}

/* ---------- Brand marks and building blocks (Modell) ---------- */

.stack {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-inv);
}

.marks {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2.25rem 1rem;
}

.marks li {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

/* Brand names keep their own capitalisation (OpenAI, n8n). */
.marks .label {
  text-transform: none;
  letter-spacing: 0.02em;
}

.blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.75rem, 5vw, 4.5rem) var(--gutter);
}

.blocks li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.blocks .glyph {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
}

.blocks h3 {
  font-size: clamp(1.375rem, 0.9vw + 1.05rem, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.blocks p {
  max-width: 21em;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .marks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .marks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blocks {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
}

.steps li {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid currentColor;
}

.steps h3 {
  margin-top: clamp(1rem, 4vw, 3.5rem);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.steps p {
  max-width: 22em;
  color: var(--muted);
}

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

/* ---------- Industry tiles (home) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(13rem, 19vw, 18rem);
  padding: 1.25rem;
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.tile:hover,
.tile:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.tile:hover .label,
.tile:focus-visible .label {
  color: inherit;
}

.tile--cta {
  background: var(--accent);
  color: var(--ink);
}

.tile--cta:hover,
.tile--cta:focus-visible {
  background: var(--paper);
}

.section--ink .tile--cta .label {
  color: inherit;
}

.tile--cta .arrow {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.25s var(--ease);
}

.tile--cta:hover .arrow {
  transform: translateX(4px);
}

.tile__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tile__name {
  font-size: clamp(1.375rem, 1.3vw + 0.9rem, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.glyph {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  fill: currentColor;
}

.glyph .o {
  opacity: 0.18;
}

@media (max-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tile {
    min-height: 9.5rem;
    padding: 0.9rem;
  }

  .tile__name {
    font-size: 1.125rem;
  }

  .tile .glyph {
    width: 2rem;
    height: 2rem;
  }
}

/* ---------- Roles ---------- */

.roles li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0.5rem var(--gutter);
  align-items: baseline;
  padding-block: clamp(1rem, 2.2vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.roles li:last-child {
  border-bottom: 1px solid var(--line);
}

.roles__name {
  font-size: clamp(2rem, 4.2vw + 0.4rem, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.roles--full li {
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
}

.roles__text {
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
}

@media (max-width: 760px) {
  .roles li,
  .roles--full li {
    grid-template-columns: minmax(0, 1fr);
  }

  .roles__text {
    margin-top: 0.5rem;
  }
}

/* ---------- Comparison (Modell) ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: clamp(1rem, 2vw, 1.75rem) 1.25rem clamp(1rem, 2vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.compare thead th,
.compare thead td {
  border-top: 0;
}

.compare thead th,
.compare tbody th {
  font: 400 0.75rem/1.35 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tbody th {
  width: 25%;
  padding-top: calc(clamp(1rem, 2vw, 1.75rem) + 0.7em);
  color: var(--muted);
}

.compare tbody td {
  width: 37.5%;
  font-size: clamp(1.25rem, 1.7vw + 0.7rem, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.compare tr > :nth-child(2) {
  color: var(--muted);
}

.compare tr > :last-child {
  padding-left: 1.25rem;
  background: var(--accent);
  color: var(--ink);
  border-top-color: rgba(12, 18, 16, 0.2);
}

.compare thead tr > :last-child {
  border-radius: 6px 6px 0 0;
}

.compare tbody tr:last-child > :last-child {
  border-radius: 0 0 6px 6px;
}

@media (max-width: 700px) {
  .compare,
  .compare thead,
  .compare tbody {
    display: block;
  }

  .compare tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .compare thead td {
    display: none;
  }

  .compare tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding-bottom: 0.6rem;
  }

  .compare tbody td {
    width: auto;
    border-top: 0;
    padding-top: 0.6rem;
  }

  .compare tbody tr > :last-child {
    border-radius: 0;
  }

  .compare tr > :nth-child(2) {
    padding-right: 0.75rem;
  }

  .compare tr > :last-child {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ---------- Industries (Branchen) ---------- */

.industry {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 1.5rem var(--gutter);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.industry:last-child {
  border-bottom: 1px solid var(--line);
}

.industry__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.industry .glyph {
  width: 3.5rem;
  height: 3.5rem;
}

.industry__name {
  font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.industry__line {
  margin-top: 0.9rem;
  font-size: clamp(1.125rem, 0.9vw + 0.9rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.5rem;
}

.tags li {
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.aside-note {
  margin-top: clamp(2rem, 4vw, 3rem);
}

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

  .industry__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Call to action and footer ---------- */

.cta {
  padding-bottom: var(--gutter);
}

.section--ink + .cta {
  padding-top: var(--gutter);
}

.cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  border-radius: 10px;
  background: var(--accent);
}

.site-footer {
  padding-block: clamp(3rem, 7vw, 6rem) 1.5rem;
  background: var(--ink);
  color: var(--paper);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem var(--gutter);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-content: start;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.4rem;
  font: 400 0.8125rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-inv);
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current="page"] {
  color: var(--paper);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 7rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-inv);
}

.site-footer .label {
  color: var(--muted-inv);
}

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

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

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem var(--gutter);
  max-width: 58rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field--full,
.form__foot,
.form__status {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  letter-spacing: -0.012em;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.35;
}

.field select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%230c1210' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 1rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  box-shadow: 0 2px 0 var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.form__note {
  max-width: 30em;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.form__note a,
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.form__status {
  min-height: 1.5em;
  font-size: 1.0625rem;
}

.form__status[data-state="error"] {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

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

/* ---------- Prose (legal pages) ---------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.open,
.draft {
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  border-radius: var(--radius);
}

.open {
  padding: 0.12em 0.4em;
  font-size: 0.85em;
}

.draft {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .wordmark::before {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Standalone note page (form reply without JavaScript) ---------- */

.hero--note .lead {
  margin-top: 1.5rem;
}
