/* ============================================================
   Base: reset, typography, primitives
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--ink-2); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

button {
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ---- Display headlines ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--paper);
  text-transform: uppercase;
}

h1 {
  font-size: var(--fs-display-xxl);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--fs-display-lg);
}

h3 {
  font-size: var(--fs-display-sm);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--fs-display-xs);
  letter-spacing: -0.01em;
}

.display-xl { font-size: var(--fs-display-xl); line-height: var(--lh-display); font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-display); text-transform: uppercase; }

p {
  max-width: 64ch;
  color: var(--fg);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 60ch;
}

/* ---- Layout primitives ---- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--page-x);
}

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

.section--alt { background: var(--bg-alt); }

/* ---- Signature micro-elements ---- */

/* Mono eyebrow used on every section: "§ 02 · Services" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-mono-lg);
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}

/* Dashed section-number: "001 —", "002 —" */
.section-no {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-mono-lg);
  color: var(--accent);
  text-transform: uppercase;
}

/* Section header block: eyebrow + split title on two lines */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9);
  align-items: end;
  margin-bottom: var(--s-10);
}
.section-head__title {
  margin-top: var(--s-3);
}
.section-head__body {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 44ch;
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .section-head__body { max-width: none; }
}

/* Yellow accent word inside display headline */
.accent-word { color: var(--accent); }

/* Caution tape */
.caution-tape {
  height: 28px;
  background: var(--caution-tape);
  background-size: 45px 45px;
}

/* Form message */
.form-msg {
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
  min-height: 1.2em;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.form-msg--ok { color: var(--accent); }
.form-msg--err { color: var(--accent-2); }

/* Screen-reader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* Defaults */
ul { list-style: none; }
