/* The ridgeline hero: the drifting terrain, the badges hung on it, and the sections below. */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  color: var(--hero-ink);
  padding: 3.2rem 0 0;
  background:
    radial-gradient(ellipse 66% 54% at 50% 24%, rgba(170,232,52,.58) 0%, rgba(125,190,12,.10) 58%, rgba(0,0,0,0) 80%),
    radial-gradient(ellipse 125% 95% at 50% 6%, rgba(125,190,12,.45) 0%, rgba(0,0,0,0) 72%),
    linear-gradient(178deg, #4d7508 0%, #3c5c06 58%, #2f4905 100%);
}
.wave-stack {
  position: relative; height: 182px; overflow: hidden;
  margin: 1.8rem 0 -1px;
}
.wave-stack svg {
  position: absolute; left: 0; top: 0;
  width: 200%; height: 100%;
  will-change: transform;
}
.hangers {
  position: absolute; left: 0; top: 0;
  width: 200%; height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wave-front, .hangers { animation: drift-b 62s linear infinite; }
  }
@keyframes sway {
  from { transform: translateX(-50%) rotate(-4deg); }
  to   { transform: translateX(-50%) rotate(4deg); }
}
@keyframes drift-b {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.grit {
  position: absolute; inset: -8px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 9px 7px;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .grit { animation: grit 2.4s linear infinite; }
}
@keyframes grit {
  from { transform: translate(0, 0); }
  to   { transform: translate(18px, -7px); }
}
.hero-inner { position: relative; max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
.portrait {
  width: 138px; height: 138px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto 1.5rem;
  border: 4px solid rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 700;
  letter-spacing: -.025em; margin: 0 0 .65rem; text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.wave-hand { font-size: .82em; vertical-align: .04em; }
.hero p { font-size: clamp(1.02rem, 2.3vw, 1.15rem); margin: 0 auto; max-width: 44rem; text-wrap: balance; }

main {
  position: relative;
  background: var(--bg);
  max-width: none;
  padding: .5rem 1.5rem 3rem;
}
.areas { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; }
.area {
  display: grid; gap: .35rem 2rem;
  grid-template-columns: 11rem 1fr;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--bg-soft);
}
.area { transition: opacity .35s ease; }
.area.emptied { opacity: .45; order: 1; }
.area.tail { border-bottom: 0; }
.area-label {
  font: 700 .72rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-bright); padding-top: .45rem;
}
.area h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .3rem; }
.area p { margin: 0 0 1rem; color: var(--ink-soft); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.links li:empty { display: none; }
.pill {
  display: inline-block; text-decoration: none;
  background: var(--bg-deep); color: var(--ridge-far);
  border: 1px solid rgba(218,165,32,.5); border-radius: 999px;
  padding: .3rem .85rem;
  font: 700 .68rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.pill:hover {
  border-color: var(--ridge-far); color: #f0cc6a; transform: translateY(-1px);
}

.wave-foot { display: block; width: 100%; height: auto; margin-bottom: -30px; }
footer {
  position: relative;
  background: var(--bg-deep);
  text-align: center;
  padding: 2.6rem 1.5rem; color: var(--ink-soft); font-size: .9rem;
}
footer a { color: var(--ink-soft); text-decoration-color: rgba(148,162,176,.35); }
footer a:hover { color: var(--green-bright); }

.pill-slot { display: inline-block; }
.pill.dragging {
  position: fixed; z-index: 50; cursor: grabbing;
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.pill.hung {
  position: absolute; transform: translateX(-50%);
  transform-origin: top center; pointer-events: auto;
  margin-top: 16px;
}
.pill.hung::before {
  content: ""; position: absolute; left: 50%; top: -16px;
  width: 1px; height: 16px; background: rgba(218,165,32,.55);
}
@media (prefers-reduced-motion: no-preference) {
  .pill.hung { animation: sway .72s ease-in-out infinite alternate; }
}
.pill { cursor: pointer; touch-action: none; user-select: none; -webkit-user-drag: none; }

@media (max-width: 40rem) {
  .area { grid-template-columns: 1fr; gap: .1rem; }
  .area-label { padding-top: 0; }
}
