/* catena.unityzm.co — one page, one stylesheet, no third-party requests.
   Palette is oxidised copper: verdigris for structure, copper only for the
   chain and focus. Copper appears nowhere else, so it keeps meaning "link". */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #EAF0ED;
  --surface: #F5F8F6;
  --ink: #10231F;
  --ink-soft: #445954;
  --patina: #1E5E54;
  --patina-strong: #17493F;
  --on-patina: #F3F8F6;
  --copper: #9A4E1E;
  --rule: #C3D3CD;
  --band: #143F39;
  --band-ink: #EAF3EF;
  --band-soft: #B5D0C7;
  --band-rule: rgba(234, 243, 239, 0.2);
  --band-accent: #E8A873;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1E1B;
    --surface: #142724;
    --ink: #E2ECE8;
    --ink-soft: #A3B8B2;
    --patina: #74C1AF;
    --patina-strong: #93D3C3;
    --on-patina: #0B1A17;
    --copper: #D98E58;
    --rule: #28403B;
    --band: #0A1614;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, dt {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.85rem);
  font-stretch: 114%;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h3 {
  margin: 0;
  font-size: 1.2rem;
  font-stretch: 106%;
  font-weight: 650;
  line-height: 1.25;
}
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--patina); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--patina-strong); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--display);
}
.skip:focus { left: 1rem; }

/* ── header ─────────────────────────────────────────────── */
.top {
  padding-block: calc(0.9rem + env(safe-area-inset-top, 0px)) 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-stretch: 125%;
  font-weight: 760;
  letter-spacing: 0.01em;
}
.mark:hover { color: var(--ink); }
.mark-glyph {
  width: 2.2rem;
  height: auto;
  fill: none;
  stroke: var(--copper);
  stroke-width: 2.6;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem clamp(0.9rem, 2vw, 1.75rem);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 540;
}
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--patina); text-decoration: underline; }
@media (max-width: 46rem) {
  .nav { width: 100%; overflow-x: auto; padding-bottom: 0.2rem; }
  .nav .btn { margin-left: auto; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 0.975rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--patina); color: var(--on-patina); }
.btn-solid:hover { background: var(--patina-strong); color: var(--on-patina); }
.btn-line { border-color: var(--patina); color: var(--patina); }
.btn-line:hover { background: var(--patina); color: var(--on-patina); }
.btn-quiet { min-height: 2.4rem; padding: 0.4rem 0.9rem; border-color: var(--rule); color: var(--ink); }
.btn-quiet:hover { border-color: var(--patina); color: var(--ink); }
.btn-onband { background: var(--band-ink); color: #143F39; }
.btn-onband:hover { background: var(--band-accent); color: #10231F; }
.btn-onband-line { border-color: var(--band-rule); color: var(--band-ink); }
.btn-onband-line:hover { border-color: var(--band-ink); color: var(--band-ink); }
.band .btn-onband-line { border-color: rgba(234, 243, 239, 0.5); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 26rem) { .actions .btn { width: 100%; white-space: normal; } }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
@media (max-width: 58rem) { .hero { grid-template-columns: minmax(0, 1fr); } }

.gloss { margin: 0 0 1.25rem; color: var(--ink-soft); font-style: italic; font-size: 1.05rem; }
.gloss dfn { font-style: normal; font-weight: 600; color: var(--ink); }
.lede {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.55vw, 1.28rem);
  line-height: 1.62;
}

/* The certification-path figure: the one loud thing on the page. */
.path {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.path-caption {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 540;
}
.path-list { margin: 0; padding: 0; list-style: none; }
.node {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--patina);
  border-radius: 4px;
}
.node strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-stretch: 108%;
  font-weight: 680;
  line-height: 1.25;
}
.node span { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; }
.node .node-role {
  color: var(--patina);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
}
.node-you { border-left-color: var(--copper); }
.node-you .node-role { color: var(--copper); }

