@font-face {
  font-family: "Geist Sans";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f7f7f4;
  --text-soft: rgba(247, 247, 244, 0.78);
  --muted: rgba(247, 247, 244, 0.58);
  --faint: rgba(247, 247, 244, 0.28);
  --line: rgba(247, 247, 244, 0.13);
  --mono: "Geist Mono", "SFMono-Regular", "Berkeley Mono", "JetBrains Mono", Consolas, monospace;
  --sans: "Geist Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-shell {
  min-height: 100vh;
  isolation: isolate;
}

.studio-layout,
.site-footer {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(52px, 7vw, 120px);
  align-items: start;
}

.studio-sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  padding: 24px 0 44px;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 56px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand-logo {
  width: 124px;
  height: auto;
}

.hero-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 68px 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--text);
  font-weight: 520;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.02;
}

h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 0.96;
}

.hero-text,
.section-copy p {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-link::after {
  content: "->";
  margin-left: 10px;
  font-family: var(--mono);
  font-weight: 400;
}

.primary-link:hover {
  border-color: var(--muted);
  color: var(--text-soft);
  transform: translateY(-1px);
}

.hero-notes {
  align-self: end;
  display: grid;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-notes p {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.hero-notes strong {
  color: var(--text);
  font-weight: 560;
}

.hero-notes span {
  color: var(--muted);
  text-align: right;
}

.studio-rail {
  display: grid;
}

.rail-section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.workbench-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
}

.workbench {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  gap: 18px;
  color: var(--muted);
  font-family: var(--mono);
}

.workbench-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}

.workbench-header span:first-child {
  color: var(--text);
}

.workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(190px, 0.88fr);
  gap: 30px;
}

.pane-label {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 12px;
}

pre {
  overflow: auto;
  margin: 0;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.agent-log {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.agent-log li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.agent-log span,
.workflow-list span {
  color: var(--faint);
  font-family: var(--mono);
}

.manifesto {
  padding-top: 126px;
  padding-bottom: 132px;
}

.manifesto-prose {
  max-width: 780px;
}

.manifesto-prose p {
  color: rgba(247, 247, 244, 0.68);
  font-size: clamp(30px, 4.1vw, 54px);
  font-weight: 390;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: pretty;
}

.manifesto-prose p + p {
  margin-top: 38px;
}

.manifesto-prose strong {
  color: var(--text);
  font-weight: 560;
}

.manifesto-prose .signature {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 66px;
}

.manifesto-prose .signature img {
  width: clamp(72px, 9vw, 98px);
  height: auto;
}

.manifesto-prose .signature span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}

.vision {
  display: grid;
  gap: 38px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-copy {
  display: grid;
  gap: 24px;
}

.workflow {
  display: grid;
  gap: 58px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 46px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  gap: 12px;
}

.workflow-list span {
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-list p {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (min-width: 1500px) {
  :root {
    --max: 1560px;
  }

  .studio-layout,
  .site-footer {
    width: min(var(--max), calc(100% - 128px));
  }

  .studio-layout {
    grid-template-columns: minmax(520px, 0.95fr) minmax(680px, 1.05fr);
    gap: clamp(96px, 8vw, 156px);
  }

  .brand-logo {
    width: 140px;
  }

  h1 {
    max-width: 840px;
    font-size: clamp(64px, 4.4vw, 84px);
  }

  .hero-text,
  .section-copy p {
    max-width: 66ch;
    font-size: 22px;
  }

  .workbench-header {
    font-size: 13px;
  }

  .workbench-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 44px;
  }

  pre,
  .agent-log {
    font-size: 14px;
  }

  .manifesto-prose {
    max-width: 900px;
  }

  .manifesto-prose p {
    font-size: clamp(36px, 3.25vw, 58px);
  }

  .workflow-list {
    gap: 40px 64px;
  }
}

@media (max-width: 1040px) {
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .studio-sticky {
    position: relative;
    min-height: auto;
    padding-bottom: 74px;
  }

  .hero-copy {
    padding: 72px 0 58px;
  }

  .hero-notes {
    max-width: 620px;
  }

  .workbench-section {
    min-height: auto;
    padding-top: 84px;
  }
}

@media (max-width: 640px) {
  .studio-layout,
  .site-footer {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    min-height: 52px;
  }

  .brand-logo {
    width: 104px;
  }

  .hero-copy {
    gap: 24px;
    padding: 56px 0 48px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-text,
  .section-copy p {
    font-size: 18px;
  }

  .hero-notes p {
    flex-direction: column;
    gap: 4px;
  }

  .hero-notes span {
    text-align: left;
  }

  .rail-section {
    padding: 74px 0;
  }

  .workbench-body {
    grid-template-columns: 1fr;
  }

  pre {
    font-size: 12px;
  }

  .manifesto {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  .manifesto-prose p {
    font-size: clamp(30px, 9.6vw, 46px);
  }

  .workflow {
    gap: 46px;
  }

  .workflow-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
