/* The Cultivation Foundation — institutional palette
   Parchment · ink · muted bronze · deliberate gravitas */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F5F1E8;
  --bg-soft:   #EDE7D9;
  --bg-card:   #FBF8F0;
  --ink:       #1A2332;
  --ink-soft:  #445266;
  --muted:     #8B96A6;
  --bronze:    #A67C3E;
  --bronze-deep: #7A5A28;
  --bronze-glow: #C9A55E;
  --rule:      rgba(122, 90, 40, 0.20);
  --shadow:    0 1px 2px rgba(26, 35, 50, 0.06), 0 8px 24px rgba(26, 35, 50, 0.04);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 15% 5%, rgba(122, 90, 40, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 85% 95%, rgba(122, 90, 40, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

a { color: var(--bronze-deep); text-decoration: none; border-bottom: 1px solid rgba(122, 90, 40, 0.25); transition: border-color 0.15s, color 0.15s; }
a:hover { color: var(--bronze); border-bottom-color: var(--bronze); }

/* ═══════════════ NAV ═══════════════ */
.top {
  border-bottom: 1px solid var(--rule);
  padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.top__brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
  border-bottom: none;
}
.top__brand em { color: var(--bronze); font-style: italic; }
.top__brand:hover { color: var(--ink); border-bottom: none; }
.top__nav { display: flex; gap: 32px; }
.top__nav a {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.top__nav a:hover, .top__nav a.active { color: var(--bronze-deep); border-bottom-color: var(--bronze); }

/* ═══════════════ LAYOUT ═══════════════ */
main { max-width: 1100px; margin: 0 auto; padding: 40px 40px 100px; }
.narrow { max-width: 780px; margin: 0 auto; }

.hero { padding: 96px 0 84px; text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 60px; }
.hero__chip {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bronze-deep);
  background: rgba(122, 90, 40, 0.06);
  padding: 6px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero__title em { color: var(--bronze); font-style: italic; }
.hero__sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 38px;
  line-height: 1.55;
}
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-family: 'Courier New', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--bronze);
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px solid var(--bronze);
}
.btn--primary { background: var(--bronze); color: var(--bg); }
.btn--primary:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--bronze-deep); }
.btn--ghost:hover { background: rgba(122, 90, 40, 0.05); color: var(--bronze-deep); }

/* ═══════════════ SECTIONS ═══════════════ */
section.block { margin-bottom: 72px; scroll-margin-top: 80px; }
.sec-label {
  font-family: 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 14px;
}
.sec-h2 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 22px;
  max-width: 720px;
}
.sec-h2 em { color: var(--bronze); font-style: italic; }
.sec-intro {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 28px;
}
.sec-body { font-size: 16.5px; line-height: 1.78; color: var(--ink); max-width: 720px; }
.sec-body p + p { margin-top: 16px; }
.sec-body strong { color: var(--ink); font-weight: 600; }
.sec-body em { color: var(--bronze-deep); font-style: italic; }

