:root {
  color-scheme: dark;
  --bg: #080a0c;
  --surface: #0d1013;
  --surface-raised: #111519;
  --line: #20262c;
  --line-bright: #2c353d;
  --text: #f3f6f8;
  --muted: #9ba6ae;
  --subtle: #87939b;
  --accent: #55c8e8;
  --accent-soft: rgba(85, 200, 232, 0.12);
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  transform: translateY(-150%);
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.92);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.7;
}

.brand-mark circle {
  fill: var(--bg);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

nav a {
  position: relative;
  padding: 0.5rem 0;
  color: #b9c2c8;
  font-size: 0.875rem;
  transition: color 160ms ease;
}

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

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

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  opacity: 0.16;
  mask-image: linear-gradient(to right, black, transparent 76%);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 7.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label,
.panel-label,
.panel-index,
.card-top,
.project-status {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 5.25vw, 5.8rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.015;
}

h1 span {
  color: #c8d0d5;
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.network-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 19, 0.68);
}

.network-panel::before,
.network-panel::after {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  content: "";
}

.network-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.network-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.network-panel svg {
  width: 100%;
  height: 100%;
}

.network-lines {
  fill: none;
  stroke: #303940;
  stroke-width: 1;
}

.network-nodes circle {
  fill: var(--bg);
  stroke: #798790;
  stroke-width: 1.3;
}

.network-core circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.62;
}

.panel-label,
.panel-index {
  position: absolute;
  color: var(--subtle);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
}

.panel-label {
  top: 1.2rem;
  left: 1.25rem;
}

.panel-index {
  right: 1.25rem;
  bottom: 1.2rem;
}

.section {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(5.5rem, 9vw, 9rem);
}

.section-label {
  align-self: start;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
}

.section-label span {
  margin-right: 0.7rem;
  color: var(--accent);
}

.section-content h2 {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.about .section-layout {
  padding-block: clamp(4.75rem, 7vw, 7rem);
}

.about .section-content h2 {
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 890px;
}

.about-copy p,
.project-content > p {
  margin-bottom: 0;
  color: #c2c9ce;
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
  line-height: 1.65;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
}

.focus-card {
  min-height: 280px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  background: var(--surface);
  transition: background-color 180ms ease;
}

.focus-card:hover {
  background: var(--surface-raised);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4.5rem;
  color: #929ea6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.card-top i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.focus-card h3,
.principles-list h3 {
  margin-bottom: 0.85rem;
  font-size: 1.18rem;
  font-weight: 530;
  letter-spacing: -0.015em;
}

.focus-card p,
.principles-list p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.principles-list {
  border-top: 1px solid var(--line-bright);
}

.principles-list article {
  display: grid;
  grid-template-columns: 64px minmax(150px, 0.6fr) minmax(280px, 1fr);
  align-items: start;
  gap: 1.75rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.principle-number {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.principles-list h3,
.principles-list p {
  margin-bottom: 0;
}

.principles-list h3,
.principle-number {
  line-height: 1.7;
}

.project-content > p {
  max-width: 850px;
}

.project-status {
  display: grid;
  grid-template-columns: 7px max-content minmax(2rem, 1fr) 7px max-content;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
}

.status-node {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-line {
  width: 100%;
  height: 1px;
  background: var(--line-bright);
}

footer {
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 0.7rem;
}

.footer-inner p {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 0.78rem;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 6rem;
  }

  .network-panel {
    width: min(100%, 560px);
  }

  .section-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 2rem;
  }

  .about-copy {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .principles-list article {
    grid-template-columns: 44px 150px minmax(0, 1fr);
    gap: 1.25rem;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 23px;
    height: 23px;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.8125rem;
  }

  .hero-grid {
    gap: 3rem;
    padding-block: 4.8rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 5rem;
  }

  .section-content h2 {
    margin-bottom: 2.5rem;
  }

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

  .focus-card {
    min-height: 240px;
  }

  .principles-list article {
    grid-template-columns: 34px 1fr;
    gap: 0.5rem 1rem;
  }

  .principles-list p {
    grid-column: 2;
  }
}

@media (max-width: 500px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 br {
    display: none;
  }

  .network-panel {
    aspect-ratio: 1.15 / 1;
  }

  .project-status {
    grid-template-columns: 7px 1fr;
    gap: 0.85rem 1rem;
  }

  .status-line {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 1700px) {
  :root {
    --shell: 1480px;
  }

  .hero-grid {
    min-height: 790px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
