/* MWorx Energy — site styles
   Tokens first; components only ever read tokens. */

:root {
  --paper: #f2f4f1;
  --surface: #ffffff;
  --surface-2: #e8ece7;
  --ink: #1c2226;
  --ink-2: #3a4449;
  --muted: #5d6863;
  --line: #d3d9d3;
  --line-strong: #aeb8b1;
  --green: #28bf6a;
  --green-ink: #167a40;
  --green-wash: #dff3e6;
  --on-green: #0d2417;
  --warn: #b5651d;
  --focus: #1f8f50;
  --shadow: 0 1px 2px rgba(28, 34, 38, .06), 0 8px 24px -12px rgba(28, 34, 38, .18);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-xs: .8125rem;
  --s-sm: .9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.25rem;
  --s-xl: 1.625rem;
  --s-2xl: 2.125rem;
  --s-3xl: clamp(2.25rem, 4.6vw, 3.25rem);
  --s-hero: clamp(2.25rem, 4.4vw, 3.5rem);

  --wrap: 1180px;
  --measure: 68ch;
  --radius: 4px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--on-green); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

.label {
  font-family: var(--f-mono);
  font-size: var(--s-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--green { color: var(--green-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 32px; height: 32px; display: block; }
.brand-word { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.125rem; letter-spacing: .02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .625rem; letter-spacing: .22em; color: var(--green-ink); margin-top: 4px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--s-sm);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav .btn { margin-left: 8px; }

.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px clamp(16px, 4vw, 40px) 20px; display: grid; gap: 2px; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.menu-panel a[aria-current="page"] { color: var(--green-ink); }
.menu-panel .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: var(--s-sm);
  font-weight: 600;
  line-height: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: color-mix(in srgb, var(--green) 86%, var(--ink)); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 85%, var(--green)); }
.btn .arr { font-family: var(--f-mono); transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.nav .btn { padding: 11px 14px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: var(--s-hero); font-variation-settings: "wdth" 118; font-weight: 750; letter-spacing: -.022em; line-height: 1.05; margin-top: 14px; max-width: 24ch; }
.hero h1 em { font-style: normal; color: var(--green-ink); }
.hero-lede { font-size: var(--s-lg); color: var(--ink-2); max-width: 52ch; margin-top: 16px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-facts li { list-style: none; font-size: var(--s-sm); color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.hero-facts ul { padding: 0; margin: 0; display: contents; }
.tick { color: var(--green-ink); font-family: var(--f-mono); font-weight: 500; }


/* ---------- Readout (hero graphic) ---------- */
.readout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  font-family: var(--f-mono);
  font-size: var(--s-xs);
}
.readout-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.readout-head b { font-weight: 500; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.readout-head span { color: var(--muted); }
.readout-score { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.readout-score strong { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.readout-score span { color: var(--muted); font-size: var(--s-sm); }

.band { margin-top: 16px; }
.band-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 30px; position: relative; }
.band-cells i { display: block; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); }
.band-cells i.on { background: color-mix(in srgb, var(--green) calc(28% + var(--n) * 8%), var(--surface)); border-color: transparent; }
.band-cells i.part { background: linear-gradient(90deg, color-mix(in srgb, var(--green) 90%, var(--surface)) 0 var(--p), var(--surface-2) var(--p)); }
.band-marker { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); left: var(--at); }
.band-marker::after { content: ""; position: absolute; top: -5px; left: -4px; border: 5px solid transparent; border-top-color: var(--ink); }
.band-scale { display: grid; grid-template-columns: repeat(11, 1fr); margin-top: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.band-scale span:not(:first-child) { text-align: center; }
.band-scale span:last-child { text-align: right; }
.band-scale { grid-template-columns: 1fr repeat(9, 2fr) 1fr; }

.readout-rows { margin-top: 18px; display: grid; gap: 0; }
.readout-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.readout-rows dt { color: var(--muted); }
.readout-rows dd { margin: 0; color: var(--ink); text-align: right; }
.pass { color: var(--green-ink); }
.readout-note { margin-top: 12px; color: var(--muted); font-size: .72rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); }
.section--slim { padding-block: clamp(32px, 5vw, 56px); }
.section-head--tight { margin-bottom: clamp(18px, 3vw, 28px); }
.section-head--tight h2 { font-size: var(--s-2xl); }
.chooser table { min-width: 0; }
.chooser td:first-child { color: var(--ink); font-weight: 500; width: 60%; }
.chooser td a { font-weight: 600; }
.chooser-note { margin-top: 12px; font-size: var(--s-sm); color: var(--muted); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--s-3xl); margin-top: 10px; }
.section-head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* service cards */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.svc:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--tint .svc { background: var(--paper); }
.svc h3 { font-size: var(--s-xl); }
.svc p { color: var(--ink-2); font-size: var(--s-sm); }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--s-sm); }
.svc li { display: flex; gap: 8px; }
.svc li::before { content: "+"; font-family: var(--f-mono); color: var(--green-ink); }
.svc-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc-price { font-family: var(--f-mono); font-size: var(--s-sm); }
.svc-price b { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-size: var(--s-lg); font-weight: 700; }
.svc-go { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--green-ink); text-transform: uppercase; letter-spacing: .08em; }

