:root {
  --lemon: #f2ff56;
  --lemon-soft: #f7f8b7;
  --lemon-wash: #f9facb;
  --lemon-dim: #d9e36a;
  --gradient-end: #bcc0b2;
  --lignis: #6d3399;
  --lignis-dark: #4c246b;
  --lignis-soft: #efe6f6;
  --ink: #151611;
  --graphite: #3d4139;
  --slate: #686e63;
  --ash: #c8ccbe;
  --mist: #eef0e3;
  --paper: #fffef5;
  --shadow: rgba(21, 22, 17, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Rethink Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(132deg, var(--lemon) 0%, var(--lemon-soft) 46%, var(--gradient-end) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(21, 22, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 17, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.65rem 0.8rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  background: var(--lemon-wash);
  border-bottom: 1px solid rgba(21, 22, 17, 0.12);
}

.brand-mark {
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.roll-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.roll-link__clip {
  display: grid;
  overflow: hidden;
}

.roll-link__clip span {
  grid-area: 1 / 1;
  transition: transform 360ms var(--ease);
}

.roll-link__clip span + span {
  transform: translateY(115%);
}

.roll-link:hover .roll-link__clip span:first-child,
.roll-link:focus-visible .roll-link__clip span:first-child {
  transform: translateY(-115%);
}

.roll-link:hover .roll-link__clip span + span,
.roll-link:focus-visible .roll-link__clip span + span {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26rem;
  gap: 3rem;
  min-height: 92vh;
  padding: 7.5rem 2rem 5rem;
  overflow: hidden;
}

.hero__copy {
  align-self: end;
  max-width: 63rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  max-width: 11ch;
  font-size: 8.6rem;
  font-weight: 800;
  line-height: 0.87;
}

.split-char {
  display: inline-block;
  transform: translateY(110%);
  transition:
    transform 800ms var(--ease),
    opacity 800ms var(--ease);
  transition-delay: calc(var(--i) * 36ms);
  opacity: 0;
}

.is-visible .split-char,
.hero.is-visible .split-char {
  transform: translateY(0);
  opacity: 1;
}

.hero__intro {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: rgba(21, 22, 17, 0.82);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.22;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 240ms var(--ease),
    background 240ms ease,
    color 240ms ease;
}

.button::after {
  content: "->";
  margin-left: 0.65rem;
}

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

.button--quiet {
  color: var(--ink);
  background: transparent;
}

.lab-signal {
  align-self: end;
  min-height: 28rem;
  padding: 1rem;
  color: var(--paper);
  background: rgba(21, 22, 17, 0.9);
  border: 1px solid rgba(255, 254, 245, 0.18);
  border-radius: 8px;
  box-shadow: 0 2rem 5rem var(--shadow);
}

.lab-signal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  color: var(--lemon);
  border-bottom: 1px solid rgba(255, 254, 245, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--lemon);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

.lab-signal__body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 0;
}

.signal-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 254, 245, 0.06);
  border: 1px solid rgba(255, 254, 245, 0.1);
  border-radius: 8px;
}

.signal-row span {
  color: var(--lemon);
  font-size: 0.8rem;
  font-weight: 800;
}

.signal-row strong {
  font-size: 1.1rem;
  line-height: 1;
}

.signal-row em {
  grid-column: 2;
  color: rgba(255, 254, 245, 0.62);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
}

.signal-meter {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.35rem;
  height: 8.4rem;
  padding-top: 1rem;
}

.signal-meter span {
  display: block;
  height: calc(18% + var(--level, 1) * 7%);
  background: linear-gradient(to top, var(--lemon-dim), var(--lemon));
  border-radius: 3px 3px 0 0;
  animation: meter 2.6s ease-in-out infinite;
  animation-delay: calc(var(--n, 1) * -160ms);
}

.signal-meter span:nth-child(1) { --level: 4; --n: 1; }
.signal-meter span:nth-child(2) { --level: 8; --n: 2; }
.signal-meter span:nth-child(3) { --level: 6; --n: 3; }
.signal-meter span:nth-child(4) { --level: 10; --n: 4; }
.signal-meter span:nth-child(5) { --level: 7; --n: 5; }
.signal-meter span:nth-child(6) { --level: 11; --n: 6; }
.signal-meter span:nth-child(7) { --level: 5; --n: 7; }
.signal-meter span:nth-child(8) { --level: 9; --n: 8; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
}

.signal-strip p {
  min-height: 9rem;
  margin: 0;
  padding: 1rem;
  color: var(--paper);
  background: rgba(21, 22, 17, 0.92);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.founder-stats {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  padding: 5rem 2rem;
  color: var(--ink);
  background: rgba(255, 254, 245, 0.76);
}

.founder-stats__heading {
  align-self: start;
  max-width: 32rem;
}

.founder-stats__heading h2 {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 0.96;
}

.founder-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(21, 22, 17, 0.2);
  border: 1px solid rgba(21, 22, 17, 0.2);
}

.founder-stats__grid div {
  min-height: 12.5rem;
  padding: 1rem;
  background: var(--paper);
}

.founder-stats dt {
  margin: 0 0 2.8rem;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.9;
}

.founder-stats dd {
  margin: 0;
  color: rgba(21, 22, 17, 0.68);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.28;
}

.portfolio-showcase {
  position: relative;
  height: 220vh;
  min-height: 1350px;
  color: var(--paper);
  background: var(--ink);
}

.portfolio-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(18rem, 0.76fr) minmax(26rem, 1.24fr);
  gap: 2rem;
  height: 100vh;
  min-height: 42rem;
  padding: 5rem 2rem 3rem;
  overflow: hidden;
}

