:root {
  --ink: #16110e;
  --ink-2: #221a15;
  --paper: #f7f2ea;
  --paper-2: #efe7db;
  --line: #ddd2c2;
  --text: #2a211b;
  --muted: #6d6055;
  --mars: #c2410c;
  --mars-bright: #f0703a;
  --on-dark: #f3ebe0;
  --on-dark-muted: #b3a595;
  --line-dark: #3a2e26;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mars-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mars);
  margin-bottom: 18px;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h1 em { font-style: italic; color: var(--mars-bright); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  background: var(--mars); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--mars);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: #a8370a; border-color: #a8370a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--on-dark-muted); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-large { padding: 18px 34px; font-size: clamp(18px, 2.4vw, 24px); font-family: var(--serif); font-weight: 500; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,17,14,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; color: var(--mars-bright); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--on-dark-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--on-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--on-dark); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 110px) 0 0; }
.hero-orb {
  position: absolute; right: -180px; top: -220px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(240,112,58,.55), rgba(194,65,12,.28) 38%, rgba(194,65,12,0) 68%);
  filter: blur(10px); pointer-events: none;
}
.hero-orb.small { right: auto; left: 50%; top: auto; bottom: -460px; transform: translateX(-50%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: var(--mars-bright); }
.hero .lede { color: var(--on-dark-muted); margin-top: 26px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-figure {
  background: rgba(34,26,21,.82); border: 1px solid var(--line-dark); border-radius: 18px;
  padding: 20px 20px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.figure-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); margin-bottom: 8px; }
.tag { border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure .grid line { stroke: var(--line-dark); stroke-dasharray: 2 5; }
.hero-figure .axis { stroke: #5a4a3e; }
.hero-figure .band { fill: rgba(240,112,58,.13); }
.hero-figure .curve { fill: none; stroke: var(--mars-bright); stroke-width: 3; stroke-linecap: round; }
.hero-figure .dots circle { fill: var(--on-dark-muted); opacity: .75; }
.hero-figure .marker { stroke: var(--mars-bright); stroke-dasharray: 4 4; }
.hero-figure .marker.muted { stroke: #7a695b; }
.hero-figure .marker-dot { fill: var(--ink); stroke: var(--mars-bright); stroke-width: 3; }
.hero-figure .marker-dot.muted { stroke: #9b8a7b; }
.hero-figure .lbl { font-family: var(--mono); font-size: 11px; fill: var(--on-dark-muted); }
.hero-figure .lbl.accent { fill: var(--mars-bright); }
.hero-figure figcaption { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.js .hero-figure .curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s .3s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-strip {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: clamp(48px, 7vw, 88px); padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hero-strip li::before { content: "●"; color: var(--mars-bright); font-size: 8px; margin-right: 10px; vertical-align: 2px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark .eyebrow { color: var(--mars-bright); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 + p { margin-top: 20px; color: var(--muted); font-size: 18px; }
.section.dark .section-head h2 + p { color: var(--on-dark-muted); }

.intro { padding-bottom: 0; }
.statement { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.28; letter-spacing: -0.01em; text-wrap: pretty; }
.statement.dim { color: var(--mars); margin-top: 1em; }

/* Practices */
.practice { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.practice-label .num { font-family: var(--mono); font-size: 13px; color: var(--mars); }
.practice-label h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; margin: 6px 0 12px; letter-spacing: -0.02em; }
.practice-label p { color: var(--muted); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards-wide { grid-template-columns: 1fr; }
.card {
  background: #fffdf9; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 24px;
  display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--mars); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(60,35,15,.09); }
.card h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card ul { margin-top: auto; padding-top: 20px; font-size: 14.5px; }
.card li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--line); }
.card li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--mars); }
.card-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--ink); color: var(--on-dark); border-color: var(--ink); padding: clamp(26px, 3.4vw, 40px); }
.card-feature h4 { font-size: 28px; }
.card-feature p { color: var(--on-dark-muted); font-size: 17px; }
.card-feature ul { margin-top: 0; padding-top: 0; font-size: 15.5px; }
.card-feature li { border-color: var(--line-dark); }
.card-feature li:first-child { border-top: 0; }
.card-feature li::before { background: var(--mars-bright); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.steps li { padding: 30px 28px 8px 0; border-right: 1px solid var(--line-dark); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; padding-right: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mars-bright); color: var(--mars-bright); font-family: var(--mono); font-size: 13px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 20px 0 10px; }
.steps p { color: var(--on-dark-muted); font-size: 15.5px; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.principles > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.principles dd { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: 21px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--mars); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; font-size: 16px; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); text-align: center; }
.contact .wrap { position: relative; }
.contact .eyebrow { color: var(--mars-bright); }
.contact .lede { color: var(--on-dark-muted); margin: 24px auto 40px; max-width: 34em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding: 32px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .brand { color: var(--on-dark); font-size: 19px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--on-dark); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1140px) {
  .practice { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-wide { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li, .steps li + li { padding: 28px 24px 28px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .split { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principles > div { grid-template-columns: 1fr; gap: 6px; }
  .hero-orb { width: 480px; height: 480px; right: -220px; top: -180px; }
  .faq details p { padding-right: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-figure .curve { animation: none; stroke-dashoffset: 0; }
  .btn, .card { transition: none; }
}
