/* StackForge — light steel-grey page with slate bands; the logo's copper as a restrained accent.
   Layout: one column of full-width bands; content held to a 72rem measure. */
:root {
  --bg: #f6f7f8;
  --bg-raised: #ffffff;
  --bg-sunk: #eceef0;
  --line: #d8dce0;
  --text: #1c2125;
  --muted: #545d65;
  --copper: #a85a28;
  --copper-hi: #8e4a1f;
  --on-copper: #ffffff;
  --steel: #67707a;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.7rem, 3.4vw, 2.3rem);
  --step-4: clamp(2.1rem, 4.8vw, 3.2rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 72rem;
  --radius: 10px;
  color-scheme: light;
}

*, *::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(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-hi); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 104%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 500 var(--step--1)/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--bg-raised); padding: .5rem 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--steel); }
.btn--copper { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }
.btn--copper:hover { background: var(--copper-hi); border-color: var(--copper-hi); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand span { font: 700 1.05rem/1.1 var(--font-display); font-stretch: 104%; }
.brand small { display: block; font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-call { padding: .6rem 1rem; font-size: .95rem; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-call .label-long { display: none; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.hero h1 { font-size: var(--step-4); font-weight: 700; margin-block: .9rem 1.2rem; }
.hero h1 em { font-style: normal; color: var(--copper-hi); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .reassure { margin-top: 1.1rem; font-size: var(--step--1); color: var(--muted); }
.hero-art { position: relative; }
.hero-art img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 18px 40px -22px rgba(28, 33, 37, .45); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; }
}

/* Sections */
.band { padding-block: clamp(3rem, 8vw, 5.5rem); border-bottom: 1px solid var(--line); }
.band--sunk { background: var(--bg-sunk); }
.band-head { display: grid; gap: .8rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.band-head h2 { font-size: var(--step-3); font-weight: 700; }
.band-head p { color: var(--muted); }

/* Services: a ledger list, not a card grid */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.service { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.service svg { width: 1.7rem; height: 1.7rem; color: var(--copper); margin-top: .2rem; }
.service h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: .35rem; }
.service p { color: var(--muted); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Who */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.who li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.who h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.who p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.case h2 { font-size: var(--step-3); font-weight: 700; margin-block: .8rem 1rem; }
.case .body { display: grid; gap: 1rem; color: var(--muted); }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 var(--step--1)/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Process: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; }
.steps li::before {
  content: counter(step);
  font: 700 var(--step-2)/1 var(--font-display);
  color: var(--copper);
  border-bottom: 1px solid var(--line);
  padding-bottom: .6rem; margin-bottom: .3rem;
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.about h2 { font-size: var(--step-3); font-weight: 700; margin-top: .8rem; }
.about .body { display: grid; gap: 1rem; color: var(--muted); max-width: 40rem; }
.about .body strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.contact h2 { font-size: var(--step-3); font-weight: 700; margin-block: .8rem 1rem; }
.contact .lede { color: var(--muted); margin-bottom: 1.6rem; }
.contact dl { display: grid; gap: 1.1rem; margin: 0; }
.contact dt { font: 500 var(--step--1)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: .2rem; }
.contact dd { margin: 0; font-size: var(--step-1); }
.contact dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--copper); }
.contact dd.small { font-size: var(--step-0); color: var(--muted); }
form.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem .8rem;
  font: inherit;
}
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-size: var(--step--1); color: var(--copper-hi); min-height: 1.4em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 2.5rem; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Two-tone: the hero, alternate bands and footer use slate tokens on the light page. */
.hero,
.band--sunk,
.site-footer {
  --bg: #2b3036;
  --bg-raised: #353b42;
  --bg-sunk: #252a2f;
  --line: #474f58;
  --text: #eef1f3;
  --muted: #b8c0c8;
  --copper: #e39a63;
  --copper-hi: #efb07f;
  --on-copper: #1f150d;
  --steel: #a0a9b2;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}