.portfolio-intro {
  align-self: center;
  max-width: 34rem;
}

.portfolio-intro h2,
.method-section h2 {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 0.96;
}

.portfolio-intro p:not(.eyebrow) {
  color: rgba(255, 254, 245, 0.68);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.portfolio-stack {
  position: relative;
  align-self: center;
  height: 35rem;
  perspective: 1200px;
}

.portfolio-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.5rem;
  padding: 1.4rem;
  overflow: hidden;
  color: var(--ink);
  background: var(--card-bg, var(--paper));
  border: 1px solid rgba(21, 22, 17, 0.16);
  border-radius: 8px;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.38);
  opacity: var(--o, 1);
  transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: 52% 95%;
  will-change: transform, opacity;
}

.portfolio-card--lignis {
  --accent: var(--lignis);
  --accent-dark: var(--lignis-dark);
  --accent-soft: var(--lignis-soft);
  --card-bg: #f6f0fa;
  z-index: 1;
}

.portfolio-card--steward {
  --accent: var(--lemon-dim);
  --accent-dark: var(--ink);
  --accent-soft: #eef0e3;
  --card-bg: #d8dccf;
  z-index: 2;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.55rem;
  background: repeating-linear-gradient(90deg, var(--accent, var(--ink)) 0 18px, transparent 18px 27px);
  opacity: 0.38;
}

.portfolio-card__copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 1.2rem;
}

.portfolio-card__index {
  margin: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
}

.portfolio-card h3 {
  margin: 4rem 0 1rem;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.9;
}

.portfolio-card p {
  margin: 0;
  max-width: 35rem;
  color: rgba(21, 22, 17, 0.76);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.28;
}

.project-title-link {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.project-title-link:hover,
.project-title-link:focus-visible {
  color: var(--accent-dark, var(--ink));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.55rem;
  color: var(--paper);
  background: var(--accent-dark, var(--ink));
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.project-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(21, 22, 17, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 17, 0.12) 1px, transparent 1px),
    rgba(255, 254, 245, 0.7);
  background-size: 26px 26px;
  border: 1px solid rgba(21, 22, 17, 0.24);
  border-radius: 8px;
}

.notebook-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26%;
  height: 0.4rem;
  background: var(--accent, var(--ink));
  border-radius: 3px;
  opacity: 0.82;
}