/* ═══════════════ CARDS / GRIDS ═══════════════ */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--bronze);
  border-radius: 4px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.card__label {
  font-family: 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 10px;
}
.card__h { font-family: Georgia, serif; font-size: 20px; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.card__h em { color: var(--bronze); font-style: italic; }
.card__body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.card__body strong { color: var(--ink); }

/* ═══════════════ FACT PANEL ═══════════════ */
.fact-panel {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}
.fact-panel__label {
  font-family: 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.30em; text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 16px;
}
.fact-panel__h { font-family: Georgia, serif; font-size: 22px; color: var(--ink); margin-bottom: 20px; font-weight: 400; }
.fact-panel__h em { color: var(--bronze); font-style: italic; }
.fact-list { display: grid; gap: 12px; }
.fact-list dt { font-family: 'Courier New', monospace; font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fact-list dd { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.fact-list dd code { font-family: 'Courier New', monospace; background: var(--bg-soft); padding: 2px 8px; border-radius: 3px; font-size: 15px; }

/* ═══════════════ QUOTE / SPINE ═══════════════ */
.spine {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0;
  margin: 48px 0;
  text-align: center;
}
.spine__q {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 16px;
}
.spine__attr { font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-deep); }

/* ═══════════════ BOARD ═══════════════ */
.board-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 32px; }
.member {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.member__role { font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 10px; }
.member__name { font-family: Georgia, serif; font-size: 26px; color: var(--ink); margin-bottom: 6px; font-weight: 400; }
.member__title { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: var(--muted); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.member__body { font-size: 15.5px; line-height: 1.7; color: var(--ink); }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 40px 32px;
  background: var(--bg-soft);
  margin-top: 60px;
}
.footer-wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.footer__brand { font-family: Georgia, serif; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.footer__brand em { color: var(--bronze); font-style: italic; }
.footer__tag { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; max-width: 320px; }
.footer__legal { font-family: 'Courier New', monospace; font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); line-height: 1.7; }
.footer__legal code { background: transparent; padding: 0; color: var(--ink-soft); }
.footer__col h4 { font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 14px; }
.footer__col a { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; border-bottom: none; padding: 2px 0; }
.footer__col a:hover { color: var(--bronze); }

.footer-bottom { max-width: 1100px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ═══════════════ RESPONSIVE ═══════════════ */
/* ═══════════════ CORNER MARK (transparent seal in upper-left on inner pages) ═══════════════ */
.corner-mark {
  position: absolute;
  top: 88px;
  left: 30px;
  width: 130px;
  height: 130px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 3px 12px rgba(122, 90, 40, 0.16));
}
.corner-mark img { width: 100%; height: auto; display: block; }
@media (max-width: 1240px) { .corner-mark { display: none; } }

@media (max-width: 720px) {
  main { padding: 32px 22px 60px; }
  .top { padding: 14px 22px; }
  .top__nav { gap: 18px; }
  .footer-wrap { grid-template-columns: 1fr; }
  footer { padding: 32px 22px 24px; }
  .hero { padding: 56px 0 44px; }
}

/* SPIN-BUNDLE-2026-08-23 */
/* ═══════════════ SPINNING SEAL · Foundation home hero · 2026-08-23 ═══════════════ */
.spinning-seal-hero {
  text-align: center;
  padding: 100px 40px 140px;  /* extra bottom to give Adult tier-planet room inside */
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;  /* clip any tier-planet or motto-ring overflow so nothing leaks into hero copy */
  background:
    radial-gradient(ellipse 60% 45% at 12% 15%, rgba(122, 90, 40, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 88% 85%, rgba(122, 90, 40, 0.18) 0%, transparent 65%),
    linear-gradient(rgba(245, 241, 232, 0.32), rgba(245, 241, 232, 0.32)),
    url('hero-bg.jpg') center center / cover no-repeat;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.spinning-seal-hero > * { position: relative; z-index: 1; }

/* ═══════════════ THE MACHINE · orbit layer · counter-rotating motto ring + 3 CULT gears ═══════════════ */
.cultivation-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 0;
}
.motto-ring {
  position: absolute;
  width: min(720px, 92vw);
  height: min(720px, 92vw);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: mottoRingSpin 120s linear infinite;
  opacity: 0.72;
}
.motto-ring-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  fill: #E8DFC8;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 400;
  paint-order: stroke;
  stroke: rgba(30, 20, 10, 0.35);
  stroke-width: 0.6px;
}
@keyframes mottoRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) { .motto-ring { animation: none; } }
@media (max-width: 640px) {
  .motto-ring { width: min(560px, 96vw); height: min(560px, 96vw); }
  .motto-ring-text { font-size: 20px; letter-spacing: 0.35em; }
}

.tier-planet {
  position: absolute;
  top: 50%; left: 50%;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(0, min(-310px, -42vw))
    rotate(calc(-1 * var(--angle)));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: planetGlow 5s ease-in-out infinite;
}
.tier-planet--kids  { animation-delay: 1.2s; }
.tier-planet--adult { animation-delay: 2.4s; }
.tier-planet__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E6C76A 0%, #A67C3E 60%, #7A5A28 100%);
  box-shadow: 0 0 12px rgba(201, 165, 94, 0.55), inset 0 0 3px rgba(0, 0, 0, 0.35);
}
.tier-planet__label {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--bronze-deep);
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(245, 241, 232, 0.9);
}
.tier-planet__label span {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-top: 3px;
}
@keyframes planetGlow {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@media (max-width: 640px) {
  .tier-planet {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translate(0, -46vw)
      rotate(calc(-1 * var(--angle)));
  }
  .tier-planet__label { font-size: 11px; }
  .tier-planet__label span { font-size: 8px; letter-spacing: 0.14em; }
}

.spinning-seal-container {
  position: relative;
  display: inline-block;
  width: min(420px, 68vw);
  height: min(420px, 68vw);
  perspective: 1800px;
  perspective-origin: center center;
  z-index: 1;
}
.spinning-seal-underlay {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3548 0%, #1A2332 55%, #0d1420 100%);
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.4),
    0 8px 32px rgba(26, 35, 50, 0.35),
    0 0 60px rgba(122, 90, 40, 0.15);
  z-index: 1;
}
.spinning-seal-underlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 94, 0.35);
  box-shadow: inset 0 0 0 6px rgba(122, 90, 40, 0.12);
  pointer-events: none;
}
.spinning-seal-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-style: preserve-3d;
  animation: sealSpin3D 60s linear infinite, sealBreathe 7s ease-in-out infinite;
  backface-visibility: visible;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}
