:root {
  --ink: #16181D;
  --paper: #F5F3EE;
  --bg: var(--paper);
  --fg: var(--ink);
  --dim: #5B6470;
  --line: #DCD9D1;
  --structure: #2B3FB0;
  --warm: #C0603A;
  --gutter: clamp(20px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-ps-theme="light"]) {
    --bg: #101216;
    --fg: #F5F3EE;
    --dim: #B9B6AD;
    --line: #2A2E36;
    --structure: #8B9AF5;
    --warm: #DE8A61;
  }
}
:root[data-ps-theme="dark"] {
  --bg: #101216;
  --fg: #F5F3EE;
  --dim: #B9B6AD;
  --line: #2A2E36;
  --structure: #8B9AF5;
  --warm: #DE8A61;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--fg);
  font-family: 'Inter', system-ui, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--structure); text-decoration: none; }
a:hover { color: var(--fg); }
a:focus-visible { outline: 2px solid var(--structure); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', Helvetica, sans-serif; }
.container { width: min(1160px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 1;
  padding: 12px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand svg { flex-shrink: 0; }
.wordmark { font: 500 22px 'Space Grotesk', Helvetica, sans-serif; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; font: 400 13px 'IBM Plex Mono', Menlo, monospace; }
.nav-links a { color: var(--dim); padding-block: 10px; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; }
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.eyebrow { font: 400 13px/1.5 'IBM Plex Mono', Menlo, monospace; color: var(--dim); }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.accent-dot { color: var(--warm); }
.lede { max-width: 36ch; font-size: 18px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.btn-primary {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font: 500 16px/1.3 'Space Grotesk', Helvetica, sans-serif;
  transition: background .15s ease, color .15s ease;
}
.btn-primary:hover { background: var(--structure); color: var(--bg); }
.scene { --points-duration: 1s; --points-hold: 1s; --structure-start: calc(var(--points-duration) + var(--points-hold)); width: 100%; max-width: 540px; margin: 0 auto; }
.scene svg { display: block; width: 100%; height: auto; aspect-ratio: 600 / 440; overflow: visible; }
/* White points fade in, hold for a full second, then reveal the structure, finishing with the center. */
.scene-points { animation: ps-fade var(--points-duration) ease-in-out both; }
.scene-center { animation: ps-fade .5s calc(var(--structure-start) + 1.6s) both; }
.scene-mesh [pathLength], .scene-hull {
  stroke-dasharray: 1;
  animation: ps-draw var(--draw-duration, .35s) calc(var(--structure-start) + var(--draw-offset, 0s)) both;
}
.scene-hull { --draw-duration: .7s; --draw-offset: .3s; }
.scene-surfaces > path { animation: ps-fade .4s calc(var(--structure-start) + .9s) both; }
.scene-surfaces > g { animation: ps-fade .6s calc(var(--structure-start) + 1s) both; }
.engagements { border-top: 1px solid var(--line); padding-block: 52px 56px; }
h2 { font-size: clamp(28px, 3vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.offerings { list-style: none; margin: 26px 0 0; padding: 0; }
.offering { display: grid; grid-template-columns: .9fr 1.6fr; align-items: baseline; gap: 32px; padding-block: 26px; }
.offering + .offering { border-top: 1px solid var(--line); }
.offering h3 { font-size: clamp(20px, 2vw, 23px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.offering p { max-width: 54ch; font-size: 16px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.contact { border-top: 1px solid var(--line); padding-block: 56px 72px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 32px; margin-top: 28px; }
.contact-email { font: 500 clamp(24px, 3vw, 32px)/1.3 'Space Grotesk', Helvetica, sans-serif; letter-spacing: -.02em; }
.contact-email, .text-link { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.text-link { font-size: 14px; padding-block: 10px; }
.founder { margin-top: 26px; color: var(--dim); font-size: 14px; line-height: 1.7; }
.founder a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--dim); font: 400 12px/1.5 'IBM Plex Mono', Menlo, monospace; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .hero-copy { max-width: 600px; }
  h1 { max-width: 12ch; }
  .scene { max-width: 440px; }
}
@media (max-width: 640px) {
  .offering { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; }
  .engagements { padding-block: 40px; }
  .contact { padding-block: 40px 48px; }
  .nav { gap: 12px; padding-block: 20px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .brand { gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .wordmark { font-size: 20px; }
}
@media (max-width: 360px) {
  .nav-links { gap: 12px; font-size: 11px; }
  .brand { gap: 6px; }
  .brand svg { width: 22px; height: 22px; }
  .wordmark { font-size: 19px; }
}
@keyframes ps-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
  .btn-primary { transition: none; }
}
