@font-face {
  font-family: "Geist Lab";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono Lab";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #05080d;
  --navy-950: #07101d;
  --navy-900: #0a1625;
  --navy-850: #0d1b2c;
  --navy-800: #112238;
  --paper: #eef3f6;
  --paper-deep: #dce6ec;
  --white: #f8fbfd;
  --text: #ecf4f8;
  --muted: #93a6b6;
  --ink-text: #122233;
  --ink-muted: #5d6c78;
  --line: rgba(167, 201, 225, 0.18);
  --line-strong: rgba(167, 201, 225, 0.34);
  --blue: #1488ff;
  --blue-deep: #0564c7;
  --cyan: #23cfdf;
  --red: #ff435b;
  --green: #28d39f;
  --amber: #f0b84b;
  --shell: 1220px;
  --sans: "Geist Lab", "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono Lab", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--navy-950);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select { font-family: var(--sans); }

button,
input,
select { font: inherit; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { color: var(--muted); }

button,
a,
input,
select { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

::selection { color: var(--white); background: var(--blue-deep); }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lab-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.98);
}

.header-status {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.status-row {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  color: #67849a;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.privacy-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.privacy-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 4px 12px rgba(40, 211, 159, 0.35);
}

.header-main {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand img { width: 132px; height: 58px; object-fit: contain; }

.brand span {
  padding: 3px 7px;
  border: 1px solid rgba(35, 207, 223, 0.5);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.lab-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  font-size: 0.82rem;
  font-weight: 650;
}

.lab-nav a {
  position: relative;
  padding-block: 27px;
  color: #aab9c5;
  transition: color 160ms ease;
}

.lab-nav a:hover,
.lab-nav a[aria-current="page"] { color: var(--white); }

.lab-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.lab-nav .back-link {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.nav-toggle { display: none; }

.lab-hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--navy-950);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 86px;
  align-items: center;
  padding-block: 92px;
}

.lab-dateline {
  display: flex;
  justify-content: space-between;
  max-width: 620px;
  margin-bottom: 35px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.6vw, 5.5rem);
  font-weight: 670;
}

.hero-copy > p {
  max-width: 67ch;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.hero-actions,
.button-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.text-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms ease, border-color 160ms ease;
}

.primary-action {
  border: 1px solid var(--blue);
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 12px 32px rgba(5, 100, 199, 0.22);
}

.primary-action:hover:not(:disabled) {
  border-color: #62b1ff;
  background: var(--blue);
  transform: translateY(-2px);
}

