/* ============================================================
  layout.css — page skeleton: nav bar, hero, section
  containers, archive dividers, and the footer.
  ============================================================ */

/* ============ nav ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  padding: 0.9rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: var(--text);
  text-decoration: none;
}
.nav-brand:hover { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--border-divider);
  padding-left: 1rem;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }

/* ============ hero ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  background: var(--bg);
}

.hero-eyebrow {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--osd);
  font-size: clamp(4.5rem, 17vw, 11rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.12em;
  color: var(--green);
  /* subtle channel split for the title glow */
  text-shadow:
    2px 0 rgba(255, 45, 85, 0.28),
   -2px 0 rgba(60, 255, 220, 0.24),
    0 0 14px rgba(88, 216, 120, 0.18);
}

.hero-sub {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  color: var(--green-dark);
  font-family: var(--osd);
  font-size: 4.5rem;
  line-height: 1;
  animation: drift 2.4s ease-in-out infinite;
  opacity: 1;
  transition: opacity .2s ease;
}

.hero-scroll.is-hidden {
  opacity: 0;
}

.hero-scroll span {
  display: inline-block;
  transform: scaleY(0.65);
  transform-origin: center;
}

/* ============ sections ============ */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 2rem;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.8rem;
}
.section-num {
  color: var(--green-dim);
  margin-right: 0.6rem;
}
.section-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.section-contact { padding-bottom: 5rem; }

/* archive dividers inside Works */
.year-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.6rem;
  font-family: var(--osd);
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px rgba(88, 216, 120, 0.25);
}
.year-divider::before,
.year-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-dark));
}
.year-divider::after {
  background: linear-gradient(90deg, var(--green-dark), transparent);
}

/* ============ footer ============ */

.footer {
  position: relative;
  margin-top: 15rem;
  border-top: 1px solid var(--line);
  padding: 3.1rem 1.5rem 1.7rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--green); }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(88, 216, 120, 0.24);
  border-radius: 999px;
  background: rgba(11, 16, 12, 0.55);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.footer-contact-link:hover {
  border-color: rgba(88, 216, 120, 0.5);
  background: rgba(11, 16, 12, 0.8);
  transform: translateY(-1px);
}

.footer-contact-icon {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

.footer-top {
  position: absolute;
  right: 1.5rem;
  top: 0;
  transform: translateY(-145%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(88, 216, 120, 0.22);
  border-radius: 2px;
  background: rgba(11, 16, 12, 0.58);
  color: var(--text) !important;
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0.97;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, opacity .2s;
}

.footer-top:hover {
  color: var(--green) !important;
  border-color: rgba(88, 216, 120, 0.38);
  background: rgba(11, 16, 12, 0.75);
  opacity: 1;
}

@media (max-width: 720px) {
  .nav {
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1.35rem;
    letter-spacing: 0.16em;
  }

  .nav-links {
    gap: 0.65rem;
    font-size: 0.95rem;
    padding-left: 0.7rem;
  }

  .footer {
    margin-top: 6rem;
    padding-top: 3.8rem;
    padding-bottom: 2rem;
  }

  .footer-contacts {
    gap: 0.75rem 1rem;
  }

  .footer-top {
    left: 50%;
    right: auto;
    transform: translate(-50%, -145%);
  }
}
