:root {
  color-scheme: dark;
  --bg: #06070b;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f7fb;
  --muted: #a8afc2;
  --soft: #dce3f5;
  --cyan: #3fd3f9;
  --mint: #7af4ff;
  --pink: #ff65b3;
  --neon: #f24277;
  --amber: #ffcf7a;
  --violet: #9a8cff;
  --blue: #5279ff;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(82, 121, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(154, 140, 255, 0.2), transparent 28rem),
    linear-gradient(180deg, #06070b 0%, #080a14 46%, #050609 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.09;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.spotlight {
  position: fixed;
  width: 32rem;
  height: 32rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63, 211, 249, 0.13), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.brand,
.desktop-nav,
.nav-cta,
.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  padding-left: 6px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #040810;
  font-size: 0.72rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.desktop-nav {
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: #061015;
  font-weight: 800;
  background: var(--text);
}

.section {
  padding: 50px 0;
}

.hero {
  padding-top: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: 36px;
  min-height: calc(100vh - 118px);
}

/* ── hero copy (accessiway-inspired) ── */
.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(63, 211, 249, 0.7);
  animation: pulse 2s infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 6.35vw, 5.45rem);
  line-height: 0.92;
  letter-spacing: 0;
}

/* Gradient text effect on hero h1 */
.hero-copy h1 {
  background: linear-gradient(229deg, #ffffff 30%, rgba(122, 244, 255, 0.88) 70%, rgba(82, 121, 255, 0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-kicker {
  max-width: 700px;
  color: var(--soft);
  font-size: clamp(1.12rem, 1.75vw, 1.45rem);
  line-height: 1.28;
}

.hero-summary {
  max-width: 660px;
}

.hero-summary,
.section-heading p,
.bento-card p,
.post-card p,
.mentor-step-card p,
.contact-panel p,
.booking-copy p,
.site-footer {
  color: var(--muted);
  line-height: 1.7;
}

.role-rotator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
}

.role-rotator strong {
  color: var(--cyan);
}

.hero-actions,
.booking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.contact-link:hover,
.session-card:hover,
.slot:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #040810;
  border: none;
  font-weight: 800;
  background: linear-gradient(92deg, #2360bf, #62eec6, #dbf6f5);
}

.button.secondary {
  color: var(--text);
  background: var(--panel);
}

.button.ghost {
  color: var(--muted);
  background: transparent;
}

/* ── hero visual / portrait card ── */
.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  perspective: 1200px;
}

.portrait-card {
  position: relative;
  width: min(100%, 500px);
  min-height: 600px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(63, 211, 249, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top, rgba(82, 121, 255, 0.32), transparent 22rem);
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(63, 211, 249, 0.18),
    0 0 60px rgba(82, 121, 255, 0.2);
  transform-style: preserve-3d;
}

/* gradient overlay + coloured accent */
.portrait-card::before {
  position: absolute;
  inset: 1px;
  content: "";
  border-radius: 27px;
  background:
    linear-gradient(transparent 0 72%, rgba(6, 7, 11, 0.88)),
    radial-gradient(circle at 72% 18%, rgba(154, 140, 255, 0.3), transparent 14rem);
}

/* shimmer sweep */
.portrait-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border-radius: 27px;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 6s ease-in-out infinite;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 500px;
  place-items: center;
  /* overflow: hidden; */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(82, 121, 255, 0.22), rgba(154, 140, 255, 0.18)),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), transparent 10rem);
  background-image: url('images/chozhan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* .portrait-frame::before {
  width: 54%;
  aspect-ratio: 0.74;
  content: "";
  border-radius: 42% 42% 30% 30%;
  background:
    radial-gradient(circle at 50% 24%, rgba(246, 247, 251, 0.94), rgba(180, 200, 255, 0.55) 28%, transparent 29%),
    linear-gradient(160deg, rgba(82, 121, 255, 0.8), rgba(154, 140, 255, 0.65));
  filter: saturate(1.3);
} */

.portrait-initials {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 3.6rem;
  font-weight: 900;
}

.portrait-glow {
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  background: rgba(2, 40, 164, 0.134);
  filter: blur(44px);
  animation: glowPulse 3.5s ease-in-out infinite;
}

.portrait-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.portrait-caption span {
  color: var(--muted);
}

.portrait-caption strong {
  font-size: 1.35rem;
}

.portrait-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(63, 211, 249, 0.14);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit-one {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -180px;
}

.orbit-two {
  width: 360px;
  height: 360px;
  bottom: -130px;
  left: -160px;
  animation-direction: reverse;
}

.floating-badge,
.timeline-chip {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.68);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  animation: float 5.5s ease-in-out infinite;
}

.floating-badge {
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  animation: float 5.5s ease-in-out infinite;
}

