:root {
  color-scheme: light;
  --ink: #0f1115;
  --ink-soft: #2a2d33;
  --muted: #6b7280;
  --paper: #f6f7f8;
  --paper-warm: #fbfaf7;
  --rule: rgba(15, 17, 21, 0.14);
  --rule-soft: rgba(15, 17, 21, 0.08);
  --grid: rgba(15, 17, 21, 0.065);
  --blue: #255edb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.9), transparent 34rem),
    linear-gradient(135deg, var(--paper-warm), var(--paper));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--blue);
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    rgba(255, 255, 255, 0.54);
  background-size: 96px 96px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.site-header {
  min-height: 76px;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.42em;
}

.wordmark-small {
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.96rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav-rule {
  width: 1px;
  height: 1.2rem;
  background: var(--rule);
}

main {
  min-height: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(2.75rem, 0.1fr) minmax(0, 1.05fr) minmax(24rem, 0.8fr);
  min-height: 0;
  border-bottom: 1px solid var(--rule);
}

.axis-labels {
  display: grid;
  align-content: center;
  gap: 2.1rem;
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  color: var(--muted);
  font-size: 0.66rem;
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding: clamp(2rem, 5vh, 4.5rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vh, 4.5rem) 0;
}

.hero h1 {
  max-width: 56rem;
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 6.8rem);
  font-weight: 360;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 44rem;
  margin: clamp(1.1rem, 2.4vh, 1.7rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
}

.accent-rule {
  width: 2.1rem;
  height: 2px;
  margin-top: clamp(1rem, 2.4vh, 1.65rem);
  background: var(--blue);
}

.technical-field {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  opacity: 0.72;
}

.technical-field svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.technical-field path,
.technical-field circle,
.technical-field rect {
  fill: none;
  stroke: rgba(15, 17, 21, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.technical-field pattern path {
  stroke: rgba(15, 17, 21, 0.08);
}

.technical-field .trace {
  stroke: rgba(37, 94, 219, 0.28);
}

.technical-field .trace-soft {
  stroke: rgba(15, 17, 21, 0.13);
}

.technical-field .dash {
  stroke-dasharray: 4 11;
}

.technical-field .node,
.technical-field .node-square {
  fill: #1d355f;
  stroke: none;
}

.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.08fr) minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--rule);
}

.panel {
  padding: clamp(1.25rem, 3vw, 2.4rem) clamp(1.25rem, 4vw, 4rem);
}

.panel + .panel {
  border-left: 1px solid var(--rule);
}

.section-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.panel p:not(.section-label) {
  max-width: 31rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.focus-list {
  display: grid;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 2.45rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}

.focus-list li:first-child {
  border-top: 1px solid var(--rule);
}

.focus-list span:first-child {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  min-height: 54px;
  border-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wordmark {
  color: var(--ink);
}

@media (min-width: 981px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-shell {
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr) 54px;
    height: 100vh;
    height: 100svh;
  }

  main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(12.5rem, 24vh);
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .hero {
    grid-template-columns: 2.8rem minmax(0, 1.06fr) minmax(18rem, 0.78fr);
  }

  .hero h1 {
    font-size: clamp(3rem, 5.8vw, 5.4rem);
  }

  .info-strip {
    grid-template-columns: 0.9fr 1.1fr 0.9fr;
  }

  .panel {
    padding: 1.35rem 2rem;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .site-header {
    min-height: 64px;
  }

  .page-shell {
    grid-template-rows: 64px minmax(0, 1fr) 44px;
  }

  main {
    grid-template-rows: minmax(0, 1fr) minmax(10.5rem, 23vh);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  }

  .hero p,
  .panel p:not(.section-label),
  .focus-list li {
    font-size: 0.92rem;
  }

  .focus-list li {
    min-height: 2.05rem;
  }

  .site-footer {
    min-height: 44px;
  }

  .section-label {
    font-size: 0.66rem;
  }
}

@media (max-width: 980px) {
  .page-shell {
    min-height: 100vh;
  }

  .site-header,
  .site-footer {
    padding-inline: 2rem;
  }

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

  .axis-labels {
    display: none;
  }

  .hero-copy {
    padding: 4.4rem 2rem 3rem;
  }

  .technical-field {
    min-height: 220px;
    border-top: 1px solid var(--rule);
  }

  .technical-field svg {
    position: static;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .panel + .panel {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .panel {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--paper-warm);
  }

  .page-shell {
    background-size: 58px 58px;
  }

  .site-header {
    min-height: 68px;
    padding-inline: 1.25rem;
  }

  .wordmark {
    font-size: 0.95rem;
    letter-spacing: 0.36em;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.92rem;
  }

  .nav-rule {
    display: none;
  }

  .hero-copy {
    padding: 3rem 1.25rem 2rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 1.05;
  }

  .hero p {
    font-size: 1rem;
  }

  .technical-field {
    min-height: 170px;
    opacity: 0.54;
  }

  .panel {
    padding: 2rem 1.25rem;
  }

  .focus-list li {
    grid-template-columns: 3.2rem 1fr;
    min-height: 3.5rem;
    font-size: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