.link {
  position: relative;
  z-index: 1;
  height: 4.2rem;
  margin-block: -0.55rem;
  padding-left: 0.8rem;
}
.link svg {
  display: block;
  height: 100%;
  width: auto;
  overflow: visible;
  fill: none;
  stroke: var(--copper);
  stroke-width: 3;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .node { animation: node-in 0.5s ease-out both; }
  .path-list > li:nth-child(1) { animation-delay: 0.1s; }
  .path-list > li:nth-child(3) { animation-delay: 0.75s; }
  .path-list > li:nth-child(5) { animation-delay: 1.4s; }
  .link rect {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: link-draw 0.5s ease-out forwards;
  }
  .path-list > li:nth-child(2) rect:first-child { animation-delay: 0.4s; }
  .path-list > li:nth-child(2) rect:last-child  { animation-delay: 0.55s; }
  .path-list > li:nth-child(4) rect:first-child { animation-delay: 1.05s; }
  .path-list > li:nth-child(4) rect:last-child  { animation-delay: 1.2s; }
}
@keyframes node-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes link-draw { to { stroke-dashoffset: 0; } }

/* ── section heads ──────────────────────────────────────── */
.section-head { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--ink-soft); }

/* ── what we do ─────────────────────────────────────────── */
.work { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.875rem;
}
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }

.st {
  flex: none;
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--patina);
  border-radius: 50%;
}
.st-live { background: var(--patina); }
.st-build { background: linear-gradient(90deg, var(--patina) 50%, transparent 50%); }
.st-prep { border-color: var(--copper); }

.practice {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) minmax(0, 38rem) 1fr;
  gap: 0.6rem 2.5rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.practice:last-child { border-bottom: 1px solid var(--rule); }
.practice p { margin: 0; color: var(--ink-soft); }
.practice .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 540;
  white-space: nowrap;
}
@media (max-width: 62rem) {
  .practice { grid-template-columns: minmax(0, 1fr); }
  .practice .status { justify-self: start; }
}

/* ── unityzm band ───────────────────────────────────────── */
.band { padding-block: clamp(3.5rem, 9vw, 6.5rem); background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band p { max-width: 36rem; color: var(--band-soft); }
.band .actions { margin-top: 1.75rem; }
.band a:focus-visible { outline-color: var(--band-accent); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 58rem) { .band-grid { grid-template-columns: minmax(0, 1fr); } }
.editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--band-rule);
}
.editions li {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--band-rule);
}
.editions strong {
  color: var(--band-ink);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 650;
}
.editions span { color: var(--band-soft); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 30rem) { .editions { grid-template-columns: minmax(0, 1fr); } }

/* ── working with us: a real sequence, so it is numbered ── */
.engage { padding-block: clamp(3rem, 8vw, 6rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 3.4rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--ground);
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 2.3rem;
  right: -1.5rem;
  border-top: 2px solid var(--rule);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 58rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; max-width: 36rem; }
  .steps li { padding-top: 0; padding-left: 3.4rem; }
  .steps li::after { top: 2.3rem; left: 1.15rem; right: auto; bottom: -1.75rem; border-top: 0; border-left: 2px solid var(--rule); }
}

/* ── facts ──────────────────────────────────────────────── */
.facts { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.facts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 1.75rem 0 0;
}
.facts-list div { padding-top: 1rem; border-top: 3px solid var(--patina); }
.facts-list dt { margin-bottom: 0.4rem; font-stretch: 105%; font-weight: 650; }
.facts-list dd { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 52rem) { .facts-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ── contact ────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
}
.contact p { max-width: 32rem; color: var(--ink-soft); }
@media (max-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact-ways {
  padding: 0.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.contact-ways .contact-line {
  display: grid;
  gap: 0.1rem;
  max-width: none;
  margin: 0;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.contact-ways .contact-line:last-child { border-bottom: 0; }
.contact-line span { color: var(--ink-soft); font-family: var(--display); font-size: 0.875rem; }
.contact-line a {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ── footer ─────────────────────────────────────────────── */
.foot {
  padding-block: 2.25rem calc(2.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.9rem;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.foot p { margin: 0; line-height: 1.65; }
.foot strong { color: var(--ink); font-weight: 650; }