@keyframes sealSpin3D {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@keyframes sealBreathe {
  0%, 100% { filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35)); }
  50%      { filter: drop-shadow(0 6px 32px rgba(201, 165, 94, 0.55)); }
}
@media (prefers-reduced-motion: reduce) {
  .spinning-seal-img { animation: none; }
}
@media (max-width: 640px) {
  .spinning-seal-hero { padding: 30px 0 20px; }
  .spinning-seal-container { width: min(320px, 78vw); height: min(320px, 78vw); }
}

/* ═══════════════ CAPTION · text under seal · soft cream glow for legibility on library backdrop ═══════════════ */
/* No box. Text sits directly under the seal, centered, with a subtle cream halo behind each letter
   so it reads over dark parts of the backdrop without a hard container edge. */
.seal-caption {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--bronze-deep);
  margin: 26px auto 0;
  max-width: 560px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-shadow:
    0 0 8px rgba(245, 241, 232, 0.95),
    0 0 16px rgba(245, 241, 232, 0.85),
    0 1px 3px rgba(245, 241, 232, 0.9);
}
.seal-subcaption {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(13px, 1.35vw, 15px);
  color: var(--ink-soft);
  margin: 12px auto 0;
  max-width: 560px;
  line-height: 1.5;
  text-shadow:
    0 0 8px rgba(245, 241, 232, 0.95),
    0 0 16px rgba(245, 241, 232, 0.85),
    0 1px 3px rgba(245, 241, 232, 0.9);
}
.seal-subcaption em {
  color: var(--bronze-deep); font-style: italic; font-weight: 500;
}
@media (max-width: 640px) {
  .seal-caption { max-width: 92%; margin-top: 20px; }
  .seal-subcaption { max-width: 92%; }
}

/* ═══════════════ BILLBOARD · rotating messages behind spinning seal ═══════════════ */
.billboard {
  position: absolute;
  inset: 8%;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.billboard__msg {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(12px, 1.55vw, 17px);
  color: #C9A55E;
  text-align: center;
  padding: 0 14%;
  line-height: 1.45;
  letter-spacing: 0.06em;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  animation: billboardCycle 64s linear infinite;
}
@keyframes billboardCycle {
  0%      { opacity: 0; }
  1.5%    { opacity: 1; }
  10.9%   { opacity: 1; }
  12.5%   { opacity: 0; }
  100%    { opacity: 0; }
}
.billboard__msg:nth-child(1) { animation-delay:  0s; }
.billboard__msg:nth-child(2) { animation-delay:  8s; }
.billboard__msg:nth-child(3) { animation-delay: 16s; }
.billboard__msg:nth-child(4) { animation-delay: 24s; }
.billboard__msg:nth-child(5) { animation-delay: 32s; }
.billboard__msg:nth-child(6) { animation-delay: 40s; }
.billboard__msg:nth-child(7) { animation-delay: 48s; }
.billboard__msg:nth-child(8) { animation-delay: 56s; }
@media (prefers-reduced-motion: reduce) {
  .billboard__msg { animation: none; opacity: 0.4; }
  .billboard__msg:nth-child(1) { opacity: 1; }
}

/* ═══════════════ CORNER-MARK SPIN · site-wide (Mission/Board/Give/Partners/Shop) ═══════════════ */
/* Seal page has no corner-mark by design · this rule only applies where the element exists */
.corner-mark {
  perspective: 900px !important;
  perspective-origin: center center !important;
}
.corner-mark img {
  display: inline-block !important;
  transform-style: preserve-3d !important;
  transform-origin: 50% 50% !important;
  animation: cornerSealSpinY 20s linear infinite !important;
  backface-visibility: visible !important;
  will-change: transform;
}
@keyframes cornerSealSpinY {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) { .corner-mark img { animation: none !important; } }
