:root {
  --navy: #1A3A5C;
  --slate: #4A6FA5;
  --ink: #080808;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --gold: #4DB8E8;
  --gold-glow: #A6E0F8;
  --body-dark: rgba(255,255,255,0.82);
  --body-light: #2A3440;
  --peace: #0E2B31;
  --knowing: #0F1A31;
  --power: #120A0E;
  --power-accent: #9E2B3E;
  --gem-01: #9716C9; --gem-01-glow: #DF68FF;
  --gem-02: #D71937; --gem-02-glow: #FF4F67;
  --gem-03: #E54B26; --gem-03-glow: #FF7A52;
  --gem-04: #F39A22; --gem-04-glow: #FFC05A;
  --gem-05: #D5A221; --gem-05-glow: #FFD35C;
  --gem-06: #FFE23A; --gem-06-glow: #FFF47C;
  --gem-07: #A8D64F; --gem-07-glow: #D6FF82;
  --gem-08: #25B45F; --gem-08-glow: #5BF09A;
  --gem-09: #14A99F; --gem-09-glow: #5EECE2;
  --gem-10: #2687E8; --gem-10-glow: #72B7FF;
  --gem-11: #205BC9; --gem-11-glow: #73A0FF;
  --gem-12: #2F4BD3; --gem-12-glow: #89A2FF;
}

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

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--body-dark);
  font: 400 1.125rem/1.7 Inter, sans-serif;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

p {
  max-width: 62ch;
  margin: 0;
}

p + p {
  margin-top: 1.1rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font: 600 clamp(2.75rem, 6vw, 4.75rem)/1.05 "Playfair Display", serif;
  letter-spacing: -0.01em;
}

h2 {
  font: 600 clamp(2rem, 4vw, 3rem)/1.15 "Playfair Display", serif;
}

h3 {
  font: 500 1.5rem/1.3 "Playfair Display", serif;
}

strong {
  color: inherit;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--slate);
  font: 600 0.8125rem/1 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dark-eyebrow,
section.knowing .eyebrow,
section.deep .eyebrow,
section.navy .eyebrow,
section.power .eyebrow,
section.peace .eyebrow {
  color: var(--gold);
}

.eyebrow-line {
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold);
  opacity: 0.65;
}

.eyebrow-dot {
  width: var(--dot-size, 7px);
  height: var(--dot-size, 7px);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot-color, var(--gold));
  box-shadow: 0 0 18px color-mix(in srgb, var(--dot-color, var(--gold)) 70%, transparent);
}

.caption {
  font-size: 0.875rem;
  opacity: 0.7;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

section {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vh, 160px) 0;
}

section.peace {
  background: linear-gradient(180deg, var(--peace) 0%, var(--ink) 100%);
  color: var(--body-dark);
}

section.knowing {
  background: linear-gradient(180deg, var(--knowing) 0%, var(--ink) 100%);
  color: var(--body-dark);
}

section.light {
  background: var(--paper);
  color: var(--body-light);
}

section.deep {
  background: var(--ink);
  color: var(--body-dark);
}

section.navy {
  background: var(--navy);
  color: var(--body-dark);
}

section.power {
  background: linear-gradient(180deg, var(--power) 0%, var(--ink) 100%);
  color: var(--body-dark);
}

section.light h1,
section.light h2,
section.light h3 {
  color: var(--navy);
}

section.peace h1,
section.peace h2,
section.peace h3,
section.knowing h1,
section.knowing h2,
section.knowing h3,
section.deep h1,
section.deep h2,
section.deep h3,
section.navy h1,
section.navy h2,
section.navy h3,
section.power h1,
section.power h2,
section.power h3 {
  color: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(8, 8, 8, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
}

.nav__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.nav__brand::after {
  content: "Brook Ecosystems";
  color: var(--white);
  font: 600 1.05rem/1.1 "Playfair Display", serif;
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links a {
  color: var(--white);
  font: 500 0.9375rem/1 Inter, sans-serif;
  opacity: 0.86;
  transition: color .2s ease, opacity .2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--gold);
  opacity: 1;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 2px;
  padding: 16px 32px;
  font: 600 1rem/1 Inter, sans-serif;
  transition: all .25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(77,184,232,0.25);
}

.btn:focus-visible,
.text-link:focus-visible,
.nav__links a:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--gold-glow);
  outline-offset: 4px;
}