.notebook-line--short {
  right: 28%;
  top: 40%;
}

.writing-path {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 30%;
  height: 5.2rem;
  border: 0.42rem solid var(--accent, var(--ink));
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 8px;
}

.helper-panel {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 12rem;
  padding: 0.8rem;
  color: var(--paper);
  background: var(--accent-dark, var(--ink));
  border-radius: 8px;
}

.translation-chip {
  position: absolute;
  left: 12%;
  min-width: 7.8rem;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  background: var(--accent, var(--ink));
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1rem 2rem rgba(76, 36, 107, 0.24);
}

.translation-chip--raw {
  top: 52%;
  color: var(--lignis-dark);
  background: var(--paper);
  border: 1px solid rgba(109, 51, 153, 0.34);
}

.translation-chip--fixed {
  top: calc(52% + 3.1rem);
  left: 20%;
}

.helper-panel span,
.review-lane em {
  display: block;
  color: rgba(255, 254, 245, 0.64);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.helper-panel strong,
.review-lane strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.45rem;
  line-height: 1;
}

.console-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  height: 4rem;
  background:
    linear-gradient(90deg, var(--ink) 0 18%, transparent 18% 22%, var(--ink) 22% 62%, transparent 62%);
  border-bottom: 1px solid rgba(21, 22, 17, 0.4);
}

.policy-grid {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.policy-grid span {
  min-height: 6rem;
  background: rgba(21, 22, 17, 0.13);
  border: 1px solid rgba(21, 22, 17, 0.25);
  border-radius: 8px;
}

.policy-grid span:nth-child(2),
.policy-grid span:nth-child(3) {
  background: rgba(242, 255, 86, 0.52);
}

.review-lane {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  padding: 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.method-section {
  padding: 7rem 2rem;
  color: var(--ink);
  background: rgba(255, 254, 245, 0.82);
}

.section-heading {
  margin-bottom: 3rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(21, 22, 17, 0.22);
  border: 1px solid rgba(21, 22, 17, 0.22);
}

.method-grid article {
  min-height: 21rem;
  padding: 1.2rem;
  background: var(--paper);
}

.method-grid span {
  display: block;
  margin-bottom: 5rem;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 800;
}

.method-grid h3 {
  margin: 0 0 1rem;
  max-width: 17rem;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.method-grid p {
  margin: 0;
  color: rgba(21, 22, 17, 0.7);
  font-weight: 600;
  line-height: 1.35;
}

.site-footer {
  position: relative;
  padding: 5rem 2rem 1.5rem;
  overflow: hidden;
  color: var(--paper);
  background: var(--graphite);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-wordmark {
  display: flex;
  align-items: baseline;
  margin-top: 0;
  color: var(--lemon);
  font-size: 8.8rem;
  font-weight: 800;
  line-height: 0.78;
}

.footer-wordmark span {
  display: inline-block;
}

.js .footer-wordmark span {
  transform: translateY(110%) rotate(2deg);
  transition: transform 850ms var(--ease);
  transition-delay: calc(var(--i) * 52ms);
}

.js .site-footer.is-visible .footer-wordmark span {
  transform: translateY(0) rotate(0);
  animation: footer-float 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 140ms);
}

.footer-wordmark:hover span {
  transform: translateY(calc(var(--i) * -0.08rem - 0.4rem));
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 620ms ease,
    transform 720ms var(--ease);
}

.js .is-visible [data-reveal],
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-wipe {
  position: relative;
  overflow: hidden;
}

.js .panel-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--wipe-color, var(--lemon));
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 900ms var(--ease);
  pointer-events: none;
}

.js .panel-wipe.is-visible::after {
  transform: scaleX(0);
}

.signal-strip.panel-wipe {
  --wipe-color: var(--graphite);
}

.method-section.panel-wipe {
  --wipe-color: var(--lemon-dim);
}

.founder-stats.panel-wipe {
  --wipe-color: var(--gradient-end);
}

.sundial-page {
  color: var(--ink);
  background:
    linear-gradient(145deg, #f0f1e9 0%, #d7dbcf 58%, #b7bcae 100%);
  background-attachment: fixed;
}

.sundial-page::before {
  background-image:
    linear-gradient(rgba(21, 22, 17, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 17, 0.07) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}

.sundial-page .footer-wordmark {
  color: var(--ash);
}

.cs-hero__title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--ink);
}

.cs-hero__title h1 {
  margin: 0;
}

.sundial-mark {
  flex-shrink: 0;
  width: 6.6rem;
  height: 6.6rem;
  color: currentColor;
}

@media (max-width: 760px) {
  .sundial-mark {
    width: 4.9rem;
    height: 4.9rem;
  }
}

.cs-ledger__row--link {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(255, 254, 245, 0.06);
  border: 1px solid rgba(255, 254, 245, 0.1);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cs-ledger__row--link:hover,
.cs-ledger__row--link:focus-visible {
  background: rgba(255, 254, 245, 0.1);
  border-color: rgba(242, 255, 86, 0.45);
}

.cs-install--link {
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease;
}

.cs-install--link:hover,
.cs-install--link:focus-visible {
  transform: translateY(-2px);
}

.cs-install--link strong {
  display: block;
  width: 100%;
  padding: 0.9rem;
  color: var(--ink);
  background: var(--lemon);
  border-radius: 7px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.cs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27rem;
  gap: 3rem;
  min-height: 94vh;
  padding: 7.5rem 2rem 5rem;
}

.cs-hero.panel-wipe {
  --wipe-color: var(--graphite);
}

.cs-hero__copy {
  align-self: end;
  max-width: 70rem;
}

.cs-hero h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--ink);
  font-size: 7.8rem;
  font-weight: 800;
  line-height: 0.88;
}

