@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --paper: #f4f5f7;
  --ink: #172126;
  --muted: #56656b;
  --rule: #c5d0d3;
  --accent: #0b746d;
  --warning: #8a4c00;
  --surface: #ffffff;
  --soc-bg: #061014;
  --soc-panel: #0c1a20;
  --soc-panel-2: #11242b;
  --soc-line: #203942;
  --soc-text: #edf8f7;
  --soc-muted: #91a9ad;
  --soc-cyan: #35e2d1;
  --soc-amber: #ffb454;
  --max: 70rem;
  --rail: 9rem;
  --gap: clamp(1.5rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gh-font-body, "Newsreader", Georgia, serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  border-radius: 0.125rem;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
.brand,
.site-navigation,
.credentials,
.record-rail,
.entry-meta,
.footer-inner {
  font-family: var(--gh-font-heading, "Archivo", Arial, sans-serif);
}

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

h1,
h2,
h3 {
  line-height: 1.16;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.shell-narrow,
.shell-reading {
  max-width: 48rem;
}

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--accent);
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--soc-line);
  background: rgba(6, 16, 20, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--soc-text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, var(--soc-cyan), #99fff3);
  box-shadow: 0 0 1.5rem rgba(53, 226, 209, 0.2);
  color: #031114;
}

.brand-mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.site-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.site-navigation a:hover {
  color: var(--soc-text);
  text-decoration: underline;
}

.site-navigation .is-active {
  color: var(--soc-cyan);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.3em;
}

.record-intro-grid,
.record-entry {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
}

