:root {
  --moss-950: #070a07;
  --moss-900: #0c100c;
  --moss-800: #121810;
  --moss-700: #1a2418;
  --bark: #3a2616;
  --bark-hot: #5a3a22;
  --fur: #8a4a28;
  --ember: #c46a22;
  --flame: #e39a3a;
  --ash: #d8c6a4;
  --bone: #efe4cc;
  --mist: #8a9aa0;
  --line: rgba(216, 198, 164, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Anton", "Impact", sans-serif;
  --font-cond: "Oswald", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background: var(--moss-900);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(90, 110, 70, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(196, 106, 34, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0e0a 0%, #10160f 40%, #0b0f0b 100%);
}

.atmosphere__canopy {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 0%, #050705 0 90px, transparent 91px),
    radial-gradient(circle at 22% -20px, #071007 0 140px, transparent 141px),
    radial-gradient(circle at 48% -10px, #050805 0 170px, transparent 171px),
    radial-gradient(circle at 74% -30px, #071107 0 160px, transparent 161px),
    radial-gradient(circle at 94% 0%, #050705 0 120px, transparent 121px);
  opacity: 0.85;
}

.atmosphere__fog {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse at center, rgba(150, 160, 140, 0.09), transparent 58%);
  filter: blur(40px);
  animation: drift 28s ease-in-out infinite alternate;
}

.fog-b {
  animation-duration: 36s;
  animation-direction: alternate-reverse;
  opacity: 0.7;
  background: radial-gradient(ellipse at 70% 40%, rgba(180, 170, 140, 0.08), transparent 50%);
}

.atmosphere__rays {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    118deg,
    transparent 0 46px,
    rgba(232, 210, 150, 0.025) 46px 48px
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
  animation: ray-shift 18s linear infinite;
}

.atmosphere__embers,
.atmosphere__leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(2) infinite;
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, 0.72);
}

@keyframes drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  to { transform: translate3d(4%, -3%, 0) scale(1.12); }
}

@keyframes ray-shift {
  from { transform: translateX(0); }
  to { transform: translateX(48px); }
}

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

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4vw;
  background: linear-gradient(180deg, rgba(7, 10, 7, 0.86), rgba(7, 10, 7, 0.28) 80%, transparent);
  backdrop-filter: blur(0);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-stuck {
  background: rgba(8, 12, 8, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav__brand,
.footer .nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.nav__wordmark strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--font-cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav__links a {
  position: relative;
  color: var(--ash);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--flame);
  transition: width 0.3s ease;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 16, 0.7);
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ash);
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(227, 154, 58, 0.35),
    0 0 0 7px rgba(58, 38, 22, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

.emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.emblem--sm {
  width: 46px;
  height: 46px;
}

.emblem--lg {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
}

.emblem--pulse::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(227, 154, 58, 0.28);
  animation: ring 4.5s ease-out infinite;
}

@keyframes ring {
  0% { transform: scale(0.86); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(18, 24, 16, 0.65);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.icon-btn img,
.icon-x {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.btn .icon-x {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--flame);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(227, 154, 58, 0.45);
  background:
    linear-gradient(180deg, rgba(196, 106, 34, 0.22), rgba(26, 18, 10, 0.7));
  color: var(--bone);
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn--ember {
  box-shadow: 0 0 0 0 rgba(227, 154, 58, 0.35);
  animation: ember-glow 2.8s ease-in-out infinite;
}

.btn--ghost {
  background: rgba(12, 16, 12, 0.5);
  border-color: var(--line);
}

.btn--nav {
  min-height: 42px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 106, 34, 0.25);
}

@keyframes ember-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 154, 58, 0.15); }
  50% { box-shadow: 0 0 22px 2px rgba(227, 154, 58, 0.28); }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 6vw 90px;
}

.hero__frame {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero__crest {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__orbit {
  position: absolute;
  width: 118%;
  height: 118%;
  border-radius: 50%;
  border: 1px dashed rgba(216, 198, 164, 0.22);
  animation: spin 28s linear infinite;
}

.hero__orbit::before,
.hero__orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 16px var(--flame);
}

.hero__orbit::before { top: 8%; left: 50%; }
.hero__orbit::after { bottom: 14%; right: 12%; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ash);
  font-family: var(--font-cond);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
}

.kicker img {
  height: 14px;
  width: auto;
  filter: brightness(1.15);
}

.kicker--light {
  color: var(--bone);
}

.stack-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(64px, 10vw, 128px);
  background: linear-gradient(180deg, #f6ecd4 10%, #c9b48a 55%, #8d7348 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.stack-title span,
.stack-title em {
  display: block;
}

.stack-title em {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.38em;
  letter-spacing: 0.34em;
  margin: 10px 0 8px;
  color: var(--flame);
  background: none;
  -webkit-text-fill-color: var(--flame);
  filter: none;
}

.stack-title em i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
}

.symbol-chip {
  display: inline-block;
  margin: 18px 0 8px;
  padding: 6px 14px;
  border: 1px solid rgba(227, 154, 58, 0.4);
  font-family: var(--font-cond);
  letter-spacing: 0.22em;
  color: var(--flame);
}

.lede {
  margin: 0 0 22px;
  max-width: 28ch;
  font-size: 22px;
  color: var(--ash);
}

.ca-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 10px 10px 10px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 8, 0.72);
}

