/* ============================================================
   Subset — brand page
   Modern minimal sans · monochrome + one accent · type-only
   ============================================================ */

:root {
  --paper:   #f6f5f2;   /* warm off-white background */
  --ink:     #15140f;   /* near-black text          */
  --muted:   #6b685f;   /* secondary text           */
  --hair:    #ddd9cf;   /* hairlines / rules        */
  --accent:  #365b46;   /* the single accent (forest green) */

  --maxw:    72rem;
  --gutter:  clamp(1.5rem, 5vw, 6rem);
  --section: clamp(4rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 0.4rem 0;
}
.skip:focus { left: 0; }

/* ---------- shared layout ---------- */
.site-head,
main,
.site-foot {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hair);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(0.04em);
}
.brand__word {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.site-head__tag {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
@media (max-width: 34rem) {
  .site-head__tag { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding-top: var(--section);
  padding-bottom: var(--section);
  max-width: 52rem;
}

.eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__title--accent { color: var(--accent); }

.hero__lede {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  max-width: 38rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- section label ---------- */
.section-label {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- what we do ---------- */
.what { padding-block: var(--section); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 52rem) {
  .cards { grid-template-columns: 1fr; gap: 2.75rem; }
}

.card__num {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.card__title {
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}
.card__body {
  color: var(--muted);
  max-width: 26rem;
  text-wrap: pretty;
}

/* ---------- facts ---------- */
.facts { padding-block: var(--section); }

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
}
@media (max-width: 52rem) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 26rem) {
  .facts__grid { grid-template-columns: 1fr; }
}

.facts__item dt {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.facts__item dd {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- approach ---------- */
.approach { padding-block: var(--section); }
.approach__text {
  max-width: 40rem;
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}

/* ---------- footer ---------- */
.site-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hair);
  margin-top: var(--section);
}
.site-foot__brand {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}
.site-foot__line {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
/* stagger cards & facts a touch */
.cards .reveal:nth-child(2)   { transition-delay: 0.08s; }
.cards .reveal:nth-child(3)   { transition-delay: 0.16s; }
.facts__item:nth-child(2)     { transition-delay: 0.06s; }
.facts__item:nth-child(3)     { transition-delay: 0.12s; }
.facts__item:nth-child(4)     { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- focus visibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
