@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f3ef;
  --paper: #ffffff;
  --ink: #141413;
  --ink-soft: #3a3a36;
  --muted: #4f4f4a;
  --line: #e4e3dc;
  --line-strong: #d4d3cb;
  --dark: #141413;
  --on-dark: #f6f5f1;
  --on-dark-soft: #d8d7d0;
  --header: 76px;
  --content: 1120px;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow: 0 1px 1px rgba(20, 20, 19, 0.03), 0 18px 40px rgba(20, 20, 19, 0.05);
  --radius: 28px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, pre {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 243, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(20, 20, 19, 0.08);
}

.header-inner {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 540;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
  min-height: 44px;
}

.logo-mark {
  width: 30px;
  height: 30px;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: rgba(20, 20, 19, 0.05);
}

.header-cta {
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.button:hover {
  background: #2a2a27;
  border-color: #2a2a27;
}

.button-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.button-light:hover {
  background: #f4f3ef;
  border-color: #f4f3ef;
}

.button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 520;
  letter-spacing: -0.02em;
  text-underline-offset: 4px;
}

.mobile-nav {
  display: none;
  position: relative;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  list-style: none;
  cursor: pointer;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle .icon-close {
  display: none;
}

.mobile-nav[open] .icon-open {
  display: none;
}

.mobile-nav[open] .icon-close {
  display: block;
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--bg);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin-top: 18px;
  font-family: var(--sans);
  font-weight: 470;
  font-size: clamp(2.05rem, 10.4vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.h1-line {
  display: block;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-grid > *,
.section-head > *,
.dev-grid > *,
.route > li,
.feature {
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}

.lead {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 28px;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.orb-wrap {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb {
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0%, #f2f1ec 36%, #d7d6ce 70%, #b7b6ad 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -28px 50px rgba(70, 68, 60, 0.14),
    0 24px 60px rgba(20, 20, 19, 0.08);
  animation: breathe 9s ease-in-out infinite;
}

.orb::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

.orb-vane {
  position: relative;
  z-index: 1;
  width: 46%;
  height: 46%;
  color: var(--ink);
}

.orb-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 72s linear infinite;
}

.orb-rings circle {
  fill: none;
  stroke: rgba(20, 20, 19, 0.18);
  stroke-width: 1;
}

.orb-rings circle:nth-child(2) {
  stroke-opacity: 0.7;
}

.orb-rings circle:nth-child(3) {
  stroke-opacity: 0.45;
}

.wave {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: 196px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 19, 0.08);
  box-shadow: 0 10px 30px rgba(20, 20, 19, 0.06);
}

.wave span {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: center;
  animation: bar 1.7s ease-in-out infinite;
}

.wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave span:nth-child(2) { height: 12px; animation-delay: 0.08s; }
.wave span:nth-child(3) { height: 16px; animation-delay: 0.16s; }
.wave span:nth-child(4) { height: 24px; animation-delay: 0.05s; }
.wave span:nth-child(5) { height: 18px; animation-delay: 0.2s; }
.wave span:nth-child(6) { height: 30px; animation-delay: 0.12s; }
.wave span:nth-child(7) { height: 34px; animation-delay: 0.02s; }
.wave span:nth-child(8) { height: 26px; animation-delay: 0.18s; }
.wave span:nth-child(9) { height: 16px; animation-delay: 0.09s; }
.wave span:nth-child(10) { height: 28px; animation-delay: 0.22s; }
.wave span:nth-child(11) { height: 20px; animation-delay: 0.14s; }
.wave span:nth-child(12) { height: 12px; animation-delay: 0.06s; }
.wave span:nth-child(13) { height: 8px; animation-delay: 0.16s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.section,
main {
  scroll-margin-top: 88px;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 48px;
  align-items: end;
}

.section h2,
.access-panel h2,
.missing h1 {
  font-family: var(--sans);
  font-weight: 480;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section h2:focus-visible,
.hero h1:focus-visible,
.access-panel h2:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(20, 20, 19, 0.18);
}

.dek {
  color: var(--ink-soft);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  max-width: 38rem;
}

.section-head .dek {
  align-self: end;
}

.route {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.route::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line-strong);
}

.route > li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12h14M13 6l6 6-6 6' stroke='%23141413' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.route .core {
  background: var(--dark);
  color: var(--on-dark);
  border-color: var(--dark);
}

.step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--muted);
  line-height: 1;
}

.core .step-no {
  color: #e7e6e0;
}

.route h3,
.feature h3,
.dev-copy h3 {
  margin-top: 16px;
  font-family: var(--sans);
  font-weight: 540;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.route p,
.feature p {
  margin-top: 10px;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
}

.core p {
  color: var(--on-dark-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  list-style: none;
}

.chips li {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.core .chips li {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--on-dark);
}

.route-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 46rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.feature {
  grid-column: span 2;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature:nth-child(4),
.feature:nth-child(5) {
  grid-column: span 3;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-top: 28px;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 3px;
  color: var(--muted);
}

.band {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 40px 48px;
  align-items: center;
}

.dev-points {
  margin-top: 22px;
  list-style: none;
  color: var(--ink-soft);
}

.dev-points li {
  position: relative;
  padding-left: 16px;
  margin-top: 10px;
}

.dev-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.code-panel {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20, 20, 19, 0.12);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark-soft);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.code-bar button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 520;
  cursor: pointer;
}

.code-bar button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.code-bar button:focus-visible,
.access-panel a:focus-visible {
  outline-color: #fff;
}

.code-panel pre {
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  letter-spacing: 0;
}

.code-panel code {
  font-family: inherit;
}

.cmt {
  color: #c8c7bf;
}

.code-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.access-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(420px 320px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}

.access-panel .kicker {
  color: #c8c7bf;
}

.access-panel h2 {
  position: relative;
  max-width: 12em;
  margin-top: 16px;
  color: #fff;
}

.access-panel h2:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.access-panel .dek {
  position: relative;
  margin-top: 18px;
  color: var(--on-dark-soft);
}

.access-panel .actions {
  position: relative;
}

.email-line {
  position: relative;
  margin-top: 14px;
}

.email-line a {
  color: #fff;
  font-weight: 540;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand .logo {
  min-height: 0;
}

.footer-name {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-meta {
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: flex-start;
  list-style: none;
}

.footer-nav a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

.missing {
  min-height: calc(100vh - 180px);
  display: grid;
  align-content: center;
  padding: 64px 0;
}

.missing p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 32rem;
}

.missing .actions {
  margin-top: 24px;
}

.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;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature,
  .feature:nth-child(4),
  .feature:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .dev-grid,
  .route {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head .dek {
    justify-self: start;
  }

  .hero-visual {
    min-height: 360px;
  }

  .route::before {
    display: none;
  }

  .route > li {
    min-height: 0;
  }

  .route > li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .route {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .wrap,
  .header-inner {
    width: min(var(--content), calc(100% - 32px));
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

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

  .access-panel {
    border-radius: 28px;
    padding: 28px 22px;
  }

  .code-panel pre {
    font-size: 0.78rem;
  }
}

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

  .orb,
  .orb-rings,
  .wave span {
    animation: none;
  }

  .button,
  .desktop-nav a,
  .mobile-nav a,
  .code-bar button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .button,
  .route > li,
  .feature,
  .code-panel,
  .access-panel,
  .nav-toggle {
    border: 1px solid CanvasText;
  }
}
