/* ===== Two-column layout ===== */
.layout {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 3rem;
}

/* ----- Fixed left column ----- */
.intro {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  max-width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0;
}

.intro-name {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.intro-name a:hover {
  color: var(--accent);
}

.intro-title {
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-primary);
}

.intro-tagline {
  margin-top: 1rem;
  max-width: 340px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ----- Left-column navigation (scroll-spy) ----- */
.nav {
  margin-top: 3.5rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-indicator {
  display: block;
  height: 1px;
  width: 2rem;
  background-color: var(--text-muted);
  transition: width var(--transition), background-color var(--transition);
}

.nav-link:hover .nav-indicator,
.nav-link:focus-visible .nav-indicator {
  width: 3.5rem;
  background-color: var(--text-primary);
}

.nav-link:hover .nav-text,
.nav-link:focus-visible .nav-text {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active .nav-indicator {
  width: 4rem;
  background-color: var(--accent);
}

.nav-link.active .nav-text {
  color: var(--text-primary);
}

/* ----- Left-column bottom (socials + controls) ----- */
.intro-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.socials a {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

.socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.intro-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ----- Scrolling right column ----- */
.content {
  width: 100%;
  max-width: var(--content-max);
  padding: 6rem 0;
}

.section {
  margin-bottom: 6rem;
  scroll-margin-top: 6rem;
}

.section:last-of-type {
  margin-bottom: 3rem;
}

.section-body p {
  margin-bottom: 1.1rem;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Mobile-only section headings (hidden on desktop, nav covers it) */
.section-heading-mobile {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* ----- Footer ----- */
.footer {
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: var(--content-max);
}

.footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent);
}

.footer-dungeon {
  color: var(--accent) !important;
}