.primary-action:disabled {
  border-color: #293b4b;
  color: #6f8494;
  background: #132130;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.secondary-action:hover { border-color: var(--cyan); background: rgba(35, 207, 223, 0.07); }

.text-action {
  position: relative;
  padding-inline: 10px 27px;
  color: var(--text);
}

.text-action::after,
.row-action::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.text-action::after { right: 8px; }

.privacy-instrument {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line-strong);
  background: var(--navy-900);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.instrument-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  color: #7f98aa;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.instrument-head strong { color: var(--green); font-weight: 600; }

.privacy-orbit {
  position: relative;
  width: 198px;
  height: 198px;
  margin: 38px auto 30px;
  border: 1px solid rgba(35, 207, 223, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.privacy-orbit::before,
.privacy-orbit::after,
.privacy-orbit i {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.privacy-orbit::before { inset: 23px; }
.privacy-orbit::after { inset: 57px; border-color: rgba(40, 211, 159, 0.5); }
.privacy-orbit .orbit-a { inset: -11px 47px; }
.privacy-orbit .orbit-b { inset: 47px -11px; }

.privacy-orbit span {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.privacy-orbit span::before {
  position: absolute;
  top: -78px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 4px 14px rgba(35, 207, 223, 0.45);
  content: "";
  transform-origin: 0 78px;
  animation: orbit-scan 8s linear infinite;
}

@keyframes orbit-scan { to { transform: rotate(360deg); } }

.instrument-list { margin: 0 18px 18px; border-top: 1px solid var(--line); }

.instrument-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.instrument-list dt { color: #688195; }
.instrument-list dd { margin: 0; color: #c8d6df; }

.tool-index { padding-block: 112px 122px; }

.section-rail {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 50px;
  margin-bottom: 64px;
}

.section-rail > span,
.method-note > span {
  padding-top: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.section-rail h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 620;
}

.section-rail p { max-width: 70ch; margin-bottom: 0; }

.tool-rows { border-top: 1px solid var(--line-strong); }

.tool-row {
  position: relative;
  display: grid;
  min-height: 132px;
  grid-template-columns: 70px minmax(220px, 0.8fr) minmax(300px, 1.2fr) 90px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  transition: background 180ms ease;
}

.tool-row:hover { background: rgba(20, 136, 255, 0.065); }

.row-number,
.row-title small,
.row-action {
  color: #5f8db0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.row-title h3 { margin: 5px 0 0; font-size: 1.55rem; font-weight: 620; }
.tool-row > p { max-width: 58ch; margin: 0; font-size: 0.91rem; }

.row-action { position: relative; justify-self: end; padding-right: 18px; color: var(--cyan); }
.row-action::after { right: 2px; top: 4px; }

.roadmap-section {
  padding-block: 112px;
  color: var(--ink-text);
  background: var(--paper);
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 1.25fr);
  gap: 100px;
}

.roadmap-intro h2 {
  max-width: 570px;
  margin-bottom: 25px;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 650;
}

.roadmap-intro p { max-width: 60ch; color: var(--ink-muted); }

.roadmap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(18, 34, 51, 0.24); }

.roadmap-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 23px 0;
  border-bottom: 1px solid rgba(18, 34, 51, 0.2);
}

.roadmap-list li > span,
.roadmap-list small {
  color: #40708f;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.roadmap-list strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.roadmap-list p { margin: 0; color: var(--ink-muted); font-size: 0.86rem; }

.tool-heading {
  display: grid;
  grid-template-columns: 160px 1fr 250px;
  gap: 42px;
  align-items: end;
  padding-block: 85px 66px;
  border-bottom: 1px solid var(--line-strong);
}

.tool-coordinate {
  padding-bottom: 9px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
}

.tool-heading h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 660;
}

.tool-heading-copy p { max-width: 68ch; margin: 0; font-size: 1.02rem; }

.local-seal {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(40, 211, 159, 0.4);
}

.local-seal span,
.local-seal small {
  color: #688b7f;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.local-seal strong { margin-block: 7px 2px; color: var(--green); font-size: 0.92rem; }

.mode-switch {
  display: flex;
  gap: 0;
  margin-top: 36px;
  border-bottom: 1px solid var(--line-strong);
}

.mode-switch a {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  color: #7990a1;
  font-size: 0.78rem;
  font-weight: 680;
  text-align: center;
}

.mode-switch a.is-active {
  border-color: var(--line-strong);
  color: var(--white);
  background: var(--navy-900);
}

.workbench,
.hash-workbench,
.strength-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(480px, 1.28fr);
  gap: 36px;
  padding-block: 46px 104px;
}

.control-panel,
.analysis-input,
.hash-input-panel {
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--navy-900);
}

.panel-title { margin-bottom: 30px; }

.panel-title span,
.result-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.panel-title h2,
.result-head h2 { margin: 0; font-size: 1.55rem; font-weight: 630; }

.range-field,
.select-field { margin-bottom: 25px; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.field-label label,
.select-field label,
.analysis-input > label { display: block; color: #c5d3dc; font-size: 0.78rem; font-weight: 670; }

.range-output { color: var(--cyan); font-family: var(--mono); font-size: 0.78rem; }

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 12px 0 10px;
  accent-color: var(--blue);
  cursor: pointer;
}

.field-note {
  display: block;
  margin-top: 9px;
  color: #6f8799;
  font-size: 0.72rem;
  line-height: 1.45;
}

.choice-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #c5d3dc;
  font-size: 0.78rem;
  font-weight: 670;
}

.compact-choice { grid-template-columns: 1fr; }

.check-control {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: #a7bac8;
  font-size: 0.76rem;
  cursor: pointer;
}

.check-control:hover { border-color: var(--line-strong); color: var(--white); }
.check-control input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }

.select-field label { margin-bottom: 8px; }

select,
.password-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  background: var(--navy-950);
}

.control-status,
.hash-status { min-height: 42px; margin: 18px 0 0; color: #7792a5; font-size: 0.72rem; line-height: 1.45; }

.result-panel,
.analysis-result,
.hash-output-panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: #081320;
}

.result-head {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.result-head .secondary-action { min-height: 38px; padding-inline: 14px; font-size: 0.72rem; }

.result-readout {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 34px;
}

.generated-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.5vw, 2.15rem);
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.result-meta span {
  min-height: 55px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: #66859a;
  font-family: var(--mono);
  font-size: 0.59rem;
  line-height: 1.4;
}

.result-meta span:last-child { border-right: 0; }

.result-guidance { margin: 0; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 0.8rem; }

.method-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 760px);
  gap: 42px;
  padding-block: 68px 104px;
  border-top: 1px solid var(--line-strong);
}

.method-note h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 620; }
.method-note p { max-width: 72ch; margin: 0; }