/* USP split */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: var(--s-3xl); margin-top: 10px; }
.split .lede { color: var(--ink-2); margin-top: 18px; font-size: var(--s-lg); line-height: 1.5; }
.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.point { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.point h3 { font-size: var(--s-md); font-variation-settings: "wdth" 105; }
.point p { color: var(--ink-2); font-size: var(--s-sm); }
@media (max-width: 560px) { .point { grid-template-columns: 1fr; gap: 6px; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 20px 20px 24px 0; counter-increment: step; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .step:nth-child(3) { padding-left: 0; border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .step, .step + .step { padding-left: 0; border-left: 0; } .step + .step { border-top: 1px solid var(--line); } }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--s-xs); color: var(--green-ink); letter-spacing: .08em; }
.step h3 { font-size: var(--s-lg); margin-top: 10px; }
.step p { color: var(--ink-2); font-size: var(--s-sm); margin-top: 8px; }

/* checklist */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .checklist { grid-template-columns: minmax(0, 1fr); } }
.checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--s-sm); }
.checklist li::before { content: ""; flex: 0 0 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--green-ink); border-radius: 2px; }
.checklist li span { color: var(--muted); }

/* article cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s;
}
.section--tint .post { background: var(--paper); }
.post:hover { border-color: var(--ink); }
.post-meta { display: flex; justify-content: space-between; gap: 12px; }
.post h3 { font-size: var(--s-lg); line-height: 1.2; }
.post p { color: var(--ink-2); font-size: var(--s-sm); }
.post .svc-go { margin-top: auto; padding-top: 8px; }

/* CTA band */
.cta { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 7vw, 80px); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: var(--s-3xl); max-width: 22ch; color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); margin-top: 12px; max-width: 52ch; }
.cta .btn--ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, var(--ink)); }
.cta .btn--ghost:hover { border-color: var(--paper); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(44px, 7vw, 80px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--s-3xl); font-variation-settings: "wdth" 118; margin-top: 14px; max-width: 22ch; }
.page-head .lede { font-size: var(--s-lg); color: var(--ink-2); margin-top: 18px; max-width: 58ch; line-height: 1.5; }
.page-head .hero-actions { margin-top: 26px; }
.crumbs { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.spec { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.spec div { flex: 1 1 180px; padding: 14px 18px; border-right: 1px solid var(--line); }
.spec div:last-child { border-right: 0; }
.spec dt { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.spec dd { margin: 4px 0 0; font-weight: 600; }
.spec-note { margin-top: 10px; font-size: var(--s-sm); color: var(--muted); max-width: 68ch; }

/* ---------- Prose (service pages + articles) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 16px; }
@media (max-width: 960px) { .aside { position: static; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.aside-card h3 { font-size: var(--s-lg); }
.aside-card p { font-size: var(--s-sm); color: var(--ink-2); margin-top: 8px; }
.aside-card .btn { margin-top: 16px; width: 100%; justify-content: center; }
.aside-card ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: var(--s-sm); }
.aside-card li { padding: 8px 0; border-top: 1px solid var(--line); }
.aside-card li a { text-decoration: none; color: var(--ink); }
.aside-card li a:hover { color: var(--green-ink); }
.aside-card .price-line { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: var(--s-xs); padding: 8px 0; border-top: 1px solid var(--line); }
.aside-card .price-line b { font-weight: 500; color: var(--ink); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--s-2xl); margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-size: var(--s-lg); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--green-ink); }
.prose .intro { font-size: var(--s-lg); color: var(--ink); line-height: 1.55; }
.prose--after-faq { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--ink); }
.prose--after-faq > h2:first-child { margin-top: 0; }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
}
.note .label { display: block; margin-bottom: 6px; }
.note p { color: var(--ink-2); font-size: var(--s-sm); }
.note--warn { border-left-color: var(--warn); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--s-sm); min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 500; font-size: var(--s-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-family: var(--f-mono); color: var(--ink); }
td strong { color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 1.25rem; color: var(--green-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div > * + * { margin-top: .8em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card h3 { font-size: var(--s-lg); }
.price-card .amount { font-family: var(--f-display); font-variation-settings: "wdth" 118; font-weight: 750; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.price-card .amount small { font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 400; letter-spacing: .04em; color: var(--muted); margin-left: 6px; }
.price-card .from { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-card p { color: var(--ink-2); font-size: var(--s-sm); }
.price-card ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: var(--s-sm); display: grid; gap: 6px; }
.price-card li { display: flex; gap: 8px; }
.price-card li::before { content: "+"; font-family: var(--f-mono); color: var(--green-ink); }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card .turn { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--ink-2); padding: 8px 0; border-block: 1px solid var(--line); }
.price-card--feature { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card .pill { align-self: flex-start; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; background: var(--green-wash); color: var(--green-ink); padding: 4px 8px; border-radius: 99px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--s-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--s-xs); color: var(--muted); font-weight: 400; }
.field > .hint { display: block; line-height: 1.45; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--s-md);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field input[type="file"] { padding: 10px; font-size: var(--s-sm); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: var(--s-sm); background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; padding-top: 6px; }
.form-foot small { color: var(--muted); font-size: var(--s-xs); max-width: 46ch; }
.form-foot small a { color: var(--ink-2); }
.form-status { grid-column: 1 / -1; font-size: var(--s-sm); padding: 12px 14px; border-radius: var(--radius); background: var(--green-wash); color: var(--ink); }
.form-status.is-error { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.hp { position: absolute; left: -9999px; }

.contact-side { display: grid; gap: 16px; }
.copyline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.copyline code { font-family: var(--f-mono); font-size: var(--s-sm); background: var(--surface-2); padding: 6px 10px; border-radius: var(--radius); user-select: all; color: var(--ink); word-break: break-all; }
.copy-btn { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: .08em; background: none; border: 1px solid var(--line-strong); color: var(--ink); padding: 6px 10px; border-radius: var(--radius); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(44px, 7vw, 80px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: var(--s-3xl); font-variation-settings: "wdth" 112; margin-top: 16px; max-width: 24ch; }
.article-head .lede { font-size: var(--s-lg); color: var(--ink-2); margin-top: 18px; max-width: 60ch; line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.byline b { color: var(--ink); font-weight: 500; }
.toc { font-size: var(--s-sm); }
.toc ol { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--green-ink); }
.article-cta { margin-top: 3em; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 26px; display: grid; gap: 12px; max-width: var(--measure); }
.article-cta h2 { font-size: var(--s-xl); color: var(--paper); margin: 0; }
.article-cta p { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); font-size: var(--s-sm); }
.article-cta .cta-actions { margin-top: 6px; }
.article-cta .btn--ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, var(--ink)); }
.disclaimer { margin-top: 2em; font-size: var(--s-xs); color: var(--muted); max-width: var(--measure); }

/* article index filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Footer: drawing title block ---------- */
.site-footer { border-top: 2px solid var(--ink); background: var(--surface); padding-block: 40px 28px; font-size: var(--s-sm); }
.titleblock { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border: 1px solid var(--line-strong); }
.titleblock > div { padding: 18px 20px; border-right: 1px solid var(--line-strong); }
.titleblock > div:last-child { border-right: 0; }
@media (max-width: 880px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(2) { border-right: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 520px) {
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .titleblock > div { border-right: 0; }
  .titleblock > div + div { border-top: 1px solid var(--line-strong); }
}
.titleblock .label { display: block; margin-bottom: 10px; }
.titleblock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.titleblock a { color: var(--ink-2); text-decoration: none; }
.titleblock a:hover { color: var(--green-ink); text-decoration: underline; }
.titleblock p { color: var(--ink-2); }
.titleblock .brand { margin-bottom: 12px; }
.foot-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border: 1px solid var(--line-strong); border-top: 0; padding: 10px 20px; font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.scalebar { display: inline-grid; grid-template-columns: repeat(4, 22px); height: 6px; border: 1px solid var(--ink-2); vertical-align: middle; margin-right: 8px; }
.scalebar i:nth-child(odd) { background: var(--ink-2); }

/* utilities */
.stack-sm > * + * { margin-top: 10px; }
.mt-lg { margin-top: 40px; }
.muted { color: var(--muted); }
.center-narrow { max-width: 640px; margin-inline: auto; text-align: center; }
.center-narrow .hero-actions { justify-content: center; }
