:root {
  --forest-950: #06100d;
  --forest-900: #0d211a;
  --forest-800: #163529;
  --forest-700: #5f9878;
  --moss: #c7d886;
  --lichen: #ece7bf;
  --bark: #c88768;
  --fog: #c6d1cb;
  --cream: #f1f0e7;
  --ink: #eef0e7;
  --muted: #aab6ae;
  --rule: rgba(238, 240, 231, 0.2);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 3rem));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--forest-950);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

main > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

main > section#alpha {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.site-footer { scroll-snap-align: end; scroll-snap-stop: normal; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 5px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: var(--shell);
  margin-inline: auto;
  padding-block: 1.6rem;
  color: var(--cream);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__mark {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
  font-size: 0.85rem;
}

.site-nav a,
.site-header__entry {
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-header__entry:hover { opacity: 1; }

.site-header__entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(241, 240, 231, 0.45);
  font-size: 0.85rem;
}

.site-header__entry svg,
.button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(850px, 100svh);
  padding-block: 9rem 7rem;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -1;
  background: var(--forest-900) url("/media/cloud-forest-hero.png") center / cover no-repeat;
  background-attachment: fixed;
}

.hero__veil {
  background: linear-gradient(90deg, rgba(3, 13, 9, 0.78) 0%, rgba(3, 13, 9, 0.38) 45%, rgba(3, 13, 9, 0.12) 100%), linear-gradient(0deg, rgba(3, 13, 9, 0.72), transparent 56%);
}

.hero__content { max-width: 1180px; }

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 9.5em;
  font-size: clamp(3.5rem, 9vw, 8.4rem);
  line-height: 0.9;
}