.cs-hero .eyebrow {
  color: var(--graphite);
}

.cs-hero__lede {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: rgba(21, 22, 17, 0.76);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.24;
}

.cs-ledger {
  align-self: end;
  min-height: 31rem;
  padding: 1rem;
  color: var(--paper);
  background: rgba(21, 22, 17, 0.93);
  border: 1px solid rgba(255, 254, 245, 0.14);
  border-radius: 8px;
  box-shadow: 0 2rem 5rem var(--shadow);
}

.cs-ledger__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  color: var(--lemon);
  border-bottom: 1px solid rgba(255, 254, 245, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-ledger__top strong {
  color: var(--ink);
  background: var(--lemon);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  line-height: 1;
}

.cs-ledger__row {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(255, 254, 245, 0.06);
  border: 1px solid rgba(255, 254, 245, 0.1);
  border-radius: 8px;
}

.cs-ledger__row span {
  color: rgba(255, 254, 245, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-ledger__row strong {
  font-size: 1.45rem;
  line-height: 1;
}

.cs-ledger__row--gate {
  border-color: rgba(242, 255, 86, 0.5);
  box-shadow: inset 0 0 0 1px rgba(242, 255, 86, 0.16);
}

.cs-thesis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 36rem);
  gap: 2rem;
  align-items: center;
  padding: 5rem 2rem;
  color: var(--paper);
  background: var(--graphite);
}

.cs-thesis__copy {
  max-width: 48rem;
}

.cs-thesis__copy h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.98;
}

.cs-thesis__copy h2 + p {
  margin: 0.7rem 0 0;
  color: rgba(255, 254, 245, 0.72);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
}

.cs-thesis__copy p + h2 {
  margin-top: 1.8rem;
}

.cs-tree {
  width: min(100%, 36rem);
  justify-self: end;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--paper);
  background: rgba(21, 22, 17, 0.92);
  border: 1px solid rgba(242, 255, 86, 0.28);
  border-radius: 8px;
  box-shadow: 0 1.4rem 3rem rgba(21, 22, 17, 0.24);
}

.cs-tree code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre;
}