.badge-a {
  top: 16%;
  left: 0;
  color: var(--cyan);
}

.badge-b {
  right: -5%;
  top: 20%;
  color: var(--amber);
  animation-delay: 1.2s;
}

.badge-c {
  left: -7%;
  bottom: 45%;
  color: var(--amber);
  animation-delay: 2s;
}

.timeline-chip {
  right: -10%;
  bottom: 25%;
  display: grid;
  gap: 4px;
  max-width: 220px;
  padding: 14px 16px;
  color: var(--cyan);
}

.timeline-chip span {
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ── metrics ── */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.metrics-strip article {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.metric,
.suffix {
  font-size: 2.4rem;
  font-weight: 900;
}

.metrics-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* ── section heading ── */
.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  max-width: none;
  align-items: end;
}

/* ── bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.bento-card,
.spotlight-card,
.post-card,
.booking-panel,
.contact-panel,
.testimonial-strip article,
.tab-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.site-header,
.portrait-card,
.booking-panel,
.contact-panel,
.tab-shell {
  backdrop-filter: blur(16px);
}

.bento-card {
  min-height: 260px;
  padding: 28px;
}

.bento-card.large {
  grid-row: span 2;
  min-height: 534px;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(82, 121, 255, 0.18), transparent 18rem),
    var(--panel);
}

.card-label {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bento-card.large h3 {
  max-width: 620px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li,
.signal-cloud span,
.tech-radar span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.timeline span {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 32px rgba(63, 211, 249, 0.54);
}

.timeline p {
  margin: 0;
}

/* ── tabs ── */
.tab-shell {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}

.tab.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.09);
}

.tab-panel {
  display: none;
  min-height: 430px;
  padding: 22px;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
  animation: panelIn 360ms ease both;
}

/* ── contributions grid ── */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contrib-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.contrib-card:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 211, 249, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.contrib-card--more {
  cursor: default;
}

.contrib-card--more:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.contrib-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 280ms ease;
}

/* Glow effect on hover — mirrors the portrait-frame treatment */
.contrib-card:hover .contrib-cover {
  box-shadow:
    inset 0 0 60px rgba(63, 211, 249, 0.1),
    0 0 0 1px rgba(63, 211, 249, 0.4);
}

/* Fallback bg for the "more" placeholder */
.contrib-cover--more {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 18px
  ),
  var(--panel);
}

.contrib-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.contrib-card:hover .contrib-thumb {
  transform: scale(1.04);
}

.contrib-cover-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(to top, rgba(6, 7, 11, 0.86) 0%, transparent 62%);
}

.contrib-platform-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.52);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contrib-symbol {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.16);
  line-height: 1;
  align-self: center;
  text-align: center;
}

.contrib-symbol--lg {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.22);
}

.contrib-play-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  color: white;
  align-self: center;
  transition: background 240ms ease, transform 240ms ease;
}

.contrib-card:hover .contrib-play-btn {
  background: rgba(63, 211, 249, 0.32);
  border-color: rgba(63, 211, 249, 0.5);
  transform: scale(1.1);
}

.contrib-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contrib-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
}

.contrib-body p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contrib-alt-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.contrib-alt-link:hover {
  text-decoration: underline;
}

.spotlight-card {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(63, 211, 249, 0.12), rgba(154, 140, 255, 0.1)),
    var(--panel);
}

.masonry-grid,
.immersive-row,
.post-carousel,
.testimonial-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expand-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.expand-card button {
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--text);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
}

