@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/fonts/red-hat-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-deep: #0b1d31;
  --ink: #0b1d31;
  --ink-2: #3f5367;
  --ink-3: #5a6c7f;
  --line: #dde4eb;
  --line-strong: #c3cedb;
  --navy-hover: #183559;
  --teal: #0d7a74;
  --teal-strong: #095a55;
  --teal-bg: #e4f4f2;
  --teal-line: #a6d9d3;
  --red: #b42318;
  --red-bg: #fdeceb;
  --red-line: #f1b5ae;
  --amber: #7a5000;
  --amber-bg: #fdf2d8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px -12px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px -6px rgba(0, 0, 0, 0.1);
  --sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html:lang(ko) {
  --sans: "Pretendard", "Public Sans", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:lang(ko) body {
  word-break: keep-all;
  line-height: 1.7;
}

::selection {
  background: var(--teal-bg);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 8px;
  border: 3px solid var(--bg-soft);
}
html {
  scrollbar-color: var(--line-strong) var(--bg-soft);
}

a {
  color: var(--teal-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

code,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand svg {
  flex: none;
}
.nav {
  display: flex;
  gap: 26px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-3);
}
.lang-switch a {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 2px;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.menu[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.menu-panel a:hover {
  background: var(--bg-soft);
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-hover);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.btn-on-dark:hover {
  background: var(--teal-bg);
  color: var(--ink);
}
.btn-ghost-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.btn-ghost-dark:hover {
  border-color: #fff;
  color: #fff;
}

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 78%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html:lang(ko) .hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero .lede {
  margin: 0 0 32px;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  color: var(--ink-2);
  max-width: 33em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 34em;
}

/* Incident card */
.incident {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.incident-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}
.incident-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.incident-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg-soft);
  white-space: nowrap;
}
.status[data-state="ok"] {
  color: var(--teal-strong);
  background: var(--teal-bg);
  border-color: var(--teal-line);
}
.status[data-state="fail"] {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--red-line);
}
.status[data-state="warn"] {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: #efd48f;
}
.status svg {
  flex: none;
}

.scene {
  position: relative;
  margin: 0;
  height: 148px;
  background: #1a2a3c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.scene figcaption {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(11, 29, 49, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.scene[hidden] {
  display: none;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
}
.timeline li:first-child {
  border-top: 0;
}
.timeline .t {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.3;
}
.timeline .t small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.timeline .what {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}
.timeline .what small {
  display: block;
  font-weight: 450;
  color: var(--ink-3);
  font-size: 13px;
}
.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-strong);
  background: var(--teal-bg);
  border: 1px solid var(--teal-line);
  white-space: nowrap;
}
.seal[data-state="fail"] {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--red-line);
}
.seal[data-state="pending"] {
  color: var(--ink-3);
  background: var(--bg-soft);
  border-color: var(--line);
}
.incident-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-2);
}
.incident-foot .mono {
  font-size: 12.5px;
}

/* Measured strip */
.measured {
  padding: 28px 0 8px;
}
.measured .wrap {
  display: grid;
  grid-template-columns: 180px repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.measured h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}
