:root {
  --ink: #1c1f23;
  --ink-soft: #343a42;
  --muted: #68717c;
  --line: #dfe3e7;
  --line-strong: #c6ccd3;
  --bg: #faf9f6;
  --surface: #ffffff;
  --blue: #21406a;
  --blue-hover: #182f4f;
  --blue-soft: #e9eef4;
  --gold: #b4893c;
  --gold-hover: #956f2e;
  --gold-soft: #f2eadc;
  --gold-text: #856026;
  --status-green: #3f7658;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--surface);
  color: var(--blue);
}

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

.site-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.98);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.wordmark,
.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark,
.footer-wordmark span:first-child {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
}

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

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a,
.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

.primary-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.site-main {
  min-height: 62vh;
}

.section {
  padding: clamp(48px, 8vw, 92px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.hero-grid,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 8vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.lede {
  max-width: 650px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--surface);
}

.button.primary:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
  color: var(--surface);
}

.button:hover {
  background: var(--blue-soft);
}

.home-page .button:hover {
  transform: translateY(-2px);
}

.panel,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  padding: 24px;
}

.product-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
}

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

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: clamp(430px, 58vw, 620px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: clamp(44px, 8vw, 88px) 0;
}

.home-hero h1 {
  max-width: 660px;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  letter-spacing: 0;
}

.home-hero h1 span {
  color: var(--blue);
}

.angle-field {
  position: relative;
  min-height: clamp(320px, 45vw, 520px);
  overflow: hidden;
  border-left: 1px solid var(--line);
  isolation: isolate;
}

.angle-field::before {
  position: absolute;
  inset: 9% 3% 8% 0;
  border: 1px solid var(--line);
  content: "";
}

.angle-field svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.angle-field-mobile {
  display: none;
}

.field-grid line,
.field-structure path,
.field-nodes rect {
  vector-effect: non-scaling-stroke;
}

.field-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: angle-field-draw 1150ms cubic-bezier(0.4, 0, 0.1, 1) forwards;
}

.field-line:nth-child(2) {
  animation-delay: 130ms;
}

.field-line:nth-child(3) {
  animation-delay: 240ms;
}

.field-line:nth-child(4),
.field-line:nth-child(5) {
  animation-delay: 360ms;
}

.field-node {
  opacity: 0;
  animation: angle-field-node 420ms ease forwards;
  animation-delay: 820ms;
}

@keyframes angle-field-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes angle-field-node {
  to {
    opacity: 1;
  }
}

.home-principles {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.principle-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.section-marker {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.principle-card p:last-child {
  margin-top: 10px;
  max-width: 32ch;
  font-size: 0.95rem;
}

.home-product {
  background: var(--bg);
}

.product-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
}

.product-feature-marker {
  position: absolute;
  top: 18px;
  right: clamp(20px, 4vw, 38px);
  margin: 0;
  color: var(--gold-text);
}

.product-feature-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 18px;
}

.product-feature h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.product-feature-copy p {
  max-width: 52ch;
}

.product-feature-copy .button {
  justify-self: start;
  margin-top: 4px;
}

.feature-angle-fragment {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.feature-angle-fragment::before {
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  content: "";
}

.feature-angle-fragment svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editorial-section {
  overflow: hidden;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.editorial-intro {
  display: grid;
  align-content: start;
}

.editorial-page h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  letter-spacing: 0;
}

.editorial-page .lede {
  max-width: 620px;
}

.product-feature-card {
  grid-template-columns: 1fr;
  align-self: stretch;
}

.product-feature-card .button {
  justify-self: start;
}

.constructed-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
}

.constructed-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.constructed-panel .section-marker {
  margin-bottom: 0;
}

.stack {
  display: grid;
  gap: 18px;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.note {
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 34px 0 28px;
  background: var(--ink);
  color: #d8dee5;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.legal-note {
  max-width: 520px;
  margin-top: 10px;
  color: #b7bec6;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
}

.site-footer .footer-wordmark {
  color: #ffffff;
}

.site-footer .footer-wordmark span:first-child {
  color: var(--gold);
}

.site-footer .footer-nav a {
  color: #d8dee5;
}

.site-footer .footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-footer a:focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .header-shell {
    position: relative;
  }

  .js .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .js .primary-nav[data-open="true"] {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav a {
    width: 100%;
    border-radius: 0;
  }

  .hero-grid,
  .content-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    display: grid;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .angle-field {
    min-height: 320px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-grid,
  .product-feature,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    border-left: 0;
  }

  .principle-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .product-feature-marker {
    position: static;
  }

  .product-feature-copy {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }

  .home-hero-copy {
    padding: 40px 0 32px;
  }

  .home-hero h1 {
    font-size: clamp(2.2rem, 13vw, 2.65rem);
  }

  .angle-field {
    min-height: 260px;
  }

  .angle-field-desktop {
    display: none;
  }

  .angle-field-mobile {
    display: block;
  }

  .product-feature {
    padding: 22px;
  }

  .feature-angle-fragment {
    min-height: 190px;
  }

  .editorial-page h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link,
  .button,
  .primary-nav a {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .button:hover {
    transform: none;
  }

  .field-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .field-node {
    animation: none;
    opacity: 1;
  }
}
