:root {
  color-scheme: light dark;
  --bg: #f7f2ea;
  --bg-strong: #fffaf2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fffaf2;
  --surface-deep: #efe3d2;
  --text: #181511;
  --muted: #6d6257;
  --line: rgba(64, 47, 33, 0.14);
  --accent: #b35a37;
  --accent-strong: #8f3f25;
  --accent-soft: rgba(179, 90, 55, 0.14);
  --code-bg: #151515;
  --code-text: #f8ecd9;
  --shadow: 0 24px 70px rgba(64, 47, 33, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1120px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-strong: #101621;
    --surface: rgba(21, 27, 38, 0.72);
    --surface-solid: #151b26;
    --surface-deep: #111827;
    --text: #f6efe5;
    --muted: #b8aaa0;
    --line: rgba(246, 239, 229, 0.13);
    --accent: #f0a36f;
    --accent-strong: #ffba87;
    --accent-soft: rgba(240, 163, 111, 0.15);
    --code-bg: #070a0f;
    --code-text: #f6efe5;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-strong: #fffaf2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fffaf2;
  --surface-deep: #efe3d2;
  --text: #181511;
  --muted: #6d6257;
  --line: rgba(64, 47, 33, 0.14);
  --accent: #b35a37;
  --accent-strong: #8f3f25;
  --accent-soft: rgba(179, 90, 55, 0.14);
  --code-bg: #151515;
  --code-text: #f8ecd9;
  --shadow: 0 24px 70px rgba(64, 47, 33, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-strong: #101621;
  --surface: rgba(21, 27, 38, 0.72);
  --surface-solid: #151b26;
  --surface-deep: #111827;
  --text: #f6efe5;
  --muted: #b8aaa0;
  --line: rgba(246, 239, 229, 0.13);
  --accent: #f0a36f;
  --accent-strong: #ffba87;
  --accent-soft: rgba(240, 163, 111, 0.15);
  --code-bg: #070a0f;
  --code-text: #f6efe5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, var(--accent-soft), transparent 34rem),
    radial-gradient(circle at 84% 16%, rgba(95, 111, 255, 0.13), transparent 30rem),
    linear-gradient(135deg, var(--bg-strong), var(--bg));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
}

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

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

p {
  margin: 0;
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.84;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.35rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--bg-strong);
  background: var(--text);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 0;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

.nav {
  gap: clamp(0.3rem, 1.6vw, 0.85rem);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.nav a,
.theme-toggle {
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav a {
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
  outline: none;
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  padding: 0;
  border: 0;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: transparent;
}

html[data-theme="dark"] .theme-toggle__sun,
html:not([data-theme="dark"]) .theme-toggle__moon {
  display: none;
}

.section {
  padding: clamp(56px, 9vw, 112px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 100px);
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 760px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  color: var(--bg-strong);
  border-color: transparent;
  background: var(--text);
}

.button--ghost {
  color: var(--text);
  background: var(--surface);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: var(--code-bg);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}

.terminal-card__bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-card__bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff705c;
}

.terminal-card__bar span:nth-child(2) {
  background: #ffbd4a;
}

.terminal-card__bar span:nth-child(3) {
  background: #67d98b;
}

.terminal-card pre {
  overflow: auto;
  margin: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  line-height: 1.8;
  white-space: pre-wrap;
}

.prompt {
  color: var(--accent-strong);
}

.cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.08em;
  margin-left: 0.18em;
  vertical-align: -0.18em;
  background: var(--accent-strong);
  animation: blink 1s steps(2, start) infinite;
}

.split,
.human,
.toolkit {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.card {
  min-height: 250px;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.card__kicker {
  display: inline-flex;
  margin-bottom: 2.6rem;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.card p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.human {
  align-items: center;
}

.portrait {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%), var(--surface);
  box-shadow: var(--shadow);
}

.portrait__initial {
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 34%;
  color: var(--bg-strong);
  background: var(--text);
  font-size: clamp(5rem, 13vw, 8rem);
  font-weight: 840;
  letter-spacing: -0.08em;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit--one {
  inset: 12%;
  animation: rotate 26s linear infinite;
}

.orbit--two {
  inset: 24%;
  border-style: dashed;
  animation: rotate 34s linear infinite reverse;
}

.human__copy p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.quiet-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface);
}

.quiet-list strong {
  color: var(--text);
}

.toolkit__heading {
  position: sticky;
  top: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.chips span:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.note {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.note__label {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

blockquote {
  margin: 1rem 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-wrap: balance;
}

.note p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-muted {
  text-align: right;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes rotate {
  to { transform: rotate(1turn); }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .human,
  .toolkit {
    grid-template-columns: 1fr;
  }

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

  .terminal-card {
    transform: none;
  }

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

  .toolkit__heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, var(--max-width));
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 0 0.65rem;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  .footer-muted {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
