:root {
  color-scheme: dark;
  --ink: #f0eee8;
  --muted: #9a9d96;
  --dim: #626660;
  --ground: #0b0d0c;
  --ground-soft: #111411;
  --line: rgba(240, 238, 232, 0.13);
  --accent: #d8e0cf;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ground);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 4vw, 64px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.wordmark img {
  width: 28px;
  height: 28px;
}

.stage,
.back-link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding: 100px clamp(24px, 7vw, 112px) 42px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  content: "";
}

.beam {
  position: absolute;
  z-index: -2;
  top: -42vh;
  right: -20vw;
  width: min(1080px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(218, 226, 207, 0.2), rgba(148, 161, 141, 0.07) 36%, rgba(11, 13, 12, 0) 70%);
  filter: blur(2px);
  transform: rotate(-15deg);
}

.hero-mark {
  position: absolute;
  top: 12vh;
  right: clamp(3vw, 8vw, 130px);
  width: min(44vw, 610px);
  opacity: 0.84;
  animation: mark-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 32px 70px rgba(0, 0, 0, 0.4));
}

.hero-mark img,
.closing-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 540;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-intro {
  width: min(500px, 100%);
  margin: 34px 0 28px;
  color: #c4c5bf;
  font-size: clamp(17px, 1.5vw, 21px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--accent);
  font-size: 14px;
  transition: gap 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  gap: 18px;
  border-color: var(--accent);
}

.section {
  width: 100%;
  padding: clamp(100px, 14vw, 210px) clamp(24px, 7vw, 112px);
}

.section-heading {
  display: grid;
  max-width: var(--max);
  margin: 0 auto clamp(62px, 9vw, 126px);
  grid-template-columns: minmax(180px, 0.7fr) 1.8fr;
  gap: 40px;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.experience {
  background: #e9e7df;
  color: #191b19;
}

.experience .eyebrow {
  color: #666a63;
}

.demo-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(20, 22, 20, 0.2);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: #676b64;
  font-size: 13px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #242724;
  cursor: pointer;
}

.toggle-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background 240ms ease, box-shadow 240ms ease;
}

.mode-toggle[aria-pressed="true"] .toggle-dot {
  background: #dce5d4;
  box-shadow: 0 0 22px rgba(220, 229, 212, 0.48);
}

.demo-page {
  min-height: 520px;
  padding: clamp(52px, 8vw, 112px) clamp(24px, 9vw, 128px);
  background: #f7f5ee;
  color: #242724;
  transition: background 520ms cubic-bezier(0.22, 1, 0.36, 1), color 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-wrap.is-dark .demo-page {
  background: #121512;
  color: #e7e5df;
}

.demo-kicker {
  color: #6e726a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-page h3 {
  max-width: 690px;
  margin: 32px 0;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 530;
  letter-spacing: -0.05em;
  line-height: 1;
}

.demo-page > p:not(.demo-kicker) {
  max-width: 610px;
  color: #696d66;
  font-size: clamp(16px, 1.4vw, 19px);
}

.demo-wrap.is-dark .demo-page > p:not(.demo-kicker) {
  color: #a8aba4;
}

.demo-rule {
  width: 100%;
  height: 1px;
  margin: 72px 0 22px;
  background: currentColor;
  opacity: 0.15;
}

.demo-note {
  font-size: 13px !important;
}

.principles {
  background: var(--ground);
}

.principle-list {
  max-width: var(--max);
  margin: 0 auto;
}

.principle-list > div {
  display: grid;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 0.7fr) 1.8fr;
  gap: 40px;
}

.principle-list dt {
  font-size: 14px;
  font-weight: 650;
}

.principle-list dd {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.closing {
  position: relative;
  display: flex;
  min-height: 78svh;
  align-items: center;
  overflow: hidden;
  background: #dfe5db;
  color: #171a17;
}

.closing-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 74%);
}

.closing .eyebrow {
  color: #626861;
}

.closing-copy > p:last-child {
  max-width: 520px;
  margin-top: 32px;
  color: #5d625c;
  font-size: clamp(16px, 1.5vw, 20px);
}

.closing-mark {
  position: absolute;
  right: -7vw;
  bottom: -24%;
  width: min(52vw, 680px);
  opacity: 0.86;
  filter: invert(1) brightness(0.18);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(24px, 4vw, 64px);
  color: var(--dim);
  font-size: 12px;
}

footer a:hover,
.back-link:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1), transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.hero-copy .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.hero-copy .reveal:nth-child(4) {
  transition-delay: 220ms;
}

.legal-page .site-header {
  position: relative;
}

.legal-content {
  width: min(850px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(100px, 13vw, 180px) 0;
}

.legal-content h1 {
  margin-bottom: 34px;
  font-size: clamp(46px, 7vw, 88px);
}

.legal-lead,
.legal-note {
  color: var(--muted);
}

.legal-content section {
  display: grid;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(160px, 0.55fr) 1.45fr;
  gap: 36px;
}

.legal-content section:first-of-type {
  margin-top: 100px;
}

.legal-content section h2 {
  margin: 0;
  font-size: 16px;
}

.legal-content section p {
  margin: 0;
  color: #b8bbb4;
  font-size: 18px;
}

code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translate(38px, -30px) rotate(-8deg) scale(0.88);
  }
  to {
    opacity: 0.84;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 20px;
  }

  .stage {
    max-width: 150px;
    text-align: right;
    line-height: 1.35;
  }

  .hero {
    min-height: 100svh;
    padding: 100px 22px 38px;
  }

  .hero-mark {
    top: 12vh;
    right: -13vw;
    width: 72vw;
    opacity: 0.52;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  h1 {
    font-size: clamp(50px, 15vw, 74px);
  }

  .section {
    padding: 100px 22px;
  }

  .section-heading,
  .principle-list > div,
  .legal-content section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading {
    margin-bottom: 54px;
  }

  .demo-page {
    min-height: 480px;
  }

  .closing {
    min-height: 72svh;
  }

  .closing-copy {
    width: 100%;
  }

  .closing-mark {
    right: -20vw;
    bottom: -8%;
    width: 78vw;
    opacity: 0.18;
  }

  footer {
    padding: 28px 22px;
  }

  .legal-content section:first-of-type {
    margin-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