.ca-bar__label {
  font-family: var(--font-cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--mist);
}

.ca-bar__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--bone);
}

.ca-bar__copy {
  border: 0;
  background: var(--bark);
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-bar__copy.is-copied {
  background: #2d4a28;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ash);
}

.scroll-cue b {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--flame), transparent);
  animation: drip 1.8s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.about,
.howto,
.chart {
  padding: 110px 6vw;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2,
.join__content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head__text {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--ash);
  font-size: 18px;
}

.tablets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.tablet {
  position: relative;
  padding: 32px 28px 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(227, 154, 58, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(58, 38, 22, 0.42), rgba(12, 16, 12, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.tablet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(216, 198, 164, 0.08);
  pointer-events: none;
}

.tablet:nth-child(1) { --tilt: -1.2deg; }
.tablet:nth-child(2) { --tilt: 0.6deg; }
.tablet:nth-child(3) { --tilt: -0.8deg; }

.tablet:hover {
  transform: rotate(0deg) translateY(-8px);
  border-color: rgba(227, 154, 58, 0.45);
}

.tablet__mark {
  font-family: var(--font-display);
  font-size: 42px;
  color: rgba(227, 154, 58, 0.55);
}

.tablet h3 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tablet p {
  margin: 0;
  color: var(--ash);
}

.climb {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  position: relative;
}

.climb::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--flame), rgba(227, 154, 58, 0.15));
}

.climb__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.climb__knot {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a140e;
  border: 2px solid var(--flame);
  font-family: var(--font-display);
  font-size: 18px;
  z-index: 1;
  box-shadow: 0 0 18px rgba(196, 106, 34, 0.25);
}

.climb__card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: rgba(10, 14, 10, 0.72);
  border: 1px solid var(--line);
}

.climb__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #141814;
  border: 1px solid var(--line);
}

.climb__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.climb__icon--sol img {
  width: 52px;
  height: auto;
}

.climb__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 22px;
}

.climb__card p {
  margin: 0 0 10px;
  color: var(--ash);
}

.text-link {
  color: var(--flame);
  font-family: var(--font-cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.lookout {
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b140e, #0d100d);
  border: 1px solid rgba(216, 198, 164, 0.2);
  box-shadow: var(--shadow);
}

.lookout__rail {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--font-cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ash);
  border-bottom: 1px solid var(--line);
}

.lookout__glass {
  height: min(68vh, 640px);
  background: #0b0f0b;
}

.lookout__glass iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lookout__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lookout__open img {
  width: 18px;
  height: 18px;
}

.join {
  padding: 0 0 0;
}

.join__scene {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.join__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: banner-drift 22s ease-in-out infinite alternate;
}

@keyframes banner-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-2%); }
}

.join__smoke {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(196, 106, 34, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(7, 10, 7, 0.15), rgba(7, 10, 7, 0.78));
  animation: flicker 3.4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  40% { opacity: 1; }
  70% { opacity: 0.75; }
}

.join__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 7, 0.25) 10%, rgba(7, 10, 7, 0.88) 100%);
}

.join__content {
  position: relative;
  z-index: 2;
  width: min(560px, 90%);
  margin: 0 0 72px 6vw;
  padding: 32px 28px;
  text-align: left;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.28), rgba(7, 10, 7, 0.82));
  border: 1px solid rgba(216, 198, 164, 0.18);
  backdrop-filter: blur(4px);
}

.join__content p {
  margin: 0 0 24px;
  color: var(--bone);
  font-size: 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw 36px;
  border-top: 1px solid var(--line);
  background: #070a07;
}

.footer p {
  margin: 0;
  color: var(--ash);
}

.footer__links {
  display: flex;
  gap: 18px;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links img {
  width: 14px;
  height: 14px;
}

.footer__links a:first-child img {
  filter: invert(1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero__frame,
  .tablets {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .hero__crest {
    justify-self: center;
  }

  .stack-title {
    font-size: clamp(56px, 16vw, 92px);
  }

  .nav__links {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: rgba(10, 14, 10, 0.96);
    border: 1px solid var(--line);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .btn--nav {
    display: none;
  }

  .join__scene {
    min-height: 72vh;
  }

  .join__content {
    margin: 0 5vw 48px;
    width: calc(100% - 10vw);
  }

  .nav__links {
    z-index: 30;
  }
}

@media (max-width: 640px) {
  .climb__card {
    flex-direction: column;
  }

  .ca-bar {
    flex-wrap: wrap;
  }

  .lookout__rail {
    gap: 8px;
    flex-wrap: wrap;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
