.community-page .page-content {
  max-width: none;
}

.community-page {
  overflow-x: hidden;
}

.community-page .page-content > p {
  max-width: 980px;
}

.community-oak {
  width: 100vw;
  margin: 42px calc(50% - 50vw) 54px;
  padding: clamp(18px, 3vw, 32px);
  background: #070808;
  color: #f7f2ea;
  box-sizing: border-box;
}

.community-oak-copy {
  max-width: 760px;
  margin-bottom: 24px;
}

.community-oak-copy h2 {
  max-width: 760px;
  color: #f7f2ea;
}

.community-oak-copy p:not(.eyebrow) {
  color: rgba(247, 242, 234, 0.78);
}

.oak-tree-component {
  display: grid;
  gap: 24px;
}

.oak-tree-visual {
  position: relative;
  min-height: clamp(620px, 68vw, 820px);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(184, 117, 73, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16)),
    url("iron-oak-community-oak-night.png") center center / cover no-repeat,
    #020303;
  isolation: isolate;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.72), 0 26px 60px rgba(0, 0, 0, 0.24);
}

.oak-tree-visual.is-booting {
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.72),
    inset 0 -26px 52px rgba(184, 117, 73, 0.22),
    0 26px 60px rgba(0, 0, 0, 0.24);
}

.oak-tree-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 33%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 58%, rgba(23, 38, 26, 0.45));
  z-index: 0;
}

.oak-canopy,
.oak-branch,
.oak-trunk,
.oak-current,
.oak-sparkle {
  position: absolute;
}

.oak-canopy {
  display: none;
}

.canopy-back {
  left: 18%;
  top: 5%;
  width: 64%;
  height: 52%;
  opacity: 0.9;
}

.canopy-left {
  left: 7%;
  top: 22%;
  width: 52%;
  height: 43%;
}

.canopy-right {
  right: 6%;
  top: 20%;
  width: 54%;
  height: 44%;
}

.canopy-front {
  left: 20%;
  top: 29%;
  width: 61%;
  height: 44%;
  background:
    radial-gradient(circle at 18% 28%, rgba(122, 159, 92, 0.34) 0 8%, transparent 9%),
    radial-gradient(circle at 43% 23%, rgba(91, 128, 74, 0.42) 0 9%, transparent 10%),
    radial-gradient(circle at 69% 36%, rgba(59, 98, 58, 0.46) 0 12%, transparent 13%),
    radial-gradient(circle at 52% 72%, rgba(18, 44, 29, 0.62), transparent 28%),
    linear-gradient(135deg, #5d7f4d, #294d38 60%, #12291e);
  z-index: 3;
}

.oak-branch {
  display: none;
}

.branch-left {
  transform: rotate(-33deg);
}

.branch-right {
  transform: rotate(-145deg);
}

.oak-trunk {
  left: 50%;
  bottom: 7%;
  width: 76px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: transparent;
  z-index: 5;
}

.oak-trunk::before,
.oak-trunk::after {
  display: none;
}

.oak-trunk::before {
  left: -50px;
  transform: rotate(-36deg);
}

.oak-trunk::after {
  right: -50px;
  transform: rotate(36deg);
}

.oak-current {
  display: none;
}

.oak-bolt-field {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
}

.oak-bolt-field.is-active,
.oak-bolt-field.is-sequencing {
  opacity: 1;
}

.oak-bolt {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.oak-bolt-main {
  stroke: #fff2cb;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 8px rgba(255, 213, 156, 0.88)) drop-shadow(0 0 18px rgba(184, 117, 73, 0.68));
}

.oak-bolt-glow {
  stroke: rgba(217, 137, 77, 0.55);
  stroke-width: 10;
  filter: blur(2px) drop-shadow(0 0 18px rgba(184, 117, 73, 0.9));
}

.oak-bolt-branch {
  stroke: rgba(255, 224, 168, 0.88);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(217, 137, 77, 0.8));
}

.oak-bolt-field.is-active .oak-bolt,
.oak-bolt-field.is-sequencing .oak-bolt {
  animation: oakBoltTravel 520ms cubic-bezier(0.16, 1, 0.3, 1), oakBoltFlicker 520ms steps(7, end);
}

.oak-bolt-field.is-sequencing .oak-bolt {
  animation-duration: 430ms;
}

.oak-sparkles,
.oak-ambient-sparkles {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.oak-ambient-sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 0;
  background:
    radial-gradient(circle, rgba(255, 244, 217, 0.95) 0 14%, rgba(232, 156, 88, 0.8) 20%, rgba(184, 117, 73, 0.18) 46%, transparent 72%);
  box-shadow: 0 0 12px rgba(217, 137, 77, 0.9), 0 0 22px rgba(184, 117, 73, 0.32);
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
  animation: oakAmbientTwinkle var(--speed, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.62;
}

.oak-sparkle {
  left: var(--sparkle-x);
  top: var(--sparkle-y);
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff2d2 0 10%, #f2b36f 16%, rgba(217, 137, 77, 0.5) 34%, rgba(184, 117, 73, 0.12) 58%, transparent 72%);
  box-shadow: 0 0 16px rgba(184, 117, 73, 0.82), 0 0 32px rgba(184, 117, 73, 0.28);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  animation: oakSparkle 2.4s ease-in-out infinite;
}

.oak-sparkle::before,
.oak-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.oak-sparkle::before {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 170, 0.34), rgba(184, 117, 73, 0.16) 38%, transparent 70%);
  filter: blur(1px);
}

