:root {
  --bg: #07090c;
  --bg-soft: #0b1016;
  --panel: #0d1218;
  --panel-2: #111823;
  --text: #edf2f7;
  --muted: #91a0b2;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #f93722;
  --accent-soft: #ff8a7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-soft: #eceff4;
  --panel: #ffffff;
  --panel-2: #f2f4f8;
  --text: #0c1118;
  --muted: #5a6879;
  --line: rgba(10, 16, 24, 0.12);
  --line-strong: rgba(10, 16, 24, 0.22);
  --shadow: 0 18px 40px rgba(12, 18, 28, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 0%, rgba(249, 55, 34, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 40% at 88% 8%, rgba(84, 130, 255, 0.1), transparent 70%);
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #08090b;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

.mono,
.stat small,
.badge,
.eyebrow,
.brand-mark,
.list .n,
.sec-note {
  font-family: var(--font-mono);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--accent);
  color: #08090b;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(249, 55, 34, 0.14), transparent 70%),
    var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-inner {
  text-align: center;
}

.boot-word {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.boot-word em {
  color: var(--accent);
  font-style: normal;
}

.boot-line {
  display: block;
  width: 72px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--accent);
  transform-origin: left center;
  animation: bootline 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes bootline {
  0% { transform: scaleX(0.05); opacity: 0.4; }
  60% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.4; }
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease,
    color 0.16s ease;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #08090b;
}

.btn-primary:hover {
  background: #ff4a34;
  border-color: #ff4a34;
  color: #08090b;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.hero {
  padding: 74px 0 26px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 8.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--accent);
}

.lede {
  max-width: 60ch;
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.stat b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat small {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

section {
  padding: 48px 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.sec-head a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-decoration: none;
}

.sec-head a:hover {
  color: var(--text);
}

.sec-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.card::after {
  content: "→";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card:hover::after,
.card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.card .idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card p.bio.is-empty {
  font-style: italic;
  opacity: 0.72;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card .tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(249, 55, 34, 0.35);
  padding: 2px 6px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.list li:hover {
  background: var(--panel);
}

.list .n {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}

.list b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.list small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.list a.name {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.list a.name:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.list .go {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.list .go:hover {
  color: var(--accent);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--panel-2), var(--panel));
}

.contact-txt {
  max-width: 56ch;
}

.contact-txt .eyebrow {
  margin-bottom: 10px;
}

.contact-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.02em;
}

.contact-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
}

.site-foot .mono {
  font-size: 11.5px;
}

.foot-note {
  letter-spacing: 0.02em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.editor-panel {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.editor-head {
  position: relative;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.editor-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.editor-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 12.5px;
  color: var(--muted);
}

.editor-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.editor-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.editor-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.editor-group {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.editor-group legend {
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.editor-field {
  display: block;
  margin-bottom: 12px;
}

.editor-field > span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
}

.editor-field input:focus,
.editor-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.editor-projects {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.editor-project {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.editor-project-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.editor-project-head .editor-field {
  margin-bottom: 0;
}

.editor-remove {
  color: var(--accent-soft);
  border-color: rgba(249, 55, 34, 0.4);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .editor-overlay {
    padding: 0;
  }

  .editor-panel {
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
  }

  .editor-project-head {
    grid-template-columns: 1fr;
  }
}

.dcard {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0e13;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dcard::before,
.dcard::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  opacity: 0.65;
  pointer-events: none;
}

.dcard::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.dcard::after {
  right: 6px;
  bottom: 6px;
  border-top: 0;
  border-left: 0;
}

.dcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7d2de;
}

.dcard-mark {
  color: var(--accent-soft);
}

.dcard-slash {
  color: rgba(255, 255, 255, 0.3);
}

.dcard-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff5b45;
}

.dcard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: dcard-pulse 1.8s ease-in-out infinite;
}

@keyframes dcard-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dcard-visual {
  position: relative;
}

.dcard-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 3px
  );
}

.dcard-banner {
  position: relative;
  height: 210px;
  background-color: #10161e;
  background-image: linear-gradient(140deg, #1b2430, #0a0e13);
  background-size: cover;
  background-position: center 30%;
}

.dcard-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.3), rgba(7, 9, 12, 0.12) 45%, #0a0e13 99%);
}

.dcard-avatar-wrap {
  position: absolute;
  left: 50%;
  bottom: -72px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
}

.dcard-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #ff3b30, #8b5cf6, #3b82f6, #22d3ee, #8b5cf6, #ff3b30);
  filter: blur(16px);
  opacity: 0.38;
}

.dcard-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #10161e;
  background-image: radial-gradient(circle at 50% 35%, #2a3442, #10161e);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.92),
    0 0 0 7px rgba(0, 0, 0, 0.65),
    0 12px 30px rgba(0, 0, 0, 0.6);
}

.dcard-status {
  position: absolute;
  right: 6px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b3441;
  border: 3px solid #0a0e13;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dcard-status.is-on {
  background: #3ba55d;
}

.dcard-id {
  padding: 84px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dcard-label {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3ddc97;
}

.dcard-num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #e7eef7;
}

.dcard-clock {
  display: flex;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #c3cedb;
}

.dcard-clock span {
  flex: 1;
}

.dcard-clock span:nth-child(2) {
  text-align: center;
  color: #e7eef7;
}

.dcard-state {
  text-align: right;
  letter-spacing: 0.08em;
  color: #ff5b45;
}

.dcard-state.is-on {
  color: #3ba55d;
}

.dcard-live-row {
  margin: 10px 0 0;
}

.dcard-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #c3cedb;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.dcard-switch:hover {
  border-color: var(--accent);
  color: #fff;
}

.dcard-switch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b9aab;
}

.dcard-switch[aria-pressed="true"] .dcard-switch-dot {
  background: #3ddc97;
  box-shadow: 0 0 8px #3ddc97;
}

.dcard-live.is-off .dcard-dot {
  animation: none;
  opacity: 0.4;
  box-shadow: none;
}

.dcard-rows {
  padding: 4px 0;
}

.dcard-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dcard-row:last-child {
  border-bottom: 0;
}

.dcard-row .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9aab;
  white-space: nowrap;
}

.dcard-row .v {
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  color: #e7eef7;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcard-row .v .on {
  color: #3ddc97;
}

.dcard-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.dcard-foot span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9aab;
}

.dcard-foot span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.dcard-foot b {
  font-size: 11.5px;
  color: #e7eef7;
}

@media (max-width: 560px) {
  .dcard-banner {
    height: 165px;
  }

  .dcard-avatar-wrap {
    width: 128px;
    height: 128px;
    bottom: -58px;
  }

  .dcard-avatar {
    width: 128px;
    height: 128px;
  }

  .dcard-id {
    padding-top: 68px;
  }

  .dcard-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .dcard-row .v {
    text-align: left;
    white-space: normal;
    overflow: visible;
  }
}

.legal {
  width: min(760px, 100% - 40px);
  padding: 56px 0 40px;
}

.legal h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.legal h2 {
  margin: 34px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p {
  max-width: 72ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-lede {
  font-size: 1.05rem;
  color: var(--text);
}

.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--accent-soft);
  text-underline-offset: 0.18em;
}

.legal code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-back {
  margin-top: 36px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-foot a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

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

  .head-row {
    min-height: 58px;
  }

  .hero {
    padding: 48px 0 20px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .list .go {
    display: none;
  }

  .contact-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(1080px, 100% - 28px);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
