@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/fonts/google-sans-flex.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 115%;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("assets/fonts/google-sans-code.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #0b2a3b;
  --ink-2: #3e5563;
  --ink-3: #5b6e7b;
  --ground: #ffffff;
  --ground-2: #f4f6f7;
  --rule: #dce2e6;
  --rule-2: #c3ced5;

  --blue: #0399cc;
  --blue-ink: #0279a6;
  --blue-deep: #01658b;

  --panel: #1c1d21;
  --panel-2: #25262b;
  --panel-3: #2e2f35;
  --panel-rule: #393a41;
  --panel-text: #e3e5e8;
  --panel-dim: #9aa0a6;

  --good: #0cce6b;
  --avg: #ffa400;
  --poor: #ff4e42;

  --bm-margin: #f9cc9d;
  --bm-border: #fddd9b;
  --bm-padding: #c3d08b;
  --bm-content: #8cb6c0;
  --bm-margin-hot: #f6b06e;
  --bm-border-hot: #fbcb5c;
  --bm-padding-hot: #adc262;
  --bm-content-hot: #6aa1af;

  --sans: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(3, 153, 204, 0.24); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
a { color: var(--blue-ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Toolbar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.bar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  height: 56px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 40px; }
.brand-word { width: 105px; }
.tabs { display: flex; align-self: stretch; margin-left: 8px; }
.tab {
  display: flex; align-items: center; padding: 0 14px;
  font-size: 0.875rem; font-weight: 550; color: var(--ink-3); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, background-color 0.15s;
}
.tab:hover { color: var(--ink); background: var(--ground-2); text-decoration: none; }
.tab[aria-current="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.bar-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.inspect-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border: 1px solid var(--rule-2); border-radius: 8px; background: var(--ground);
  font-size: 0.8125rem; font-weight: 550; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.inspect-toggle svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round;
}
.inspect-toggle:hover { background: var(--ground-2); color: var(--ink); }
.inspect-toggle[aria-pressed="true"] { background: #e6f4fa; border-color: var(--blue); color: var(--blue-deep); }
@media (hover: none) { .inspect-toggle { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 650; font-stretch: 104%; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, transform 0.18s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }
.btn-primary {
  background: var(--blue-ink); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--ground); color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--ground-2); border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #164058; }
.btn .ico { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gut) clamp(56px, 7vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(32px, 3.4vw, 56px); align-items: center;
  min-height: min(calc(100svh - 56px), 920px);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.28vw, 4.75rem);
  font-weight: 800; font-stretch: 106%;
  line-height: 0.97; letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.h1-accent { color: var(--blue-ink); }
.lede {
  margin-top: 28px; max-width: 34em;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--ink-2);
}
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- DevTools panel ---------- */
.devtools {
  min-width: 0;
  background: var(--panel); color: var(--panel-text);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 28px 56px -20px rgba(0, 0, 0, 0.42);
  font-size: 0.8125rem;
}
.dt-head {
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 8px; background: var(--panel-2); border-bottom: 1px solid var(--panel-rule);
}
.dt-tabs { display: flex; }
.dt-tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 11px 12px 9px; color: var(--panel-dim);
  font-size: 0.8125rem; font-weight: 550; cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.dt-tab:hover { color: var(--panel-text); background: var(--panel-3); }
.dt-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--blue); }
.dt-tab:focus-visible { outline-offset: -3px; }
.dt-live {
  display: flex; align-items: center; gap: 7px; padding-right: 6px;
  color: var(--panel-dim); font-family: var(--mono); font-size: 0.75rem;
}
.dt-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.dt-live[data-state="running"]::before { background: var(--avg); animation: blink 0.8s steps(2) infinite; }
.dt-url {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  padding: 9px 12px 9px 16px; border-bottom: 1px solid var(--panel-rule);
  color: var(--panel-dim); font-size: 0.75rem;
}
.dt-host { color: var(--panel-text); font-family: var(--mono); font-size: 0.75rem; }
.dt-time { margin-left: auto; }
.dt-time time { font-family: var(--mono); font-size: 0.75rem; color: var(--panel-text); font-variant-numeric: tabular-nums; }
.dt-rerun {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: var(--panel-3); border: 1px solid var(--panel-rule); border-radius: 6px;
  color: var(--panel-text); font-size: 0.75rem; font-weight: 550; cursor: pointer;
  transition: background-color 0.15s;
}
.dt-rerun:hover { background: #3a3b42; }
.dt-rerun:disabled { cursor: progress; color: var(--panel-dim); }
.dt-rerun:disabled .ico { animation: spin 0.9s linear infinite; }
.dt-panel { padding: 24px 18px 18px; min-height: 372px; }
.dt-panel:focus-visible { outline-offset: -3px; }

.gauges { --ring: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.gauge { position: relative; margin: 0; display: grid; justify-items: center; gap: 10px; --c: var(--panel-dim); }
.gauge svg { width: var(--ring); height: var(--ring); transform: rotate(-90deg); }
.g-track { fill: var(--g-fill, rgba(154, 160, 166, 0.08)); stroke: rgba(154, 160, 166, 0.16); stroke-width: 8; }
.g-arc {
  fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: calc(326.73 * (1 - var(--p, 0)));
  transition: stroke-dashoffset 1.3s var(--ease-out) var(--d, 0s), stroke 0.3s;
}
.gauge[data-rating="na"] .g-arc { stroke: transparent; }
.gauge[data-rating="na"] .g-track { fill: transparent; stroke: rgba(154, 160, 166, 0.5); stroke-width: 2; stroke-dasharray: 4 6; }
.g-value {
  position: absolute; top: 0; left: 50%; width: var(--ring); height: var(--ring); transform: translateX(-50%);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  color: var(--c); font-variant-numeric: tabular-nums;
}
.gauge figcaption { font-size: 0.78rem; font-weight: 550; color: var(--panel-text); line-height: 1.3; }
.gauge figcaption small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 500; color: var(--panel-dim); }

[data-rating="good"] { --c: var(--good); --g-fill: rgba(12, 206, 107, 0.1); }
[data-rating="avg"] { --c: var(--avg); --g-fill: rgba(255, 164, 0, 0.1); }
[data-rating="poor"] { --c: var(--poor); --g-fill: rgba(255, 78, 66, 0.1); }
[data-rating="na"] { --c: var(--panel-dim); }

.metrics {
  margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
  border-top: 1px solid var(--panel-rule);
}
.metric {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--panel-rule); min-width: 0;
}
.metric dt { display: flex; align-items: center; gap: 10px; color: var(--panel-text); font-size: 0.8rem; min-width: 0; }
.metric dd {
  margin: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--c, var(--panel-text)); font-variant-numeric: tabular-nums;
}
.mk { width: 9px; height: 9px; flex: none; background: var(--c, var(--panel-dim)); border-radius: 50%; }
[data-rating="avg"] .mk, .mk[data-rating="avg"] { border-radius: 1px; }
[data-rating="poor"] .mk, .mk[data-rating="poor"] { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; }
.mk-info { background: transparent; border: 1.5px solid var(--panel-dim); }
.mini-wf {
  display: block; width: 100%; margin-top: 16px; padding: 10px 12px 12px; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--panel-rule); border-radius: 8px; color: var(--panel-text);
  transition: background-color 0.15s, border-color 0.15s;
}
.mini-wf:hover { background: var(--panel-3); border-color: #4a4b52; }
.mini-wf-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; font-weight: 550; }
.mini-wf-sum { color: var(--panel-dim); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.mini-wf-bars { position: relative; display: grid; gap: 3px; margin-top: 10px; }
.mini-wf-bars i { display: block; position: relative; height: 4px; }
.mini-wf-bars i::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 2px;
  background: var(--tc, var(--panel-dim)); transform-origin: left center;
  transition: transform 0.9s var(--ease-out) calc(var(--i, 0) * 70ms + 200ms);
}
.js .devtools:not(.wf-drawn) .mini-wf-bars i::after { transform: scaleX(0); }
.dt-note {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  color: var(--panel-dim); font-size: 0.75rem; line-height: 1.5;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.dt-note-text { flex-basis: 100%; }

/* Network */
.net { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; }
.net-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) 56px 60px 52px minmax(0, 1.3fr);
  align-items: center; gap: 0 10px; padding: 6px 8px; border-bottom: 1px solid var(--panel-rule);
}
.net-headrow { background: var(--panel-2); color: var(--panel-dim); font-family: var(--sans); font-size: 0.75rem; font-weight: 550; }
.net-body .net-row:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.net-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--panel-text); }
.net-dim { color: var(--panel-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.net-wf-cell { position: relative; height: 10px; }
.net-bar {
  position: absolute; top: 1px; height: 8px; border-radius: 2px;
  left: var(--l); width: var(--w); background: var(--tc, var(--panel-dim));
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out) calc(var(--i, 0) * 45ms);
}
.js .devtools:not(.net-drawn) .net-bar { transform: scaleX(0); }
[data-type="document"] { --tc: #4c8df6; }
[data-type="stylesheet"] { --tc: #a472e8; }
[data-type="script"] { --tc: #f2b33d; }
[data-type="font"] { --tc: #3fb8af; }
[data-type="image"] { --tc: #6cc24a; }
.net-summary {
  margin-top: 12px; color: var(--panel-dim);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.9;
}
.net-summary b { color: var(--panel-text); font-weight: 600; }

/* Console log (audit + contact) */
.log {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; line-height: 1.6;
}
[data-audit-log] { max-height: 330px; overflow: auto; margin: -24px -18px -18px; }
.log-line {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 12px; border-bottom: 1px solid #2a2b30; color: var(--panel-text);
}
.log-line::before {
  content: ""; width: 12px; height: 12px; flex: none; margin-top: 3px;
  background: var(--icon-c, var(--panel-dim));
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.log-line code { font: inherit; }
.log-detail { margin-left: auto; padding-left: 12px; color: var(--panel-dim); white-space: nowrap; }
.log-info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 7.2v4M8 4.8v.2' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.log-pass { --icon-c: var(--good); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.log-fail {
  background: #290000; color: #f28b82; border-bottom-color: #5c0000; --icon-c: #f28b82;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 4.5 7 7m0-7-7 7' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.log-fail .log-detail { color: #f28b82; }
.log-warn {
  background: #332b00; color: #fdd663; border-bottom-color: #665500; --icon-c: #fdd663;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.8 15 14H1z' fill='black'/%3E%3C/svg%3E");
}
.log-input { --icon-c: var(--blue); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5 3.5 4.5 4.5L5 12.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.log-output { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 3.5 6.5 8l4.5 4.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.log-output s { text-decoration: none; color: #f9a07a; }
.log-output b { font-weight: inherit; color: #a898ff; }

/* ---------- Audit your own site ---------- */
.yours { background: var(--ground-2); border-block: 1px solid var(--rule); }
.yours-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: center;
}
.yours h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; font-stretch: 106%; letter-spacing: -0.025em; line-height: 1.1; }
.yours-copy p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }
.url-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.url-field {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--ground); border: 1px solid var(--rule-2); border-radius: 10px; color: var(--ink-3);
  transition: border-color 0.15s;
}
.url-field:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; }
.url-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--mono); font-size: 0.85rem; color: var(--ink); caret-color: var(--blue);
}
.url-field input::placeholder { color: var(--ink-3); opacity: 1; }
.url-form[data-invalid] .url-field { border-color: #b3261e; }
.field-error { grid-column: 1 / -1; color: #b3261e; font-size: 0.875rem; font-weight: 550; }
.send-link { grid-column: 1 / -1; justify-self: start; font-size: 0.925rem; font-weight: 600; }

/* ---------- Section heads ---------- */
.sec-head h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 780; font-stretch: 108%;
  line-height: 1.02; letter-spacing: -0.032em;
}
.sec-head p { margin-top: 18px; max-width: 56ch; font-size: 1.125rem; color: var(--ink-2); }

/* ---------- Services: box model ---------- */
.services { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gut); }
.bm-wrap {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.bm-col { position: sticky; top: 88px; }
.bm { color: var(--ink); user-select: none; }
.bm-hint { margin-top: 14px; font-size: 0.9rem; color: var(--ink-3); }
.bm-hint b { color: var(--ink); font-weight: 650; }
.bm-hint kbd {
  display: inline-block; min-width: 1.5em; padding: 0 5px; text-align: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink);
  background: var(--ground-2); border: 1px solid var(--rule-2); border-radius: 4px;
}
@media (hover: none) { .bm-hint { display: none; } }
.bm-layer {
  position: relative; display: flex; flex-direction: column;
  padding: 0 clamp(12px, 2vw, 24px) 10px;
  background: var(--bg); border: 1px dashed rgba(11, 42, 59, 0.5);
  cursor: pointer; transition: background-color 0.25s, outline-color 0.25s;
  outline: 2px solid transparent; outline-offset: -2px;
}
.bm-margin { --bg: var(--bm-margin); --hot: var(--bm-margin-hot); border-radius: 4px; }
.bm-border { --bg: var(--bm-border); --hot: var(--bm-border-hot); border: 2px solid var(--ink); }
.bm-padding { --bg: var(--bm-padding); --hot: var(--bm-padding-hot); }
.bm-content {
  --bg: var(--bm-content); --hot: var(--bm-content-hot);
  border-style: solid; border-color: rgba(11, 42, 59, 0.55);
  min-height: clamp(150px, 15vw, 200px); padding: 30px 16px;
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
}
.bm-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 64px; }
.bm-tag {
  position: absolute; left: 0; top: 13px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
}
.bm-content .bm-tag { left: 10px; top: 9px; }
.bm-name { font-size: 0.95rem; font-weight: 700; font-stretch: 106%; text-align: center; line-height: 1.2; }
.bm-core { font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 780; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.1; }
.bm-dims { font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.bm-items { padding-top: 8px; text-align: center; font-size: 0.8rem; font-weight: 560; }
.bm[data-active="marketing"] .bm-margin,
.bm[data-active="seo"] .bm-border,
.bm[data-active="consulting"] .bm-padding,
.bm[data-active="software"] .bm-content { background: var(--hot); outline-color: var(--blue-ink); }

.layers { border-top: 1px solid var(--rule); }
.layer { border-bottom: 1px solid var(--rule); }
.layer[data-layer="software"] { --sw: var(--bm-content); }
.layer[data-layer="consulting"] { --sw: var(--bm-padding); }
.layer[data-layer="seo"] { --sw: var(--bm-border); }
.layer[data-layer="marketing"] { --sw: var(--bm-margin); }
.layer summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px;
  padding: 22px 4px;
}
.layer summary::-webkit-details-marker { display: none; }
.layer summary:focus-visible { outline-offset: -2px; }
.swatch { width: 16px; height: 16px; border-radius: 3px; background: var(--sw); border: 1px solid rgba(11, 42, 59, 0.4); }
.layer-name {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 720; font-stretch: 106%;
  letter-spacing: -0.02em; line-height: 1.2; transition: color 0.15s;
}
.layer summary:hover .layer-name, .layer.is-hot .layer-name { color: var(--blue-ink); }
.layer-tag {
  font-size: 0.7rem; color: var(--ink-2);
  padding: 3px 7px; border: 1px solid var(--rule); border-radius: 5px; background: var(--ground-2);
}
.chev { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.25s var(--ease-out); }
.layer[open] .chev { rotate: 180deg; }
.layer-body { padding: 0 4px 28px 34px; }
.layer-body p { color: var(--ink-2); max-width: 52ch; }
.caps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.caps li { display: flex; align-items: center; gap: 11px; font-weight: 560; }
.caps li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--sw); border: 1px solid rgba(11, 42, 59, 0.55); }
.layer-proof { display: inline-block; margin-top: 18px; font-size: 0.95rem; font-weight: 600; }

/* ---------- Process: performance recording ---------- */
.process { background: var(--ground-2); border-top: 1px solid var(--rule); padding: clamp(72px, 9vw, 128px) var(--gut); }
.process > * { max-width: var(--max); margin-inline: auto; }
.perf {
  margin-top: clamp(40px, 5vw, 64px); overflow: hidden;
  background: var(--ground); border: 1px solid var(--rule-2); border-radius: 12px;
}
.perf-bar {
  display: flex; align-items: stretch; gap: 20px; height: 40px; padding: 0 16px;
  background: var(--ground-2); border-bottom: 1px solid var(--rule); font-size: 0.8rem; color: var(--ink-3);
}
.perf-tab { display: flex; align-items: center; color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--blue); }
.perf-rec, .perf-opt { display: flex; align-items: center; gap: 8px; }
.perf-rec i { width: 9px; height: 9px; border-radius: 50%; background: #d93025; }
.perf-opt { margin-left: auto; }
.perf-opt i { width: 12px; height: 12px; border-radius: 3px; background: var(--blue-ink); }
.perf-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.perf-inner { min-width: 720px; }
.perf-ruler {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 30px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.perf-ruler span { padding: 7px 0 0 8px; border-left: 1px solid var(--rule-2); }
.perf-ruler .perf-end { position: absolute; right: 10px; top: 0; border: 0; padding-left: 0; }
.perf-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue);
  transform-origin: left center; transition: transform 2s var(--ease-out) 0.15s;
}
.js .perf:not(.is-rendered) .perf-progress { transform: scaleX(0); }
.perf-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.frame { padding: 18px 18px 24px; border-left: 1px solid var(--rule); scroll-snap-align: start; }
.frame:first-child { border-left: 0; }
.frame h3 { margin-top: 16px; font-size: 1.15rem; font-weight: 720; font-stretch: 106%; letter-spacing: -0.015em; }
.frame p { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.shot {
  position: relative; aspect-ratio: 16 / 10; width: 100%; max-width: 260px; overflow: hidden;
  background: var(--ground); border: 1px solid var(--rule-2); border-radius: 3px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 10% 40% 1fr; gap: 7%; padding: 7%;
}
.shot > * { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i) * 260ms + 300ms); }
.js .frame:not(.is-rendered) .shot > * { opacity: 0.15; transform: translateY(4px); }
.shot i { display: block; }
.shot-discover { display: grid; place-items: center; grid-template: 1fr / 1fr; }
.s-q { font-size: 0.8rem; font-weight: 550; color: var(--ink-2); text-align: center; line-height: 1.3; }
.s-q::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 3px; vertical-align: -0.18em;
  background: var(--blue); animation: blink 1.1s steps(2) infinite;
}
.s-nav, .s-hero { grid-column: 1 / -1; }
.shot-plan i { border: 1.5px dashed #9fb1bc; border-radius: 3px; }
.shot-build .s-nav { background: var(--ink); border-radius: 2px; }
.shot-build .s-hero { background: var(--blue); border-radius: 3px; display: flex; flex-direction: column; justify-content: center; gap: 10%; padding: 0 8%; }
.s-hero b { display: block; height: 14%; width: 58%; background: rgba(255, 255, 255, 0.9); border-radius: 2px; }
.s-hero b + b { width: 36%; background: rgba(255, 255, 255, 0.55); }
.shot-build .s-col {
  background:
    linear-gradient(var(--rule) 0 0) top / 100% 42% no-repeat,
    linear-gradient(var(--rule) 0 0) 0 64% / 82% 11% no-repeat,
    linear-gradient(var(--rule) 0 0) 0 88% / 60% 11% no-repeat;
}
.shot-grow { display: flex; flex-direction: column; gap: 6%; padding: 7% 8%; background: #fafbfc; }
.g-search {
  display: flex; align-items: center; height: 15%; padding: 0 5%; flex: none;
  background: var(--ground); border: 1px solid var(--rule-2); border-radius: 999px;
}
.g-search b { display: block; height: 30%; width: 42%; background: var(--rule-2); border-radius: 2px; }
.g-res { display: grid; gap: 7%; padding: 3% 4%; flex: 1; align-content: center; border-radius: 3px; }
.g-res b { display: block; height: 5px; border-radius: 2px; background: var(--rule); }
.g-res b:nth-child(1) { width: 38%; height: 4px; background: #9fcfb3; }
.g-res b:nth-child(2) { width: 70%; background: #b7c3f0; }
.g-res b:nth-child(3) { width: 88%; }
.g-hit { background: #e6f4fa; outline: 1.5px solid var(--blue); outline-offset: -1.5px; }
.g-hit b:nth-child(1) { background: #1e7f4e; }
.g-hit b:nth-child(2) { background: #1a0dab; }

/* ---------- Contact: console ---------- */
.contact { background: #131417; color: var(--panel-text); }
.contact-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px 64px; align-items: start;
}
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p { color: var(--panel-dim); }
.contact a { color: #7cc8ea; }
.console {
  background: var(--panel); border: 1px solid #2a2b30; border-radius: 12px; overflow: hidden;
}
.console-bar {
  display: flex; justify-content: space-between; align-items: stretch; height: 38px; padding: 0 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--panel-rule);
  font-size: 0.78rem; color: var(--panel-dim);
}
.console-tab { display: flex; align-items: center; color: #fff; font-weight: 550; border-bottom: 2px solid var(--blue); }
.console-level { display: flex; align-items: center; }
.console .log { font-size: 0.78rem; }
.prompt { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px; }
.prompt:focus-within { background: #202126; }
.prompt:has(textarea:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.prompt-chev { width: 14px; height: 14px; margin-top: 13px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prompt textarea {
  width: 100%; min-height: 40px; max-height: 240px; padding: 9px 0; resize: none;
  background: transparent; border: 0; outline: 0; color: #fff; caret-color: var(--blue);
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.6;
}
.prompt textarea::placeholder { color: var(--panel-dim); opacity: 1; }
.contact-alt {
  grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  color: var(--panel-dim); font-size: 0.95rem;
}
.copy {
  appearance: none; padding: 5px 10px; border-radius: 6px; cursor: pointer;
  background: var(--panel-3); border: 1px solid var(--panel-rule); color: var(--panel-text);
  font-size: 0.8rem; font-weight: 550; transition: background-color 0.15s, color 0.15s;
}
.copy:hover { background: #3a3b42; }
.copy[data-copied] { color: var(--good); }

/* ---------- Status bar ---------- */
.status { background: #0c0d0f; color: var(--panel-dim); border-top: 1px solid #222328; }
.status-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 0.8rem;
}
.brand-light .brand-mark { width: 34px; }
.brand-light .brand-word { width: 90px; }
.status-facts { margin-left: auto; font-size: 0.8rem; }
.status-facts code { font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* ---------- Inspect overlay ---------- */
.inspector { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.ins-box { position: fixed; top: 0; left: 0; border: 0 solid transparent; }
.ins-margin { border-color: rgba(246, 178, 107, 0.6); }
.ins-border { border-color: rgba(255, 229, 153, 0.7); }
.ins-padding { border-color: rgba(147, 196, 125, 0.6); }
.ins-content { background: rgba(111, 168, 220, 0.55); }
.ins-guide { position: fixed; border: 0 dashed rgba(2, 121, 166, 0.75); }
.ins-gx1, .ins-gx2 { left: 0; right: 0; height: 0; border-top-width: 1px; }
.ins-gy1, .ins-gy2 { top: 0; bottom: 0; width: 0; border-left-width: 1px; }
.ins-tip {
  position: fixed; top: 0; left: 0; min-width: 190px; max-width: 300px; padding: 9px 11px;
  background: #fff; color: var(--ink); border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  font-size: 0.75rem; line-height: 1.5;
}
.tip-head { display: flex; justify-content: space-between; gap: 14px; font-family: var(--mono); font-weight: 600; }
.tip-sel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-tag { color: #881280; }
.tip-cls { color: #1a1aa6; }
.tip-dim { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip-row { display: flex; justify-content: space-between; gap: 18px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--rule); }
.tip-row > span:first-child { color: var(--ink-3); }
.tip-row > span:last-child { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.7rem; }
.tip-sw { width: 10px; height: 10px; border: 1px solid rgba(0, 0, 0, 0.3); }
.tip-ok { color: #137333; }
.tip-bad { color: #b3261e; }
.is-inspecting, .is-inspecting * { cursor: crosshair !important; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .devtools { max-width: 680px; }
  .bm-wrap { grid-template-columns: 1fr; }
  .bm-col { position: static; }
  .yours-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-alt { grid-column: auto; }
}
@media (max-width: 860px) {
  .tabs { display: none; }
  .shot > * { transition-delay: 150ms; }
  .perf-inner { min-width: 0; width: max-content; }
  .perf-ruler, .perf-frames { grid-template-columns: repeat(4, 232px); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bar-inner { gap: 12px; }
  .inspect-toggle { padding: 0 9px; }
  .inspect-toggle span { display: none; }
  .brand-mark { width: 34px; }
  .brand-word { width: 90px; }
  .lede { margin-top: 22px; }
  .cta-row { margin-top: 28px; }
  .cta-row .btn { flex: 1 1 auto; }
  .dt-panel { padding: 20px 12px 14px; min-height: 0; }
  [data-audit-log] { margin: -20px -12px -14px; }
  .gauges { --ring: 68px; gap: 4px; }
  .g-value { font-size: 0.8rem; }
  .gauge figcaption { font-size: 0.7rem; }
  .metrics { grid-template-columns: 1fr; }
  .dt-time { margin-left: 0; order: 3; flex-basis: 100%; }
  .dt-rerun { margin-left: auto; }
  .net-row { grid-template-columns: minmax(0, 1.4fr) 52px 44px minmax(0, 1fr); gap: 0 8px; }
  .net-type { display: none; }
  .url-form { grid-template-columns: 1fr; }
  .bm-layer { padding: 0 8px 8px; }
  .bm-top { min-height: 38px; padding: 0 58px; }
  .bm-tag { top: 11px; }
  .bm-name { font-size: 0.85rem; }
  .bm-items { padding-top: 7px; font-size: 0.75rem; }
  .perf-opt { display: none; }
  .bm-content { padding: 26px 10px 18px; }
  .layer-body { padding-left: 4px; }
  .prompt { grid-template-columns: 16px minmax(0, 1fr); }
  .prompt .btn { grid-column: 1 / -1; }
  .status-facts { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
