:root {
  --bg: #070708;
  --panel: rgba(20, 20, 23, 0.56);
  --panel-strong: rgba(25, 25, 29, 0.86);
  --panel-hover: rgba(34, 34, 39, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f7f7f8;
  --muted: #c1c1c9;
  --dim: #86868f;
  --red: #e93046;
  --red-soft: rgba(233, 48, 70, 0.12);
  --font: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --page: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scrollbar-color: #2c2c33 transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 6px;
  background: #2c2c33;
}

::-webkit-scrollbar-track {
  background: transparent;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(233, 48, 70, 0.4);
  color: white;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(233, 48, 70, 0.65);
  outline-offset: 2px;
}

.home-actions a,
.header-nav a,
.panel-socials a,
.tech-item,
.wordmark,
button {
  user-select: none;
  -webkit-user-select: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 0.9rem;
  background: white;
  color: black;
  font: 500 0.75rem var(--mono);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.home {
  overflow: hidden;
}

.math-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.site-shell,
.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--page));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 62px;
}

.site-header {
  margin-top: 0.9rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(17, 17, 20, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.wordmark {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark span {
  color: var(--red);
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
}

.header-nav a {
  color: var(--muted);
  font: 500 0.63rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 140ms ease;
}

.header-nav a::before {
  margin-right: 0.4rem;
  color: var(--red);
  content: "/";
  opacity: 0;
  transition: opacity 140ms ease;
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a:hover::before {
  opacity: 1;
}

.header-socials {
  display: flex;
  gap: 0.45rem;
}

.header-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 18, 21, 0.55);
  display: grid;
  place-items: center;
  color: var(--muted);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.header-socials a:hover {
  border-color: rgba(233, 48, 70, 0.62);
  background: var(--red-soft);
  color: white;
}

.action-icon svg,
.action-arrow,
.copy-button svg,
.status-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.home-main {
  min-height: 0;
  padding: clamp(0.8rem, 2.4vh, 1.5rem) 0;
  display: flex;
  align-items: center;
}

.hero-panel {
  width: 100%;
  max-height: 570px;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: minmax(0, 1fr) 76px;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.hero-copy {
  padding: clamp(2rem, 4.5vw, 4.25rem);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--red);
  font: 500 0.69rem var(--mono);
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.058em;
}

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

.hero-summary {
  max-width: 480px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.2vw, 1.04rem);
  line-height: 1.65;
}

.home-actions {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.home-actions > a {
  min-height: 0;
  padding: 1rem clamp(1.25rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.home-actions > a:last-child {
  border-bottom: 0;
}

.home-actions > a:hover {
  background: var(--panel-hover);
}

.action-icon {
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: color 180ms ease;
}

.action-icon svg {
  width: 22px;
  height: 22px;
}

.home-actions strong,
.home-actions small {
  display: block;
}

.home-actions strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.home-actions small {
  margin-top: 0.25rem;
  color: var(--dim);
  font: 0.68rem var(--mono);
}

.action-arrow {
  width: 18px;
  height: 18px;
  color: var(--dim);
  transition: color 150ms ease, transform 150ms ease;
}

.home-actions > a:hover .action-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

.contact-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.28);
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
}

.contact-value {
  min-width: 0;
  padding: 0 1.35rem;
  border-right: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.contact-value:last-child {
  border-right: 0;
}

.contact-label {
  color: var(--dim);
  font: 500 0.62rem var(--mono);
  text-transform: uppercase;
}

.contact-value code {
  overflow: hidden;
  color: var(--muted);
  font: 0.69rem var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.copy-button:hover,
.copy-button.is-copied {
  border-color: rgba(233, 48, 70, 0.6);
  background: var(--red-soft);
  color: white;
}

.copy-button svg {
  width: 15px;
  height: 15px;
}

.copy-button .check-icon {
  display: none;
  color: var(--red);
}

.copy-button.is-copied .copy-icon {
  display: none;
}

.copy-button.is-copied .check-icon {
  display: block;
}

.pgp-value {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.landing-footer {
  margin-bottom: 0.9rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(17, 17, 20, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 0.72rem var(--font);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

/* Shared detail pages */
.page-body::before,
.home::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.65px, transparent 0.65px);
  background-size: 30px 30px;
  content: "";
  pointer-events: none;
}

.page-main {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: clamp(1rem, 4vh, 2.5rem) auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--red);
  font: 500 0.67rem var(--mono);
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--dim);
  text-decoration: none;
}

.page-heading {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-lede {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-topbar {
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-topbar .breadcrumbs {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.68rem var(--mono);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  user-select: none;
}

.back-link:hover {
  border-color: rgba(233, 48, 70, 0.55);
  background: var(--red-soft);
  color: white;
}

.back-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-lede a,
.article a {
  color: white;
  text-underline-offset: 4px;
}

.page-section {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.page-section-title {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

.role-chip svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-note {
  margin-top: 0.9rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.filter-bar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  user-select: none;
}

.filter-button:hover {
  color: white;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.filter-button.is-active {
  border-color: rgba(233, 48, 70, 0.55);
  background: var(--red-soft);
  color: var(--red);
}

.is-hidden {
  display: none;
}

.page-contact {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1.5px 3px rgba(0, 0, 0, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.detail-card,
.status-card,
.project-card,
.project-empty,
.focus-card,
.timeline li {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1.5px 3px rgba(0, 0, 0, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
}

.detail-card {
  padding: 1.35rem;
}

.detail-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.detail-card p,
.status-card p,
.project-card p,
.project-empty p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.status-card {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.status-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(233, 48, 70, 0.45);
  border-radius: 12px;
  background: var(--red-soft);
  display: grid;
  place-items: center;
  color: var(--red);
}

.status-icon svg {
  width: 20px;
}

.status-card h2,
.project-card h2 {
  font-size: 1rem;
  font-weight: 600;
}

.project-list {
  display: grid;
  gap: 0.8rem;
}

.project-card {
  padding: 1.25rem 1.35rem;
}

.project-card:hover {
  border-color: var(--line);
}

.project-meta {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--dim);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-type {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(233, 48, 70, 0.4);
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project-card > p {
  margin-top: 0.45rem;
}

.project-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.66rem var(--mono);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.project-links a:hover {
  border-color: rgba(233, 48, 70, 0.55);
  background: var(--red-soft);
  color: white;
}

.project-empty {
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.project-empty .command {
  margin-bottom: 0.8rem;
  color: var(--text);
  font: 500 0.72rem var(--mono);
}

.project-empty .command::before {
  margin-right: 0.5rem;
  color: var(--red);
  content: "$";
}

.project-empty .command::after {
  margin-left: 0.3rem;
  color: var(--red);
  content: "▌";
  animation: type-caret 1s steps(1) infinite;
}

.project-empty p:not(.command) {
  font-size: 0.88rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.focus-card {
  padding: 1.3rem;
}

.focus-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--dim);
}

.focus-card h3 {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.focus-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.timeline {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  list-style: none;
}

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

.timeline li {
  position: relative;
  min-height: 132px;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(15, 15, 18, 0.56);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 154px;
  align-items: center;
  gap: 1.25rem;
}

.timeline li::before {
  content: none;
}

.timeline li.is-current {
  border-color: rgba(233, 48, 70, 0.24);
}

.timeline h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline p {
  max-width: 58ch;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.chip {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(233, 48, 70, 0.45);
  border-radius: 7px;
  background: var(--red-soft);
  color: var(--red);
  font: 500 0.56rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-dim {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
}

.cert-head {
  display: grid;
  gap: 0.15rem;
}

.cert-badge {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.86;
}

.cert-issuer {
  margin-top: 0.15rem;
  color: var(--dim);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-proof {
  max-width: 56ch;
  margin-top: 0.55rem;
}

.cert-actions {
  display: grid;
  justify-items: stretch;
  gap: 0.55rem;
}

.cert-actions .chip {
  justify-self: end;
}

.cert-info-link,
.verify-button {
  min-height: 32px;
  padding: 0 0.72rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  font: 500 0.62rem var(--mono);
}

.cert-info-link {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.cert-info-link span {
  color: var(--red);
}

.cert-info-link:hover {
  border-color: rgba(233, 48, 70, 0.48);
  background: var(--red-soft);
  color: white;
}

.verify-button {
  background: rgba(255, 255, 255, 0.02);
  color: var(--dim);
  cursor: not-allowed;
  opacity: 0.62;
}

.verify-button span {
  display: block;
  filter: blur(3px);
  user-select: none;
}

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

.button {
  min-height: 40px;
  margin-top: 1.2rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 0.69rem var(--mono);
  text-decoration: none;
}

.button:hover {
  border-color: rgba(233, 48, 70, 0.55);
  color: var(--red);
}

.site-footer {
  margin-bottom: 0.9rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(17, 17, 20, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 0.72rem var(--font);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.article h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.2rem;
}

.article h3 {
  margin: 2rem 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article p,
.article li {
  margin-bottom: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.article ul,
.article ol {
  padding-left: 1.3rem;
}

.article code,
.article pre {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
}

.article code {
  padding: 0.12rem 0.3rem;
  font-size: 0.84em;
}

.article pre {
  margin: 1.2rem 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-block {
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.code-bar {
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-bar > span {
  color: var(--dim);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 26px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.62rem var(--mono);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.code-copy svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-copy .check-icon {
  display: none;
  stroke: var(--red);
}

.code-copy:hover {
  border-color: rgba(233, 48, 70, 0.5);
  background: var(--red-soft);
  color: white;
}

.code-copy.is-copied .copy-icon {
  display: none;
}

.code-copy.is-copied .check-icon {
  display: block;
}

.code-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  line-height: 1.7;
}

.tok-comment {
  color: var(--dim);
}

.tok-cmd {
  color: var(--text);
}

.tok-flag {
  color: var(--red);
}

.article pre code {
  padding: 0;
  border: 0;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page strong {
  color: var(--red);
  font: 0.7rem var(--mono);
}

.error-page h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.7rem, 8vw, 5rem);
  letter-spacing: -0.06em;
}

.error-page p {
  margin: 0.6rem auto 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .home {
    overflow: auto;
  }

  .site-shell,
  .page-shell {
    height: auto;
    grid-template-rows: 78px auto auto;
  }

  .home-main {
    padding: 1.25rem 0;
  }

  .hero-panel {
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .contact-bar {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .contact-value {
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .contact-value:last-child {
    border-bottom: 0;
  }

  .page-main {
    margin: 1.25rem auto;
  }
}

@media (max-width: 620px) {
  .site-shell,
  .page-shell {
    width: min(100% - 1.5rem, var(--page));
  }

  .header-nav {
    display: none;
  }

  .hero-panel,
  .page-main {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 1.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .home-actions small {
    white-space: normal;
  }

  .contact-value {
    padding: 0 1rem;
    gap: 0.6rem;
  }

  .contact-label {
    display: none;
  }

  .contact-value,
  .pgp-value {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .contact-value:not(.pgp-value) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-footer,
  .site-footer {
    gap: 1rem;
    min-height: 46px;
  }

  .landing-footer p:last-child {
    display: none;
  }

  .page-main {
    padding: 1.5rem;
  }

  .detail-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 0.9rem 1.15rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 901px) and (max-height: 690px) {
  .site-shell,
  .page-shell {
    grid-template-rows: 66px minmax(0, 1fr) 54px;
  }

  .site-header {
    margin-top: 0.6rem;
  }

  .landing-footer,
  .site-footer {
    margin-bottom: 0.6rem;
  }

  .home-main {
    padding: 0.7rem 0;
  }

  .hero-panel {
    min-height: 0;
    height: 100%;
  }

  .hero-copy {
    padding: 2rem 2.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.85rem);
  }

  .hero-summary {
    margin-top: 1rem;
  }

  .action-icon {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Compact landing composition */
.hero-panel {
  position: relative;
  height: min(600px, 100%);
  min-height: 470px;
  max-height: none;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) 56px 64px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(17, 17, 20, 0.52);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.panel-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
}

.hero-copy {
  padding: clamp(1.8rem, 3.4vw, 3.2rem);
  border-right: 1px solid var(--line-soft);
}

.eyebrow {
  min-height: 1.3em;
  margin-bottom: 0.9rem;
  color: var(--text);
  font: 500 1.05rem var(--font);
  letter-spacing: -0.01em;
}

.eyebrow::after {
  margin-left: 0.18rem;
  color: var(--red);
  content: "|";
  animation: type-caret 850ms steps(1) infinite;
}

@keyframes type-caret {
  50% { opacity: 0; }
}

.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(2.1rem, 2.9vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 520px;
  margin-top: 1rem;
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

.read-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.read-link span {
  color: var(--red);
}

.home-actions {
  min-height: 0;
  padding: 1.2rem;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 0.8rem;
}

.home-actions > a {
  min-height: 0;
  min-width: 0;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1.5px 3px rgba(0, 0, 0, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.home-actions > a:hover {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.home-actions > a:hover .action-icon {
  color: var(--red);
}

.action-copy {
  min-width: 0;
}

.primary-action .action-icon {
  color: var(--red);
}

.primary-action .action-icon svg {
  width: 24px;
  height: 24px;
}

.home-actions strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.home-actions small {
  margin-top: 0.3rem;
  overflow: hidden;
  color: var(--muted);
  font: 0.75rem/1.5 var(--font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-rail {
  min-width: 0;
  padding: 0 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.2rem;
}

.tech-item {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #d4d4db;
  transition: color 150ms ease, background 150ms ease;
}

.tech-item:hover,
.tech-item:focus {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.tech-item:focus {
  z-index: 2;
  outline-offset: -2px;
}

.tech-icon {
  width: 21px;
  height: 21px;
  flex: none;
  fill: currentColor;
  transition: transform 150ms ease;
}

.tech-item:hover .tech-icon,
.tech-item:focus .tech-icon {
  transform: translateY(-1px) scale(1.08);
}

.tech-item::after {
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 0.38rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 12, 14, 0.96);
  color: white;
  font: 0.58rem var(--mono);
  white-space: nowrap;
  content: attr(data-tech);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.tech-item:hover::after,
.tech-item:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.panel-footer {
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 22px 22px;
  background: rgba(5, 5, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem 0 1.25rem;
}

.contact-inline,
.panel-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-inline > span {
  color: var(--dim);
  font: 0.6rem var(--mono);
  text-transform: uppercase;
}

.contact-inline code {
  color: var(--muted);
  font: 0.68rem var(--mono);
}

.icon-button,
.pgp-button,
.panel-socials a,
.copy-key-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.copy-key-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.dialog-note {
  margin: 1.1rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Detail-page shell: fixed viewport, content scrolls inside the panel */
.page-shell {
  width: min(100% - 3rem, 980px);
  height: 100svh;
  min-height: 0;
  padding: 12px 0;
  grid-template-rows: 56px minmax(0, 1fr);
  gap: 12px;
}

.page-shell > .site-header,
.page-shell > .site-footer {
  margin: 0;
  border-color: var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.page-shell > .site-header {
  border-radius: 16px;
}

.page-shell > .site-footer {
  border-radius: 14px;
}

.page-body {
  overflow: hidden;
}

.page-shell .page-main {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

@media (max-width: 900px) {
  .page-body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
  }

  .page-shell .page-main {
    overflow: visible;
  }
}

.page-shell .page-main::-webkit-scrollbar {
  width: 8px;
}

.page-shell .page-main::-webkit-scrollbar-track {
  background: transparent;
}

.page-shell .page-main::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

.page-kicker {
  margin-bottom: 0.7rem;
  color: var(--red);
  font: 500 0.8rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-intro {
  max-width: 690px;
}

.page-topbar {
  margin-bottom: 1.8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  font: 500 0.72rem var(--mono);
  line-height: 1;
}

.back-link svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-link:hover {
  border-color: rgba(233, 48, 70, 0.55);
  background: var(--red-soft);
  color: white;
}

/* About */
.about-copy {
  max-width: 720px;
}

.about-section {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-soft);
}

.about-section:first-of-type {
  margin-top: 2.2rem;
}

.about-section h2 {
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.about-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.72;
}

.about-contact .page-contact {
  margin-top: 0.9rem;
}

/* Project archive */
.projects-page .page-topbar {
  margin-bottom: 1.1rem;
}

.page-shell .projects-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.projects-page .page-intro {
  margin-bottom: 1.2rem;
}

.projects-page .page-lede {
  margin-top: 0.6rem;
}

.project-browser {
  min-height: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 0.75rem;
}

.project-search,
.project-sort {
  display: grid;
  gap: 0.38rem;
}

.project-search > span,
.project-sort > span,
.filter-row > span {
  color: var(--dim);
  font: 500 0.59rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-search input,
.project-sort select {
  width: 100%;
  height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: 0.76rem var(--font);
}

.project-search input:focus,
.project-sort select:focus {
  border-color: rgba(233, 48, 70, 0.55);
}

.project-sort select option {
  background: #111114;
}

.project-filters {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.filter-row > span {
  width: 62px;
}

.archive-filter,
.archive-pagination button {
  min-height: 32px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font: 500 0.66rem var(--font);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.archive-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  user-select: none;
}

.archive-filter svg {
  width: 12.5px;
  height: 12.5px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archive-filter:hover,
.archive-filter.is-active {
  border-color: rgba(233, 48, 70, 0.48);
  background: var(--red-soft);
  color: white;
}

.archive-filter.is-active svg {
  stroke: var(--red);
}

.archive-summary {
  margin: 1.35rem 0 0.55rem;
  flex: none;
  color: var(--dim);
  font: 0.61rem var(--mono);
}

.archive-viewport {
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.archive-viewport::-webkit-scrollbar {
  width: 8px;
}

.archive-viewport::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

.archive-list {
  border-top: 0;
}

.archive-item {
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.archive-meta {
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.archive-category {
  padding: 0.26rem 0.55rem;
  border: 1px solid rgba(233, 48, 70, 0.42);
  border-radius: 7px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.66rem;
}

.archive-role {
  color: var(--dim);
}

.archive-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.archive-tags span {
  padding: 0.24rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 0.68rem var(--mono);
}

.archive-tags span::before {
  color: var(--red);
  content: "#";
}

.archive-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.archive-item > p {
  max-width: 620px;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.archive-links {
  margin-top: 0.62rem;
  display: flex;
  gap: 0.9rem;
}

.archive-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 500 0.7rem var(--mono);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.archive-links a::after {
  color: var(--red);
  content: "↗";
}

.archive-links a:hover {
  border-color: rgba(233, 48, 70, 0.55);
  background: var(--red-soft);
  color: white;
}

.archive-empty {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.archive-pagination {
  padding-top: 1rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.archive-pagination span {
  color: var(--dim);
  font: 0.6rem var(--mono);
}

.archive-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 900px) {
  .page-shell .projects-page {
    display: block;
    overflow: visible;
  }

  .project-browser {
    display: block;
  }

  .archive-viewport {
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 1rem, 980px);
    padding: 8px 0;
    grid-template-rows: 52px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .page-shell .page-main {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .page-shell > .site-footer {
    padding: 0 0.9rem;
    align-items: center;
    flex-direction: row;
  }

  .page-shell > .site-footer nav {
    gap: 0.75rem;
  }

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

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

  .timeline li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .cert-badge {
    width: 68px;
    height: 68px;
  }

  .cert-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .cert-actions .chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .filter-row > span {
    width: 100%;
  }

  .archive-pagination {
    justify-content: space-between;
  }
}

.icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgp-button {
  height: 30px;
  padding: 0 0.7rem;
  font: 0.62rem var(--mono);
  cursor: pointer;
}

.panel-socials a {
  min-height: 31px;
  padding: 0 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.68rem;
  text-decoration: none;
}

.social-icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: currentColor;
  color: white;
}

.icon-button:hover,
.pgp-button:hover,
.panel-socials a:hover,
.copy-key-button:hover {
  border-color: rgba(233, 48, 70, 0.6);
  background: var(--red-soft);
  color: white;
}

.border-trace {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.border-trace rect {
  x: 0.75px;
  y: 0.75px;
  width: calc(100% - 1.5px);
  height: calc(100% - 1.5px);
  rx: 21px;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.page-main .border-trace rect {
  rx: 25px;
}

.trace-tail {
  stroke: rgba(233, 48, 70, 0.42);
  stroke-dasharray: 130 870;
  animation: border-trace 22s linear infinite;
}

@keyframes border-trace {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1000; }
}

.pgp-dialog {
  width: min(94vw, 660px);
  max-height: min(84vh, 660px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(14, 14, 17, 0.82);
  color: var(--text);
  box-shadow:
    0 60px 160px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(130%);
  -webkit-backdrop-filter: blur(32px) saturate(130%);
}

.pgp-dialog[open] {
  animation: dialog-in 190ms ease;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.pgp-dialog::backdrop {
  background: rgba(4, 4, 5, 0.7);
  backdrop-filter: blur(10px);
}

.dialog-head {
  position: relative;
  padding: 1.5rem 3.5rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.dialog-head .icon-button {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
}

.dialog-head small {
  color: var(--red);
  font: 500 0.59rem var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin-top: 0.3rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.dialog-head .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.fingerprint-row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.fingerprint-row > span {
  color: var(--dim);
  font: 500 0.58rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fingerprint-row code {
  overflow: hidden;
  color: var(--text);
  font: 0.67rem var(--mono);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgp-dialog pre {
  max-height: 270px;
  margin: 1.2rem 1.5rem;
  padding: 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow: auto;
  color: var(--muted);
  font: 0.65rem/1.6 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-key-button {
  height: 40px;
  margin: 0 1.5rem 1.5rem;
  padding: 0 1rem;
  border-color: rgba(233, 48, 70, 0.5);
  border-radius: 11px;
  background: var(--red-soft);
  color: white;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.copy-key-button:hover {
  border-color: rgba(233, 48, 70, 0.75);
  background: rgba(233, 48, 70, 0.2);
}

@media (max-width: 900px) {
  .hero-panel {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .panel-content {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .tech-rail {
    min-height: 0;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .panel-footer {
    min-height: 66px;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .home-actions {
    padding: 0.85rem;
  }

  .panel-footer {
    padding: 0.75rem;
    align-items: stretch;
    flex-direction: column;
  }

  .contact-inline {
    justify-content: space-between;
  }

  .contact-inline > span {
    display: none;
  }

  .panel-socials a {
    flex: 1;
    justify-content: center;
  }
}

.crow {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 30px;
  color: #61616c;
  pointer-events: none;
  transform: translate(-140px, -140px);
}

.crow svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: currentColor;
}

.crow.is-flipped svg {
  transform: scaleX(-1);
}

.crow .wing {
  transform-origin: 11.5px 9.5px;
  animation: crow-flap 640ms ease-in-out infinite alternate;
}

.crow .wing-far {
  transform-origin: 12.5px 9.8px;
  opacity: 0.45;
  animation-direction: alternate-reverse;
}

@keyframes crow-flap {
  from { transform: rotate(22deg); }
  to { transform: rotate(-28deg); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::after {
    animation: none;
  }

  .trace-tail {
    animation: none;
    stroke: none;
  }

  .pgp-dialog[open] {
    animation: none;
  }
}
