:root {
  color-scheme: dark;
  --ink: #f7efe0;
  --muted: #c6b99c;
  --coal: #080706;
  --charcoal: #15110d;
  --wine: #3b101d;
  --leaf: #16372f;
  --gold: #f4b83f;
  --gold-bright: #ffd76d;
  --line: rgba(247, 239, 224, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(8, 7, 6, 0.86), rgba(8, 7, 6, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--gold-bright);
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: 110px clamp(20px, 5vw, 72px) 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 47%, rgba(244, 184, 63, 0.18), transparent 34%),
    linear-gradient(135deg, #090705 0%, #16100b 44%, #2c0f1a 100%);
}

.hero-media {
  order: 2;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-media img {
  width: min(48vw, 560px);
  min-width: 330px;
  filter: drop-shadow(0 36px 80px rgba(244, 184, 63, 0.28));
  transform: rotate(-4deg);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 900px;
  font-size: clamp(4.4rem, 13vw, 11.8rem);
  line-height: 0.78;
  letter-spacing: 0;
  font-weight: 950;
}

h2 {
  font-size: clamp(2.25rem, 6vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
}

.hero-line {
  max-width: 690px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.1vw, 2rem);
  font-style: italic;
  line-height: 1.26;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.chat-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.chat-form button {
  color: #171008;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.intro-band,
.evolution,
.manifesto,
.origin,
.practice,
.chat-section,
footer {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 86px);
  padding-top: clamp(42px, 7vw, 92px);
  padding-bottom: clamp(42px, 7vw, 92px);
  background: var(--ink);
  color: #17110c;
}

.intro-band p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.evolution {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(70px, 9vw, 130px);
  padding-bottom: clamp(70px, 9vw, 130px);
  background:
    radial-gradient(circle at 82% 25%, rgba(255, 215, 109, 0.16), transparent 30%),
    linear-gradient(135deg, #100b08 0%, #24110a 48%, #101f1b 100%);
}

.evolution-copy {
  max-width: 620px;
}

.evolution-copy h2 {
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.evolution-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.evolution-path {
  counter-reset: stage;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.evolution-path article {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.evolution-path article::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 86px;
  height: 2px;
  background: rgba(247, 239, 224, 0.4);
  transform: rotate(-2deg);
}

.evolution-path article::after {
  content: ">";
  position: absolute;
  top: 104px;
  right: 18px;
  color: rgba(247, 239, 224, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  transform: rotate(16deg);
}

.evolution-path article:nth-child(2) {
  transform: translateY(26px);
}

.evolution-path article:nth-child(3) {
  transform: translateY(-18px);
}

.evolution-path span {
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--gold-bright);
  font-weight: 900;
}

.evolution-path h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

.evolution-path p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.evolution-path .unlocked {
  color: #171008;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  box-shadow: 0 24px 70px rgba(244, 184, 63, 0.28);
}

.evolution-path .unlocked::before {
  background: rgba(23, 16, 8, 0.5);
}

.evolution-path .unlocked::after,
.evolution-path .unlocked span,
.evolution-path .unlocked p {
  color: #171008;
}

.manifesto {
  padding-top: clamp(70px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 150px);
  background:
    linear-gradient(180deg, rgba(21, 17, 13, 0.94), rgba(8, 7, 6, 1)),
    var(--charcoal);
}

.manifesto h2 {
  max-width: 980px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.manifesto-grid article {
  min-height: 340px;
  padding: clamp(24px, 3vw, 38px);
  background: #120f0c;
}

.manifesto-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--gold-bright);
  font-weight: 900;
}

.manifesto-grid p,
.origin p,
.practice-list p,
.chat-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.origin {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  padding-top: clamp(62px, 8vw, 110px);
  padding-bottom: clamp(62px, 8vw, 110px);
  background: linear-gradient(110deg, var(--leaf), #0a1210 72%);
}

.origin h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.origin strong {
  color: var(--gold-bright);
}

.practice {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(70px, 10vw, 140px);
  padding-bottom: clamp(70px, 10vw, 140px);
  background: #f2ebde;
  color: #17110c;
}

.practice .section-kicker {
  color: #8d5300;
}

.practice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(23, 17, 12, 0.18);
  border-left: 1px solid rgba(23, 17, 12, 0.18);
}

.practice-list div {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid rgba(23, 17, 12, 0.18);
  border-bottom: 1px solid rgba(23, 17, 12, 0.18);
}

.practice-list p {
  color: #5a4b3d;
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(320px, 0.94fr);
  gap: clamp(32px, 6vw, 94px);
  align-items: center;
  padding-top: clamp(70px, 10vw, 140px);
  padding-bottom: clamp(70px, 10vw, 140px);
  background:
    radial-gradient(circle at 12% 25%, rgba(244, 184, 63, 0.15), transparent 32%),
    linear-gradient(140deg, #080706, var(--wine));
}

.chat-copy h2 {
  max-width: 640px;
}

.chat-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 8, 7, 0.78);
  box-shadow: var(--shadow);
}

.chat-log {
  height: 430px;
  overflow-y: auto;
  padding: 18px;
}

.message {
  width: min(88%, 440px);
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.message.user {
  margin-left: auto;
  background: rgba(244, 184, 63, 0.16);
}

.message strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.chat-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
}

.chat-form input::placeholder {
  color: rgba(247, 239, 224, 0.5);
}

.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;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  background: var(--coal);
  color: var(--muted);
}

footer p {
  margin: 0;
  font-weight: 900;
  color: var(--ink);
}

footer a {
  color: var(--gold-bright);
  text-decoration: none;
}

@media (max-width: 940px) {
  .hero,
  .origin,
  .evolution,
  .practice,
  .chat-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 0;
    min-height: 330px;
    margin-top: 8px;
  }

  .hero-media img {
    width: min(86vw, 460px);
    min-width: 250px;
  }

  .manifesto-grid,
  .intro-band,
  .practice-list,
  .evolution-path {
    grid-template-columns: 1fr;
  }

  .manifesto-grid article,
  .practice-list div {
    min-height: auto;
  }

  .evolution-path article {
    min-height: 250px;
  }

  .evolution-path article:nth-child(2),
  .evolution-path article:nth-child(3) {
    transform: none;
  }

  .manifesto-grid span {
    margin-bottom: 34px;
  }
}

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

  .brand span {
    display: none;
  }

  nav {
    gap: 10px;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 92px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.2rem);
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }

  footer {
    display: block;
  }
}