.cs-section,
.cs-start,
.cs-integrations,
.cs-principles,
.cs-design {
  padding: 7rem 2rem;
  background: rgba(255, 254, 245, 0.78);
}

.cs-section h2,
.cs-start h2,
.cs-integrations h2,
.cs-principles h2,
.cs-design h2 {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 0.96;
}

.cs-integrations {
  background: var(--lemon-wash);
}

.cs-integrations__heading {
  margin-bottom: 3rem;
}

.cs-integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(21, 22, 17, 0.2);
  border: 1px solid rgba(21, 22, 17, 0.2);
}

.cs-integration-grid article {
  min-height: 15rem;
  padding: 1rem;
  background: rgba(255, 254, 245, 0.72);
}

.cs-integration-grid span {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-integration-grid h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.cs-integration-grid p {
  margin: 0;
  color: rgba(21, 22, 17, 0.7);
  font-weight: 650;
  line-height: 1.34;
}

.cs-start {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr) minmax(18rem, 1fr);
  gap: 1px;
  align-items: stretch;
  background: rgba(21, 22, 17, 0.22);
}

.cs-start > * {
  margin: 0;
  padding: 1.2rem;
  background: var(--paper);
}

.cs-start > p {
  grid-column: 1 / -1;
  color: rgba(21, 22, 17, 0.7);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.34;
}

.cs-install {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
}

.cs-install span {
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-install code {
  display: block;
  width: 100%;
  padding: 0.9rem;
  color: var(--ink);
  background: var(--lemon);
  border-radius: 7px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cs-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(21, 22, 17, 0.22);
  border: 1px solid rgba(21, 22, 17, 0.22);
}

.cs-flow article {
  min-height: 16rem;
  padding: 1rem;
  background: var(--paper);
}

.cs-flow span {
  display: block;
  margin-bottom: 2.8rem;
  color: var(--graphite);
  font-size: 0.82rem;
  font-weight: 800;
}

.cs-flow h3 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.cs-flow p {
  margin: 0;
  color: rgba(21, 22, 17, 0.68);
  font-weight: 650;
  line-height: 1.34;
}

.cs-principles {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
}

.cs-principle-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: rgba(21, 22, 17, 0.22);
  border: 1px solid rgba(21, 22, 17, 0.22);
  list-style: none;
}

.cs-principle-list li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--paper);
}

.cs-principle-list strong {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.cs-principle-list span {
  color: rgba(21, 22, 17, 0.68);
  font-weight: 650;
  line-height: 1.32;
}

.cs-principle-list span a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cs-principle-list span a:hover,
.cs-principle-list span a:focus-visible {
  text-decoration-thickness: 2px;
}

.cs-design__heading {
  margin-bottom: 3rem;
}

.cs-design__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
  gap: 2rem;
  align-items: start;
}

.cs-design__list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: rgba(21, 22, 17, 0.22);
  border: 1px solid rgba(21, 22, 17, 0.22);
  list-style: none;
}

.cs-design__list li {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--paper);
}

.cs-design__list strong {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.cs-design__list span {
  color: rgba(21, 22, 17, 0.68);
  font-weight: 650;
  line-height: 1.32;
}

.cs-design__list code {
  padding: 0.1rem 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  font-weight: 700;
  background: rgba(21, 22, 17, 0.08);
  border-radius: 4px;
}

.cs-design__callout {
  position: sticky;
  top: 1.2rem;
  padding: 1.4rem;
  color: var(--paper);
  background: var(--graphite);
  border: 1px solid rgba(21, 22, 17, 0.24);
  border-radius: 8px;
  box-shadow: 0 1.4rem 3rem rgba(21, 22, 17, 0.2);
}

.cs-design__callout > span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--lemon);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-design__callout h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}

.cs-design__callout p {
  margin: 0 0 0.9rem;
  color: rgba(255, 254, 245, 0.78);
  font-weight: 650;
  line-height: 1.34;
}