section.power .btn:hover {
  transform: none;
  box-shadow: 0 0 0 1px var(--power-accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  color: var(--slate);
  font: 500 1rem/1.2 Inter, sans-serif;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

section.deep .text-link,
section.knowing .text-link,
section.navy .text-link,
section.power .text-link,
section.peace .text-link {
  color: var(--gold-glow);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.masthead {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding-top: clamp(136px, 18vh, 190px);
}

.home-masthead {
  min-height: 100vh;
  padding-bottom: clamp(140px, 20vh, 220px);
}

.masthead__copy {
  max-width: 820px;
}

.subheadline {
  margin-top: 24px;
  font-size: 1.375rem;
  line-height: 1.55;
}

.tagline {
  margin-top: 10px;
  font-style: italic;
  opacity: 0.85;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}

.heb {
  pointer-events: none;
  user-select: none;
}

.heb-aleph {
  position: absolute;
  top: -10%;
  right: 5%;
  z-index: 0;
  color: var(--gold);
  font: 300 48vw/1 "Frank Ruhl Libre", serif;
  opacity: 0.04;
}

.home-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 200vw;
  height: 120px;
  opacity: 1;
}

.home-wave .wave-track {
  animation: waveDrift 20s linear infinite;
}

@keyframes waveDrift {
  to { transform: translateX(-50%); }
}

.glow {
  position: relative;
  z-index: 0;
}

.glow::before {
  content: "";
  position: absolute;
  inset: -60px -120px;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--glow-color) 0%, transparent 65%);
  opacity: 0.10;
  filter: blur(40px);
}

.section-copy {
  max-width: 720px;
}

.section-copy h2 + p,
.section-copy h3 + p {
  margin-top: 26px;
}

.section-copy .btn {
  margin-top: 34px;
}

.center-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.center-copy p {
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

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

.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(26,58,92,0.12);
  border-radius: 8px;
  padding: 24px;
  color: var(--body-light);
}

.card h3 {
  color: var(--navy);
}

.tier-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tier-card:hover {
  border-color: var(--tier-color, var(--gold));
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(26,58,92,0.12), 0 0 0 1px color-mix(in srgb, var(--tier-color, var(--gold)) 55%, transparent);
}

.tier-title,
.team-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tier-title .eyebrow-dot {
  margin-top: 9px;
}

.tier-card .italic {
  margin-top: 16px;
  color: var(--navy);
  font: 600 italic 1.125rem/1.45 "Playfair Display", serif;
}

.tier-card p {
  margin-top: 18px;
}

.price-line {
  margin-top: 22px;
  color: var(--navy);
  font-weight: 600;
}

.price-line span,
.pricing-card strong {
  color: var(--gold);
}

.team-card p {
  margin-top: 18px;
}

.wheel-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(70vh, 640px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(255,244,220,0.06) 0%, transparent 60%);
  filter: blur(30px);
}

.wheel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: spin 90s linear infinite;
}

