:root {
  --forest: #16301d;
  --deep-root: #0d1f12;
  --sage: #8e9f7c;
  --lichen: #e2f5c0;
  --mist: #c7d1bd;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  /* Modular scale, ratio 1.333 from a 20px body */
  --step-0: 1.25rem;
  --step-1: 1.666rem;
  --step-2: 2.22rem;
  --step-3: clamp(2.2rem, 4.2vw, 2.96rem);
  --step-4: clamp(2.6rem, 6vw, 3.95rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --rail-gap: 220px;
}

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

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

body {
  margin: 0;
  background: var(--forest);
  color: var(--mist);
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain, so the green reads as printed matter rather than a flat screen fill */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, blockquote { margin: 0; }
a { color: inherit; }

.script {
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--lichen);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--lichen); color: var(--deep-root); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--lichen);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.6rem;
  border: 1px solid var(--lichen);
  border-radius: 999px;
  background: var(--lichen);
  color: var(--deep-root);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--white); border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(226, 245, 192, .45);
}
.btn-ghost:hover { background: rgba(226, 245, 192, .1); border-color: var(--lichen); color: var(--white); }

.btn-small { min-height: 2.5rem; padding: .4rem 1.2rem; font-size: 1.05rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(13, 31, 18, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(142, 159, 124, .18);
}
.nav-mark { display: inline-block; padding: .3rem 0; text-decoration: none; }
.nav-mark .script { font-size: 2.3rem; line-height: 1; color: var(--white); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: .7rem 0;
  text-decoration: none;
  color: var(--mist);
  font-size: 1.1rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--lichen); }

@media (max-width: 760px) {
  .nav nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding: 5rem var(--gutter) 3rem;
  text-align: center;
}

.lockup {
  position: relative;
  width: min(940px, 100%);
}

.tree {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58svh;
  overflow: visible;
}

.wordmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  color: var(--white);
  font-weight: 500;
}
.wordmark-oaks {
  display: block;
  color: var(--white);
  font-size: clamp(6.5rem, 21vw, 15rem);
  line-height: .8;
  transform: translate(-9%, 2%);
  text-shadow: 0 2px 30px rgba(13, 31, 18, .55);
}
.wordmark-of {
  display: block;
  margin-top: -.15em;
  transform: translateX(14%);
  font-size: clamp(1.15rem, 3.4vw, 2.3rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(13, 31, 18, .8);
}
.wordmark-of small { font-size: .45em; vertical-align: .55em; }

/* Soft light behind the crown */
.lockup::before {
  content: "";
  position: absolute;
  inset: -12% 4% 30%;
  background: radial-gradient(closest-side, rgba(226, 245, 192, .1), transparent);
  pointer-events: none;
}

/* ---------- Botanical plate ---------- */

.plate { position: absolute; inset: 0; pointer-events: none; }
.plate-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate-lines path { fill: none; stroke: var(--lichen); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 1; }
.plate-lines circle { fill: var(--lichen); }
.plate-lines .ring { fill: none; stroke: var(--lichen); stroke-opacity: .45; stroke-width: 1; }

.plate-label {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  text-align: left;
}
.plate-label[data-side="left"] { text-align: right; }
.has-plate .plate-label { visibility: visible; }

.plate-title {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.plate-title .script { font-size: 1.75em; margin-left: .08em; }
.plate-note {
  margin-top: .1rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--sage);
}

/* On wide screens the plate labels carry the tagline */
.has-plate .tagline {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.has-plate .lede { font-size: 1.4rem; }

.hero-copy { display: grid; justify-items: center; gap: 1rem; max-width: 46rem; }

.tagline {
  color: var(--white);
  font-size: clamp(1.3rem, 4.6vw, var(--step-1));
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  text-wrap: balance;
}
.tagline span { display: inline-block; }
.lede { max-width: 32em; text-wrap: pretty; }
.hero .actions { justify-content: center; margin-top: .5rem; }

/* Load sequence: copy settles in after the tree has grown */
@media (prefers-reduced-motion: no-preference) {
  /* "Oaks" is written on left to right, like a pen stroke */
  .wordmark-oaks {
    -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
    mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    /* Script swashes overflow the text box; pad it so the mask doesn't crop them */
    padding: .35em .3em;
    margin: -.35em -.3em;
    animation: write 2.2s cubic-bezier(.55, .1, .25, 1) 1.1s both;
  }
  .wordmark-of { animation: unfurl 1.6s cubic-bezier(.2, .7, .2, 1) 2.2s both; }
  .hero-copy { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) 2.6s both; }

  .plate-lines path { animation: draw .9s cubic-bezier(.3, .6, .3, 1) both; }
  .plate-lines circle { animation: appear .6s ease-out both; }
  .has-plate .plate-label { animation: appear 1s ease-out both; }
}
@keyframes write {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes unfurl {
  from { opacity: 0; letter-spacing: .3em; }
  to { opacity: 1; letter-spacing: .08em; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Ground: everything the taproot runs through ---------- */

.ground {
  position: relative;
  padding: 6rem var(--gutter) 0;
}

.taproot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.taproot path {
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
}

.ground > section { position: relative; }

/* Two columns that sit either side of the root */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--rail-gap);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.display {
  color: var(--white);
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.display .script { font-size: 1.18em; line-height: .9; }

.split .display { text-align: right; }

.prose { display: grid; gap: 1.2rem; max-width: 30em; padding-top: .6rem; }
.prose p:first-child { color: var(--white); }

.manifesto { padding-bottom: clamp(6rem, 14vw, 11rem); }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--rail-gap);
  row-gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: clamp(6rem, 14vw, 11rem);
}

.pillar {
  position: relative;
  max-width: 27rem;
}
.pillar[data-side="left"] { grid-column: 1; justify-self: end; text-align: right; }
.pillar[data-side="right"] { grid-column: 2; justify-self: start; }
/* Right pillars drop half a step so the four alternate down the root */
@media (min-width: 861px) {
  .pillar[data-side="right"] { margin-top: 11rem; }
  .pillar[data-side="left"]:not(:first-of-type) { margin-top: -4rem; }
}

.pillar h3 {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
}
.pillar[data-side="left"] h3 { align-items: flex-end; }
.pillar h3 .caps {
  text-transform: uppercase;
  letter-spacing: .07em;
}
.pillar h3 .script {
  font-size: 1.15em;
  line-height: 1.15;
  margin-top: -.05em;
}
.pillar p { text-wrap: pretty; }

/* The point where a lateral root meets the pillar */
.node {
  position: absolute;
  top: .55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: var(--forest);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.pillar[data-side="left"] .node { right: calc(var(--rail-gap) / -2 + 40px); }
.pillar[data-side="right"] .node { left: calc(var(--rail-gap) / -2 + 40px); }
.node.is-reached, .seed.is-reached {
  background: var(--lichen);
  border-color: var(--lichen);
  box-shadow: 0 0 0 6px rgba(226, 245, 192, .12), 0 0 24px rgba(226, 245, 192, .35);
}

/* ---------- Audience ---------- */

.audience { padding-bottom: clamp(5rem, 10vw, 8rem); }

.fit-list {
  list-style: none;
  padding: .6rem 0 0;
  max-width: 30em;
  display: grid;
  gap: 1.4rem;
}
.fit-list li {
  position: relative;
  padding-left: 1.8rem;
  text-wrap: pretty;
}
/* Acorn mark: the seed of the tree, used as the list bullet */
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 13px;
  background: var(--sage);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  box-shadow: inset 0 4px 0 -1px #6f8160;
}

/* ---------- Verse ---------- */

.verse {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2rem;
  padding: 0 var(--gutter) clamp(6rem, 12vw, 9rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(226, 245, 192, .07), transparent 70%);
}
.seed {
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: var(--forest);
  transition: background-color .6s, border-color .6s, box-shadow .6s;
}
.verse-intro {
  font-size: var(--step-0);
  font-weight: 500;
  font-style: italic;
  color: var(--sage);
}
.verse blockquote { max-width: 54rem; }
.verse blockquote p {
  color: var(--white);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
.verse em {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.15em;
  color: var(--lichen);
}
.verse footer { margin-top: 1.5rem; }
.verse cite {
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--sage);
}

/* ---------- Join ---------- */

.join {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  text-align: center;
  background: var(--deep-root);
}
.join p { max-width: 30em; text-wrap: pretty; }
.join .actions { justify-content: center; margin-top: .5rem; }

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 3rem var(--gutter) 3.5rem;
  background: var(--deep-root);
  border-top: 1px solid rgba(142, 159, 124, .18);
  text-align: center;
  font-size: 1.05rem;
  color: var(--sage);
}
.footer-mark {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-mark .script { font-size: 2.6rem; letter-spacing: 0; margin-right: .1em; vertical-align: -.12em; }
.site-footer a { display: inline-block; padding: .65rem .25rem; color: var(--mist); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--lichen); }

/* ---------- Short viewports: keep the hero buttons on the first screen ---------- */

@media (max-height: 820px) {
  .tree { max-height: 46svh; }
  .hero { gap: 1.25rem; padding-top: 4.5rem; }
}

/* ---------- Narrow screens: root moves to a left rail ---------- */

@media (max-width: 860px) {
  :root { --rail-x: 22px; }
  .ground { padding-left: 3.4rem; padding-right: var(--gutter); }
  .split, .pillars { grid-template-columns: 1fr; row-gap: 1.6rem; max-width: 36rem; margin-left: 0; }
  .split .display { text-align: left; }
  .pillars { row-gap: 3.5rem; }
  .pillar[data-side] { grid-column: 1; justify-self: start; text-align: left; }
  .pillar[data-side="left"] h3 { align-items: flex-start; }
  .pillar[data-side] .node { left: calc(-3.4rem + 22px - 7px); right: auto; }
}

@media (max-width: 480px) {
  body { font-size: 1.15rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-copy { gap: .8rem; }
  .lede { font-size: 1.1rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .join .actions .btn { flex: 1 1 100%; }
  .nav-mark .script { font-size: 2rem; }
  .verse blockquote p { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
}