.cs-design__callout p:last-child {
  margin-bottom: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.62);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes footer-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.18rem;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__title {
    font-size: 6rem;
  }

  .cs-hero h1 {
    font-size: 5.8rem;
  }

  .lab-signal {
    width: min(100%, 34rem);
    min-height: 22rem;
  }

  .cs-ledger {
    width: min(100%, 34rem);
    min-height: 24rem;
  }

  .portfolio-sticky {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 4.5rem;
  }

  .portfolio-intro {
    align-self: end;
  }

  .portfolio-stack {
    align-self: start;
    height: 31rem;
  }

  .portfolio-intro h2,
  .founder-stats__heading h2,
  .method-section h2,
  .cs-section h2,
  .cs-start h2,
  .cs-integrations h2,
  .cs-principles h2 {
    font-size: 2.45rem;
  }

  .cs-start {
    grid-template-columns: 1fr 1fr;
  }

  .cs-start > p {
    grid-column: 1 / -1;
  }

  .cs-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-principles {
    grid-template-columns: 1fr;
  }

  .cs-design__grid {
    grid-template-columns: 1fr;
  }

  .cs-design__callout {
    position: static;
  }

  .footer-wordmark {
    font-size: 6rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 0.85rem;
  }

  .site-nav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .hero {
    min-height: 92vh;
    padding: 6.5rem 1rem 3rem;
  }

  .cs-hero {
    min-height: 92vh;
    padding: 6.5rem 1rem 3rem;
  }

  .hero__title {
    font-size: 4.05rem;
  }

  .cs-hero h1 {
    font-size: 3.7rem;
  }

  .hero__intro {
    font-size: 1.12rem;
  }

  .cs-hero__lede {
    font-size: 1.12rem;
  }

  .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .signal-strip p {
    min-height: 7rem;
  }

  .cs-thesis {
    grid-template-columns: 1fr;
    padding: 4rem 1rem;
  }

  .cs-thesis__copy h2 {
    font-size: 1.7rem;
  }

  .cs-thesis__copy h2 + p {
    font-size: 1.02rem;
  }

  .cs-tree {
    justify-self: stretch;
    width: 100%;
  }

  .founder-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 1rem;
  }

  .founder-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .founder-stats__grid div {
    min-height: 11rem;
  }

  .founder-stats dt {
    margin-bottom: 2rem;
    font-size: 1.8rem;
  }

  .portfolio-showcase {
    height: auto;
    min-height: 0;
  }

  .portfolio-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 4rem 1rem;
  }

  .portfolio-stack {
    display: grid;
    gap: 1rem;
    height: auto;
    perspective: none;
  }

  .portfolio-card {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .portfolio-card h3 {
    margin-top: 2rem;
    font-size: 2.7rem;
  }

  .project-visual {
    min-height: 18rem;
  }

  .method-section {
    padding: 4rem 1rem;
  }

  .cs-section,
  .cs-start,
  .cs-integrations,
  .cs-principles,
  .cs-design {
    padding: 4rem 1rem;
  }

  .cs-start {
    grid-template-columns: 1fr;
  }

  .cs-start > p {
    grid-column: auto;
  }

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

  .cs-flow {
    grid-template-columns: 1fr;
  }

  .cs-integration-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: 15rem;
  }

  .cs-flow article {
    min-height: 13rem;
  }

  .cs-integration-grid article {
    min-height: 13rem;
  }

  .method-grid span {
    margin-bottom: 3rem;
  }

  .cs-flow span {
    margin-bottom: 2rem;
  }

  .cs-integration-grid span {
    margin-bottom: 2rem;
  }

  .cs-principle-list li {
    grid-template-columns: 1fr;
  }

  .cs-design__list li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 4rem 1rem 1.2rem;
  }

  .footer-wordmark {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    font-size: 3.85rem;
    letter-spacing: 0;
    line-height: 0.95;
    white-space: nowrap;
  }
}

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

  [data-reveal],
  .split-char,
  .footer-wordmark span {
    opacity: 1;
    transform: none;
  }

  .panel-wipe::after {
    display: none;
  }
}