.measured h2 span {
  display: block;
  font-weight: 450;
  color: var(--ink-3);
}
.fact {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.fact svg {
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}
.fact strong {
  color: var(--ink);
  font-weight: 650;
}

/* Sections */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 22em;
}
html:lang(ko) .section h2 {
  line-height: 1.2;
}
.section .intro {
  margin: 0 0 48px;
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 40em;
  text-wrap: pretty;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split .intro {
  margin-bottom: 0;
}

/* Case notes */
.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.cases li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cases .court {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.cases .court strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
}
.cases p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.cases .gap,
.cases .kept {
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cases a {
  font-size: 13.5px;
}

/* Pipeline */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.pipeline li {
  position: relative;
  padding: 0 24px 0 0;
}
.pipeline .step-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pipeline .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  flex: none;
}
.pipeline .rail {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}
.pipeline li:last-child .rail {
  background: transparent;
}
.pipeline h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.pipeline p {
  margin: 0 0 18px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.snippet {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: #d6e2ee;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.snippet .k {
  color: #8fd3cb;
}
.snippet .v {
  color: #ffffff;
}

/* Tamper test */
.tamper {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.edits {
  padding: 8px 20px 20px;
}
.edit {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.edit:last-of-type {
  border-bottom: 0;
}
.edit label,
.edit .label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.edit .hint {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field input[type="number"] {
  max-width: 120px;
  font-family: var(--mono);
}
.field input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.field .unit {
  font-size: 14px;
  color: var(--ink-3);
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.verdict {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.verdict[data-state="ok"] {
  background: var(--teal-bg);
  color: var(--teal-strong);
}
.verdict[data-state="fail"] {
  background: var(--red-bg);
  color: var(--red);
}
.verdict[data-state="warn"] {
  background: var(--amber-bg);
  color: var(--amber);
}
.verdict svg {
  flex: none;
  margin-top: 2px;
}
.checks {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.checks th,
.checks td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.checks th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-soft);
}
.checks td.n {
  font-family: var(--mono);
  color: var(--ink-3);
  width: 36px;
}
.checks .ok,
.checks .no {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.checks .ok {
  color: var(--teal-strong);
}
.checks .no {
  color: var(--red);
}
.checks .why {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 450;
  color: var(--red);
  white-space: normal;
}
.checks .muted {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12.5px;
}
.checks .note {
  color: var(--ink-3);
  font-size: 13px;
}
.nowrap {
  white-space: nowrap;
}
.checks tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
}
.panel-note {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.panel-note code {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* Records / never */
.two-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.two-lists h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.two-lists .sub {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 15px;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.ticks li svg {
  margin-top: 3px;
}
.ticks.yes svg {
  color: var(--teal);
}
.ticks.no svg {
  color: var(--ink-3);
}
.ticks small {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}
.gap-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  background: var(--amber-bg);
}

/* Obstetrics */
.ob {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #efd48f;
}
.ob dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.ob dt {
  padding-top: 18px;
  font-weight: 650;
  font-size: 16px;
}
.ob dd {
  margin: 4px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Measured vs planned */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.ledger-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--line-strong);
}
.ledger-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger-table td:first-child {
  font-weight: 600;
  width: 34%;
}
.ledger-table .state-measured {
  color: var(--teal-strong);
  font-weight: 600;
  white-space: nowrap;
}
.ledger-table .state-planned {
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
}
.ledger-table .state-target {
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
}
.ledger-table td small {
  display: block;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 450;
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.about h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.about p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Close */
.close {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(72px, 9vw, 112px) 0;
}
.close h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18em;
  text-wrap: balance;
}
.close p {
  margin: 0 0 32px;
  color: #c3d1df;
  font-size: 1.1rem;
  max-width: 38em;
}
.close .hero-actions {
  margin-bottom: 36px;
}
.close details {
  max-width: 820px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}
.close summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.close summary::-webkit-details-marker {
  display: none;
}
.close summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #8fd3cb;
  border-bottom: 1.8px solid #8fd3cb;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}
.close details[open] summary::before {
  transform: rotate(45deg);
}
.close summary:focus-visible {
  outline-color: #8fd3cb;
}
.close ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #c3d1df;
  font-size: 15px;
}
.close ol li {
  margin-bottom: 10px;
}
.close code {
  color: #fff;
  font-size: 13px;
  word-break: break-all;
}
.close a:not(.btn) {
  color: #8fd3cb;
}

.notfound-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.site-footer {
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a {
  color: var(--ink-2);
}

/* Motion: one authored moment, the seal settling when verification finishes */
@media (prefers-reduced-motion: no-preference) {
  .seal[data-just-checked] {
    animation: seal-in 0.7s var(--ease) both;
  }
  .timeline li:nth-child(2) .seal[data-just-checked] { animation-delay: 0.08s; }
  .timeline li:nth-child(3) .seal[data-just-checked] { animation-delay: 0.16s; }
  .timeline li:nth-child(4) .seal[data-just-checked] { animation-delay: 0.24s; }
  @keyframes seal-in {
    from {
      opacity: 0.35;
      filter: blur(3px);
      transform: translateY(2px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .incident {
    max-width: 720px;
  }
  .measured .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .measured h2 {
    grid-column: 1 / -1;
  }
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .pipeline li:nth-child(2) .rail {
    background: transparent;
  }
}
@media (max-width: 900px) {
  .hero .wrap,
  .split,
  .tamper,
  .ob,
  .two-lists {
    grid-template-columns: minmax(0, 1fr);
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .header-cta {
    display: none;
  }
  .measured .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline .rail {
    display: none;
  }
  .timeline li {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 11px 16px;
  }
  .timeline .seal {
    grid-column: 2;
    justify-self: start;
  }
  .incident-head,
  .incident-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cases li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .checks thead {
    display: none;
  }
  .checks,
  .checks tbody {
    display: block;
  }
  .checks tr {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .checks td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    grid-column: 2;
    padding: 0;
    border: 0;
  }
  .checks td::before {
    content: attr(data-label);
    font-size: 12.5px;
    color: var(--ink-3);
  }
  .checks td.n {
    grid-column: 1;
    grid-row: 1 / span 6;
    display: block;
  }
  .checks td.n::before,
  .checks td:nth-child(2)::before {
    content: none;
  }
  .checks td:nth-child(2) {
    display: block;
    font-weight: 650;
    margin-bottom: 4px;
  }
  .checks td[colspan] {
    grid-column: 2;
    display: block;
  }
  .checks td[colspan]::before,
  .checks td.cp-note::before {
    content: none;
  }
  .checks td.cp-note {
    grid-column: 2;
    display: block;
  }
  .checks td[colspan] .ok,
  .checks td[colspan] .no {
    white-space: normal;
  }
  .ledger-table td:first-child {
    width: auto;
  }
  .ledger-table,
  .ledger-table tbody,
  .ledger-table tr,
  .ledger-table td {
    display: block;
  }
  .ledger-table thead {
    display: none;
  }
  .ledger-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .ledger-table td {
    border: 0;
    padding: 2px 0;
  }
}

/* Walk-in 3D room */
.scene-enter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.scene-enter span {
  font-weight: 450;
  color: var(--ink-3);
}
.scene-enter:hover {
  background: var(--teal-bg);
}
.room {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.room[open] {
  display: flex;
  flex-direction: column;
}
.room::backdrop {
  background: rgba(11, 29, 49, 0.62);
}
.room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.room-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.room-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.room-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: grab;
}
.room-stage:active {
  cursor: grabbing;
}
.room-stage canvas {
  /* Out of flow, so the canvas's pixel size (2x on retina) can never widen the dialog. */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.room-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.room-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
.room-pin-arrow {
  display: none;
  flex: none;
  color: #fff;
  transform: rotate(var(--arrow-angle, 0rad));
}
.room-pin[data-off] {
  opacity: 0.92;
}
.room-pin[data-off] .room-pin-arrow {
  display: block;
  order: -1;
}
.room-pin[data-off] .room-pin-state {
  display: none;
}
.room-pin.room-pin-flip {
  flex-direction: row-reverse;
  text-align: right;
}
.room-pin-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 3px #fff, var(--shadow-sm);
}
.room-pin-text {
  display: grid;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.room-pin-state {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-strong);
}
.room-pin[data-state="fail"] .room-pin-dot {
  background: var(--red);
}
.room-pin[data-state="fail"] .room-pin-state {
  color: var(--red);
}
.room-pin[data-state="pending"] .room-pin-dot {
  background: var(--ink-3);
}
.room-pin[data-state="pending"] .room-pin-state {
  color: var(--ink-3);
}
.room-foot {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.room-foot p {
  margin: 0 0 6px;
}
.room-offroom-title {
  font-weight: 650;
  color: var(--ink);
}
.room-off {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal-strong);
}
.room-off[data-state="fail"] {
  color: var(--red);
}
.room-synthetic {
  color: var(--ink-3);
  font-size: 12.5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .room-head {
    flex-wrap: wrap;
  }
  .room-pin-text {
    font-size: 12px;
  }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.plan-for {
  margin: 4px 0 22px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.price .amount {
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price .per {
  font-size: 15px;
  color: var(--ink-2);
}
.price-local {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--ink-3);
}
.plan .ticks {
  margin-bottom: 24px;
  flex: 1;
}
.plan .ticks li {
  font-size: 15px;
  padding: 11px 0;
}
.plan .btn {
  align-self: flex-start;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.room-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.room-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.room-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-progress {
  position: relative;
  height: 6px;
  margin-top: 8px;
  max-width: 420px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.room-progress[hidden] {
  display: none;
}
.room-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.2s linear;
}
.room-progress.is-indeterminate .room-progress-bar {
  width: 35%;
  animation: room-indeterminate 1.1s ease-in-out infinite;
}
@keyframes room-indeterminate {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}
@media (prefers-reduced-motion: reduce) {
  .room-progress.is-indeterminate .room-progress-bar {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}
.room:fullscreen {
  inset: 0;
  width: 100%;
  height: 100%;
}
