/* ---------- Base ---------- */
:root {
  --bg: #05070a;
  --bg-elevated: #0b0f15;
  --bg-card: #10151d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f6;
  --text-dim: #9aa5b3;
  --accent: #ff6a3d;
  --accent-2: #3ea6ff;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

a {
  color: inherit;
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1.4em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span {
  top: 16px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(5, 7, 10, 0.92) 0%,
      rgba(5, 7, 10, 0.78) 32%,
      rgba(5, 7, 10, 0.4) 58%,
      rgba(5, 7, 10, 0.18) 100%
    ),
    linear-gradient(to top, rgba(5, 7, 10, 0.85) 0%, transparent 22%);
}

/* Decorative route line, reused as a divider above the journey timeline. */
.route-accent {
  display: block;
  width: 100%;
  height: 110px;
  opacity: 0.5;
}

.route-path {
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.35;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.8s ease forwards 0.3s;
}

.route-dot {
  fill: var(--accent);
  offset-path: path("M -50 120 C 150 60, 220 160, 340 100 S 520 -20, 620 20 S 780 120, 880 0 S 1050 -180, 1260 -140");
  animation: ride 9s linear infinite, fadein 1s ease forwards 3s;
  opacity: 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@keyframes ride {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 1.2rem;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  margin: 0;
}

.hero-name span {
  color: var(--accent);
}

.hero-role {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text-dim);
  min-height: 1.6em;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent);
  color: #17110c;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 20px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text-dim);
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-delay: 0.1s;
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: left;
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--accent-2);
  white-space: nowrap;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Generic section ---------- */
.about-inner,
.journey-inner,
.leadership-inner,
.coaching-inner,
.connect-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 24px;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem;
}

.about-text p {
  font-size: 1.05rem;
}

/* ---------- Journey / timeline ---------- */
.journey {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18);
}

.timeline-year {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.timeline-meta {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* ---------- Leadership ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}

.leadership-period {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.leadership-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.leadership-org {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* ---------- Coaching ---------- */
.coaching {
  border-top: 1px solid var(--line);
}

.coaching-inner {
  max-width: 720px;
  text-align: left;
}

.coaching-lede {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.coaching-inner .btn {
  margin-top: 1rem;
}

/* ---------- Connect / footer ---------- */
.connect {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.connect-inner {
  text-align: center;
}

.connect-inner p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.2rem 0 2.6rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7em 1.3em;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.connect-copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 7, 10, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem 24px;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 3rem 24px;
  }

  /* On narrow screens the photo is zoomed in tight on Jan's face — keep the
     top clear and push the text + scrim down to the bottom third instead of
     darkening the whole image. */
  .hero {
    align-items: flex-end;
  }

  .hero-media {
    background-position: center 12%;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(5, 7, 10, 0.95) 0%,
      rgba(5, 7, 10, 0.88) 22%,
      rgba(5, 7, 10, 0.45) 42%,
      rgba(5, 7, 10, 0.08) 60%,
      transparent 75%
    );
  }

  .hero-inner {
    padding-bottom: 3rem;
  }
}