h1 em { color: var(--lichen); font-style: normal; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  margin-top: 2.2rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.15rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button--light { color: var(--forest-950); background: var(--cream); }
.button--light:hover { background: #fffdf5; }

.hero__scroll {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--cream);
  font-size: 0.85rem;
  text-decoration: none;
}

.hero__scroll svg { width: 1.1rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.section {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.section-kicker {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.problem__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.problem__statement h2,
.layers__intro h2,
.limits__intro h2,
.care__lead h2,
.alpha__headline h2 {
  font-size: clamp(2.5rem, 5.2vw, 5.4rem);
  line-height: 0.98;
}

.problem { background: var(--forest-950); }
.problem__statement p { max-width: 25rem; margin-top: 1.6rem; color: var(--muted); font-size: 1.15rem; }
.problem__visual { max-width: 40rem; width: 100%; margin-inline: auto; }
.problem__stream { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.problem__stream li { display: grid; grid-template-columns: minmax(5rem, 0.35fr) 1fr; gap: 1rem; align-items: center; padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.problem__stream span { color: var(--bark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.problem__stream strong { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 400; line-height: 1; }
.problem__caption { margin-top: 1.2rem; color: var(--lichen); font-family: var(--display); font-size: 1.35rem; }
.problem__notes { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; margin-top: 2.5rem; color: var(--muted); }
.problem__notes p { font-size: 0.92rem; }

.section--dark { color: var(--cream); background: var(--forest-900); }
.section--dark .section-kicker { color: var(--moss); }

.layers__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 10vw, 11rem);
  align-items: end;
}

.layers__intro > p { color: var(--fog); }

.layer-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.layer {
  position: relative;
  min-height: 17rem;
  padding: 1.3rem 1.5rem 0;
  border-top: 1px solid rgba(241, 240, 231, 0.35);
}

.layer + .layer { border-left: 1px solid rgba(241, 240, 231, 0.2); }

.layer__number { color: var(--moss); font-size: 0.8rem; letter-spacing: 0.12em; }
.layer h3 { margin-top: 3.4rem; color: var(--layer-color); font-size: clamp(2rem, 3vw, 3.5rem); }
.layer p { max-width: 15rem; margin-top: 1rem; color: var(--fog); font-size: 0.95rem; }
.layer--party { --layer-color: #e6b18c; }
.layer--tribe { --layer-color: #b7c17f; }
.layer--guilds { --layer-color: #d9c477; }
.layer--signals { --layer-color: #b9cde1; }

.layers__quote {
  max-width: 45rem;
  margin: clamp(4rem, 10vw, 9rem) 0 0 auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(241, 240, 231, 0.35);
  color: var(--lichen);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.limits,
.alpha { position: relative; display: grid; align-items: center; min-height: 100svh; color: var(--cream); background: var(--forest-950); overflow: hidden; }

.limits__texture,
.alpha__texture { position: absolute; inset: 0; background: url("/media/cloud-forest-hero.png") center / cover no-repeat; background-attachment: fixed; opacity: 0.22; mix-blend-mode: screen; }

.limits::after,
.alpha::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 16, 13, 0.96), rgba(6, 16, 13, 0.72)); content: ""; }

.limits__content,
.alpha__layout { position: relative; z-index: 1; padding-block: clamp(5rem, 10vw, 9rem); }

.limits__intro { max-width: 42rem; }
.limits__intro .section-kicker,
.alpha .section-kicker { color: var(--moss); }
.limits__intro p:not(.section-kicker) { max-width: 32rem; margin-top: 1.8rem; color: var(--fog); font-size: 1.1rem; }

.limit-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(241, 240, 231, 0.35);
}

.limit { padding: 1.4rem 1.5rem 0 0; }
.limit + .limit { padding-left: 1.5rem; border-left: 1px solid rgba(241, 240, 231, 0.2); }
.limit strong { display: block; color: var(--lichen); font-family: var(--display); font-size: clamp(4.5rem, 8vw, 8rem); font-weight: 400; line-height: 0.8; }
.limit span { display: block; margin-top: 1.6rem; color: var(--cream); font-family: var(--display); font-size: 1.5rem; }
.limit p { margin-top: 0.4rem; color: var(--fog); font-size: 0.9rem; }

.limits__closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(4rem, 10vw, 8rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(241, 240, 231, 0.35);
  color: var(--fog);
}

.limits__closing p:last-child { color: var(--lichen); font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.05; }

.care { color: var(--ink); background: var(--forest-900); }
.care .section-kicker { color: var(--moss); }

.care__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.85fr);
  gap: clamp(3rem, 10vw, 10rem);
}

.care__lead h2 { max-width: 11em; }
.care__analogy { max-width: 31rem; margin-top: 2.2rem; color: var(--fog); font-size: 1.1rem; }
.care__body { align-self: end; }
.care__body > p:first-child { max-width: 30rem; font-size: 1.2rem; }
.care__requests { margin: 0; padding: 0; border-top: 1px solid rgba(241, 240, 231, 0.28); list-style: none; }
.care__requests li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.care__requests span { font-family: var(--display); font-size: 1.25rem; }
.care__requests small { align-self: center; color: var(--muted); font-size: 0.85rem; }
.care__closing { margin-top: 2.2rem; color: var(--lichen); }

.alpha__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.8fr) minmax(12rem, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.alpha__headline h2 { max-width: 8em; }
.alpha__details { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid rgba(241, 240, 231, 0.35); }
.alpha__promise { color: var(--cream); font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2.5rem); line-height: 1.05; }
.alpha__details > p:not(.alpha__promise) { margin-top: 1.5rem; color: var(--fog); }
.alpha__roadmap { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid rgba(241, 240, 231, 0.35); }
.alpha__roadmap h3 { color: rgba(241, 240, 231, 0.52); font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1; }
.roadmap-callout { display: inline-block; margin-top: 1.7rem; padding: 0.8rem 1rem; border: 1px solid rgba(241, 240, 231, 0.26); color: rgba(241, 240, 231, 0.52); font-size: 0.9rem; cursor: not-allowed; }

.site-footer { color: var(--cream); background: #040d09; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; padding-block: 2.5rem; }
.site-footer__top > p { color: var(--lichen); font-family: var(--display); font-size: 1.15rem; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 1.2rem; font-size: 0.8rem; }
.site-footer nav a { text-decoration: none; opacity: 0.8; }
.site-footer nav a:hover { opacity: 1; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.3rem 2.2rem; border-top: 1px solid rgba(241, 240, 231, 0.2); color: rgba(241, 240, 231, 0.65); font-size: 0.78rem; }
.site-footer__bottom p:last-child { max-width: 42rem; text-align: right; }
.site-footer__bottom a { color: var(--lichen); }

@media (min-width: 901px) {
  html { scroll-snap-type: y mandatory; }
  main > section { min-height: 100svh; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 2.5rem, 700px); }
  .site-nav { display: none; }
  .site-header__entry { margin-left: auto; }
  .problem__layout,
  .care__layout { grid-template-columns: 1fr; gap: 4rem; }
  .layers__intro { grid-template-columns: 1fr; gap: 2rem; }
  .limit-list { grid-template-columns: repeat(2, 1fr); }
  .limit:nth-child(3) { padding-left: 0; border-left: 0; margin-top: 3rem; }
  .limit:nth-child(4) { margin-top: 3rem; }
  .limits__closing { grid-template-columns: 1fr; }
  .alpha__layout { grid-template-columns: 1fr 1fr; }
  .alpha__headline { grid-column: 1 / -1; }
  .alpha__roadmap { min-height: 100%; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > p { grid-column: 1 / -1; }
  .site-footer nav { justify-content: flex-start; }
  .hero__media,
  .limits__texture,
  .alpha__texture { background-attachment: scroll; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 2rem); }
  .site-header { padding-block: 1.2rem; }
  .wordmark { font-size: 1.15rem; }
  .site-header__entry { padding-left: 0.8rem; font-size: 0.76rem; }
  .hero { min-height: 760px; padding-block: 8rem 6rem; }
  h1 { font-size: clamp(3.3rem, 16vw, 5.4rem); }
  .hero__scroll { right: 1rem; bottom: 1.3rem; }
  .hero__scroll span { display: none; }
  .section { padding-block: 5rem; }
  .section.layers { min-height: 100svh; padding-block: 4rem 3.5rem; }
  .problem__statement h2,
  .layers__intro h2,
  .limits__intro h2,
  .care__lead h2,
  .alpha__headline h2 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .problem__layout { gap: 3rem; }
  .problem__stream li { grid-template-columns: 4.5rem 1fr; }
  .layers__intro { gap: 0.8rem; }
  .layers__intro h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .layers__intro > p { font-size: 0.92rem; }
  .limit-list,
  .alpha__layout,
  .site-footer__top { grid-template-columns: 1fr; }
  .layer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 2rem; }
  .layer { min-height: 7.8rem; padding: 0.8rem 0.8rem 0; }
  .layer:nth-child(odd) { padding-left: 0; border-left: 0; }
  .layer:nth-child(even) { padding-left: 0.8rem; border-left: 1px solid rgba(241, 240, 231, 0.2); }
  .layer h3 { margin-top: 1rem; font-size: 1.7rem; }
  .layer p { margin-top: 0.35rem; font-size: 0.76rem; line-height: 1.35; }
  .layers__quote { margin-top: 1.7rem; font-size: 1.35rem; }
  .limits__content { padding-block: 4rem; }
  .limits__intro p:not(.section-kicker) { margin-top: 0.8rem; font-size: 0.95rem; }
  .limit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
  .limit { padding: 0.8rem 0.75rem 0 0; }
  .limit:nth-child(odd) { padding-left: 0; border-left: 0; }
  .limit:nth-child(even) { padding-left: 0.75rem; border-left: 1px solid rgba(241, 240, 231, 0.2); }
  .limit:nth-child(n + 3) { margin-top: 1.5rem; }
  .limit strong { font-size: clamp(3.6rem, 14vw, 5.2rem); }
  .limit span { margin-top: 0.9rem; font-size: 1.15rem; }
  .limit p { font-size: 0.76rem; }
  .limits__closing { gap: 0.8rem; margin-top: 2rem; padding-top: 0.9rem; }
  .limits__closing p:last-child { font-size: 1.3rem; }
  .alpha__headline { grid-column: auto; }
  .alpha__roadmap { min-height: auto; }
  .alpha__details,
  .alpha__roadmap { padding-left: 0; border-left: 0; border-top: 1px solid rgba(241, 240, 231, 0.35); padding-top: 2rem; }
  .site-footer__top > p { grid-column: auto; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer__bottom { display: block; }
  .site-footer__bottom p:last-child { margin-top: 1rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  main > section { scroll-snap-stop: normal; }
  .hero__media,
  .limits__texture,
  .alpha__texture { background-attachment: scroll; }
}
