/* Human Fullness LLC — site stylesheet. One file, no build step. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b1d3a;
  --night-raised: #132a52;
  --night-line: #2a4372;
  --ink: #13213a;
  --slate: #48586f;
  --mist: #eef2f7;
  --line: #d3dbe7;
  --paper: #ffffff;
  --accent: #1d55d8;
  --accent-bright: #8db2ff;
  --on-night: #e9eef7;
  --on-night-soft: #b5c3da;
  --danger: #b3261e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 114%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible,
.band-night :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-bright); }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

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

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

.site-header { background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.header-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "nav nav";
  align-items: center; gap: 0.5rem 1.5rem; padding-block: 1rem 0.5rem;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; justify-self: start; }
.mark { width: 1.75rem; height: 1.75rem; flex: none; }
.mark-arm { color: var(--accent-bright); }
.brand-name { font-stretch: var(--wide); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-llc { font-weight: 400; color: var(--on-night-soft); }

.main-nav { grid-area: nav; margin-inline: -0.75rem; }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 0.7rem 0.75rem; color: var(--on-night); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.45em; }
.main-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent-bright); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.lang {
  grid-area: lang; display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem;
  border: 1px solid var(--night-line); border-radius: var(--radius);
  color: var(--on-night); text-decoration: none; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em;
}
.lang:hover { border-color: var(--accent-bright); color: #fff; }

@media (min-width: 46rem) {
  .header-row { grid-template-columns: 1fr auto auto; grid-template-areas: "brand nav lang"; padding-block: 0.9rem; }
  .main-nav { margin-inline: 0; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.4rem; border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: #fff; color: var(--night); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--night-line); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-solid { background: var(--night); color: #fff; }
.btn-solid:hover { background: var(--accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.text-link { font-weight: 600; }

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

.hero, .page-head {
  background-color: var(--night);
  background-image:
    linear-gradient(to right, rgba(141, 178, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(141, 178, 255, 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem;
  color: var(--on-night);
}
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero h1, .page-head h1 { color: #fff; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero .lead, .page-head .lead { margin-top: 1.5rem; max-width: 38em; font-size: var(--step-1); line-height: 1.55; color: var(--on-night-soft); }

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* System diagram: three areas of activity resting on one operations layer. */
.system { font-size: var(--step--1); line-height: 1.3; }
.system-nodes { display: grid; gap: 0.5rem; }
.system-nodes li {
  display: flex; align-items: flex-end; padding: 0.85rem 1rem;
  border: 1px solid var(--accent-bright); border-radius: var(--radius);
  background: var(--night); color: #fff; font-weight: 600;
}
.system-links { display: grid; height: 2rem; }
.system-links span { justify-self: center; width: 1px; background: var(--accent-bright); transform-origin: top; }
.system-links span + span { display: none; }
.system-base { padding: 1.1rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.system-base p { font-weight: 600; font-stretch: var(--wide); font-size: var(--step-0); }
.system-base ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.system-base li { padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); }
@media (min-width: 36rem) {
  .system-nodes, .system-links { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .system-nodes li { min-height: 4.75rem; padding: 0.85rem 1rem; }
  .system-links { height: 2.25rem; }
  .system-links span + span { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  .system-links span { animation: draw 0.6s 0.25s ease-out both; }
  @keyframes draw { from { transform: scaleY(0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Inner page head ---------- */

.page-head { padding-block: clamp(2.75rem, 7vw, 5rem); }
.page-head h1 { max-width: 20em; }
.page-legal .page-head h1, .page-head.nf h1 { font-size: var(--step-3); }
.stamp { margin-top: 1.5rem; font-size: var(--step--1); color: var(--on-night-soft); }
.jump { margin-top: 2rem; }
.jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.3rem 0.9rem;
  border: 1px solid var(--night-line); border-radius: 999px; color: var(--on-night); text-decoration: none; font-size: var(--step--1); font-weight: 500;
}
.jump a:hover { border-color: var(--accent-bright); color: #fff; }

/* ---------- Bands ---------- */

.band { padding-block: var(--band); }
.band-mist { background: var(--mist); }
.band-night { background: var(--night); color: var(--on-night); }
.band-night h2 { color: #fff; }
.band-night a { color: var(--accent-bright); }
.band-night .btn-primary { color: var(--night); }

.band-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.band-head p { max-width: 34em; color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 54rem) {
  .band-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
}

.areas { display: grid; border-top: 2px solid var(--ink); }
.areas article { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.areas h3 { margin-bottom: 0.75rem; }
.areas p { color: var(--slate); max-width: 34em; }
@media (min-width: 40rem) {
  .areas { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
@media (min-width: 68rem) {
  .areas { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .areas article { padding: 2rem 1.75rem 2.25rem 0; border-bottom: 0; }
  .areas article + article { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
.band-link { margin-top: 2rem; }

.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 3.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.2rem; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--night); color: #fff; font-weight: 600; font-size: var(--step--1);
}
.steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.3rem; bottom: 0.2rem; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--slate); max-width: 34em; }
@media (min-width: 62rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding: 3.5rem 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 2.75rem; right: -2rem; top: 1.1rem; bottom: auto; width: auto; height: 1px; }
}

.split { display: grid; gap: 2rem; }
@media (min-width: 54rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
}

.split-head p { margin-top: 1rem; max-width: 24em; color: var(--slate); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Purpose ---------- */

.purpose { border-bottom: 1px solid var(--line); }
.purpose-body { display: grid; gap: 1.25rem; max-width: 40em; }
.purpose-body p { color: var(--slate); }
.purpose-statement {
  padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink);
  font-size: var(--step-3); font-weight: 600; font-stretch: var(--wide); line-height: 1.15; letter-spacing: -0.015em;
}
.purpose-body .purpose-statement { color: var(--ink); }

.principles { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.principles > div { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.principles dt { font-weight: 600; font-stretch: var(--wide); font-size: var(--step-1); margin-bottom: 0.4rem; }
.principles dd { color: var(--slate); max-width: 36em; }
@media (min-width: 40rem) {
  .principles > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; }
}

.closing { display: grid; gap: 3.5rem; }
.closing h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.closing p { margin-top: 1.25rem; max-width: 30em; }
.closing > div:last-child > p:first-of-type { margin-top: 0; color: var(--on-night-soft); }
.big-mail a { font-size: var(--step-2); font-weight: 600; font-stretch: var(--wide); overflow-wrap: anywhere; }
@media (min-width: 54rem) {
  .closing { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Facts ---------- */

.facts > div { display: grid; gap: 0.15rem; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.band-night .facts > div { border-color: var(--night-line); }
.facts dt { font-size: var(--step--1); color: var(--slate); }
.band-night .facts dt { color: var(--on-night-soft); }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 34rem) {
  .facts:not(.facts-stack) > div { grid-template-columns: minmax(9rem, 1fr) 2fr; gap: 1.5rem; align-items: baseline; }
}

/* ---------- Prose (about, legal) ---------- */

.prose-section { display: grid; gap: 1rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.prose-section:first-child { border-top: 0; padding-top: 0; }
.prose-section h2 { font-size: var(--step-2); }
.prose-body { max-width: 42em; }
.prose-body > * + * { margin-top: 1rem; }
.prose-body ul { display: grid; gap: 0.6rem; }
.prose-body li { position: relative; padding-left: 1.4rem; }
.prose-body li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.6rem; height: 2px; background: var(--accent); }
@media (min-width: 54rem) {
  .prose-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
}
.muted { margin-top: 1rem; color: var(--slate); font-size: var(--step--1); max-width: 34em; }

/* ---------- Services ---------- */

.service { display: grid; gap: 1.5rem; padding-block: 2.75rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service h2 { font-size: var(--step-2); }
.service-head p { margin-top: 0.75rem; color: var(--slate); max-width: 30em; }
.scope { border-top: 2px solid var(--ink); }
.scope li { display: grid; gap: 0.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.service-note { margin-top: 1.25rem; padding: 1rem 1.1rem; background: var(--mist); border-left: 3px solid var(--ink); font-size: var(--step--1); max-width: 44em; }
@media (min-width: 40rem) {
  .scope li { grid-template-columns: 1fr auto; gap: 2rem; align-items: baseline; }
}
@media (min-width: 54rem) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
}

.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid var(--accent); }
.status-operating { color: var(--accent); }
.status-operating::before { background: var(--accent); }
.status-development { color: var(--slate); }
.status-development::before { border-color: var(--slate); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 3rem; }
.contact-grid h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
@media (min-width: 54rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; }
}

.form { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem;
  border: 1px solid #8794a8; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.hint { margin-top: 0.35rem; font-size: var(--step--1); color: var(--slate); }
.field-error { margin-top: 0.35rem; font-size: var(--step--1); font-weight: 600; color: var(--danger); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; align-items: start; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check label { margin: 0; font-weight: 400; }
.check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-weight: 600; max-width: 32em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: #14653a; }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.1rem; background: var(--mist); border-left: 3px solid var(--ink); }

/* ---------- 404 ---------- */

.nf { min-height: 55vh; display: grid; align-items: center; }
.nf-grid { display: grid; gap: 3rem; }
.nf-title { font-size: var(--step-3); color: #fff; margin-bottom: 1rem; }
.nf p + p { margin-top: 1.5rem; }
@media (min-width: 46rem) { .nf-grid { grid-template-columns: 1fr 1fr; } }

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

.site-footer { background: var(--night); color: var(--on-night-soft); font-size: var(--step--1); border-top: 1px solid var(--night-line); }
.site-footer a { color: var(--on-night); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: #fff; font-weight: 600; font-stretch: var(--wide); font-size: var(--step-0); }
.footer-about p:last-child { max-width: 30em; }
.site-footer h2 { margin-bottom: 0.6rem; font-size: var(--step--1); font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: #fff; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-nav li a { display: inline-block; padding-block: 0.4rem; }
.footer-contact h2:not(:first-child) { margin-top: 1.5rem; }
.footer-note { margin-top: 0.6rem; max-width: 24em; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--night-line); }
.footer-base a { display: inline-block; padding-block: 0.4rem; margin-block: -0.4rem; }
@media (min-width: 54rem) {
  .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 4rem; }
}

@media print {
  .site-header, .site-footer, .actions, .jump, .form { display: none; }
  .hero, .page-head, .band-night { background: none; color: #000; }
  .hero h1, .page-head h1, .band-night h2 { color: #000; }
}

/* Stand-alone links get a comfortable touch target (WCAG 2.5.8). */
.facts dd a, .footer-contact p a { display: inline-block; padding-block: 0.3rem; }
