:root {
  --night: #0f1b17;
  --forest: #173227;
  --forest-soft: #234438;
  --espresso: #2c211a;
  --copper: #b98257;
  --sand: #d3b98e;
  --sage: #8ea89b;
  --steel: #6f7f82;
  --paper: #f4efe5;
  --paper-deep: #e9dfcf;
  --white: #fffdf8;
  --ink: #17211d;
  --muted: #59645f;
  --line: rgba(23, 33, 29, 0.16);
  --line-dark: rgba(255, 253, 248, 0.16);
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(15, 27, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 27, 23, 0.06), transparent 320px),
    var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid rgba(185, 130, 87, 0.82);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--night);
  border-radius: var(--radius);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--white);
  background: rgba(15, 27, 23, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 226px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 253, 248, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.06);
  color: var(--white);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: 4.55rem;
  font-weight: 850;
}

h2 {
  font-size: 2.35rem;
  font-weight: 820;
}

h3 {
  font-size: 1.18rem;
  font-weight: 820;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--eyebrow-color, var(--forest));
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.16rem;
}

.lead-muted {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--night);
  background: var(--sand);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.26);
  background: rgba(255, 253, 248, 0.07);
}

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

.button-light {
  color: var(--night);
  background: var(--white);
}

.hero {
  --eyebrow-color: var(--sand);
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 27, 23, 0.98), rgba(23, 50, 39, 0.96) 52%, rgba(44, 33, 26, 0.98)),
    var(--night);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 253, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 248, 0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 54px;
  align-items: center;
  min-height: 660px;
  padding: 78px 0 92px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(255, 253, 248, 0.74);
  font-weight: 800;
}

.hero-kicker::before {
  width: 36px;
  height: 1px;
  background: var(--copper);
  content: "";
}

.system-visual {
  position: relative;
  min-height: 510px;
  padding: 20px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.12), rgba(255, 253, 248, 0.04)),
    rgba(15, 27, 23, 0.5);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}

.system-visual > img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.system-card {
  position: absolute;
  width: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.09);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.system-card strong,
.system-card span {
  display: block;
}

.system-card strong {
  color: var(--white);
}

.system-card span {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.88rem;
}

.system-card em {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sand), rgba(142, 168, 155, 0.25));
}

.system-card:nth-of-type(1) {
  top: 38px;
  right: 28px;
}

.system-card:nth-of-type(2) {
  left: 24px;
  bottom: 80px;
}

.system-card:nth-of-type(3) {
  right: 40px;
  bottom: 26px;
}

.proof-strip {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--espresso), var(--forest));
  box-shadow: var(--shadow);
}

.proof-item {
  padding: 24px;
  border-right: 1px solid rgba(255, 253, 248, 0.14);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  font-size: 1rem;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.72);
}

.section {
  padding: 76px 0;
}

.section-muted {
  background: var(--paper-deep);
}

.section-dark {
  --eyebrow-color: var(--sand);
  color: var(--white);
  background:
    linear-gradient(135deg, var(--night), var(--forest) 58%, var(--espresso)),
    var(--night);
}

.section-tight {
  padding: 62px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.section-dark .section-head p:not(.eyebrow),
.section-dark .note-card p,
.section-dark .rich-list li {
  color: rgba(255, 253, 248, 0.74);
}

.problem-grid,
.method-grid,
.module-grid,
.situation-grid,
.split-grid,
.resource-grid,
.legal-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.situation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 38px;
}

.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-grid {
  grid-template-columns: minmax(0, 1fr);
}

.problem-card,
.step-card,
.module-card,
.situation-card,
.note-card,
.quote-card,
.resource-card,
.legal-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.problem-card,
.step-card,
.module-card,
.situation-card,
.note-card,
.quote-card,
.resource-card {
  padding: 24px;
}

.hover-panel {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hover-panel::after {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(185, 130, 87, 0.16), transparent 34%);
  content: "";
  transition: opacity 180ms ease;
}

.hover-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 130, 87, 0.48);
  box-shadow: 0 18px 54px rgba(15, 27, 23, 0.13);
}

.hover-panel:hover::after {
  opacity: 1;
}