.oak-sparkle::after {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, transparent 10%, rgba(255, 243, 214, 0.95) 50%, transparent 90%);
  clip-path: polygon(50% 0, 59% 37%, 100% 50%, 59% 63%, 50% 100%, 41% 63%, 0 50%, 41% 37%);
  filter: drop-shadow(0 0 8px rgba(238, 164, 96, 0.88));
  transform: translate(-50%, -50%) rotate(18deg);
  animation: oakStarTurn 3.4s ease-in-out infinite;
}

.oak-sparkle:hover,
.oak-sparkle:focus-visible,
.oak-sparkle.is-active {
  outline: 0;
  background:
    radial-gradient(circle, #fff8e7 0 12%, #f7bd78 18%, rgba(237, 166, 101, 0.48) 38%, rgba(184, 117, 73, 0.14) 64%, transparent 76%);
  box-shadow: 0 0 0 5px rgba(184, 117, 73, 0.18), 0 0 24px rgba(224, 140, 78, 0.96);
}

.oak-sparkle.is-active {
  animation: oakActivePulse 1.1s ease-in-out infinite;
}

.oak-sparkle[data-tooltip]::marker {
  content: "";
}

.oak-sparkle .sparkle-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.oak-sparkle:hover .sparkle-tooltip,
.oak-sparkle:focus-visible .sparkle-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

.oak-program-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-height: 230px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(184, 117, 73, 0.28);
  border-left: 4px solid var(--copper);
  background:
    linear-gradient(90deg, rgba(184, 117, 73, 0.08), transparent 38%),
    #fbfaf8;
}

.oak-program-panel:focus {
  outline: 3px solid rgba(184, 117, 73, 0.42);
  outline-offset: 4px;
}

.oak-program-media {
  min-height: clamp(260px, 34vw, 520px);
  background: var(--oak-program-image), linear-gradient(135deg, #253a2e, #ba784c);
  background-position: center;
  background-size: cover;
}

.oak-program-copy h3 {
  margin: 0 0 14px;
  color: var(--oak-green);
  font-family: "Barlow", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.04;
  text-transform: uppercase;
}

.oak-program-copy p:not(.eyebrow) {
  margin: 0 0 22px;
}

.oak-impact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.oak-impact-list div {
  padding: 14px;
  background: var(--oak-green-soft);
  border-left: 3px solid var(--oak-green);
}

.oak-impact-list dt {
  color: var(--oak-green);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.oak-impact-list dd {
  margin: 3px 0 0;
  color: var(--soft-ink);
  font-size: 13px;
}

.oak-program-copy .dark-button {
  width: max-content;
}

@keyframes oakSparkle {
  0%, 100% { transform: translate(-50%, -50%) scale(0.74); opacity: 0.58; filter: brightness(0.95); }
  38% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; filter: brightness(1.35); }
  62% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.86; filter: brightness(1.08); }
}

@keyframes oakActivePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.22); }
}

@keyframes oakStarTurn {
  0%, 100% { transform: translate(-50%, -50%) rotate(6deg) scale(0.82); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) rotate(34deg) scale(1.12); opacity: 1; }
}

@keyframes oakCurrent {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.15;
  }
  18% {
    opacity: 1;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes oakBoltTravel {
  0% { stroke-dashoffset: 1; }
  68% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

@keyframes oakBoltFlicker {
  0%, 100% { opacity: 0; }
  8%, 22%, 44%, 68%, 86% { opacity: 1; }
  16%, 34%, 56%, 78% { opacity: 0.42; }
}

@keyframes oakAmbientTwinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(0.42) rotate(0deg); opacity: 0.2; }
  42% { transform: translate(-50%, -50%) scale(1.15) rotate(28deg); opacity: 0.95; }
  60% { transform: translate(-50%, -50%) scale(0.72) rotate(42deg); opacity: 0.48; }
}

@media (max-width: 760px) {
  .oak-tree-visual {
    min-height: 520px;
    background-position: center center;
    background-size: cover;
  }

  .oak-sparkle {
    width: 18px;
    height: 18px;
    animation-duration: 3.8s;
  }

  .oak-program-panel {
    grid-template-columns: 1fr;
  }

  .oak-program-media {
    min-height: 180px;
  }

  .oak-impact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .oak-tree-visual {
    min-height: 430px;
    background-position: center center;
    background-size: cover;
  }

  .oak-trunk {
    width: 64px;
    height: 174px;
  }

  .canopy-back {
    left: 12%;
    width: 76%;
  }

  .canopy-left {
    left: 4%;
    width: 54%;
  }

  .canopy-right {
    right: 3%;
    width: 56%;
  }

  .canopy-front {
    left: 14%;
    width: 72%;
  }

  .oak-program-copy .dark-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oak-current,
  .oak-bolt,
  .oak-bolt-field,
  .oak-sparkle,
  .oak-sparkle.is-active {
    animation: none !important;
  }

  .oak-sparkle .sparkle-tooltip {
    transition: none;
  }
}
