/* =========================================================
   Between the Peaks — stylesheet
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-2: #0c1220;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e9eef8;
  --muted: #9aa7bd;
  --accent: #6ea8fe;
  --accent-2: #a78bfa;
  --warm: #ffb37b;
  --radius: 18px;
  --maxw: 1120px;
  --nav-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  color: #cfe0ff;
}

/* Scroll offset for the fixed nav */
section[id] { scroll-margin-top: var(--nav-h); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================== NAV =========================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(110, 168, 254, 0.5));
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--panel-strong);
  outline: none;
}

/* =========================== HERO =========================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--nav-h) + 40px) 24px 220px;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 100%, #1d2b45 0%, #0d1424 45%, #070b14 100%);
  z-index: -2;
}

.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}

.glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  top: -18%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 168, 254, 0.30), transparent 62%);
  filter: blur(30px);
}

.glow--warm {
  top: auto;
  right: auto;
  bottom: 8%;
  left: -14%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 179, 123, 0.18), transparent 64%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(110, 168, 254, 0.32);
  border-radius: 999px;
  background: rgba(110, 168, 254, 0.08);
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #b9c9e6 60%, #7f92b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 22px auto 34px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #08101f;
  box-shadow: 0 12px 30px -12px rgba(110, 168, 254, 0.75);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(110, 168, 254, 0.9);
  outline: none;
}

.btn--ghost {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-2px);
  background: var(--panel-strong);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

/* --- parallax mountain layers --- */
.mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: 66%;
  z-index: 1;
  pointer-events: none;
}

.layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  will-change: transform;
}

.layer--back  { height: 72%; opacity: 0.75; transform: translateY(calc(var(--scroll, 0px) * 0.06)); }
.layer--mid   { height: 58%; opacity: 0.9;  transform: translateY(calc(var(--scroll, 0px) * 0.14)); }
.layer--front { height: 44%;               transform: translateY(calc(var(--scroll, 0px) * 0.26)); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
  z-index: 4;
}

.scroll-cue__dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0.3; }
}

/* =========================== SECTIONS =========================== */
.section {
  padding: 110px 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025) 30%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-lede {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 46px;
}

/* --- about --- */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: start;
}

.profile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: #08101f;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px -14px rgba(110, 168, 254, 0.8);
}

.profile-name { font-size: 1.2rem; }
.profile-role { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.tags li {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--muted);
}

.about-body p { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }
.about-body strong { color: var(--text); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 24px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.fact:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 168, 254, 0.45);
  background: var(--panel-strong);
}

.fact-key {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.fact-val { font-weight: 600; }

.note {
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid rgba(110, 168, 254, 0.5);
  padding-left: 14px;
}

/* --- peaks --- */
.peaks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 22px;
}

.peak {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0 0 22px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.peak:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 168, 254, 0.45);
  box-shadow: 0 24px 50px -30px rgba(110, 168, 254, 0.85);
}

.peak-art {
  height: 150px;
  background: linear-gradient(180deg, rgba(110, 168, 254, 0.14), transparent 70%), var(--h2, #0b1120);
  border-bottom: 1px solid var(--border);
}

.peak-art svg { width: 100%; height: 100%; }

.ridge { fill: var(--h1, #6ea8fe); opacity: 0.95; }
.snow  { fill: #ffffff; opacity: 0.85; }

.peak h3 { font-size: 1.1rem; margin: 18px 22px 2px; }
.peak-meta { font-size: 0.8rem; color: var(--accent); margin: 0 22px 10px; letter-spacing: 0.04em; }
.peak-desc { font-size: 0.9rem; color: var(--muted); margin: 0 22px; }

/* --- contact --- */
.contact { text-align: center; }
.contact .section-kicker,
.contact .section-title { text-align: center; }
.contact .section-lede { margin-left: auto; margin-right: auto; }

/* =========================== FOOTER =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-hint { color: rgba(154, 167, 189, 0.7); }

/* =========================== REVEAL =========================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .profile { max-width: 420px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .hero { padding-bottom: 190px; }
}

@media (max-width: 560px) {
  .nav-links a { padding: 8px 10px; font-size: 0.88rem; }
  .brand-text { display: none; }
  .mountains { height: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .layer--back, .layer--mid, .layer--front { transform: none; }
  .stars i { animation: none; }
  .scroll-cue__dot { animation: none; }
}
