:root {
  --black: #000000;
  --blue: #8eb6d4;
  --blue-dim: #3d6f8f;
  --blue-faint: rgba(142, 182, 212, 0.18);
  --frost: #e8f0f6;
  --frost-soft: rgba(232, 240, 246, 0.72);

  --display: "Syne", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 720px;
  --max-wide: 820px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
  color: var(--frost);
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(61, 111, 143, 0.22), transparent 55%),
    var(--black);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

a:focus-visible {
  outline: 1px solid var(--frost);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap-wide {
  width: min(100%, calc(var(--max-wide) + var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--blue-faint);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.nav-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.625rem, 1.8vw, 0.8125rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  text-decoration: none;
  flex-shrink: 1;
  max-width: 12rem;
  line-height: 1.2;
}

@media (min-width: 720px) {
  .nav-mark {
    max-width: none;
    letter-spacing: 0.12em;
  }
}

.nav-mark:hover {
  color: var(--blue);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .nav-links {
    gap: 1.1rem;
    font-size: 0.6875rem;
  }
}

.nav-links a {
  color: var(--blue);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--frost);
}

/* —— Hero —— */
.hero {
  padding-block: clamp(4rem, 14vh, 7rem) clamp(3rem, 9vh, 5rem);
  border-bottom: 1px dashed var(--blue-dim);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.75rem;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--frost);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  max-width: 12ch;
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--frost);
  margin-bottom: 1.25rem;
}

.claim {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--frost);
  max-width: 28ch;
  margin-bottom: 1.25rem;
}

.lede {
  color: var(--frost-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--frost);
  border: 1px solid var(--frost);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--frost);
}

.btn:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
}

.text-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
}

.text-link:hover {
  color: var(--frost);
}

/* —— Status banner —— */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.status-banner .status-tag {
  color: var(--frost);
  border: 1px solid var(--blue-dim);
  padding: 0.2rem 0.5rem;
}

/* —— Sections —— */
.section {
  padding-block: clamp(2.75rem, 7vh, 4.5rem);
  border-bottom: 1px dashed var(--blue-dim);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.section h2,
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--frost);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.section p,
.prose p {
  color: var(--frost-soft);
  max-width: 42ch;
}

.section p + p,
.prose p + p {
  margin-top: 1rem;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--frost);
  margin: 1.75rem 0 0.65rem;
}

.prose ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--frost-soft);
  max-width: 42ch;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .note {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  max-width: 48ch;
}

/* —— Product / principle cards —— */
.principles,
.products {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.principle,
.product-card {
  padding-block: clamp(1.75rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--blue-faint);
  display: grid;
  gap: 0.75rem 2rem;
}

.principle:last-child,
.product-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.principle:first-child,
.product-card:first-child {
  padding-top: 0;
}

@media (min-width: 640px) {
  .principle,
  .product-card {
    grid-template-columns: 5.5rem 1fr;
    align-items: start;
  }
}

.principle-id,
.product-id {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--blue-dim);
  padding-top: 0.35rem;
}

.principle h3,
.product-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--frost);
  margin-bottom: 0.5rem;
}

.principle p,
.product-card p {
  color: var(--frost-soft);
  max-width: 40ch;
  font-size: 1rem;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card .meta a {
  text-decoration: none;
}

/* —— Status list —— */
.status-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.status-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--blue-faint);
  color: var(--frost-soft);
}

.status-list li:last-child {
  border-bottom: 0;
}

.status-tag {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
}

.join .btn {
  margin-top: 1.75rem;
}

/* —— Loop / diagram —— */
.loop {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--blue-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--blue);
  white-space: pre-wrap;
  max-width: 48ch;
}

/* —— Desk / sample lists —— */
.link-list {
  list-style: none;
  margin-top: 1.5rem;
}

.link-list li {
  border-bottom: 1px solid var(--blue-faint);
}

.link-list a {
  display: grid;
  gap: 0.35rem;
  padding-block: 1rem;
  text-decoration: none;
  color: inherit;
}

.link-list a:hover .link-list-title {
  color: var(--blue);
}

.link-list-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--frost);
  transition: color 0.2s ease;
}

.link-list-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.link-list-desc {
  color: var(--frost-soft);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* —— Article —— */
.article-header {
  padding-block: clamp(3rem, 10vh, 5rem) 2rem;
  border-bottom: 1px dashed var(--blue-dim);
}

.article-body {
  padding-block: clamp(2.5rem, 6vh, 3.5rem) 4rem;
}

.article-body p {
  max-width: 48ch;
}

.sample-badge {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  border: 1px solid var(--blue-dim);
  padding: 0.25rem 0.55rem;
}

/* —— Footer —— */
.footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--blue-faint);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

.footer a:hover {
  color: var(--frost);
}

/* —— Motion —— */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready:not(.reduce-motion) .reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-ready:not(.reduce-motion) .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js-ready:not(.reduce-motion) .brand {
  animation: brand-in 0.9s ease both;
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
    filter: blur(0);
  }
}
