/* yongzoon.com — fairycore digital garden, hexagonal honeycomb */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest: #1a3028;
  --moss: #2a5040;
  --teal: #48b898;
  --cyan: #68d8c8;
  --mint: #a8f0d8;
  --white: #e8f8f0;
  --gold: #d8c878;
}

html, body {
  background: var(--forest);
  color: var(--white);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  position: relative;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(72, 184, 152, 0.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(104, 216, 200, 0.10), transparent 40%);
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particles span {
  position: absolute;
  border-radius: 50%;
  bottom: -4px;
  pointer-events: none;
  animation: rise linear infinite;
  filter: blur(0.5px);
}
@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translateY(-110vh); opacity: 0; }
}

/* CANOPY */
.canopy {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
}

.hex-letters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hexl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 6vw, 78px);
  height: clamp(56px, 7vw, 90px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--white);
  border: 1.5px solid var(--teal);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: rgba(42, 80, 64, 0.4);
  animation: border-shift 8s ease-in-out infinite;
}
.hexl:nth-child(2) { animation-delay: 0.6s; }
.hexl:nth-child(3) { animation-delay: 1.2s; }
.hexl:nth-child(4) { animation-delay: 1.8s; }
.hexl:nth-child(5) { animation-delay: 2.4s; }
.hexl:nth-child(6) { animation-delay: 3.0s; }
.hexl:nth-child(7) { animation-delay: 3.6s; }
.hexl:nth-child(8) { animation-delay: 4.2s; }

@keyframes border-shift {
  0%, 100% { border-color: var(--teal); box-shadow: inset 0 0 0 rgba(72,184,152,0); }
  25% { border-color: var(--cyan); box-shadow: inset 0 0 12px rgba(104,216,200,0.18); }
  50% { border-color: var(--mint); box-shadow: inset 0 0 18px rgba(168,240,216,0.22); }
  75% { border-color: var(--gold); box-shadow: inset 0 0 12px rgba(216,200,120,0.18); }
}

.canopy-tag {
  margin-top: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--white);
  opacity: 0.85;
  letter-spacing: 0.04em;
  max-width: 560px;
}

/* HIVE */
.hive {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 60px auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
}

.cell {
  aspect-ratio: 1 / 1.05;
  background: var(--moss);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18%;
  position: relative;
  border: 1px solid rgba(72, 184, 152, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0;
  animation: cell-shimmer 8s ease-in-out infinite;
}
@keyframes cell-shimmer {
  0%, 100% { box-shadow: inset 0 0 0 rgba(72,184,152,0); }
  50% { box-shadow: inset 0 0 24px rgba(72,184,152,0.22); }
}
.cell:hover {
  background: linear-gradient(135deg, var(--moss), #355c4a);
  box-shadow: inset 0 0 24px rgba(72, 184, 152, 0.42);
}
.cell:hover .flora { opacity: 0.62; }

/* Stagger: every other row offset */
.cell.row-b { transform: translateY(-30%); }
.cell.row-c { transform: translateY(-60%); }

.hex-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.hex-h {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}
.cell p {
  font-size: 12.5px;
  color: var(--mint);
  line-height: 1.45;
}
.flora {
  position: absolute;
  bottom: 14px;
  width: 36px;
  height: 36px;
  opacity: 0.32;
  transition: opacity 0.3s;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hive { grid-template-columns: repeat(2, 1fr); }
  .cell.row-b, .cell.row-c { transform: none; }
  .cell.row-b:nth-child(odd), .cell.row-c:nth-child(odd) { transform: translateY(-30%); }
}
@media (max-width: 480px) {
  .hive { grid-template-columns: 1fr; }
  .cell { transform: none !important; }
}

/* GLADE */
.glade {
  text-align: center;
  padding: 120px 32px;
  max-width: 720px;
  margin: 60px auto;
  background: linear-gradient(180deg, transparent, rgba(42, 80, 64, 0.4), transparent);
  position: relative;
  z-index: 2;
}
.glade-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.glade-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: var(--white);
}

/* ROOT */
.root {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(72, 184, 152, 0.18);
}
.root-cell {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 24px;
  background: rgba(42, 80, 64, 0.5);
  border: 1px solid rgba(72, 184, 152, 0.3);
  clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.root-cell:hover { background: var(--teal); color: var(--forest); }
.root-cell.glow { background: var(--gold); color: var(--forest); }

.root-meta {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
}