.record-intro {
  background:
    radial-gradient(circle at 74% -30%, #17343a 0, transparent 42%),
    var(--soc-bg);
  color: var(--soc-text);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.intro-rail {
  display: flex;
  align-items: stretch;
}

.intro-rail::before {
  width: 3px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(var(--soc-cyan), var(--soc-amber));
  content: "";
}

.record-intro .positioning {
  color: #d8e7e7;
}

.record-intro .credentials {
  color: var(--soc-muted);
}

.record-rail {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.intro-body,
.record-body {
  min-width: 0;
}

.positioning {
  max-width: 46rem;
  margin-bottom: 1.2rem;
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  line-height: 1.5;
}

.credentials {
  max-width: 54rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.record-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.section-title {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
  margin-bottom: 2rem;
}

.section-title h2 {
  grid-column: 2;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.record-list {
  border-top: 1px solid var(--rule);
}

.record-entry {
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.record-body > :last-child {
  margin-bottom: 0;
}

.record-body p {
  max-width: 68ch;
}

.record-body h3 a {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.evidence-line {
  padding-left: 0.85rem;
  border-left: 2px solid var(--warning);
  color: var(--muted);
  font-style: italic;
}

.entry-meta {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-inner > div,
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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

.footer-navigation a:hover {
  color: var(--soc-cyan);
}

.empty-entry {
  border-top: 1px solid var(--rule);
}

.elsewhere {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.9375rem;
}

.link-pending {
  color: var(--muted);
}

.link-pending small {
  display: block;
  font-size: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--soc-line);
  background: var(--soc-bg);
}

.footer-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--soc-muted);
  font-size: 0.8125rem;
}

/* Archive, post and page templates retain the same editorial system. */
.archive-header,
.article-header {
  padding-block: clamp(4.5rem, 10vw, 8rem) 2.5rem;
}

.archive-header p,
.article-header p {
  max-width: 68ch;
  color: var(--muted);
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-header img {
  width: 7rem;
  height: 7rem;
  border: 1px solid var(--rule);
  object-fit: cover;
}

.card-grid {
  border-top: 1px solid var(--rule);
}

.post-card {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: var(--gap);
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.post-card-image {
  display: block;
}

.post-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card-body {
  min-width: 0;
}

.post-meta,
.tag-list,
.pagination {
  color: var(--muted);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.8125rem;
}

.post-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-card h3 {
  margin-top: 0.85rem;
}

.post-card p {
  max-width: 68ch;
}

.text-link {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.9375rem;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 2rem;
}

.pagination > :last-child {
  text-align: right;
}

.article-feature {
  margin: 0 auto;
}

.article-feature img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

.article-feature figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-content {
  padding-block: 2.5rem 5rem;
  font-size: 1.125rem;
}

.gh-content > * + * {
  margin-top: 1.4em;
}

.gh-content h2,
.gh-content h3 {
  margin-top: 2.2em;
}

.gh-content pre {
  overflow-x: auto;
  padding: 1.2rem;
  border: 1px solid var(--soc-line);
  background: var(--soc-panel);
  color: var(--soc-text);
}

.gh-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.gh-content blockquote {
  margin-inline: 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(11, 116, 109, 0.06);
  color: var(--muted);
}

.gh-content .kg-width-wide {
  width: min(64rem, calc(100vw - 3rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.gh-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-footer {
  padding-bottom: 5rem;
  color: var(--muted);
}

.tag-list a {
  color: var(--accent);
}

.error-page {
  min-height: 65vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
}

@media (max-width: 44rem) {
  .shell {
    width: min(calc(100% - 2rem), var(--max));
  }

  .header-inner {
    min-height: 5.5rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
  }

  .site-navigation {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .record-intro-grid,
  .record-entry,
  .section-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-rail {
    margin-bottom: 0.7rem;
  }

  .section-title h2 {
    grid-column: 1;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card-image {
    max-width: 22rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }
}

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

/* Ultra-modern homepage: an operational interface expressed as a public record. */
body.home-template {
  background: var(--soc-bg);
  color: var(--soc-text);
}

body.home-template main {
  overflow: clip;
}

body.home-template a:focus-visible {
  outline-color: var(--soc-cyan);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 4.75rem);
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--soc-line);
  background:
    radial-gradient(circle at 82% 18%, rgba(53, 226, 209, 0.12), transparent 27rem),
    radial-gradient(circle at 18% 90%, rgba(107, 63, 160, 0.17), transparent 32rem),
    linear-gradient(135deg, #061014 0%, #08171d 58%, #071218 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(145, 169, 173, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 169, 173, 0.1) 1px, transparent 1px);
  background-position: center;
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  content: "";
  animation: home-grid-drift 24s linear infinite;
}

.home-hero-orb {
  position: absolute;
  top: 13%;
  right: 7%;
  width: clamp(15rem, 35vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 226, 209, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(53, 226, 209, 0.018),
    0 0 0 8rem rgba(53, 226, 209, 0.012);
}

.home-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.home-kicker,
.home-section-header > p,
.project-domain,
.modern-project header,
.home-credentials,
.ops-window,
.modern-note time,
.modern-note small,
.modern-note-index,
.modern-profile-links {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--soc-cyan);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--soc-cyan);
  box-shadow: 0 0 0.85rem var(--soc-cyan);
}

.home-title {
  display: grid;
  margin-bottom: 2rem;
  color: var(--soc-text);
  font-size: clamp(4.75rem, 10.5vw, 9.5rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.home-title-accent {
  width: max-content;
  max-width: 100%;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--soc-cyan), #b9fff8 46%, #b9a2e3 96%);
  background-clip: text;
  color: var(--soc-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-positioning {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  color: #d8e7e7;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.home-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

.home-credentials span {
  padding: 0.36rem 0.58rem;
  border: 1px solid #29434d;
  border-radius: 999px;
  background: rgba(12, 26, 32, 0.72);
  color: var(--soc-muted);
  font-size: 0.69rem;
  line-height: 1.2;
}

.home-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: "Archivo", Arial, sans-serif;
}

.home-jump-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid #315967;
  border-radius: 0.7rem;
  color: var(--soc-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-jump-links a:hover {
  border-color: var(--soc-cyan);
  background: #0b2228;
  transform: translateY(-2px);
}

.home-jump-links .home-primary-link {
  border-color: transparent;
  background: var(--soc-cyan);
  color: #031114;
}

.home-jump-links .home-primary-link:hover {
  background: #8dfff4;
}

.ops-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #31505b;
  border-radius: 1.25rem;
  background: rgba(7, 23, 29, 0.8);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.ops-window::after {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(53, 226, 209, 0.2);
  border-radius: 50%;
  content: "";
}

.ops-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--soc-line);
  background: rgba(12, 26, 32, 0.9);
  font-size: 0.68rem;
}

.ops-window-header span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soc-muted);
}

.ops-window-header i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--soc-cyan);
  box-shadow: 0 0 0.7rem var(--soc-cyan);
}

.ops-window-header strong {
  color: var(--soc-amber);
  font-weight: 600;
}

.ops-map {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  align-items: center;
  padding: 2rem 1rem;
}

.ops-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  border: 1px solid #29434d;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #0c1a20, #09171c);
}

.ops-node small {
  color: var(--soc-muted);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-node strong {
  color: var(--soc-text);
  font-size: 1.15rem;
}

.ops-node-active {
  border-color: rgba(53, 226, 209, 0.72);
  box-shadow: inset 0 0 1.8rem rgba(53, 226, 209, 0.08), 0 0 1.4rem rgba(53, 226, 209, 0.08);
}

.ops-node-active strong {
  color: var(--soc-cyan);
}

.ops-connection {
  height: 1px;
  background: linear-gradient(90deg, #29434d, var(--soc-cyan), #29434d);
}

.ops-facts {
  margin: 0;
  border-top: 1px solid var(--soc-line);
}

.ops-facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--soc-line);
}

.ops-facts dt {
  color: var(--soc-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ops-facts dd {
  margin: 0;
  color: var(--soc-text);
  font-size: 0.7rem;
  text-align: right;
}

.ops-boundary {
  margin: 0;
  padding: 1rem;
  border-left: 3px solid var(--soc-amber);
  background: #17170f;
  color: #d9d6c5;
  font: 0.68rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.ops-boundary span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--soc-amber);
  text-transform: uppercase;
}

.home-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--soc-line);
  background: var(--soc-bg);
}

.home-work {
  background:
    radial-gradient(circle at 90% 15%, rgba(53, 226, 209, 0.055), transparent 25rem),
    #071318;
}

.home-section-header {
  display: grid;
  grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-section-header > p {
  margin: 0;
  padding-top: 0.55rem;
  color: var(--soc-cyan);
  font-size: 0.68rem;
}

.home-section-header > p span {
  color: var(--soc-muted);
}

.home-section-header h2 {
  margin-bottom: 0.65rem;
  color: var(--soc-text);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  letter-spacing: -0.065em;
}

.home-section-header div > p {
  max-width: 40rem;
  margin: 0;
  color: var(--soc-muted);
  font-size: 1rem;
}

.modern-project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.modern-project {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #29434d;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 226, 209, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(12, 26, 32, 0.97), rgba(7, 19, 24, 0.97));
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.modern-project:hover {
  border-color: #3c6872;
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.modern-project::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--soc-cyan), transparent 70%);
  content: "";
}

.project-primary {
  grid-column: span 7;
}

.project-soc {
  grid-column: span 5;
  background:
    radial-gradient(circle at 100% 0, rgba(107, 63, 160, 0.18), transparent 20rem),
    linear-gradient(145deg, #101723, #081419);
}

.project-soc::before {
  background: linear-gradient(90deg, #b594e5, var(--soc-cyan), transparent 86%);
}

.project-lab {
  grid-column: span 12;
  min-height: 21rem;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.modern-project header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--soc-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.modern-project header strong {
  color: #41616a;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
}

.project-domain {
  margin-bottom: 0.65rem;
  color: var(--soc-cyan);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-project h3 {
  margin-bottom: 1rem;
  color: var(--soc-text);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.055em;
}

.modern-project > div > p:last-child {
  max-width: 50rem;
  color: #c3d4d5;
  font-size: 1.02rem;
}

.modern-project footer {
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--soc-line);
}

.modern-project footer p {
  margin-bottom: 1rem;
  color: var(--soc-amber);
  font-size: 0.78rem;
  line-height: 1.5;
}

.modern-project footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modern-project footer span {
  padding: 0.3rem 0.48rem;
  border: 1px solid var(--soc-line);
  border-radius: 999px;
  color: var(--soc-muted);
  font: 0.62rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.home-notes {
  background:
    linear-gradient(rgba(53, 226, 209, 0.02) 1px, transparent 1px),
    var(--soc-bg);
  background-size: 100% 4.75rem;
}

.modern-note-list {
  border-top: 1px solid var(--soc-line);
}

.modern-note-list article {
  border-bottom: 1px solid var(--soc-line);
}

.modern-note {
  display: grid;
  grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: 1.6rem;
  color: var(--soc-text);
  text-decoration: none;
  transition: padding 220ms ease, background 220ms ease;
}

.modern-note:hover {
  padding-inline: 1rem;
  background: rgba(53, 226, 209, 0.035);
}

.modern-note time {
  color: var(--soc-muted);
  font-size: 0.66rem;
}

.modern-note-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.modern-note-copy small {
  color: var(--soc-cyan);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.modern-note-copy strong {
  color: var(--soc-text);
  font: 600 clamp(1.25rem, 2.5vw, 2rem)/1.2 "Archivo", Arial, sans-serif;
  letter-spacing: -0.035em;
}

.modern-note-copy > span {
  overflow: hidden;
  color: var(--soc-muted);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-note-index {
  color: #41616a;
  font-size: 0.72rem;
}

.modern-empty {
  padding: 2rem;
  border: 1px solid var(--soc-line);
  border-radius: 1rem;
  color: var(--soc-muted);
}

.home-elsewhere {
  background:
    radial-gradient(circle at 18% 40%, rgba(107, 63, 160, 0.12), transparent 25rem),
    #071318;
}

.modern-profile-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--soc-line);
  border-left: 1px solid var(--soc-line);
}

.modern-profile-links > a,
.modern-profile-pending {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem;
  border-right: 1px solid var(--soc-line);
  border-bottom: 1px solid var(--soc-line);
  color: var(--soc-text);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.modern-profile-links > a:hover {
  background: var(--soc-cyan);
  color: #031114;
}

.modern-profile-links > a > span,
.modern-profile-pending > span {
  color: var(--soc-muted);
  font-size: 0.62rem;
}

.modern-profile-links > a:hover > span {
  color: #153c42;
}

.modern-profile-pending {
  color: var(--soc-muted);
}

.modern-profile-pending small {
  color: var(--soc-amber);
  font-size: 0.6rem;
  text-transform: uppercase;
}

body.home-template .site-footer {
  background: #040c0f;
}

@keyframes home-grid-drift {
  to { background-position: 4.5rem 4.5rem; }
}

@media (max-width: 62rem) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-window {
    max-width: 42rem;
  }

  .project-primary,
  .project-soc,
  .project-lab {
    grid-column: span 12;
  }

  .project-lab {
    display: flex;
    min-height: 25rem;
  }
}

@media (max-width: 44rem) {
  .home-hero-layout {
    padding-block: 3.5rem 4.5rem;
  }

  .home-title {
    font-size: clamp(3.7rem, 20vw, 5.5rem);
  }

  .home-kicker {
    margin-bottom: 2.25rem;
    font-size: 0.66rem;
  }

  .home-positioning {
    font-size: 1.1rem;
  }

  .ops-map {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .ops-connection {
    width: 1px;
    height: 1rem;
    justify-self: center;
    background: linear-gradient(var(--soc-cyan), #29434d);
  }

  .ops-facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .ops-facts dd {
    text-align: left;
  }

  .home-section-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-section-header h2 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .modern-project {
    min-height: 25rem;
  }

  .modern-note {
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
  }

  .modern-note time {
    grid-column: 1 / -1;
  }

  .modern-note-copy > span {
    white-space: normal;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .ops-window {
    animation: none;
  }

  .home-jump-links a,
  .modern-project,
  .modern-note,
  .modern-profile-links > a {
    transition: none;
  }
}

/* Public hubs: the SOC visual language, with publication-first semantics. */
.public-hub {
  min-height: 70vh;
  background: var(--soc-bg);
  color: var(--soc-text);
}

.hub-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--soc-line);
  background:
    radial-gradient(circle at 84% 5%, rgba(53, 226, 209, 0.12), transparent 25rem),
    radial-gradient(circle at 22% 100%, rgba(107, 63, 160, 0.18), transparent 28rem),
    linear-gradient(145deg, #061014, #08171d);
}

.hub-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(145, 169, 173, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 169, 173, 0.12) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(90deg, black, transparent 90%);
  content: "";
}

.hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.hub-index,
.hub-kicker,
.hub-section-heading > p,
.hub-post-meta,
.ledger-card header,
.ledger-card footer,
.source-card > span,
.source-card > b,
.hub-empty,
.hub-actions {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hub-index {
  margin: 0;
  padding-top: 0.6rem;
  color: var(--soc-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hub-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
  color: var(--soc-cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-hero h1 {
  margin-bottom: 1.5rem;
  color: var(--soc-text);
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.82;
}

.hub-hero h1 span {
  color: var(--soc-cyan);
}

.hub-lede {
  max-width: 48rem;
  margin-bottom: 2rem;
  color: #c7d8d9;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hub-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid #315967;
  border-radius: 0.7rem;
  color: var(--soc-text);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.hub-actions .hub-action-primary {
  border-color: var(--soc-cyan);
  background: var(--soc-cyan);
  color: #031114;
}

.hub-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--soc-line);
  background: #071318;
}

.hub-notes-section {
  background: var(--soc-bg);
}

.hub-section-heading {
  display: grid;
  grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hub-section-heading > p {
  padding-top: 0.55rem;
  color: var(--soc-cyan);
  font-size: 0.68rem;
}

.hub-section-heading h2,
.hub-boundary h2 {
  margin-bottom: 0.75rem;
  color: var(--soc-text);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
}

.hub-section-heading div > p,
.hub-boundary div > p {
  max-width: 46rem;
  color: var(--soc-muted);
}

.hub-post-list {
  border-top: 1px solid var(--soc-line);
}

.hub-post {
  display: grid;
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 1fr) 2rem;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--soc-line);
}

.hub-post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--soc-muted);
  font-size: 0.68rem;
}

.hub-post-meta a {
  color: var(--soc-cyan);
}

.hub-post h3 {
  margin: 0 0 0.65rem;
}

.hub-post h3 a {
  color: var(--soc-text);
  text-decoration-color: var(--soc-cyan);
}

.hub-post p {
  max-width: 60rem;
  margin: 0;
  color: var(--soc-muted);
}

.hub-arrow {
  color: var(--soc-cyan);
  font: 1.2rem/1 "Archivo", Arial, sans-serif;
  text-decoration: none;
}

.public-hub .pagination {
  color: var(--soc-muted);
}

.hub-empty {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--soc-line);
  border-radius: 0.8rem;
  color: var(--soc-muted);
  font-size: 0.76rem;
}

.hub-empty strong {
  color: var(--soc-text);
}

.project-ledger,
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ledger-card,
.source-card {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid #29434d;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 226, 209, 0.07), transparent 18rem),
    var(--soc-panel);
}

.ledger-wide {
  grid-column: span 2;
}

.ledger-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  color: var(--soc-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.ledger-card header em {
  font-style: normal;
}

.ledger-card header b {
  color: var(--soc-cyan);
}

.ledger-card h2 {
  margin-block: auto 1rem;
  color: var(--soc-text);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.ledger-card > p {
  max-width: 58rem;
  color: #c3d4d5;
}

.ledger-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--soc-line);
}

.ledger-card footer span {
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--soc-line);
  border-radius: 999px;
  color: var(--soc-muted);
  font-size: 0.62rem;
}

.source-card {
  min-height: 20rem;
  color: var(--soc-text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.source-card:hover {
  border-color: var(--soc-cyan);
  transform: translateY(-3px);
}

.source-card > span {
  color: var(--soc-cyan);
  font-size: 0.65rem;
}

.source-card h3 {
  margin-block: auto 0.75rem;
  color: var(--soc-text);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.source-card p {
  color: var(--soc-muted);
}

.source-card > b {
  color: var(--soc-text);
  font-size: 0.7rem;
}

.source-feed {
  background:
    radial-gradient(circle at 100% 0, rgba(107, 63, 160, 0.22), transparent 18rem),
    var(--soc-panel);
}

.feed-register {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
}

.feed-endpoint-card,
.feed-facts {
  margin: 0;
  border: 1px solid #29434d;
  border-radius: 1.1rem;
  background: var(--soc-panel);
}

.feed-endpoint-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0, rgba(53, 226, 209, 0.1), transparent 20rem),
    var(--soc-panel);
}

.feed-endpoint-card > span,
.feed-endpoint-card code,
.feed-endpoint-card a,
.feed-facts {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.feed-endpoint-card > span {
  color: var(--soc-cyan);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.feed-endpoint-card code {
  overflow-wrap: anywhere;
  color: var(--soc-text);
  font-size: clamp(1rem, 2.3vw, 1.55rem);
}

.feed-endpoint-card a {
  color: var(--soc-cyan);
  font-size: 0.72rem;
}

.feed-facts {
  overflow: hidden;
}

.feed-facts div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--soc-line);
}

.feed-facts div:last-child {
  border-bottom: 0;
}

.feed-facts dt {
  color: var(--soc-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.feed-facts dd {
  margin: 0;
  color: var(--soc-text);
  font-size: 0.72rem;
}

.hub-boundary {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--soc-line);
  background: #0b171b;
}

@media (max-width: 52rem) {
  .hub-grid,
  .hub-section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hub-index {
    padding-top: 0;
  }

  .project-ledger,
  .source-grid,
  .feed-register {
    grid-template-columns: 1fr;
  }

  .ledger-wide {
    grid-column: auto;
  }
}

@media (max-width: 44rem) {
  .site-navigation {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
    white-space: nowrap;
  }

  .hub-hero h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .hub-post {
    grid-template-columns: 1fr 1.5rem;
    gap: 0.65rem 1rem;
  }

  .hub-post-meta {
    grid-column: 1 / -1;
  }

  .ledger-card,
  .source-card {
    min-height: 21rem;
  }

  .footer-inner > div,
  .footer-navigation {
    gap: 0.35rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-card {
    transition: none;
  }
}
