:root {
  --ink: #111318;
  --paper: #fbfbf7;
  --sheet: #ffffff;
  --muted: #5f6673;
  --rule: #d9dee7;
  --blue: #2454ff;
  --red: #f05a3a;
  --mint: #00a878;
  --charcoal: #20242c;
  --shadow: 0 24px 70px rgba(17, 19, 24, 0.12);
  --radius: 8px;
  --max: 1180px;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(217, 222, 231, 0.48) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 251, 247, 0.82);
  border-bottom: 1px solid rgba(217, 222, 231, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--sheet);
  background: var(--ink);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-action {
  padding: 0.62rem 0.95rem;
  color: var(--sheet) !important;
  background: var(--ink);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--sheet);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section,
.hero,
.manifesto,
.site-footer {
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-dark {
  color: var(--sheet);
  background:
    linear-gradient(135deg, rgba(36, 84, 255, 0.2), transparent 32%),
    linear-gradient(315deg, rgba(240, 90, 58, 0.22), transparent 34%),
    var(--ink);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 8vw, 7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.hero-lede {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--sheet);
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover {
  background: #d9492d;
}

.button-secondary {
  color: var(--sheet);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: var(--sheet);
  background: var(--ink);
  border-color: var(--ink);
}

.loop-board {
  position: relative;
  padding: 1.2rem;
  color: var(--ink);
  background: var(--sheet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loop-board::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px dashed rgba(17, 19, 24, 0.2);
  border-radius: 5px;
  pointer-events: none;
}

.loop-header,
.loop-result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  border-bottom: 2px solid var(--ink);
}

.loop-header span,
.loop-result span,
.practice-item span,
.book-list span,
.outcome-list span,
.manifesto-columns span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-header strong,
.loop-result strong {
  font-family: var(--display);
}

.loop-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.1rem 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.step-code {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.loop-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
}

.loop-steps p,
.loop-result {
  margin: 0;
  color: var(--muted);
}

.loop-result {
  border-top: 0;
  border-bottom: 0;
}

.loop-result strong {
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 7rem;
}

.prose p,
.client-panel p,
.book-copy > p,
.section-heading > p {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.prose p {
  margin-bottom: 1.3rem;
}

.section-ruled {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--sheet);
}

.practice-item {
  min-height: 320px;
  padding: 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.practice-item p {
  color: var(--muted);
}

.manifesto {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.manifesto-inner {
  max-width: var(--max);
  margin: 0 auto;
}

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

.manifesto-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.manifesto-columns div {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.manifesto-columns ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.manifesto-columns li {
  padding: 0.82rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.book-section {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(4rem, 8vw, 7rem);
  align-items: center;
}

.book-cover {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  justify-self: center;
  width: min(100%, 380px);
  min-height: 470px;
  color: var(--sheet);
  filter: drop-shadow(18px 28px 30px rgba(17, 19, 24, 0.22));
}

.book-copy {
  min-width: 0;
}

.book-copy h2 {
  max-width: 720px;
}

.book-spine {
  background: var(--red);
  border-radius: 5px 0 0 5px;
}

.book-face {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(0, 168, 120, 0.22), transparent 38%),
    var(--charcoal);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}

.book-face span,
.book-face small {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-face strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.98;
  white-space: nowrap;
}

.book-face p {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.68);
}

.book-list {
  margin: 2rem 0;
  padding: 1.2rem 0 0;
  border-top: 2px solid var(--ink);
}

.book-list ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.book-list li {
  margin-bottom: 0.55rem;
}

.community-section {
  max-width: none;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.community-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.community-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.community-strip div {
  min-height: 230px;
  padding: 1.5rem;
  background: var(--paper);
}

.community-strip strong {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.community-strip p {
  color: var(--muted);
}

.center-action {
  justify-content: center;
}

.client-panel {
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.clients-section .split {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1fr);
  gap: clamp(5rem, 9vw, 8rem);
}

.clients-section .section-intro h2 {
  max-width: 440px;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
}

.outcome-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.8rem 0;
}

.outcome-list span {
  margin-bottom: 0.4rem;
}

.outcome-list a {
  padding: 0.86rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.outcome-list a:hover {
  color: var(--blue);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
}

.site-footer > div,
.site-footer nav {
  max-width: var(--max);
}

.footer-brand strong {
  color: var(--sheet);
}

.footer-brand small,
.site-footer p {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer p {
  max-width: 430px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-content: start;
  justify-content: flex-end;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--sheet);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 19, 24, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(100%, 560px);
  max-height: 92vh;
  overflow: auto;
  padding: 1.4rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--sheet);
  cursor: pointer;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.85rem;
  color: var(--ink);
  background: var(--sheet);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(36, 84, 255, 0.28);
  outline-offset: 2px;
}

.modal-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.form-success {
  display: none;
  padding: 2rem 0 0.5rem;
}

.form-success.active {
  display: block;
}

.form-success strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
}

.form-success p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 180ms;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .book-section,
  .manifesto-columns {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

  .practice-grid,
  .community-strip {
    grid-template-columns: 1fr;
  }

  .practice-item,
  .community-strip div {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .site-nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-action {
    margin-top: 0.8rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .loop-board {
    padding: 0.8rem;
  }

  .loop-header,
  .loop-result {
    display: grid;
  }

  .loop-steps li {
    grid-template-columns: 48px 1fr;
    gap: 0.75rem;
  }

  .book-cover {
    min-height: 380px;
    max-width: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
