:root {
  --paper: #f2f0e9;
  --ink: #151513;
  --ink-2: #4a4843;
  --ink-3: #8a877f;
  --ink-4: #b3afa5;
  --rule: rgb(21 21 19 / 0.12);
  --rule-2: rgb(21 21 19 / 0.22);
  --signal: #d9431e;

  --void: #050505;
  --cyan: #22d3ee;
  --emerald: #34d399;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  --page: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgb(217 67 30 / 0.18); }
a { color: inherit; text-decoration: none; }
h1, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.quiet { color: var(--ink-3); }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.page { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero */
.hero { display: flex; flex-direction: column; height: 100svh; min-height: 560px; padding: var(--gutter) 0; }
.hero-desc { margin-top: 20px; color: var(--ink-3); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.mark { width: 17px; height: 17px; overflow: visible; }
.mark path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mark circle { fill: var(--signal); }

.hero-plot { flex: 1; display: flex; padding-top: clamp(32px, 7vh, 72px); }
.frontier { position: relative; flex: 1; }
.frontier canvas { position: absolute; inset: 0; width: 100%; height: 100%; animation: fade-in 1.2s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }

/* stateofthe.tech */
.instrument { padding-top: clamp(120px, 18vh, 200px); }
.instrument > p a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 10px; }
.instrument > p a .i { width: 13px; height: 13px; transition: transform 0.15s; }
.instrument > p a:hover .i { transform: translate(2px, -2px); }

.plate {
  --z100: #f4f4f5; --z300: #d4d4d8; --z400: #a1a1aa; --z500: #71717a; --z600: #52525b;
  display: block;
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(ellipse 70% 50% at 40% -10%, rgb(34 211 238 / 0.10), transparent 70%), var(--void);
  color: var(--z300);
  font: 400 12px/1.5 var(--sans);
  box-shadow: 0 40px 80px -40px rgb(21 21 19 / 0.45);
}
.plate .mono { font-family: var(--mono); }
.plate b { font-weight: 500; color: var(--z100); }
.sott-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 52px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / 0.05); background: rgb(255 255 255 / 0.015); }
.sott-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: -0.035em; color: var(--z100); }
.sott-brand svg { width: 24px; height: 24px; color: var(--cyan); }
.sott-word b { font-weight: 600; }
.sott-word span { font-weight: 300; color: var(--z400); }
.sott-word i { font-style: normal; color: var(--cyan); }
.sott-search { display: inline-flex; align-items: center; gap: 10px; width: min(420px, 42vw); padding: 7px 12px; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 8px; background: rgb(255 255 255 / 0.02); color: var(--z300); font-size: 12px; }
.sott-search .i { color: var(--z500); }
.sott-search-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sott-search .mono { color: var(--z600); font-size: 11px; }
.sott-me { justify-self: end; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.08); font: 500 10px var(--mono); color: var(--z400); }

.sott-body { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 470px; }
.sott-main { position: relative; display: flex; flex-direction: column; padding: 14px 16px 16px; border-right: 1px solid rgb(255 255 255 / 0.05); }
.sott-tabs { display: flex; gap: 4px; }
.sott-tabs span { padding: 5px 10px; border-radius: 6px; font: 500 9.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--z600); }
.sott-tabs .on { background: rgb(255 255 255 / 0.05); color: var(--z100); }
.graph { flex: 1; width: 100%; min-height: 0; margin-top: 6px; overflow: visible; }
.graph .ring { fill: none; stroke: rgb(255 255 255 / 0.05); }
.graph .edge { stroke-width: 1; transition: opacity 0.2s, stroke 0.2s; }
.graph .edge.foundational { stroke: rgb(34 211 238 / 0.45); }
.graph .edge.method { stroke: rgb(161 161 170 / 0.35); }
.graph .edge.baseline { stroke: rgb(161 161 170 / 0.18); stroke-dasharray: 3 4; }
.graph .node { cursor: pointer; outline: none; transition: opacity 0.2s; }
.graph .node .n { fill: var(--void); stroke: var(--z500); stroke-width: 1.2; transition: stroke 0.2s, fill 0.2s; }
.graph .node text { font: 400 10.5px var(--sans); fill: var(--z400); transition: fill 0.2s; }
.graph .node .hit { fill: transparent; }
.graph .core .c { fill: var(--cyan); }
.graph .core .glow { fill: url(#core-glow); }
.graph .core text { fill: var(--z100); font-size: 12px; font-weight: 500; }
.graph .node.known .n { stroke: var(--emerald); fill: rgb(52 211 153 / 0.15); }
.graph .node.known text { fill: var(--z600); }
.graph .edge.pruned { opacity: 0.25; }
.graph.focusing .node:not(.lit) { opacity: 0.3; }
.graph.focusing .edge:not(.lit) { opacity: 0.15; }
.graph .node.lit .n { stroke: var(--cyan); fill: rgb(34 211 238 / 0.15); }
.graph .node.lit text { fill: var(--z100); }
.graph .edge.lit { stroke: var(--cyan); opacity: 1; }
.sott-ref { min-height: 18px; font: 400 10.5px var(--mono); color: var(--z500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sott-ref b { font-family: var(--sans); font-weight: 400; color: var(--z300); }

.sott-agent { display: flex; flex-direction: column; padding: 16px 18px 20px; background: rgb(0 0 0 / 0.2); }
.sott-eyebrow { font: 500 9.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--z500); }
.sott-q { margin-top: 12px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 10px; background: rgb(255 255 255 / 0.03); color: var(--z100); font-size: 12.5px; }
.steps { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.step { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: var(--z500); }
.step .i { margin-top: 2px; width: 12px; height: 12px; color: var(--z600); }
.step b { color: var(--z300); }
.step .dim { color: var(--z600); font-size: 10.5px; }
.known-step .i { color: var(--emerald); }
.sott-prose { margin: 18px 0 28px; font-size: 13px; line-height: 1.7; color: var(--z300); }
.sott-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 10px 10px 10px 14px; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 12px; background: rgb(0 0 0 / 0.3); color: var(--z600); font-size: 12px; }
.sott-send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgb(255 255 255 / 0.05); color: var(--z500); }
.sott-send .i { width: 13px; height: 13px; }
.text-shimmer {
  background: linear-gradient(90deg, var(--z600) 0%, var(--z600) 40%, var(--z100) 50%, var(--z600) 60%, var(--z600) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.js .plate .step:not(.shown), .js .plate .w:not(.shown) { opacity: 0; }
.plate .step, .plate .w { transition: opacity 0.4s ease-out; }
.caret { display: inline-block; width: 6px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Footer */
.footer { display: flex; justify-content: space-between; gap: 24px; padding-top: clamp(120px, 18vh, 200px); padding-bottom: var(--gutter); }
.footer a { transition: color 0.15s; }
.footer a:hover { color: var(--signal); }

@media (max-width: 900px) {
  .sott-body { grid-template-columns: 1fr; }
  .sott-main { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.05); }
  .graph { min-height: 320px; }
}
@media (max-width: 720px) {
  .hero { height: auto; min-height: 0; }
  .frontier { height: 62svh; min-height: 360px; flex: 1 1 auto; }
  .sott-nav { grid-template-columns: auto 1fr auto; }
  .sott-word { display: none; }
  .sott-search { width: auto; }
  .sott-ref { white-space: normal; }
  .graph { min-height: 260px; }
  .graph .node text { font-size: 17px; }
  .graph .core text { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
