:root {
  --ink: #12181d;
  --ink-soft: #2a3540;
  --paper: #faf7f0;
  --paper-deep: #f1ece1;
  --hero-bg: #0e1a17;
  --hero-bg-deep: #0a1310;
  --hero-fg: #eef1ee;
  --hero-fg-dim: #a9bab2;
  --forest: #2f6b4f;
  --forest-deep: #1c4633;
  --biome-forest: #e3edde;
  --biome-prairie: #f3efd0;
  --biome-hills: #f7e2c2;
  --biome-summit: #f6d4d9;
  --path-bed: #e4d9bd;
  --path-line: #8a7350;
  --gold: #d3a13c;
  --gold-soft: #e9c983;
  --accent: #c1543a;
  --card-bg: #ffffff;
  --card-border: #e7e1d3;
  --shadow: 0 12px 30px -14px rgba(18, 24, 29, 0.28);
  --shadow-sm: 0 4px 14px -8px rgba(18, 24, 29, 0.35);
  --content-max: 1120px;
  --radius: 14px;
  font-size: 16px;
}

html {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.2em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }

/* ================= HERO ================= */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, #16281f 0%, var(--hero-bg) 55%, var(--hero-bg-deep) 100%);
  color: var(--hero-fg);
  padding: 3.5rem 1.25rem 3rem;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.hero__photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--gold-soft);
  box-shadow: var(--shadow);
}

.hero__name {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: #fff;
}

.hero__title {
  font-weight: 400;
  font-size: 1rem;
  color: var(--hero-fg-dim);
  margin-top: 0.5rem;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.hero__pitch {
  margin-top: 0.9rem;
  color: var(--hero-fg-dim);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.hero__cta {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero__section {
  margin-top: 3rem;
  text-align: left;
}

.hero__heading {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}
.hero__heading svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero__scrollcue {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--hero-fg-dim);
  font-size: 0.82rem;
}
.hero__scrollcue svg {
  width: 18px;
  height: 18px;
  animation: bob-down 1.6s ease-in-out infinite;
}
@keyframes bob-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================= HUD: avatar + radial arc buttons ================= */
.hud {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  width: 68px;
  height: 68px;
  transform: translateY(-160%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
}
.hud.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.hud__avatar {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--gold-soft);
  box-shadow: var(--shadow);
  background: var(--hero-bg);
}
.hud__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hud__arcbtn {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 26, 23, 0.92);
  border: 1.5px solid rgba(233, 201, 131, 0.45);
  color: var(--gold-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hud__arcbtn svg { width: 15px; height: 15px; }
.hud__arcbtn:hover,
.hud__arcbtn:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.08);
}

/* Fixed two-button arc, sweeping down-left from the avatar */
.hud__arcbtn--contact { transform: translate(-50px, -6px); }
.hud__arcbtn--location { transform: translate(-40px, 38px); }
.hud__arcbtn--contact:hover,
.hud__arcbtn--contact:focus-visible { transform: translate(-50px, -6px) scale(1.1); }
.hud__arcbtn--location:hover,
.hud__arcbtn--location:focus-visible { transform: translate(-40px, 38px) scale(1.1); }
.hud__arcbtn--location[aria-expanded="true"] { background: var(--gold); color: var(--ink); }

.hud__panel {
  position: absolute;
  top: 80px;
  right: 0;
  z-index: 3;
  min-width: 220px;
  background: rgba(14, 26, 23, 0.96);
  border: 1px solid rgba(233, 201, 131, 0.35);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0.1rem;
  display: none;
}
.hud__panel:not([hidden]) {
  display: flex;
  animation: panel-pop 0.18s ease-out;
}
.hud__location:hover .hud__panel,
.hud__location:focus-within .hud__panel {
  display: flex;
}
@keyframes panel-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hud__panel-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55em 0.7em;
  border-radius: 9px;
  color: var(--hero-fg);
  font-size: 0.86rem;
  text-align: left;
  transition: background 0.15s ease;
}
.hud__panel-row svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold-soft); }
.hud__panel-row:hover,
.hud__panel-row:focus-visible { background: rgba(233, 201, 131, 0.14); }

@media (max-width: 420px) {
  .hud { top: 10px; right: 10px; width: 58px; height: 58px; }
  .hud__avatar { width: 58px; height: 58px; }
  .hud__arcbtn { width: 28px; height: 28px; top: 15px; left: 15px; }
  .hud__arcbtn--contact { transform: translate(-42px, -4px); }
  .hud__arcbtn--location { transform: translate(-34px, 32px); }
  .hud__arcbtn--contact:hover, .hud__arcbtn--contact:focus-visible { transform: translate(-42px, -4px) scale(1.1); }
  .hud__arcbtn--location:hover, .hud__arcbtn--location:focus-visible { transform: translate(-34px, 32px) scale(1.1); }
  .hud__panel { top: 68px; min-width: 200px; }
}

/* ================= Journey: pinned parallax stage ================= */
.journey {
  position: relative;
}

.journey__spacer {
  position: relative;
  /* height set via JS: stage height + total content height */
}

.journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.journey__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--biome-forest);
  transition: background-color 1.1s ease;
}
.journey__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
}
.journey__blob--a {
  top: -10vmax;
  left: -15vmax;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%);
}
.journey__blob--b {
  bottom: -20vmax;
  right: -20vmax;
  background: radial-gradient(circle, rgba(255,255,255,0.4), rgba(255,255,255,0) 70%);
}

/* Midground: decor scrolls slower than the foreground path/cards, giving real depth. */
.journey__decor-layer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: var(--content-max);
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  will-change: transform;
}

.journey__track {
  --path-x: 34px;
  --path-amp: 20px;
  --path-wavelength: 340px;
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: var(--content-max);
  z-index: 2;
  padding-left: 68px;
  will-change: transform;
}

@media (min-width: 860px) {
  .journey__track {
    --path-x: 50%;
    --path-amp: 56px;
    --path-wavelength: 560px;
    padding-left: 0;
  }
}

.journey__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.character {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  transform: translate(-1000px, -1000px);
}

.stops {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding-top: 2rem;
}

@media (min-width: 860px) {
  .stops { gap: 7rem; }
  .stop { width: 40%; }
  .stop:nth-child(odd) { margin-right: auto; }
  .stop:nth-child(even) { margin-left: auto; }
}
