/* kegtech.fyi — KEG Technologies, Inc.
   Look: an equipment rack in a dark server room. Amber = status lights and the main action, blue = links (Cat6 cable).
   One family (Archivo, variable width + weight): wide for headings, normal for reading, condensed for equipment-style labels. */

@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-latin-standard-italic.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --bg: #0d1822; --bg-2: #112130; --panel: #162839; --rule: #263f56; --rule-2: #1d3346;
  --ink: #e7eef4; --ink-2: #b6c5d1; --ink-3: #8ea3b4;
  --amber: #ffb03a; --amber-ink: #1a1203; --amber-text: #ffbe5c;
  --blue: #6cb6ff; --green: #47d08a;
  --focus: #ffb03a;
  --field: #0f1e2b;
  --shot-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  /* the rack is hardware: it stays dark in both themes */
  --rk-frame: #18222d; --rk-hole: #0b1117; --rk-face: #223040; --rk-face-hi: #2a3b4e; --rk-edge: #33475c;
  --rk-text: #c9d6e1; --rk-dim: #7d90a2; --rk-port: #0a1016;
  --wrap: 1180px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f5f8; --bg-2: #e6edf2; --panel: #ffffff; --rule: #c9d5df; --rule-2: #dbe4eb;
  --ink: #0d1822; --ink-2: #31475a; --ink-3: #50677a;
  --amber: #f5a524; --amber-ink: #1a1203; --amber-text: #8a5200;
  --blue: #0a5ebd; --green: #13824a;
  --focus: #0a5ebd;
  --field: #ffffff;
  --shot-shadow: 0 22px 50px -26px rgba(13, 24, 34, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f2f5f8; --bg-2: #e6edf2; --panel: #ffffff; --rule: #c9d5df; --rule-2: #dbe4eb;
    --ink: #0d1822; --ink-2: #31475a; --ink-3: #50677a;
    --amber: #f5a524; --amber-ink: #1a1203; --amber-text: #8a5200;
    --blue: #0a5ebd; --green: #13824a; --focus: #0a5ebd; --field: #ffffff;
    --shot-shadow: 0 22px 50px -26px rgba(13, 24, 34, .45);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif; font-stretch: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
::selection { background: var(--amber); color: var(--amber-ink); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--amber); color: var(--amber-ink); border: 2px solid var(--amber); border-radius: 8px;
  padding: .72em 1.25em; font: inherit; font-weight: 700; font-stretch: 108%; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--amber) 86%, #fff); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--panel); border-color: var(--ink-3); }
.btn-small { padding: .45em .95em; font-size: .95rem; }