.input-action { display: grid; grid-template-columns: 1fr auto; margin-top: 9px; }
.input-action .password-input { border-radius: 3px 0 0 3px; }

.field-button {
  min-width: 88px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 3px 3px 0;
  color: var(--cyan);
  background: var(--navy-850);
  cursor: pointer;
}

.analysis-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 30px 0 0;
  background: var(--line);
}

.analysis-facts div { padding: 15px; background: var(--navy-950); }
.analysis-facts dt { color: #668196; font-family: var(--mono); font-size: 0.6rem; }
.analysis-facts dd { margin: 7px 0 0; color: #adbecb; font-size: 0.72rem; }
.analysis-facts strong { color: var(--white); font-family: var(--mono); font-size: 1rem; }

.strength-head .strength-label { color: #a9bdca; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; }

.strength-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 28px 24px 0;
}

.strength-meter i { height: 7px; background: #1c2a38; }
.strength-meter.score-1 i:nth-child(-n+2) { background: var(--red); }
.strength-meter.score-2 i:nth-child(-n+3) { background: var(--amber); }
.strength-meter.score-3 i:nth-child(-n+4) { background: var(--cyan); }
.strength-meter.score-4 i { background: var(--green); }

.strength-summary { min-height: 73px; margin: 0; padding: 19px 24px; border-bottom: 1px solid var(--line); font-size: 0.83rem; }

.findings-grid { display: grid; grid-template-columns: 1fr 1fr; }
.findings-grid > div { min-width: 0; padding: 23px; }
.findings-grid > div + div { border-left: 1px solid var(--line); }
.findings-grid h3 { margin-bottom: 17px; color: #b8c8d3; font-size: 0.82rem; letter-spacing: 0; }

.finding-list { margin: 0; padding: 0; list-style: none; }
.finding-list li { position: relative; margin-bottom: 10px; padding-left: 16px; color: #8fa6b6; font-size: 0.76rem; }
.finding-list li::before { position: absolute; top: 0.69em; left: 0; width: 6px; height: 1px; background: var(--red); content: ""; }
.suggestion-list li::before { background: var(--cyan); }
.empty-finding { margin: 0; color: #627b8d; font-size: 0.76rem; }

.hash-workbench { grid-template-columns: minmax(360px, 0.86fr) minmax(480px, 1.14fr); }

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dropzone {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 25px;
  border: 1px dashed rgba(35, 207, 223, 0.42);
  background: var(--navy-950);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone.is-dragging { border-color: var(--cyan); background: rgba(35, 207, 223, 0.055); }

.dropzone:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }

.drop-mark {
  position: relative;
  width: 34px;
  height: 42px;
  border: 1px solid var(--cyan);
}

.drop-mark::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  border-bottom: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  background: var(--navy-950);
  content: "";
}

.dropzone div { max-width: 100%; }
.dropzone strong { display: block; max-width: 100%; overflow: hidden; color: var(--white); font-size: 0.87rem; text-overflow: ellipsis; white-space: nowrap; }
.dropzone span:not(.drop-mark),
.dropzone small { display: block; margin-top: 5px; color: #70899b; font-size: 0.67rem; }

.hash-algorithms { margin-top: 23px; }
.hash-output-panel { padding-bottom: 24px; }
.hash-output-panel > .result-head small { color: #66859a; font-family: var(--mono); font-size: 0.63rem; }
.hash-empty { padding: 30px 24px 20px; }
.hash-empty strong { display: block; margin-bottom: 8px; color: #b9cad5; font-size: 0.85rem; }
.hash-empty p { max-width: 62ch; margin: 0; font-size: 0.76rem; }

.hash-results { padding: 0 24px; }
.hash-result { padding: 20px 0; border-top: 1px solid var(--line); }
.hash-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hash-result-head strong { color: var(--cyan); font-family: var(--mono); font-size: 0.66rem; }
.hash-result-head .secondary-action { min-height: 32px; padding-inline: 11px; font-size: 0.66rem; }
.hash-result code { display: block; overflow-wrap: anywhere; color: #d8e4eb; font-family: var(--mono); font-size: 0.72rem; line-height: 1.65; }

.prose-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-block: 60px 110px;
}

.prose-page section {
  min-height: 245px;
  padding: 34px;
  border-bottom: 1px solid var(--line-strong);
}

.prose-page section:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.prose-page h2 { margin-bottom: 20px; font-size: 1.55rem; font-weight: 620; }
.prose-page p,
.prose-page li { max-width: 68ch; color: var(--muted); font-size: 0.9rem; }
.prose-page ol { margin: 0; padding-left: 20px; }
.prose-page .primary-action { width: max-content; margin-top: 34px; }

.lab-footer {
  padding-block: 58px 36px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.footer-layout strong { color: #dce8ee; font-size: 0.88rem; }
.footer-layout p { max-width: 62ch; margin: 8px 0 0; font-size: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a { color: #71899a; font-size: 0.7rem; }
.footer-links a:hover { color: var(--white); }

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 360px;
  padding: 16px;
  border: 1px solid var(--red);
  color: var(--white);
  background: var(--ink);
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .lab-hero { min-height: auto; }
  .privacy-instrument { min-height: 410px; }
  .roadmap-layout { grid-template-columns: 1fr; gap: 52px; }
  .tool-heading { grid-template-columns: 120px 1fr; }
  .local-seal { grid-column: 2; width: min(100%, 310px); }
  .workbench,
  .hash-workbench,
  .strength-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-main { min-height: 70px; grid-template-columns: 1fr auto; }
  .brand img { width: 116px; height: 50px; }
  .nav-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: transparent;
    font-size: 0.72rem;
  }
  .nav-toggle i,
  .nav-toggle i::before,
  .nav-toggle i::after { width: 16px; height: 1px; background: currentColor; content: ""; }
  .nav-toggle i { position: relative; }
  .nav-toggle i::before { position: absolute; top: -5px; left: 0; }
  .nav-toggle i::after { position: absolute; top: 5px; left: 0; }
  .lab-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--ink);
  }
  .lab-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .lab-nav a,
  .lab-nav .back-link { min-height: 50px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); }
  .lab-nav a[aria-current="page"]::after { display: none; }
  .tool-row { grid-template-columns: 42px 1fr 84px; gap: 18px; padding-block: 22px; }
  .tool-row > p { grid-column: 2 / -1; }
  .row-action { grid-column: 3; grid-row: 1; }
  .section-rail { grid-template-columns: 1fr; gap: 18px; }
  .section-rail > span { padding: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .status-row > span:first-child { display: none; }
  .status-row { justify-content: flex-end; }
  .brand { gap: 8px; }
  .brand img { width: 102px; }
  .brand span { font-size: 0.52rem; }
  .nav-toggle span { display: none; }
  .nav-toggle { width: 42px; justify-content: center; padding: 0; }
  .hero-layout { padding-block: 62px 72px; }
  .lab-dateline { margin-bottom: 25px; }
  .lab-dateline span:last-child { display: none; }
  .hero-copy h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
  .hero-copy > p { font-size: 0.95rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action,
  .text-action { width: 100%; }
  .privacy-instrument { min-height: 390px; }
  .privacy-orbit { width: 170px; height: 170px; }
  .privacy-orbit span::before { top: -64px; transform-origin: 0 64px; }
  .tool-index,
  .roadmap-section { padding-block: 78px; }
  .tool-row { grid-template-columns: 34px 1fr; gap: 14px; }
  .tool-row > p { grid-column: 2; }
  .row-action { display: none; }
  .row-title h3 { font-size: 1.3rem; }
  .roadmap-list li { grid-template-columns: 34px 1fr; }
  .roadmap-list small { grid-column: 2; }
  .tool-heading { grid-template-columns: 1fr; gap: 22px; padding-block: 58px 42px; }
  .tool-coordinate { padding: 0; }
  .tool-heading h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .local-seal { grid-column: 1; width: 100%; }
  .mode-switch { overflow-x: auto; }
  .mode-switch a { min-width: 50%; }
  .workbench,
  .hash-workbench,
  .strength-workbench { gap: 20px; padding-block: 28px 72px; }
  .control-panel,
  .analysis-input,
  .hash-input-panel { padding: 22px; }
  .result-head { min-height: 78px; padding: 16px 18px; }
  .result-readout { min-height: 180px; padding: 25px 20px; }
  .generated-value { font-size: 1.25rem; }
  .result-meta { grid-template-columns: 1fr; }
  .result-meta span { min-height: 45px; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-meta span:last-child { border-bottom: 0; }
  .choice-fieldset { grid-template-columns: 1fr; }
  .method-note { grid-template-columns: 1fr; gap: 15px; padding-block: 48px 72px; }
  .method-note > span { padding: 0; }
  .findings-grid { grid-template-columns: 1fr; }
  .findings-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .analysis-facts { grid-template-columns: 1fr; }
  .dropzone { min-height: 190px; padding: 20px 15px; }
  .hash-results { padding-inline: 18px; }
  .prose-page { grid-template-columns: 1fr; padding-block: 30px 80px; }
  .prose-page section { min-height: auto; padding: 28px 0; border-right: 0 !important; }
  .footer-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
