/* namu.biz — Holographic Forest */
/* Palette: Holo pink #FF80B0, Holo teal #60E8D8, Holo violet #B080FF, Holo gold #FFD060, Tree bark #4A3828, Ring cream #F5F0E0, Canopy green #3A7848 */

:root {
  --holo-pink:   #FF80B0;
  --holo-teal:   #60E8D8;
  --holo-violet: #B080FF;
  --holo-gold:   #FFD060;
  --tree-bark:   #4A3828;
  --ring-cream:  #F5F0E0;
  --canopy-green:#3A7848;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ring-cream);
  color: var(--tree-bark);
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
}

/* === Holographic gradient fields === */

.holo-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      var(--holo-pink) 0%,
      var(--holo-teal) 30%,
      var(--holo-violet) 55%,
      var(--holo-gold) 80%,
      var(--holo-pink) 100%);
  background-size: 300% 300%;
  animation: huecycle 14s ease-in-out infinite;
  z-index: 0;
}

@keyframes huecycle {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Canopy opening === */

.canopy {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
}

.canopy-inner {
  position: relative;
  z-index: 5;
  width: 700px;
  max-width: 92%;
  margin: 0 auto;
  padding-top: 22vh;
  text-align: center;
}

.display-title {
  font-family: "Poiret One", serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
  background: linear-gradient(90deg,
    var(--holo-pink), var(--holo-teal), var(--holo-violet), var(--holo-gold), var(--holo-pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-text 8s linear infinite;
}

.korean-title {
  font-family: "Noto Sans KR", "Quicksand", sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 110px);
  letter-spacing: 0.04em;
  margin: 12px 0 24px;
  background: linear-gradient(120deg,
    var(--holo-violet), var(--holo-pink), var(--holo-gold), var(--holo-teal), var(--holo-violet));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-text 10s linear infinite;
}

@keyframes holo-text {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

.canopy-tag {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.06em;
  color: var(--tree-bark);
  margin-top: 18px;
  text-transform: lowercase;
}

/* === Lens flares === */

.lens-flare {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(2px);
  transition: opacity 600ms ease, transform 600ms ease;
  opacity: 0.45;
}

.lf1 { top: 12%; left:  8%; width: 60px; height: 60px;
  background: radial-gradient(circle, var(--holo-pink) 0%, transparent 70%);
  animation: drift 16s ease-in-out infinite; }
.lf2 { top: 22%; left: 78%; width: 52px; height: 52px;
  background: radial-gradient(circle, var(--holo-teal) 0%, transparent 70%);
  animation: drift 19s ease-in-out infinite; }
.lf3 { top: 56%; left: 14%; width: 44px; height: 44px;
  background: radial-gradient(circle, var(--holo-violet) 0%, transparent 70%);
  animation: drift 21s ease-in-out infinite; }
.lf4 { top: 38%; left: 60%; width: 36px; height: 36px;
  background: radial-gradient(circle, var(--holo-gold) 0%, transparent 70%);
  animation: drift 17s ease-in-out infinite; }
.lf5 { top: 72%; left: 82%; width: 56px; height: 56px;
  background: radial-gradient(circle, var(--holo-pink) 0%, transparent 70%);
  animation: drift 23s ease-in-out infinite; }
.lf6 { top: 84%; left: 36%; width: 40px; height: 40px;
  background: radial-gradient(circle, var(--holo-teal) 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate( 18px,  -14px); }
  50%      { transform: translate(-12px,   18px); }
  75%      { transform: translate( -8px,  -10px); }
}

.lens-flare.bright {
  opacity: 0.9;
  transform: scale(1.3);
}

/* === Falling geometric leaves === */

.leaf-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.leaf {
  position: absolute;
  top: -60px;
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transform-origin: center;
}

.leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--holo-pink), var(--holo-violet));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: leaf-color 6s linear infinite;
}

.leaf:nth-child(2n)::after  { background: linear-gradient(135deg, var(--holo-teal), var(--holo-gold)); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.leaf:nth-child(3n)::after  { background: linear-gradient(135deg, var(--holo-violet), var(--holo-pink)); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.leaf:nth-child(4n)::after  { background: linear-gradient(135deg, var(--holo-gold), var(--holo-teal)); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

.l1  { left:  5%; animation: leaf-fall 11s linear 0.8s infinite; width: 24px; height: 24px; }
.l2  { left: 13%; animation: leaf-fall 14s linear 1.4s infinite; width: 18px; height: 18px; }
.l3  { left: 22%; animation: leaf-fall 12s linear 2.0s infinite; width: 26px; height: 26px; }
.l4  { left: 31%; animation: leaf-fall 16s linear 0.4s infinite; width: 20px; height: 20px; }
.l5  { left: 41%; animation: leaf-fall 13s linear 1.8s infinite; width: 22px; height: 22px; }
.l6  { left: 49%; animation: leaf-fall 15s linear 2.6s infinite; width: 28px; height: 28px; }
.l7  { left: 58%; animation: leaf-fall 12s linear 1.2s infinite; width: 19px; height: 19px; }
.l8  { left: 67%; animation: leaf-fall 14s linear 0.6s infinite; width: 24px; height: 24px; }
.l9  { left: 75%; animation: leaf-fall 17s linear 1.6s infinite; width: 22px; height: 22px; }
.l10 { left: 82%; animation: leaf-fall 11s linear 2.2s infinite; width: 26px; height: 26px; }
.l11 { left: 89%; animation: leaf-fall 13s linear 0.2s infinite; width: 20px; height: 20px; }
.l12 { left: 95%; animation: leaf-fall 15s linear 2.8s infinite; width: 24px; height: 24px; }

@keyframes leaf-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

@keyframes leaf-color {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(60deg); }
}

/* === Tree gallery === */

.gallery {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(245,240,224,0.92) 18%, rgba(245,240,224,0.96) 100%);
  padding: 160px 0 200px;
  overflow: hidden;
}

.parallax-bg, .parallax-mid, .parallax-fg {
  position: absolute;
  left: 0; right: 0;
  will-change: transform;
}

.parallax-bg {
  top: 0; height: 100%;
  z-index: 1;
  opacity: 0.5;
}

.ring-pattern {
  width: 120%;
  height: 120%;
  position: absolute;
  top: -10%;
  left: -10%;
  filter: blur(0.4px);
}

.parallax-mid {
  position: relative;
  z-index: 3;
  width: 700px;
  max-width: 90%;
  margin: 0 auto;
  padding: 80px 24px;
}

.parallax-fg {
  top: 0; height: 100%;
  z-index: 4;
  pointer-events: none;
}

.tree-entry {
  margin-bottom: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(74,56,40,0.15);
}

.tree-entry:first-child {
  border-top: none;
  padding-top: 0;
}

.tree-label {
  display: inline-block;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--canopy-green);
  margin-bottom: 12px;
}

