:root {
  --sand: #9d937c;
  --sand-soft: #cfc6b4;
  --cream: #f6f3ec;
  --ink: #111111;
  --coal: #21201c;
  --white: #ffffff;
  --muted: rgba(17, 17, 17, 0.66);
  --muted-light: rgba(255, 255, 255, 0.7);
  --line: rgba(17, 17, 17, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --max: 1240px;
  --anchor-offset: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

body::selection {
  background: rgba(157, 147, 124, 0.3);
}

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

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

.topbar {
  padding: 18px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav a {
  color: rgba(17, 17, 17, 0.74);
  position: relative;
  padding-bottom: 2px;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  opacity: 0.7;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding: 0;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 78vh;
}

.hero-copy {
  padding: 54px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.62);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 17, 0.56);
}

.principles .section-kicker,
.footer .section-kicker {
  color: rgba(255, 255, 255, 0.52);
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-align: left;
}

h1 {
  max-width: 9.8ch;
  font-size: clamp(3.9rem, 10vw, 8.3rem);
}

.hero-copy p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button-dark {
  background: var(--coal);
  color: var(--white);
}

.button-light {
  background: var(--sand);
  color: var(--ink);
}

.hero-side {
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 0 0 36px;
  margin-left: 40px;
  position: relative;
}

.hero-side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17, 17, 17, 0.16);
}

.hero-side-top {
  padding: 24px 34px 34px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.hero-side-top h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-side-top p {
  color: rgba(17, 17, 17, 0.72);
  max-width: 34ch;
}

.hero-side-bottom {
  display: grid;
  gap: 0;
}

.signal {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 18px 34px 18px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.signal strong {
  font-size: 1.1rem;
  color: var(--coal);
}

.signal span {
  color: rgba(17, 17, 17, 0.72);
}

.section {
  padding: 0;
}

.section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.section-block {
  padding: 72px 0 58px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 36px;
  row-gap: 10px;
  align-items: start;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.section-head .section-kicker {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-bottom: 0;
}

.section-head h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  max-width: 10ch;
  justify-self: start;
  align-self: start;
}

.section-head p {
  grid-column: 2;
  grid-row: 2;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1rem;
}

.products {
  background: var(--white);
}

.products-list {
  display: grid;
  padding-top: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 140px 240px 1fr 240px;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-state {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.56);
  padding-top: 4px;
}

.product-row h3 {
  font-size: 2rem;
  line-height: 0.96;
  max-width: none;
}

.product-row p {
  color: var(--muted);
  max-width: 56ch;
}

.product-meta {
  display: grid;
  gap: 6px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.92rem;
  align-content: start;
}

.product-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.product-cta {
  display: grid;
  gap: 6px;
  align-content: start;
  align-self: start;
}

.product-cta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
}

.product-cta-meta {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-cta:not(.product-cta-muted) .product-cta-meta {
  color: var(--coal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.product-cta-muted .product-cta-meta {
  color: rgba(17, 17, 17, 0.52);
}

.product-url {
  display: inline-block;
  font-weight: 700;
  color: var(--coal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.product-url.dim {
  color: rgba(17, 17, 17, 0.52);
  text-decoration: none;
}

.principles {
  background: var(--coal);
  color: var(--white);
}

.principles .section-head {
  border-bottom-color: var(--line-dark);
}

.principles .section-head p {
  color: var(--muted-light);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding-top: 20px;
  align-items: start;
}

.principle {
  padding: 30px 0 0 26px;
  border-left: 1px solid var(--line-dark);
  margin-top: 0;
  min-height: 240px;
}

.principle:first-child {
  padding-left: 0;
  border-left: 0;
}

.principle:last-child {
  padding-right: 0;
}

.principle-index {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.principle h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  max-width: none;
  line-height: 0.96;
  text-align: left;
}

.principle p {
  color: var(--muted-light);
  max-width: 30ch;
}

.system {
  background: var(--sand);
  color: var(--ink);
}

.system .section-head {
  border-bottom-color: rgba(17, 17, 17, 0.16);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 20px;
}

.system-step {
  padding-right: 28px;
}

.system-step span {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.56);
}

.system-step h3 {
  font-size: 2.1rem;
  margin-bottom: 12px;
  max-width: none;
  line-height: 0.96;
}

.system-step p {
  color: rgba(17, 17, 17, 0.72);
  max-width: 32ch;
}

.legal-hero .section-block {
  padding-bottom: 36px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding-top: 26px;
}

.legal-block {
  max-width: 860px;
}

.legal-block h3 {
  font-size: 1.9rem;
  line-height: 0.96;
  margin-bottom: 12px;
}

.legal-block p,
.legal-list {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1rem;
}

.legal-block a {
  color: var(--coal);
  font-weight: 700;
}

.legal-list {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-updated {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(17, 17, 17, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.principles .legal-updated,
.footer .legal-updated {
  color: rgba(255, 255, 255, 0.58);
}

.footer {
  background: var(--coal);
  color: var(--white);
  padding: 46px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 9ch;
  margin-bottom: 12px;
  line-height: 0.94;
}

.footer-copy p {
  max-width: 42ch;
  color: var(--muted-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 6px;
}

.footer-links a {
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-links a:hover {
  color: var(--sand-soft);
  transform: translateX(4px);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav a::after,
  .footer-links a,
  .button {
    transition: none;
  }
}

@media (max-width: 1060px) {
  .hero-grid,
  .section-head,
  .footer-grid,
  .principles-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    margin-left: 0;
    padding-left: 0;
  }

  .hero-side::before {
    display: none;
  }

  .hero-side-top,
  .signal {
    padding-right: 0;
  }

  .principle {
    border-right: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
    padding: 28px 0 0;
    min-height: auto;
  }

  .principle:first-child {
    border-top: 0;
    margin-top: 0;
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-head .section-kicker,
  .section-head h2,
  .section-head p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 112px;
  }

  .topbar .shell,
  .nav,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-side-top {
    padding-top: 32px;
  }

  .hero-copy {
    padding-bottom: 28px;
  }

  h1 {
    max-width: 11ch;
  }

  .signal {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
