:root {
  --bg: #f6f2ea;
  --bg-2: #efeae1;
  --ink: #15191b;
  --ink-soft: #2a3134;
  --muted: #5a6368;
  --line: #d9d0c4;
  --line-soft: #e7e0d4;
  --accent: #147c7c;
  --accent-dark: #0d5858;
  --panel-strong: #111719;
  --paper-on-dark: #f4ecdf;
  --shadow-sm: 0 6px 20px rgba(24, 31, 33, 0.06);
  --shadow: 0 24px 70px rgba(24, 31, 33, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Geist",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: rgba(20, 124, 124, 0.22);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(246, 242, 234, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(21, 25, 27, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--panel-strong);
  color: var(--paper-on-dark);
}

.brand-mark svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.brand-name {
  letter-spacing: -0.01em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(21, 25, 27, 0.04);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 10px max(24px, calc((100vw - 1180px) / 2)) 88px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glyph {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: clamp(380px, 48vw, 620px);
  aspect-ratio: 1;
  color: var(--ink);
  opacity: 0.92;
}

.hero-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-orbit {
  transform-origin: 180px 180px;
  animation: orbit 32s linear infinite;
}

.hero-orbit-2 {
  animation-duration: 22s;
  animation-direction: reverse;
}

.hero-orbit-3 {
  animation-duration: 14s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-family:
    "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(21, 25, 27, 0.16);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button.primary {
  background: var(--panel-strong);
  border-color: var(--panel-strong);
  color: var(--paper-on-dark);
}

.button.primary:hover {
  background: #000;
  border-color: #000;
}

.button.primary:hover svg {
  transform: translateX(3px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.button.secondary:hover {
  background: #fff;
  border-color: rgba(21, 25, 27, 0.32);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 56px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
}

.hero-meta div {
  min-width: 0;
}

.hero-meta dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta dd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 124, 124, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 124, 124, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(20, 124, 124, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 124, 124, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}

/* ---------- sections ---------- */

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-heading.compact h2 {
  max-width: 820px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
}

.section-lede {
  margin: 18px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.focus-grid {
  display: grid;
  gap: 0;
}

.focus-grid article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.focus-grid h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.focus-grid p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 56ch;
}

.item-index {
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  align-self: start;
  padding-top: 4px;
}

/* ---------- projects ---------- */

.projects .section-heading {
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  height: 180px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(21, 25, 27, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  border-color: rgba(21, 25, 27, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(24, 31, 33, 0.14);
  transform: translateY(-2px);
}

.project-card-featured {
  grid-column: span 1;
  /* min-height: 240px; */
  padding: 0;
  background: var(--panel-strong);
}

.project-repo-card {
  --project-wash: rgba(244, 236, 223, 0.16);
  justify-content: center;
  padding: 24px;
  border-color: rgba(244, 236, 223, 0.1);
  background: var(--panel-strong);
  color: var(--paper-on-dark);
  box-shadow: none;
}

.project-repo-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -18%;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--project-wash), transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}

.project-repo-card:hover {
  background: var(--panel-strong);
  border-color: rgba(244, 236, 223, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.payload-card {
  --project-wash: rgba(217, 119, 6, 0.32);
}

.helm-card {
  --project-wash: rgba(20, 124, 124, 0.34);
}

.project-repo-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-app-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.project-app-icon svg {
  display: block;
  width: 60px;
  height: 60px;
}

.payload-icon {
  background: #d97706;
  color: #fff;
}

.helm-icon {
  background: rgba(255, 255, 255, 0.96);
  color: #0f1689;
}

.helm-icon svg {
  width: 58px;
  height: 58px;
}

.project-repo-text {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.project-repo-title {
  color: var(--paper-on-dark);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.project-repo-copy {
  color: rgba(244, 236, 223, 0.66);
  font-size: 14px;
  line-height: 1.5;
  max-width: 32ch;
}

.project-repo-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-repo-card:hover .project-repo-arrow {
  background: rgba(244, 236, 223, 0.08);
  border-color: rgba(244, 236, 223, 0.4);
  transform: translateX(3px);
}

.project-card-more {
  height: 180px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  background: var(--panel-strong);
  border-color: var(--panel-strong);
  color: var(--paper-on-dark);
  box-shadow: none;
}

.project-card-more:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.project-card-more .project-more-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-more-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-more-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card-more svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.92;
}

.project-more-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.project-more-copy {
  color: rgba(244, 236, 223, 0.66);
  font-size: 14px;
  line-height: 1.5;
  max-width: 32ch;
}

.project-more-arrow {
  align-self: flex-end;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 236, 223, 0.18);
  color: var(--paper-on-dark);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 200ms ease,
    border-color 200ms ease;
}

.project-more-arrow svg {
  width: 14px;
  height: 14px;
  opacity: 1;
}

.project-card-more:hover .project-more-arrow {
  background: rgba(244, 236, 223, 0.08);
  border-color: rgba(244, 236, 223, 0.4);
  transform: translateX(3px);
}

/* ---------- bench card (a queued/coming project, in-grid) ---------- */

.bench-card {
  position: relative;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  padding: 24px;
  pointer-events: none;
  border-style: dashed;
  border-color: rgba(21, 25, 27, 0.22);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.bench-card-tag {
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bench-card-name {
  margin-top: -2px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.bench-card-copy {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 30ch;
  margin-top: -8px;
}

.bench-card-status {
  align-self: flex-end;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- principles ---------- */

.principles .section-heading {
  margin-bottom: 36px;
}

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: principle;
  display: grid;
  gap: 0;
}

.principle-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.principle-num {
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  padding-top: 6px;
}

.principle-body h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.principle-body p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 56px;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 56px;
  background: var(--panel-strong);
  color: var(--paper-on-dark);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(20, 124, 124, 0.18),
      transparent 42%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(244, 236, 223, 0.05),
      transparent 38%
    );
  pointer-events: none;
}

.footer > * {
  position: relative;
}

.footer .eyebrow {
  color: rgba(244, 236, 223, 0.6);
}

.footer h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.footer-copy {
  margin: 18px 0 0;
  max-width: 44ch;
  color: rgba(244, 236, 223, 0.72);
  font-size: 16px;
  line-height: 1.5;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(244, 236, 223, 0.16);
  border-radius: 12px;
  color: var(--paper-on-dark);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.footer-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-link:hover {
  background: rgba(244, 236, 223, 0.06);
  border-color: rgba(244, 236, 223, 0.36);
}

.footer-link.primary {
  background: var(--paper-on-dark);
  color: var(--panel-strong);
  border-color: var(--paper-on-dark);
}

.footer-link.primary:hover {
  background: #fff;
  border-color: #fff;
}

.footer-link.primary:hover svg {
  transform: translateX(3px);
}

.footer-link.icon-link {
  width: 48px;
  padding: 0;
}

.footer-link.icon-link svg {
  width: 18px;
  height: 18px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 236, 223, 0.1);
  color: rgba(244, 236, 223, 0.5);
  font-size: 13px;
  letter-spacing: -0.005em;
}

.footer-dot {
  opacity: 0.6;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    padding: 72px 24px 64px;
  }

  .hero-art {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .principles .section-heading,
  .projects .section-heading {
    margin-bottom: 24px;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 72px 24px 48px;
    gap: 36px;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-header::after {
    opacity: 1;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .site-nav a:first-child {
    padding-left: 0;
  }

  .hero {
    padding: 24px 20px 56px;
    text-align: left;
  }

  h1 {
    font-size: clamp(44px, 13vw, 56px);
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .section {
    width: min(100% - 36px, 640px);
    padding: 80px 0;
  }

  .focus-grid article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

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

  .project-card-featured {
    grid-column: span 1;
    min-height: 200px;
  }

  .project-card-more {
    min-height: 0;
    padding: 22px;
  }

  .principle-list li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .bench-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }
}