.tree-name {
  font-family: "Poiret One", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 72px);
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  background: linear-gradient(90deg,
    var(--holo-pink), var(--holo-teal), var(--holo-violet), var(--holo-gold), var(--holo-pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-text 9s linear infinite;
}

.tree-body {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
  color: var(--tree-bark);
  max-width: 620px;
}

/* foreground geometric shapes */

.geo {
  position: absolute;
  opacity: 0.55;
  filter: blur(0.4px);
  transition: transform 400ms ease;
}

.geo-tri {
  width: 48px; height: 48px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.geo-diamond {
  width: 40px; height: 40px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.g1 { top:  8%; left:  6%; background: linear-gradient(135deg, var(--holo-pink), var(--holo-violet)); }
.g2 { top: 22%; left: 88%; background: linear-gradient(135deg, var(--holo-teal), var(--holo-gold)); }
.g3 { top: 44%; left:  4%; background: linear-gradient(135deg, var(--holo-violet), var(--holo-teal)); }
.g4 { top: 62%; left: 90%; background: linear-gradient(135deg, var(--holo-gold), var(--holo-pink)); }
.g5 { top: 78%; left:  8%; background: linear-gradient(135deg, var(--holo-pink), var(--holo-gold)); }
.g6 { top: 88%; left: 84%; background: linear-gradient(135deg, var(--holo-teal), var(--holo-violet)); }

/* === Ring section === */

.ring-section {
  position: relative;
  background: var(--ring-cream);
  padding: 140px 24px 180px;
  text-align: center;
}

.section-heading {
  font-family: "Poiret One", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  background: linear-gradient(90deg,
    var(--holo-pink), var(--holo-teal), var(--holo-violet), var(--holo-gold), var(--holo-pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-text 9s linear infinite;
}

.section-sub {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--tree-bark);
  margin-bottom: 60px;
  text-transform: lowercase;
}

.ring-stage {
  position: relative;
  width: 600px;
  max-width: 90%;
  margin: 0 auto;
}

.ring-svg {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
}

.ring-points text {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ring-points circle {
  cursor: pointer;
  transition: transform 250ms ease, r 250ms ease;
  transform-origin: center;
  transform-box: fill-box;
}

.ring-points g.ring-point:hover circle {
  transform: scale(1.4);
  filter: drop-shadow(0 0 8px var(--holo-pink));
}

.ring-readout {
  margin-top: 32px;
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--tree-bark);
}

.ring-readout-key {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--canopy-green);
  margin-right: 12px;
}

/* === Cards === */

.cards {
  position: relative;
  background: linear-gradient(180deg, var(--ring-cream) 0%, rgba(245,240,224,0.96) 100%);
  padding: 120px 24px 160px;
  text-align: center;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 60px auto 0;
  text-align: left;
}

.card {
  position: relative;
  padding: 32px 28px;
  background: var(--ring-cream);
  border-radius: 4px;
  isolation: isolate;
  transition: transform 400ms ease, box-shadow 400ms ease;
  --shimmer-speed: 4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: linear-gradient(120deg,
    var(--holo-pink), var(--holo-teal), var(--holo-violet), var(--holo-gold), var(--holo-pink));
  background-size: 300% 100%;
  animation: shimmer var(--shimmer-speed) linear infinite;
  z-index: -1;
}

@keyframes shimmer {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

.card.in-view { --shimmer-speed: 2s; }

.card.pulse {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0  0 rgba(255,128,176,0); }
  25%      { box-shadow: 0 0 24px rgba(255,128,176,0.55); }
  50%      { box-shadow: 0 0 24px rgba( 96,232,216,0.55); }
  75%      { box-shadow: 0 0 24px rgba(176,128,255,0.55); }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(255,128,176,0.6),
              0 0 48px rgba( 96,232,216,0.5);
  --shimmer-speed: 1.4s;
}

.card-label {
  display: inline-block;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--canopy-green);
  margin-bottom: 12px;
}

.card-name {
  font-family: "Poiret One", serif;
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  color: var(--tree-bark);
}

.card-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tree-bark);
}

/* === Footer === */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 32px;
  background: var(--canopy-green);
  color: var(--ring-cream);
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.foot-left, .foot-right {
  flex: 1;
  min-width: 240px;
}

.foot-right {
  text-align: right;
}

@media (max-width: 600px) {
  .foot-right { text-align: left; }
}