/* ---- header ---- */
.banner { background: var(--amber); color: var(--amber-ink); font-weight: 600; font-size: .95rem; padding: .5em 0; text-align: center; }
.banner a { color: inherit; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-2); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word b { font-size: 1.32rem; font-weight: 900; font-stretch: 125%; letter-spacing: .02em; }
.word span { font-size: .78rem; font-weight: 600; font-stretch: 80%; color: var(--ink-3); letter-spacing: .04em; margin-top: 2px; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 6px; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--panel); }
.nav-cta { margin-left: 8px; }
.theme, .nav-toggle { background: none; border: 1px solid var(--rule); color: var(--ink-2); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.theme:hover, .nav-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.nav-toggle { display: none; }
.theme svg, .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: inline; }
:root[data-theme="light"] .theme .moon { display: none; }
@media (max-width: 860px) {
  .top-in { gap: 10px; }
  .nav-toggle { display: inline-grid; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .nav.open ul { display: flex; }
  .nav a:not(.btn) { display: block; padding: 12px 8px; border-bottom: 1px solid var(--rule-2); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---- logo mark ---- */
.mark-bg { fill: #16283a; stroke: #2f4a63; stroke-width: 2; }
.mark-k { fill: none; stroke: #e7eef4; stroke-width: 7; stroke-linecap: round; }
.mark-hub { fill: #ffb03a; stroke: #16283a; stroke-width: 3; }
.mark-a { fill: #6cb6ff; stroke: #16283a; stroke-width: 3; }
.mark-b { fill: #47d08a; stroke: #16283a; stroke-width: 3; }

/* ---- hero ---- */
.hero { padding: 56px 0 56px; border-bottom: 1px solid var(--rule-2);
  background: radial-gradient(ellipse 60% 70% at 85% 40%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); font-weight: 800; font-stretch: 116%; letter-spacing: -.025em; line-height: 1.02; max-width: 15ch; }
.lede { margin-top: 22px; font-size: 1.18rem; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 960px) {
  .hero { padding: 36px 0 44px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  }

/* ---- the rack ---- */
.hero-rack { line-height: 0; border-radius: 12px; box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .45); } /* box-shadow, not filter: a filter would be redrawn on every blink */
.rack { width: 100%; height: auto; display: block; font-family: "Archivo", sans-serif; }
.rack-frame { fill: var(--rk-frame); stroke: #2a3846; stroke-width: 2; }
.rack-hole { fill: var(--rk-hole); }
.unit-face { fill: var(--rk-face); stroke: var(--rk-edge); stroke-width: 1.5; transition: fill .15s; }
.plate .unit-face { fill: #1d2a37; }
.plate-name { fill: var(--rk-text); font-size: 18px; font-weight: 850; font-stretch: 118%; letter-spacing: .01em; }
.readout { fill: #070d12; stroke: #2a3846; }
.readout-t { fill: #a87628; font-size: 15px; font-weight: 600; font-stretch: 75%; letter-spacing: .06em; }
.readout-v { fill: #ffb03a; font-weight: 750; }
.unit-u { fill: var(--rk-dim); font-size: 12px; font-weight: 600; font-stretch: 70%; letter-spacing: .08em; }
.unit-name { fill: var(--rk-text); font-size: 20px; font-weight: 700; font-stretch: 92%; transition: fill .15s; }
.unit:hover .unit-face, .unit:focus-visible .unit-face { fill: var(--rk-face-hi); }
.unit:hover .unit-name, .unit:focus-visible .unit-name { fill: #ffbe5c; }
.unit:focus-visible { outline: none; }
.unit:focus-visible .unit-face { stroke: #ffb03a; stroke-width: 2.5; }
.port { fill: var(--rk-port); stroke: #3a4d61; stroke-width: 1; }
.led { fill: #24323f; }
.led-pwr { fill: #47d08a; stroke: rgba(71, 208, 138, .35); stroke-width: 4; }
.led-act { fill: #ffb03a; }
.cable { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.plug { stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.c-blue { stroke: #3d8ee6; } .plug.c-blue { fill: #3d8ee6; }
.c-amber { stroke: #e3962a; } .plug.c-amber { fill: #e3962a; }
.c-green { stroke: #2fae6c; } .plug.c-green { fill: #2fae6c; }
.c-grey { stroke: #8796a5; } .plug.c-grey { fill: #8796a5; }
.cable.c-blue, .cable.c-amber, .cable.c-green, .cable.c-grey { fill: none; }

/* Power-on: each unit's power light comes on in turn, then the port lights start flickering.
   This is the page's one moving moment; with reduced motion everything is simply on. */
@media (prefers-reduced-motion: no-preference) {
  .led-pwr { animation: pwr-on .25s ease-out both; }
  .p0 { animation-delay: .35s; } .p1 { animation-delay: .5s; } .p2 { animation-delay: .65s; } .p3 { animation-delay: .8s; } .p4 { animation-delay: .95s; } .p5 { animation-delay: 1.1s; } .p6 { animation-delay: 1.25s; }
  .led-act { opacity: .15; animation: act 1.6s steps(1, end) infinite; animation-delay: 1.3s; }
  .b1 { animation-duration: 1.3s; } .b2 { animation-duration: 2.1s; } .b3 { animation-duration: .9s; } .b4 { animation-duration: 2.9s; }
  .d1 { animation-delay: 1.38s; } .d2 { animation-delay: 1.52s; } .d3 { animation-delay: 1.61s; } .d4 { animation-delay: 1.75s; } .d5 { animation-delay: 1.9s; }
  .d6 { animation-delay: 2.05s; } .d7 { animation-delay: 2.2s; } .d8 { animation-delay: 2.33s; } .d9 { animation-delay: 2.5s; }
  .readout-t { animation: readout 1.2s ease-out both; animation-delay: .2s; }
}
@keyframes pwr-on { 0%, 40% { fill: #24323f; stroke-opacity: 0; } 60% { fill: #9cf3c4; } 100% { fill: #47d08a; } }
@keyframes act { 0% { opacity: 1; } 18% { opacity: .2; } 31% { opacity: 1; } 47% { opacity: .25; } 70% { opacity: 1; } 84% { opacity: .3; } }
@keyframes readout { 0% { opacity: 0; } 20% { opacity: 1; } 30% { opacity: .2; } 45%, 100% { opacity: 1; } }

/* ---- sections ---- */
section { padding: 72px 0; }
@media (max-width: 700px) { section { padding: 48px 0; } }
.section-h { font-size: clamp(1.85rem, 3.3vw, 2.7rem); font-weight: 800; font-stretch: 114%; letter-spacing: -.02em; }
.section-intro { color: var(--ink-2); max-width: 40em; margin-top: 12px; }

/* services: rack-unit rows */
.services { padding-top: 56px; }
.svc-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.svc-head { display: grid; grid-template-columns: 44px 1fr; align-content: start; column-gap: 8px; }
.svc-u { grid-row: span 2; font-weight: 650; font-stretch: 70%; color: var(--amber-text); font-size: .95rem; padding-top: .3em; letter-spacing: .06em; }
.svc h3 { font-size: 1.6rem; font-weight: 780; font-stretch: 110%; letter-spacing: -.01em; }
.svc-short { color: var(--ink-3); margin-top: 6px; font-weight: 500; }
.svc-body { color: var(--ink-2); }
.svc-items { list-style: none; margin: 0; padding: 0; }
.svc-items li { position: relative; padding: 0 0 6px 20px; }
.svc-items li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); opacity: .85; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr 1fr; } .svc-head { grid-column: 1 / -1; } }
@media (max-width: 640px) { .svc { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; } }

/* timeline: one cable with a node for each era */
.timeline { background: var(--bg-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.tl-intro { max-width: 40em; color: var(--ink-2); }
.tl-intro .section-h { color: var(--ink); margin-bottom: 12px; }
.tl { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--rule), var(--blue)); }
.tl li { position: relative; padding-top: 34px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 4px solid var(--blue); }
.tl li:last-child::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent); }
.tl-when { display: block; font-weight: 650; font-stretch: 72%; color: var(--amber-text); letter-spacing: .05em; font-size: .95rem; }
.tl h3 { font-size: 1.18rem; font-weight: 750; font-stretch: 105%; margin: 4px 0 8px; }
.tl p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .tl::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; background: linear-gradient(180deg, var(--rule), var(--blue)); }
  .tl li { padding: 0 0 0 38px; }
}

/* work */
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 44px; }
.case:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.case:nth-of-type(even) .case-shot { order: 2; }
.case-shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--panel); box-shadow: var(--shot-shadow); text-decoration: none; }
.chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--rule-2); border-bottom: 1px solid var(--rule); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.chrome-url { margin-left: 10px; font-size: .82rem; color: var(--ink-3); background: var(--bg); border-radius: 5px; padding: 2px 12px; flex: 1; max-width: 260px; }
.case-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-kind { color: var(--amber-text); font-weight: 650; font-stretch: 78%; letter-spacing: .04em; margin-bottom: 6px; }
.case h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; margin-bottom: 14px; }
.case h3 a { color: var(--ink); text-decoration: none; }
.case h3 a:hover { text-decoration: underline; }
.case-text > p { color: var(--ink-2); }
.ticks { list-style: none; margin: 16px 0 18px; padding: 0; }
.ticks li { position: relative; padding: 0 0 7px 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.link-out { font-weight: 650; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; } .case:nth-of-type(even) { grid-template-columns: 1fr; } .case:nth-of-type(even) .case-shot { order: 0; } }

/* hosting spec sheet */
.hosting { background: var(--bg-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.hosting-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.hosting-in > div > p { color: var(--ink-2); margin-top: 14px; max-width: 34em; }
.spec { margin: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); overflow: hidden; }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--rule-2); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-weight: 650; font-stretch: 78%; color: var(--ink-3); letter-spacing: .03em; }
.spec dd { margin: 0; }
@media (max-width: 860px) { .hosting-in { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 480px) { .spec div { grid-template-columns: 1fr; gap: 2px; } }

/* process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--rule); padding-top: 18px; }
.steps li:first-child { border-top-color: var(--amber); }
.steps li::before { content: counter(step); display: block; font-size: 2.3rem; font-weight: 850; font-stretch: 125%; line-height: 1; color: var(--ink-3); margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about */
.about { padding-top: 0; }
.about-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; border-top: 1px solid var(--rule); padding-top: 64px; }
.about-text { font-size: 1.12rem; color: var(--ink-2); max-width: 38em; }
.about-text p:first-child { color: var(--ink); }
@media (max-width: 860px) { .about-in { grid-template-columns: 1fr; gap: 16px; padding-top: 44px; } }

/* contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--rule-2); }
.contact-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-text > p { color: var(--ink-2); margin-top: 14px; }
.reach { margin: 26px 0 0; }
.reach div { padding: 10px 0; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.reach dt { color: var(--ink-3); font-weight: 650; font-stretch: 78%; }
.reach dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.form { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .96rem; }
.opt { color: var(--ink-3); font-weight: 400; }
.form input:not([type="radio"]), .form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--field); border: 1.5px solid var(--rule); border-radius: 8px; padding: .62em .8em; }
.form textarea { resize: vertical; min-height: 8em; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #ef6b6b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .form { padding: 18px; } }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-weight: 600; font-size: .96rem; margin-bottom: 8px; padding: 0; }
.chip { position: relative; display: inline-flex !important; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--rule); border-radius: 999px; padding: .38em .9em; font-weight: 550; font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.chip input:checked + span { border-color: var(--amber); color: var(--ink); }
.chip input:checked + span::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 0; }
.form-note { color: var(--ink-3); font-size: .9rem; }
.form-err { background: color-mix(in srgb, #ef6b6b 14%, transparent); border: 1px solid #ef6b6b; border-radius: 8px; padding: 10px 14px; margin: 0; }
.form-done { background: var(--panel); border: 1px solid var(--green); border-radius: 12px; padding: 32px; display: flex; gap: 18px; align-items: center; font-size: 1.12rem; }
.form-done svg { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-opacity: .4; }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; gap: 26px; } }

/* plain pages (privacy, 404) */
.plain { padding: 64px 0 80px; }
.plain h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; font-stretch: 114%; letter-spacing: -.02em; margin-bottom: 18px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; font-weight: 750; margin: 30px 0 8px; }
.prose p { color: var(--ink-2); }
.nf-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; font-stretch: 125%; line-height: .9; color: var(--rule); margin: 0 0 14px; letter-spacing: -.03em; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 34px 0 22px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot-brand p { color: var(--ink-3); margin-top: 10px; max-width: 30em; font-size: .95rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot-links a { color: var(--ink-2); }
.foot-small { margin-top: 18px; }
.foot-small p { color: var(--ink-3); font-size: .86rem; margin: 0; }
.foot-small a { color: var(--ink-3); }

/* ---- case study ---- */
.case-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--rule-2); }
.crumb { margin-bottom: 14px; font-weight: 600; }
.case-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; font-stretch: 114%; letter-spacing: -.02em; max-width: 18ch; }
.case-hero .lede { max-width: 44em; }
.metrics { padding-top: 48px; }
.m-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; margin: 0; }
.key { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.key-new { margin-left: 12px; }
/* chart colors: validated pair (CVD-safe, 3:1 on the panel) — dark and light steps chosen separately */
:root { --c-old: #4f8ee0; --c-new: #c27a10; }
:root[data-theme="light"] { --c-old: #3f7fd0; --c-new: #b06e08; }
.key-old, .bar-old .bar-fill { background: var(--c-old); }
.key-new, .bar-new .bar-fill { background: var(--c-new); }
.bars { width: 100%; border-collapse: collapse; margin-top: 22px; }
.bars tr { display: grid; grid-template-columns: minmax(10em, 15em) minmax(0, 1fr) 7.5em; grid-template-rows: auto auto; column-gap: 20px; row-gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule-2); align-items: center; }
.bars tbody tr:last-child { border-bottom: 1px solid var(--rule-2); }
.bars th[scope="row"] { grid-row: 1 / 3; text-align: left; font-weight: 650; }
.bars td.bar-cell { grid-column: 2; padding: 0; }
.bars .bar-x { grid-column: 3; grid-row: 1 / 3; text-align: right; font-weight: 750; font-stretch: 105%; color: var(--ink); }
.bar { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.bar-fill { display: block; height: 14px; width: calc(var(--w, 0%) * .82); min-width: 3px; border-radius: 0 4px 4px 0; }
.bar-v { color: var(--ink-2); font-size: .93rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .bar-fill { transition: width .8s cubic-bezier(.2, .7, .2, 1); } }
@media (max-width: 640px) {
  .bars tr { grid-template-columns: minmax(0, 1fr) auto; }
  .bars th[scope="row"] { grid-row: 1; grid-column: 1; }
  .bars .bar-x { grid-row: 1; grid-column: 2; }
  .bars td.bar-cell { grid-column: 1 / -1; }
}
.m-note { color: var(--ink-3); font-size: .9rem; max-width: 60em; margin-top: 16px; }
.changes { background: var(--bg-2); border-top: 1px solid var(--rule-2); }
.change-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.change-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
.change-list h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 6px; }
.change-list p { color: var(--ink-2); }
@media (max-width: 760px) { .change-list { grid-template-columns: 1fr; } }
.case-cta { margin-top: 36px; padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.case-cta p { margin: 0; max-width: 40em; font-size: 1.08rem; }
.case-more { font-weight: 650; margin-left: 18px; }
.rack.idle .led-act { animation-play-state: paused; } /* set by site.js when scrolled away */