.problem-card span,
.module-card span,
.situation-card span,
.resource-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.problem-card p,
.module-card p,
.situation-card p,
.step-card p,
.note-card p,
.quote-card p,
.resource-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.step-card {
  min-height: 254px;
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.16);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--sand);
  font-weight: 900;
}

.step-card p {
  color: rgba(255, 253, 248, 0.7);
}

.module-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
}

.module-card a,
.resource-card a {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--forest);
  font-weight: 850;
}

.situation-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.situation-card li,
.rich-list li {
  position: relative;
  padding-left: 25px;
}

.situation-card li::before,
.rich-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--copper);
  content: "";
}

.page-hero {
  --eyebrow-color: var(--sand);
  position: relative;
  overflow: hidden;
  padding: 92px 0 82px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 27, 23, 0.98), rgba(23, 50, 39, 0.96) 54%, rgba(44, 33, 26, 0.98)),
    var(--night);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 253, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 248, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  opacity: 0.7;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 50px;
  align-items: center;
}

.page-signal {
  min-height: 300px;
  padding: 20px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.07);
}

.signal-label {
  color: rgba(255, 253, 248, 0.72);
  font-weight: 850;
}

.signal-radar {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 18px auto 12px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 999px;
}

.signal-radar::before,
.signal-radar::after {
  position: absolute;
  inset: 31px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: inherit;
  content: "";
}

.signal-radar::after {
  inset: 70px;
  background: rgba(185, 130, 87, 0.16);
}

.signal-radar i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--sand);
}

.signal-radar i:nth-child(1) { left: 40px; top: 48px; }
.signal-radar i:nth-child(2) { right: 42px; top: 72px; background: var(--sage); }
.signal-radar i:nth-child(3) { left: 86px; bottom: 35px; }
.signal-radar i:nth-child(4) { right: 72px; bottom: 72px; background: var(--sage); }

.signal-stack {
  display: grid;
  gap: 8px;
}

.signal-stack span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 253, 248, 0.76);
  background: rgba(255, 253, 248, 0.06);
}

.rich-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list-spaced {
  margin-top: 28px;
}

.principle-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.principle-list strong {
  display: block;
  margin-bottom: 5px;
}

.principle-list span {
  color: var(--muted);
}

.team-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.team-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}

.contact-panel {
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-copy {
  margin-top: 16px;
  color: var(--muted);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-weight: 850;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(23, 33, 29, 0.3);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

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

.form-help {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card {
  padding: 28px;
  background: var(--white);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-card a {
  color: var(--forest);
}

.small-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--copper);
  color: var(--muted);
  background: rgba(185, 130, 87, 0.12);
}

.cta-band {
  --eyebrow-color: var(--sand);
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--espresso), var(--forest));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 10px;
  color: rgba(255, 253, 248, 0.76);
}

.site-footer {
  padding: 56px 0 26px;
  color: rgba(255, 253, 248, 0.72);
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.45fr) minmax(190px, 0.55fr) minmax(150px, 0.45fr);
  gap: 34px;
}

.footer-brand img {
  width: 226px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 18px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  color: inherit;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  font-size: 0.92rem;
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-grid,
  .page-hero-grid,
  .proof-grid,
  .problem-grid,
  .method-grid,
  .module-grid,
  .situation-grid,
  .split-grid,
  .resource-grid,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-visual,
  .page-signal {
    max-width: 620px;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 194px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px;
    background: rgba(15, 27, 23, 0.98);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 52px;
    padding: 0 14px;
  }

  .hero-grid {
    min-height: auto;
    padding: 58px 0 74px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .lead,
  .lead-muted {
    font-size: 1.04rem;
  }

  .section,
  .page-hero {
    padding: 50px 0;
  }

  .section-tight {
    padding: 42px 0;
  }

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

  .system-visual {
    min-height: 384px;
    padding: 14px;
  }

  .system-card {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .page-signal {
    display: none;
  }

  .cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-row .contact-phone {
    width: 100%;
  }
}

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

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

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

  .hover-panel:hover,
  .button:hover {
    transform: none;
  }
}
