/* ---------- Globe canvas (fixed, behind content) ---------- */
.globe-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.globe-wrap canvas {
  width: 100%;
  height: 100%;
}
.globe-fallback {
  display: none;
  position: absolute;
  right: 5vw;
  top: 50%;
  width: min(60vw, 560px);
  transform: translateY(-50%);
  opacity: 0.5;
}
.globe-wrap.no-webgl .globe-fallback { display: block; }

main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  padding-top: 8rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero__copy { max-width: 40rem; }
.hero__eyebrow { display: block; margin-bottom: 1.5rem; color: var(--accent); }
.hero__name {
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.7rem);
  line-height: 1.35;
  color: var(--ivory-2);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta {
  align-self: end;
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero__meta span { color: var(--ivory-3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero__meta { display: none; }
}

/* ---------- Statement ---------- */
.statement { padding-top: clamp(4rem, 8vw, 8rem); }
.statement__text {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  line-height: 1.35;
  font-weight: 300;
  max-width: 52rem;
}
.statement__text strong { font-weight: 400; color: var(--accent-hi); }

/* ---------- Experience (sticky column) ---------- */
.experience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.experience__sticky {
  position: sticky;
  top: 7rem;
}
.experience__sticky h2 { font-size: var(--fs-h1); font-style: italic; margin: 0.5rem 0 1.25rem; }
.experience__sticky p { color: var(--ivory-2); max-width: 26rem; }

@media (max-width: 900px) {
  .experience__grid { grid-template-columns: 1fr; }
  .experience__sticky { position: static; }
}

/* ---------- Work ---------- */
.work .section-head h2 { font-size: var(--fs-h1); }

/* ---------- Capabilities ---------- */
.capabilities .section-head h2 { font-size: var(--fs-h1); }

/* ---------- Network interlude ---------- */
.network {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.network__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  width: 100%;
}
.network h2 {
  font-size: var(--fs-h1);
  font-style: italic;
  margin-bottom: 1rem;
}
.network p { color: var(--ivory-2); }
.network__pops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 2rem;
  align-self: center;
}
.network__pops li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ivory-2);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.4rem;
}
.network__pops li b { color: var(--accent); font-weight: 400; }
.network__pops li.is-home { color: var(--ivory); }

@media (max-width: 900px) {
  .network__inner { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact h2 {
  font-size: clamp(2.6rem, 6vw + 0.5rem, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.contact h2 em { font-weight: 400; }
.contact__where { margin-top: 3rem; color: var(--ivory-3); }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ivory-3);
}
.footer a { color: var(--ivory-2); }
.footer a:hover, .footer a:focus-visible { color: var(--accent); }

/* ---------- Reveal + parallax defaults ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-mask > span { display: inline-block; transform: translateY(110%); }

/* No JS, or reduced motion: everything visible immediately */
html:not(.js-ready) [data-reveal],
html.reduced-motion [data-reveal] { opacity: 1; transform: none; }
html:not(.js-ready) .word-mask > span,
html.reduced-motion .word-mask > span { transform: none; }
html:not(.js-ready) .preloader { display: none; }
