:root {
  color-scheme: light;
  --ink: #111814;
  --muted: #5b655e;
  --paper: #f7f5ee;
  --panel: #fffdf7;
  --line: #d8ddd5;
  --night: #111814;
  --night-2: #1a2420;
  --green: #255c42;
  --green-2: #8fb89d;
  --blue: #4e7180;
  --copper: #a7653f;
  --cream: #fff7e8;
  --shadow: 0 24px 70px rgba(17, 24, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 15px clamp(18px, 4vw, 56px);
  color: var(--cream);
  background: rgba(17, 24, 20, 0.78);
  border-bottom: 1px solid rgba(255, 247, 232, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 247, 232, 0.24);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.08);
  color: var(--cream);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: rgba(255, 247, 232, 0.76);
  font-size: 0.95rem;
}

.site-nav a {
  padding-block: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 68px;
  background: var(--night);
  color: var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 20, 0.96) 0%, rgba(17, 24, 20, 0.84) 40%, rgba(17, 24, 20, 0.5) 100%);
  pointer-events: none;
}

.system-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.surface-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 247, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 232, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.surface-panel {
  position: absolute;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background: rgba(24, 34, 30, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.command-panel {
  right: clamp(20px, 6vw, 110px);
  top: 120px;
  width: min(520px, 44vw);
  padding: 18px;
}

.panel-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-topline span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 247, 232, 0.32);
}

.command-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 247, 232, 0.1);
  color: rgba(255, 247, 232, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.command-row.active {
  color: var(--cream);
  background: rgba(143, 184, 157, 0.08);
}

.command-row strong {
  color: var(--green-2);
  font-size: 0.76rem;
  font-weight: 800;
}

.graph-panel {
  right: clamp(48px, 9vw, 180px);
  bottom: 92px;
  width: min(560px, 48vw);
  aspect-ratio: 16 / 9;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.08);
  color: rgba(255, 247, 232, 0.86);
  font-size: 0.8rem;
  font-weight: 800;
}

.node-a { left: 12%; top: 23%; }
.node-b { left: 42%; top: 42%; background: rgba(143, 184, 157, 0.16); }
.node-c { right: 10%; top: 20%; }
.node-d { right: 14%; bottom: 18%; }

.edge {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: rgba(167, 101, 63, 0.78);
}

.edge-ab { left: 28%; top: 39%; width: 23%; transform: rotate(28deg); }
.edge-bc { left: 55%; top: 45%; width: 26%; transform: rotate(-26deg); }
.edge-bd { left: 56%; top: 57%; width: 25%; transform: rotate(22deg); }

.signal-panel {
  right: 12vw;
  top: 52%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-width: 360px;
  overflow: hidden;
}

.signal-panel div {
  padding: 18px;
  background: rgba(255, 247, 232, 0.06);
}

.metric-label {
  display: block;
  color: rgba(255, 247, 232, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
}

.signal-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dca678;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 247, 232, 0.78);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.product-card {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
}

.button.primary {
  background: var(--cream);
  color: var(--night);
}

.button.secondary {
  border-color: rgba(255, 247, 232, 0.28);
  color: var(--cream);
}

.button:hover,
.button:focus-visible,
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-1px);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.thesis-section {
  background: var(--paper);
}

.thesis-layout,
.product-layout,
.exploration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.thesis-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.thesis-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.thesis-list span,
.idea-number {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.thesis-list p,
.product-copy p,
.section-heading p,
.idea-card p,
.product-card span:not(.status-pill):not(.card-arrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.product-section {
  background: var(--night-2);
  color: var(--cream);
}

.product-copy p {
  color: rgba(255, 247, 232, 0.72);
}

.product-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 184, 157, 0.12), rgba(78, 113, 128, 0.08)),
    rgba(255, 247, 232, 0.05);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.product-card strong {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.status-pill {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid rgba(143, 184, 157, 0.32);
  border-radius: 999px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-arrow {
  align-self: end;
  color: var(--green-2);
  font-size: 1.4rem;
}

.section-heading {
  position: sticky;
  top: 104px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.idea-grid {
  display: grid;
  gap: 12px;
}

.idea-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.idea-card:first-child {
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-row a {
  color: var(--green);
  font-weight: 750;
}

.footer-row a:hover,
.footer-row a:focus-visible {
  color: var(--ink);
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
    background: var(--night);
  }

  .hero {
    min-height: auto;
    padding-top: 78px;
  }

  .hero::after {
    background: rgba(17, 24, 20, 0.88);
  }

  .command-panel,
  .graph-panel,
  .signal-panel {
    opacity: 0.58;
  }

  .command-panel {
    right: -160px;
    width: 520px;
  }

  .graph-panel {
    right: -120px;
    width: 560px;
  }

  .signal-panel {
    right: -60px;
  }

  .thesis-layout,
  .product-layout,
  .exploration-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .thesis-list article,
  .idea-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .thesis-list p,
  .idea-card p {
    grid-column: 2;
  }
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero {
    padding-inline: 18px;
    padding-bottom: 54px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 14.5vw, 4.35rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .command-panel {
    top: 120px;
    right: -260px;
  }

  .graph-panel,
  .signal-panel {
    display: none;
  }

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

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