.partial-wheel .wheel {
  animation-duration: 240s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.wheel-copy {
  max-width: 40ch;
  margin: 38px auto 0;
  color: var(--white);
  font: 600 italic 1.375rem/1.45 "Playfair Display", serif;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.numbered-step {
  position: relative;
  min-height: 260px;
  padding: 48px 28px 28px;
}

.numbered-step::before {
  content: attr(data-step);
  position: absolute;
  top: -18px;
  left: 18px;
  color: var(--gold);
  font: 600 9rem/1 "Playfair Display", serif;
  opacity: 0.2;
}

.numbered-step h3,
.numbered-step h2,
.numbered-step p {
  position: relative;
}

.numbered-step p {
  margin-top: 18px;
}

.power-line {
  width: 60px;
  height: 2px;
  margin: 26px 0 28px;
  background: var(--power-accent);
}

.pricing-card {
  max-width: 640px;
  margin: 42px auto 0;
  text-align: center;
}

.pricing-card p {
  margin-inline: auto;
}

.pricing-card.card .pricing-lines {
  color: var(--navy);
}

.pricing-card.card .caption {
  color: var(--body-light);
}

.pricing-lines {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-size: 1.2rem;
}

section.light .pricing-lines {
  color: var(--navy);
}

.pricing-card .caption {
  margin-top: 22px;
}

.ecosystem-pricing {
  max-width: 760px;
}

.ecosystem-hairline {
  width: min(760px, 100%);
  height: 1px;
  margin: 16px auto 0;
  background: var(--gem-07);
}

.dash-list {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.dash-list li {
  position: relative;
  padding-left: 36px;
}

.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.arc-wrap {
  max-width: 520px;
  margin: 52px auto 0;
  text-align: center;
}

.arc-wrap figcaption {
  margin-top: 18px;
  color: var(--navy);
  font: 600 italic 1.125rem/1.45 "Playfair Display", serif;
}

.framework-section {
  min-height: 78vh;
}

.partial-wheel {
  position: absolute;
  right: -55%;
  top: 50%;
  width: 120vh;
  opacity: 0.4;
  pointer-events: none;
  transform: translateY(-50%);
}

.web-graph {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: min(1200px, 140vw);
  transform: translate(-50%, -50%);
}

.web-graph line {
  stroke: #FFFFFF;
  stroke-opacity: 0.04;
  stroke-width: 1;
}

.web-graph circle {
  fill: #FFFFFF;
  fill-opacity: 0.06;
}

.process-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.process-wrap section.light {
  background: transparent;
}

.lattice {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: min(80vw, 900px);
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: spin 240s linear infinite;
}

.lattice line {
  stroke: var(--navy);
  stroke-opacity: 0.07;
}

.lattice circle {
  fill: var(--navy);
  fill-opacity: 0.1;
}

.contact-card {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.contact-email {
  margin: 20px auto 28px;
  color: var(--navy);
  font: 500 1.5rem/1.3 "Playfair Display", serif;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(74,111,165,0.2);
  padding: 68px 0;
  color: var(--body-dark);
}

.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.footer-tagline {
  color: var(--white);
  font: 600 italic 1.25rem/1.45 "Playfair Display", serif;
}

.footer-contact {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--white);
  font: 500 0.9375rem/1 Inter, sans-serif;
}

.footer-links a:hover,
.footer-contact:hover {
  color: var(--gold-glow);
}

.heb-tav {
  position: absolute;
  right: -1vw;
  bottom: -6vw;
  color: var(--gold);
  font: 300 20vw/0.8 "Frank Ruhl Libre", serif;
  opacity: 0.03;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

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

section.peace .reveal {
  transition-duration: .9s;
}

section.joy .reveal {
  transition-duration: .45s;
}

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

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
section.knowing .d1 { transition-delay: .15s; }
section.knowing .d2 { transition-delay: .3s; }
section.knowing .d3 { transition-delay: .45s; }
section.knowing .d4 { transition-delay: .6s; }

@media (max-width: 1023px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    inset: 72px 0 auto;
    display: grid;
    gap: 22px;
    width: 100%;
    padding: 24px 20px 28px;
    background: rgba(8,8,8,0.96);
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links {
    display: grid;
    gap: 18px;
  }

  .two-col,
  .three-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .wheel-wrap {
    width: min(60vw, 480px);
  }

  .heb-aleph {
    font-size: 60vw;
  }

  .heb-tav {
    font-size: 30vw;
  }

  .partial-wheel {
    right: -72%;
    width: 100vh;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  section {
    padding: 72px 0;
  }

  .masthead {
    min-height: auto;
    padding-top: 128px;
  }

  .home-masthead {
    min-height: 100vh;
    padding-bottom: 112px;
  }

  .subheadline {
    font-size: 1.125rem;
  }

  .nav__cta {
    display: none;
  }

  .nav__brand img {
    width: 40px;
  }

  .cta-row {
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .home-wave {
    height: 80px;
  }

  .wheel-wrap {
    width: min(80vw, 400px);
  }

  .card {
    padding: 24px 20px;
  }

  .pricing-card,
  .contact-card {
    width: calc(100% - 32px);
  }

  .partial-wheel {
    right: -118%;
    width: 88vh;
    opacity: 0.25;
  }

  .footer-inner {
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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