.expand-card p {
  display: none;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.expand-card.open p {
  display: block;
}

.immersive-row article,
.mentor-map div,
.community-board,
.advocacy-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.immersive-row span {
  color: var(--violet);
  font-weight: 900;
}

.mentor-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mentor-map div {
  display: grid;
  min-height: 210px;
  align-content: space-between;
}

.mentor-map strong {
  font-size: 2rem;
}

.mentor-map span,
.community-board p,
.advocacy-panel p,
.immersive-row p {
  color: var(--muted);
  line-height: 1.7;
}

.signal-cloud,
.tech-radar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-radar {
  min-height: 340px;
  align-content: center;
  justify-content: center;
}

.tech-radar span {
  font-size: clamp(1.2rem, 3vw, 2.7rem);
  font-weight: 900;
}

/* ── insights carousel ── */
.carousel-shell {
  position: relative;
  overflow-x: clip;
}

.post-carousel {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(340px, 80vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.post-carousel::-webkit-scrollbar {
  display: none;
}

.post-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 211, 249, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.post-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.post-card:hover .post-cover img {
  transform: scale(1.04);
}

.post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-topic {
  color: #ff6719;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.post-read {
  color: var(--cyan);
  font-weight: 700;
}

.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.carousel-btn:hover {
  border-color: rgba(63, 211, 249, 0.45);
  background: rgba(63, 211, 249, 0.08);
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════
   MENTORING — scroll-stacking cards
═══════════════════════════════════════════════ */
.mentoring-section {
  padding-bottom: 0;
}

/* Header lives above the pin zone in normal flow */
.mentoring-stage-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.mentoring-stage-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1;
  margin-bottom: 10px;
}

.mentoring-stage-header p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.mentoring-pin-zone {
  position: relative;
  height: 300vh;
}

.mentoring-stage {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: visible;
}

/* Cards stack area — height = 3×160 + 2×14 = 508px (all 3 cards initially visible) */
.mentor-stack-list {
  position: relative;
  width: min(100%, 680px);
  height: 508px;
  overflow: visible;
}

.mentor-step-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 28px 28px 22px;
  border: 1px solid rgba(63, 211, 249, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(82, 121, 255, 0.1), rgba(154, 140, 255, 0.07)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  will-change: transform;
}

/* Number badge */
.mentor-step-card > .step-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #040810;
  font-weight: 900;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  flex-shrink: 0;
}

/* Step progress dots */
.step-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 300ms ease, transform 300ms ease;
}

.step-dot.reached {
  background: var(--cyan);
  transform: scale(1.25);
}

/* ── booking panel ── */
.booking-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 38px;
  padding: 22px;
  background:
    radial-gradient(circle at 10% 15%, rgba(63, 211, 249, 0.12), transparent 22rem),
    var(--panel);
}

.booking-copy {
  padding: 16px;
}

.booking-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: grid;
  gap: 12px;
  animation: panelIn 260ms ease both;
}

.session-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.session-card.selected,
.slot.selected {
  border-color: rgba(63, 211, 249, 0.75);
  background: rgba(63, 211, 249, 0.1);
}

.session-card input {
  accent-color: var(--cyan);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.slot {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
}

.booking-step label {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
}

input:focus,
textarea:focus {
  border-color: rgba(63, 211, 249, 0.72);
}

.booking-confirmation {
  display: none;
  gap: 6px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(63, 211, 249, 0.35);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(63, 211, 249, 0.08);
}

.booking-confirmation.show {
  display: grid;
}

.booking-confirmation span {
  color: var(--muted);
}

.booking-controls {
  margin-top: 18px;
}

/* ── testimonials ── */
.testimonial-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 1fr);
  overflow-x: auto;
  grid-template-columns: none;
  padding-bottom: 16px;
}

.testimonial-strip article {
  min-height: 250px;
  padding: 24px;
}

.testimonial-strip p {
  color: var(--soft);
  font-size: 1.1rem;
  line-height: 1.65;
}

.testimonial-strip span {
  color: var(--muted);
}

/* ── contact ── */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.avatar-link {
  display: block;
  width: min(100%, 260px);
}

.contact-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(10, 102, 194, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.contact-link {
  width: min(100%, 260px);
  min-height: 52px;
  border: 2px solid rgba(10, 102, 194, 0.45);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(180deg, #dcdce4 0%, #c7c7d4 100%);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1), 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-link .linkedin-icon {
  height: 24px;
  width: auto;
  max-width: calc(100% - 40px);
  object-fit: contain;
  flex-shrink: 0;
}

/* ── footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 60px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

/* ── scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── keyframes ── */
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(63, 211, 249, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 211, 249, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerSweep {
  0% {
    background-position: 200% 0;
  }
  60%,
  100% {
    background-position: -200% 0;
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

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

/* ── tablet ── */
@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .section-heading.split,
  .bento-grid,
  .booking-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

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

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

/* ── mobile ── */
@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    border-radius: 22px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    padding-inline: 13px;
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.3rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .hero-actions .button,
  .booking-controls .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 510px;
  }

  .portrait-card {
    min-height: 480px;
  }

  .portrait-frame {
    min-height: 340px;
  }

  .floating-badge {
    display: none;
  }

  .timeline-chip {
    top: auto;
    right: 8px;
    bottom: 8px;
  }

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

  .metrics-strip,
  .masonry-grid,
  .immersive-row,
  .mentor-map,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: 100%;
    align-items: center;
  }

  .bento-card.large {
    min-height: 420px;
  }

  .tab-panel {
    padding: 14px;
  }

  /* On mobile: disable pin, show cards as a normal stack */
  .mentoring-pin-zone {
    height: auto;
  }

  .mentoring-stage {
    position: static;
    height: auto;
    overflow: visible;
  }

  .mentor-stack-list {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
  }

  .mentor-step-card {
    position: static;
    height: auto;
    transform: none !important;
  }

  .site-footer {
    display: grid;
  }
}
