/* Home — neo-brutalist + premium polish (aligned with neo-styles + inner pages) */

.home-shell {
  --home-deep: #2f114a;
  --home-shadow-hard: color-mix(in srgb, var(--border) 88%, var(--primary));
  --home-section-y: clamp(2rem, 4.5vw, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-shell .home-main {
  position: relative;
  overflow-x: clip;
  padding-bottom: 2rem;
  flex: 1;
}

/* Section chapter numbers — same pattern as biography `.bio-section__head::before` */
.home-main.home-page {
  counter-reset: home-chapter;
}

.home-hero {
  position: relative;
  padding: clamp(2.1rem, 5vw, 4rem) 0 clamp(1.25rem, 3.2vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 10% 15%, rgba(199, 125, 255, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(102, 217, 239, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 60% 45% at 55% 95%, rgba(255, 217, 61, 0.14) 0%, transparent 45%);
  opacity: 0.95;
}

.home-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(72px, 10vw, 120px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 244, 255, 0) 0%,
    color-mix(in srgb, var(--bg) 34%, transparent) 52%,
    color-mix(in srgb, var(--bg) 72%, transparent) 80%,
    var(--bg) 100%
  );
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.home-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      78% 36% at 0% 0%,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(224, 170, 255, 0.26) 38%,
      rgba(224, 170, 255, 0) 68%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 22%, transparent) 74%,
      color-mix(in srgb, var(--bg) 58%, transparent) 90%,
      var(--bg) 100%
    );
}

.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.42;
  animation: home-orb-float 14s ease-in-out infinite;
}

.home-hero__orb--a {
  width: min(480px, 78vw);
  height: min(480px, 78vw);
  top: -140px;
  left: -120px;
  filter: blur(2px);
  opacity: 0.52;
  background: radial-gradient(circle at 38% 32%, #e0aaff 0%, var(--accent) 35%, var(--primary) 72%, transparent 100%);
}

.home-hero__orb--b {
  width: min(380px, 62vw);
  height: min(380px, 62vw);
  bottom: -100px;
  right: -60px;
  filter: blur(2px);
  opacity: 0.48;
  background: radial-gradient(circle at 55% 38%, #fff0ff 0%, #ffd6ff 30%, var(--pink) 65%, transparent 100%);
  animation-delay: -4s;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 23, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 23, 79, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 18%, black 0%, transparent 78%);
  opacity: 0.9;
}

.home-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.85rem, 4.2vw, 3.5rem);
  align-items: start;
}

.home-hero__copy--alt {
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
  max-width: min(36rem, 100%);
}

.home-hero__eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #fff;
  margin-left: 0;
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 52%, #c77dff 100%);
  border: 2px solid var(--home-deep);
  box-shadow:
    4px 4px 0 var(--home-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(47, 17, 74, 0.35);
}

.home-hero__name {
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.03;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  color: #1a0a2e;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-hero__name {
    background: linear-gradient(
      118deg,
      #0c0518 0%,
      #1a0a2e 14%,
      #3b0764 32%,
      #5a189a 52%,
      #7b2cbf 68%,
      #9b5de5 84%,
      #c026d3 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  body[data-theme="dark"] .home-hero__name {
    color: #faf5ff;
  }
}

.home-hero__role {
  font-size: clamp(1.05rem, 2.35vw, 1.42rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 82%, var(--text));
  margin-bottom: 0.62rem;
  line-height: 1.35;
  text-shadow: 0 2px 28px rgba(155, 93, 229, 0.18);
}

.home-hero__affil {
  font-size: clamp(0.92rem, 1.65vw, 1.02rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 42ch;
  margin-bottom: 0.85rem;
  color: color-mix(in srgb, var(--text) 78%, var(--primary));
  opacity: 0.92;
}

.home-hero__intro {
  font-size: clamp(1rem, 1.85vw, 1.08rem);
  line-height: 1.72;
  max-width: 54ch;
  margin: 0;
  opacity: 0.94;
  color: color-mix(in srgb, var(--text) 90%, var(--primary));
}

.home-hero__intro strong {
  color: var(--text);
  font-weight: 800;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
}

.home-hero__opportunities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  position: static;
  margin-top: clamp(0.55rem, 1.8vw, 0.9rem);
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.home-hero__opportunity-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--primary) 74%, var(--text));
  background: linear-gradient(180deg, #ffffff 0%, #f6eeff 100%);
  box-shadow:
    4px 4px 0 var(--home-shadow-hard),
    0 0 0 1px rgba(155, 93, 229, 0.18),
    0 0 16px rgba(155, 93, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.home-hero__opportunity-link:hover,
.home-hero__opportunity-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    6px 6px 0 var(--home-shadow-hard),
    0 0 0 1px rgba(199, 125, 255, 0.34),
    0 0 24px rgba(199, 125, 255, 0.42),
    0 0 40px rgba(102, 217, 239, 0.2);
  color: var(--pink);
  filter: saturate(1.05);
  outline: none;
}

.home-hero__opportunity-link--primary {
  color: #fff;
  background: linear-gradient(145deg, var(--primary) 0%, var(--pink) 52%, #c77dff 100%);
  box-shadow:
    4px 4px 0 var(--home-shadow-hard),
    0 0 0 1px rgba(199, 125, 255, 0.28),
    0 0 18px rgba(199, 125, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.home-hero__opportunity-link--primary:hover,
.home-hero__opportunity-link--primary:focus-visible {
  color: #fff;
  box-shadow:
    6px 6px 0 var(--home-shadow-hard),
    0 0 0 1px rgba(224, 170, 255, 0.52),
    0 0 28px rgba(199, 125, 255, 0.48),
    0 0 46px rgba(155, 93, 229, 0.28);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: var(--border-width) solid var(--border);
  transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.25s ease;
}

.home-btn--primary {
  background: linear-gradient(145deg, var(--primary) 0%, var(--pink) 48%, color-mix(in srgb, var(--primary) 72%, #ffffff) 100%);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.home-btn--ghost {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  color: var(--text);
  box-shadow: 5px 5px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-btn:hover,
.home-btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border);
  outline: none;
}

.home-btn--primary:hover,
.home-btn--primary:focus-visible {
  filter: brightness(1.05);
}

.home-hero__visual {
  display: flex;
  justify-content: center;
}

.home-hero__frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 22px;
  border: var(--border-width) solid var(--border);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
  background: linear-gradient(155deg, rgba(224, 170, 255, 0.45), rgba(255, 255, 255, 0.92));
  overflow: hidden;
}

.home-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-hero__badge {
  position: absolute;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 var(--border);
}

.home-hero__badge--tl {
  top: 12px;
  left: 12px;
}

.home-hero__badge--br {
  bottom: 12px;
  right: 12px;
}

/* Right column: “at a glance” panel (home avoids duplicating biography portrait) */
.home-hero__visual--aside {
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
}

.home-hero-aside {
  width: 100%;
  max-width: min(448px, 100%);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  filter: drop-shadow(0 20px 40px rgba(47, 23, 79, 0.09));
}

.home-hero-bento {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

@media (min-width: 1025px) {
  .home-hero-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'affil threads'
      'wide wide'
      'chips chips';
    align-items: start;
  }

  .home-hero-bento > .home-hero-bento__cell:nth-child(1) {
    grid-area: affil;
    margin-top: 55px;
  }

  .home-hero-bento > .home-hero-bento__cell:nth-child(2) {
    grid-area: threads;
  }

  .home-hero-bento > .home-hero-bento__cell:nth-child(3) {
    grid-area: wide;
  }

  .home-hero-bento__chips {
    grid-area: chips;
  }

  /* Line up first cards with the name, not the top of the hero row (eyebrow sits above). */
  .home-hero__visual--bento .home-hero-aside {
    margin-top: clamp(2.15rem, 4.1vw, 3rem);
  }
}

.home-hero-bento__cell {
  margin: 0;
}

.home-hero-bento__chips {
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.home-hero-aside__card {
  position: relative;
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 2px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 242, 255, 0.9) 100%);
  box-shadow:
    8px 8px 0 var(--home-shadow-hard),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(155, 93, 229, 0.06);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}

.home-hero-aside__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--pink), #c77dff);
  border-radius: 20px 20px 0 0;
}

@supports (backdrop-filter: blur(8px)) {
  .home-hero-aside__card {
    backdrop-filter: blur(10px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(232, 218, 255, 0.55) 100%);
  }
}

.home-hero-aside__card:hover {
  transform: translateY(-2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-hero-aside__card:focus-within {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.home-hero-aside__card--accent {
  background: linear-gradient(130deg, rgba(199, 125, 255, 0.28) 0%, rgba(255, 255, 255, 0.94) 55%, rgba(255, 248, 230, 0.45) 100%);
}

.home-hero-aside__card--accent::before {
  background: linear-gradient(90deg, #ffd93d, #ff9ecd, #c77dff);
}

.home-hero-aside__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.home-hero-aside__label i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.45), rgba(255, 217, 61, 0.2));
  border: 2px solid var(--border);
  font-size: 0.75rem;
}

.home-hero-aside__lead {
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}

.home-hero-aside__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-hero-aside__list li {
  margin-bottom: 0.35rem;
}

.home-hero-aside__list li:last-child {
  margin-bottom: 0;
}

.home-hero-aside__card--accent p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.65rem;
  opacity: 0.95;
}

.home-hero-aside__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.home-hero-aside__cta:hover,
.home-hero-aside__cta:focus-visible {
  color: var(--primary);
  border-bottom-color: color-mix(in srgb, var(--pink) 55%, transparent);
  outline: none;
}

.home-hero-aside__cta:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.home-hero-aside__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.home-hero-aside__chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f5edff 100%);
  box-shadow:
    4px 4px 0 var(--home-deep),
    inset 0 1px 0 #fff;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-hero-aside__chip:hover,
.home-hero-aside__chip:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    6px 6px 0 var(--home-deep),
    inset 0 1px 0 #fff;
  background: linear-gradient(180deg, #fff9d8 0%, #f1e2ff 100%);
  outline: none;
}

.home-edu-path {
  margin-bottom: var(--home-section-y);
}

.home-edu-path__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-edu-path__card {
  position: relative;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, rgba(245, 237, 255, 0.65) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.2rem 1.2rem 1.25rem 1.35rem;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-edu-path__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--pink));
  border-radius: 20px 0 0 20px;
}

.home-edu-path__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
}

.home-edu-path__step {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pink);
  margin-bottom: 0.35rem;
}

.home-edu-path__school {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.home-edu-path__detail {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
}

.home-quote {
  position: relative;
  margin: 0 0 var(--home-section-y);
  padding: 1.65rem 1.65rem 1.5rem 2.25rem;
  border-radius: 22px;
  border: 2px solid var(--border);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, #ffffff);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 32%, #ffffff) 0%,
    #ffffff 42%,
    color-mix(in srgb, var(--primary) 12%, #ffffff) 100%
  );
  overflow: hidden;
}

.home-quote::before {
  content: '“';
  position: absolute;
  left: 0.45rem;
  top: 0.15rem;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  color: color-mix(in srgb, var(--primary) 28%, transparent);
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

.home-quote p {
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--text);
}

.home-quote p em {
  font-style: italic;
  color: color-mix(in srgb, var(--primary) 35%, var(--text));
}

.home-quote footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 58%, transparent);
}

.home-quote footer a {
  color: var(--pink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--pink) 45%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-quote footer a:hover,
.home-quote footer a:focus-visible {
  color: var(--primary);
  border-bottom-color: color-mix(in srgb, var(--primary) 50%, transparent);
  outline: none;
}

.home-highlights {
  position: relative;
  margin-bottom: 2.5rem;
}

.home-highlights::before {
  content: '';
  position: absolute;
  inset: -1.25rem -4vw -1.5rem;
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 75%, rgba(102, 217, 239, 0.09) 0%, transparent 50%);
  opacity: 0.9;
}

.home-highlights .home-section__head {
  position: relative;
  z-index: 1;
}

.home-highlights__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-highlights__item {
  margin: 0;
  --hl-glow: rgba(155, 93, 229, 0.35);
  --hl-bar: linear-gradient(90deg, #9b5de5, #c77dff, #ff6ad5);
  --hl-icon-bg: linear-gradient(145deg, rgba(199, 125, 255, 0.55), rgba(255, 217, 61, 0.22));
}

.home-highlights__item--research {
  --hl-glow: rgba(155, 93, 229, 0.42);
  --hl-bar: linear-gradient(90deg, #7b2cbf, #c77dff, #e0aaff);
  --hl-icon-bg: linear-gradient(145deg, rgba(199, 125, 255, 0.65), rgba(224, 170, 255, 0.35));
}

.home-highlights__item--pubs {
  --hl-glow: rgba(123, 104, 238, 0.38);
  --hl-bar: linear-gradient(90deg, #5a4fcf, #8b7ae8, #a78bfa);
  --hl-icon-bg: linear-gradient(145deg, rgba(123, 104, 238, 0.55), rgba(167, 139, 250, 0.35));
}

.home-highlights__item--lab {
  --hl-glow: rgba(6, 214, 160, 0.28);
  --hl-bar: linear-gradient(90deg, #06d6a0, #4cc9f0, #4895ef);
  --hl-icon-bg: linear-gradient(145deg, rgba(6, 214, 160, 0.45), rgba(76, 201, 240, 0.3));
}

.home-highlights__item--news {
  --hl-glow: rgba(255, 209, 102, 0.35);
  --hl-bar: linear-gradient(90deg, #ff9e00, #ffd166, #ff6b6b);
  --hl-icon-bg: linear-gradient(145deg, rgba(255, 209, 102, 0.55), rgba(255, 158, 0, 0.28));
}

.home-highlights__item--terminal {
  --hl-glow: rgba(0, 245, 212, 0.32);
  --hl-bar: linear-gradient(90deg, #00bb9e, #00f5d4, #06ffa5);
  --hl-icon-bg: linear-gradient(145deg, rgba(0, 245, 212, 0.4), rgba(6, 255, 165, 0.22));
}

.home-highlights__link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.95rem 1rem 0.95rem 1rem;
  border-radius: 18px;
  border: 2px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 255, 0.88) 45%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow:
    6px 6px 0 var(--border),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(155, 93, 229, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@supports (backdrop-filter: blur(10px)) {
  .home-highlights__link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 240, 255, 0.65) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.home-highlights__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: var(--hl-bar);
  opacity: 0.95;
  box-shadow: 0 0 24px var(--hl-glow);
}

.home-highlights__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 80% 120% at 10% 0%, var(--hl-glow) 0%, transparent 55%);
  transition: opacity 0.28s ease;
}

.home-highlights__link:hover,
.home-highlights__link:focus-visible {
  transform: translate(-4px, -3px);
  box-shadow:
    10px 10px 0 var(--home-shadow-hard),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent),
    0 12px 40px -8px var(--hl-glow);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  outline: none;
}

.home-highlights__link:hover::after,
.home-highlights__link:focus-visible::after {
  opacity: 0.45;
}

.home-highlights__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--hl-icon-bg);
  font-size: 1.12rem;
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.28s ease;
}

.home-highlights__link:hover .home-highlights__icon,
.home-highlights__link:focus-visible .home-highlights__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 14px var(--hl-glow);
}

.home-highlights__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-highlights__title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-highlights__desc {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.82;
}

.home-highlights__chev {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 224, 255, 0.5));
  color: var(--primary);
  font-size: 0.78rem;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.28s ease;
}

.home-highlights__link:hover .home-highlights__chev,
.home-highlights__link:focus-visible .home-highlights__chev {
  transform: translateX(4px);
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.35), rgba(255, 255, 255, 0.9));
}

@media (max-width: 520px) {
  .home-highlights__link {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0.85rem 0.85rem 0.95rem;
    gap: 0.65rem 0.75rem;
  }

  .home-highlights__icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    grid-column: 1;
    grid-row: 1;
  }

  .home-highlights__text {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .home-highlights__chev {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: var(--home-section-y);
}

.home-stat {
  position: relative;
  text-align: center;
  padding: 1.2rem 0.85rem 1.15rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 240, 255, 0.85) 100%);
  box-shadow: 7px 7px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-stat::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 16px;
  border: 1px solid rgba(155, 93, 229, 0.12);
  pointer-events: none;
}

.home-stat:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
}

.home-stat__num {
  display: block;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-stat__num {
    background: linear-gradient(135deg, #c77dff 0%, var(--pink) 55%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.home-stat__label {
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.home-section {
  margin-bottom: var(--home-section-y);
}

/* Same strip pattern as biography `.bio-section__head`: badge + title pill | right-aligned meta | dashed rule */
.home-section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(11.5rem, 24rem);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  margin-bottom: var(--section-head-after-margin);
  padding-bottom: var(--section-head-rule-pad);
  border-bottom: 2px dashed color-mix(in srgb, var(--primary) 22%, var(--border));
}

.home-section__head::before {
  margin-top: 26px;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  counter-increment: home-chapter;
  content: counter(home-chapter, decimal-leading-zero);
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1;
  padding: 0.5rem 0.4rem 0.4rem;
  min-width: 2.55rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(
    155deg,
    var(--pink) 0%,
    color-mix(in srgb, var(--primary) 35%, var(--pink)) 100%
  );
  border: var(--border-width) solid var(--border);
  border-radius: 16px 8px 16px 8px;
  box-shadow: 3px 3px 0 var(--home-deep);
}

.home-section__eyebrow {
  grid-column: 2;
  grid-row: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--pink);
  margin: 0;
  align-self: end;
}

.home-section__head :is(h1, h2) {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  font-family: 'Baloo Da 2', sans-serif;
  font-size: clamp(1.12rem, 2.15vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1f1235;
  padding: 0.52rem 0.95rem;
  background: linear-gradient(165deg, #e8d4ff 0%, #b57af3 100%);
  border: var(--border-width) solid #4b1f73;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--home-deep);
}

.home-section__subtext {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
  justify-self: end;
  max-width: 24rem;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.45;
  opacity: 0.78;
  color: var(--text);
}

body[data-theme='dark'] .home-section__head::before {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--pink) 92%, #fff) 0%,
    color-mix(in srgb, var(--primary) 40%, var(--pink)) 100%
  );
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

body[data-theme='dark'] .home-section__head :is(h1, h2) {
  color: #fff;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--primary) 55%, #1f1235) 0%,
    color-mix(in srgb, var(--primary) 35%, #120a1f) 100%
  );
  border-color: color-mix(in srgb, var(--primary) 65%, var(--border));
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

body[data-theme='dark'] .home-section__subtext {
  opacity: 0.82;
}

/* Desktop: section strip eyebrows only — hero badge stays flush with the name */
@media (min-width: 769px) {
  .home-section__eyebrow {
    margin-left: -70px;
  }
}

.home-pages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-page-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 220, 255, 0.45) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 1.1rem 1.05rem 1rem;
  transition: transform 0.26s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.26s ease;
}

.home-page-card:hover,
.home-page-card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--home-shadow-hard);
  outline: none;
}

.home-page-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.45), rgba(255, 217, 61, 0.18));
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.home-page-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.home-page-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.92;
}

.home-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-honors {
  margin-top: 0.5rem;
}

.home-honors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-honor-card {
  position: relative;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 235, 255, 0.86) 60%, rgba(237, 225, 255, 0.78) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 1.05rem 1.1rem 1.05rem 1.2rem;
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-honor-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--accent), var(--pink));
}

.home-honor-card__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(224, 170, 255, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0.62rem;
}

.home-honor-card__year {
  display: inline-block;
  margin-left: 0.5rem;
  margin-bottom: 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 80%, var(--text));
}

.home-honor-card__title {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.38rem;
}

.home-honor-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.52;
  opacity: 0.92;
}

.home-honor-card:hover,
.home-honor-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), 0 10px 22px -16px rgba(155, 93, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}

.home-honor-card--gold::before {
  background: linear-gradient(180deg, #ffd166, #ff9f1c);
}

.home-honor-card--gold .home-honor-card__icon {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.35), rgba(255, 159, 28, 0.2));
}

.home-honor-card--violet::before {
  background: linear-gradient(180deg, #c77dff, #9b5de5);
}

.home-honor-card--cyan::before {
  background: linear-gradient(180deg, #66d9ef, #00bb9e);
}

.home-honor-card--pink::before {
  background: linear-gradient(180deg, #ff6ad5, #b5179e);
}

.home-experience {
  margin-top: 0.25rem;
}

.home-experience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-experience-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 252, 242, 0.74) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.1rem 1.15rem 1.15rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-experience-card:hover,
.home-experience-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
}

.home-experience-card__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.45rem;
}

.home-experience-card__org {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  font-style: italic;
  opacity: 0.88;
}

.home-experience-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-experience-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.93;
}

.home-experience-card__range {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 50%, var(--text));
}

.home-experience__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.home-skills {
  margin-top: 0.25rem;
}

.home-skills__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-skills-group {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 240, 255, 0.72) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 1.1rem 1.15rem 1.2rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-skills-group:hover,
.home-skills-group:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
}

.home-skills-group__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-skills-group__title i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.88rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.35), rgba(102, 217, 239, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-skills-group__note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  opacity: 0.85;
}

.home-skills-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text);
  border-radius: 999px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 255, 240, 0.45) 100%);
  box-shadow: 3px 3px 0 var(--home-shadow-hard);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-skill-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--home-shadow-hard);
}

.home-skills__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.home-courses {
  margin-top: 1rem;
}

.home-courses__cat-nav {
  margin-bottom: 1rem;
}

.home-course-cat-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(248, 242, 255, 0.94) 52%,
    rgba(237, 224, 255, 0.9) 100%
  );
  box-shadow:
    6px 6px 0 var(--home-shadow-hard),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-course-cat-nav__link {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 58%, var(--primary));
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-course-cat-nav__link:hover,
.home-course-cat-nav__link:focus-visible {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 218, 255, 0.75) 100%);
  border-color: color-mix(in srgb, var(--border) 55%, transparent);
  box-shadow: 3px 3px 0 var(--home-deep);
  transform: translate(-1px, -1px);
  outline: none;
}

.home-course-cat-nav__link:focus-visible {
  box-shadow:
    3px 3px 0 var(--home-deep),
    0 0 0 2px color-mix(in srgb, var(--accent) 48%, transparent);
}

.home-course-cat-nav__link.is-active {
  color: var(--text);
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.4), rgba(255, 217, 61, 0.22));
  border-color: var(--border);
  box-shadow: 4px 4px 0 var(--home-deep), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-courses__footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.course-cert-page__region {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.course-cert-page__breadcrumb {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0.88;
}

.course-cert-page__breadcrumb a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 800;
}

.course-cert-page__breadcrumb a:hover,
.course-cert-page__breadcrumb a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.course-cert-page__breadcrumb span[aria-hidden="true"] {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.course-cert-page__cat-nav {
  margin-bottom: 1.35rem;
}

/* Standalone archive: no chapter badge; title + meta only (no duplicate “Courses” eyebrow) */
.course-cert-page .home-section__head,
.course-cert-page .home-section__head.course-cert-page__section-head {
  grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 24rem);
  grid-template-rows: auto;
  align-items: center;
}

.course-cert-page .home-section__head::before {
  display: none;
  content: none;
}

.course-cert-page .home-section__head :is(h1, h2) {
  grid-column: 1;
  grid-row: 1;
}

.course-cert-page .home-section__subtext {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.course-cert-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.course-cert-page__pager {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.course-cert-page__pager-meta {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.85;
}

.course-cert-page__pager-btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.course-cert-page__empty {
  text-align: center;
  font-weight: 700;
  padding: 2rem 1rem;
  opacity: 0.85;
}

@media (min-width: 1366px) {
  .home-hero__opportunities {
    position: absolute;
    left: 40%;
    bottom: clamp(0.25rem, 1.25vw, 0.9rem);
    margin-top: 0;
    grid-column: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .course-cert-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .course-cert-page__grid {
    grid-template-columns: 1fr;
  }
}

.home-courses__carousel {
  --home-course-per-view: 3;
  --home-course-gap: 1.35rem;
  --home-course-nav-gap: clamp(0.65rem, 2vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: var(--home-course-nav-gap);
  row-gap: 0;
  outline: none;
}

.home-courses__carousel:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 16px;
}

.home-courses__viewport {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
  overflow: hidden;
  padding: 0.5rem clamp(10px, 1.5vw, 14px) 0.5rem;
  margin: -0.5rem 0 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.home-courses__viewport:active {
  cursor: grabbing;
}

.home-courses__track {
  display: flex;
  gap: var(--home-course-gap);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* legacy: old paged carousel used .home-courses__page */
.home-courses__page {
  display: contents;
}

.home-courses__track > .home-course-card {
  flex: 0 0 calc((100% - (var(--home-course-gap) * (var(--home-course-per-view) - 1))) / var(--home-course-per-view));
  min-width: 0;
}

.home-courses__nav {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(224, 170, 255, 0.36));
  box-shadow: 4px 4px 0 var(--home-shadow-hard);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  align-self: center;
  z-index: 1;
}

.home-courses__nav--prev {
  order: 0;
}

.home-courses__nav--next {
  order: 2;
}

.home-courses__nav:hover,
.home-courses__nav:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--home-shadow-hard);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(232, 210, 255, 0.55));
  outline: none;
}

.home-courses__nav:focus-visible {
  box-shadow:
    6px 6px 0 var(--home-shadow-hard),
    0 0 0 3px color-mix(in srgb, var(--accent) 48%, transparent);
}

.home-courses__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 100%;
  width: 100%;
  order: 3;
  margin-top: 0.85rem;
}

.home-courses__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.home-courses__dot:hover,
.home-courses__dot:focus-visible {
  opacity: 0.95;
  transform: scale(1.15);
  outline: none;
}

.home-courses__dot:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.home-courses__dot[aria-current='true'] {
  width: 28px;
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.home-courses__dot[aria-current='true']:hover,
.home-courses__dot[aria-current='true']:focus-visible {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 88%, #fff), color-mix(in srgb, var(--pink) 88%, #fff));
}

/* Certificate preview + brand caption strip (lavender / violet — neo token palette) */
.home-course-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  cursor: pointer;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: color-mix(in srgb, var(--accent) 14%, #fdfbff);
  box-shadow: 6px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4 / 3;
  min-height: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.24s ease;
}

.home-course-card img {
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.home-course-card__zoom {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--home-shadow-hard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.home-course-card__overlay {
  grid-row: 2;
  position: relative;
  z-index: 2;
  padding: 0.78rem 1rem 0.88rem;
  display: grid;
  gap: 0.35rem;
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    color-mix(in srgb, var(--accent) 38%, #ffffff) 42%,
    color-mix(in srgb, var(--primary) 14%, #ffffff) 100%
  );
  border-top: 2px solid var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 25%, #ffffff);
}

.home-course-card__title {
  margin: 0;
  font-size: clamp(0.88rem, 1.9vw, 1.02rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.home-course-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  cursor: pointer;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--pink);
}

.home-course-card:hover .home-course-card__link,
.home-course-card:focus-visible .home-course-card__link {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.home-course-card__link i {
  transition: transform 0.22s ease;
}

.home-course-card:hover,
.home-course-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: none;
}

.home-course-card:hover img,
.home-course-card:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.03) saturate(1.03);
}

.home-course-card:hover .home-course-card__zoom,
.home-course-card:focus-visible .home-course-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.home-course-card:hover .home-course-card__zoom {
  background: rgba(255, 255, 255, 1);
}

.home-course-card:hover .home-course-card__link i,
.home-course-card:focus-visible .home-course-card__link i {
  transform: translateX(3px);
}

body[data-theme="dark"] .home-course-card {
  background: color-mix(in srgb, var(--primary) 18%, #1a1028);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .home-course-card:hover,
body[data-theme="dark"] .home-course-card:focus-visible {
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-course-card__overlay {
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--primary) 35%, #24183a) 0%,
    color-mix(in srgb, var(--pink) 22%, #1c1228) 100%
  );
  border-top-color: var(--border);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-theme="dark"] .home-course-card__title {
  color: rgba(248, 245, 255, 0.96);
}

body[data-theme="dark"] .home-course-card__link {
  color: color-mix(in srgb, var(--accent) 55%, var(--pink));
}

body[data-theme="dark"] .home-course-card:hover .home-course-card__link,
body[data-theme="dark"] .home-course-card:focus-visible .home-course-card__link {
  color: var(--accent);
}

body[data-theme="dark"] .home-course-card__zoom {
  background: rgba(32, 24, 52, 0.92);
  color: rgba(248, 245, 255, 0.95);
  border-color: var(--border);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.home-course-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2.5vw, 2rem);
}

.home-course-lightbox[hidden] {
  display: none;
}

.home-course-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 24, 0.82);
  backdrop-filter: blur(3px);
}

.home-course-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 10px;
  background: rgba(20, 17, 34, 0.95);
  border: 2px solid var(--border);
  box-shadow: 12px 12px 0 rgba(15, 10, 28, 0.7);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.8rem, 3.5vw, 2.4rem) clamp(1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.5rem);
}

.home-course-lightbox__img {
  width: 100%;
  max-height: calc(90vh - 4.5rem);
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.home-course-lightbox__verify {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  color: #f8f5ff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-course-lightbox__verify:hover,
.home-course-lightbox__verify:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.home-course-lightbox__verify[hidden] {
  display: none !important;
}

.home-course-lightbox__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(23, 20, 37, 0.88);
  color: #f8f5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-course-lightbox__close:hover,
.home-course-lightbox__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(33, 28, 54, 0.96);
  outline: none;
}

.home-publications {
  margin-top: 1.1rem;
}

.home-publications__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-publication-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 237, 255, 0.72) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.1rem 1.15rem 1.15rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-publication-card:hover,
.home-publication-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard);
}

.home-publication-card__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.55rem;
}

.home-publication-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-publication-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.93;
}

.home-publications__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.home-projects {
  margin-top: 1.1rem;
}

.home-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-project-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(
    170deg,
    #ffffff 0%,
    color-mix(in srgb, var(--accent) 32%, #ffffff) 48%,
    color-mix(in srgb, var(--primary) 10%, #ffffff) 100%
  );
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, #ffffff);
  padding: 1.1rem 1.15rem 1.15rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-project-card:hover,
.home-project-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, #ffffff);
}

.home-project-card__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.55rem;
}

.home-project-card__focus {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, #ffffff);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.home-project-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-project-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.93;
}

.home-project-card__tags {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-project-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: color-mix(in srgb, var(--accent) 26%, #ffffff);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.home-projects__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.home-volunteering {
  margin-top: 1.1rem;
}

.home-volunteering__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-volunteering-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(
    170deg,
    #ffffff 0%,
    color-mix(in srgb, var(--accent) 32%, #ffffff) 48%,
    color-mix(in srgb, var(--primary) 10%, #ffffff) 100%
  );
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, #ffffff);
  padding: 1.1rem 1.15rem 1.15rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-volunteering-card:hover,
.home-volunteering-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, #ffffff);
}

.home-volunteering-card__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.55rem;
}

.home-volunteering-card__date,
.home-volunteering-card__subject {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.9;
  font-style: italic;
}

.home-volunteering-card__date {
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-weight: 800;
}

.home-volunteering-card__subject {
  margin-bottom: 0.45rem;
}

.home-volunteering-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-volunteering-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.93;
}

.home-recommendations {
  margin-top: 1.2rem;
}

.home-recommendations__carousel {
  --home-rec-per-view: 3;
  --home-rec-gap: 1.35rem;
  --home-rec-nav-gap: clamp(0.65rem, 2vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: var(--home-rec-nav-gap);
  row-gap: 0;
  outline: none;
}

.home-recommendations__carousel:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 16px;
}

.home-recommendations__viewport {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
  overflow: hidden;
  /* Inset so 8px neo-brutalist shadows are not clipped at the viewport edge */
  padding: 0.5rem clamp(10px, 1.5vw, 14px) 0.5rem;
  margin: -0.5rem 0 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.home-recommendations__viewport:active {
  cursor: grabbing;
}

.home-recommendations__track {
  display: flex;
  gap: var(--home-rec-gap);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* legacy page wrapper (JS now slides cards continuously) */
.home-recommendations__page { display: contents; }

.home-recommendations__nav {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(224, 170, 255, 0.36));
  box-shadow: 4px 4px 0 var(--home-shadow-hard);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  align-self: center;
  z-index: 1;
}

.home-recommendations__nav--prev {
  order: 0;
}

.home-recommendations__nav--next {
  order: 2;
}

.home-recommendations__nav:hover,
.home-recommendations__nav:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--home-shadow-hard);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(232, 210, 255, 0.55));
  outline: none;
}

.home-recommendations__nav:focus-visible {
  box-shadow:
    6px 6px 0 var(--home-shadow-hard),
    0 0 0 3px color-mix(in srgb, var(--accent) 48%, transparent);
}

.home-recommendations__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 100%;
  width: 100%;
  order: 3;
  margin-top: 0.85rem;
}

.home-recommendations__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.home-recommendations__dot:hover,
.home-recommendations__dot:focus-visible {
  opacity: 0.95;
  transform: scale(1.15);
  outline: none;
}

.home-recommendations__dot:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.home-recommendations__dot[aria-current='true'] {
  width: 28px;
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.home-recommendations__dot[aria-current='true']:hover,
.home-recommendations__dot[aria-current='true']:focus-visible {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 88%, #fff), color-mix(in srgb, var(--pink) 88%, #fff));
}

/* Dark theme polish for carousel controls */
body[data-theme="dark"] .home-recommendations__nav {
  background: linear-gradient(165deg, rgba(45, 26, 74, 0.96), rgba(32, 18, 50, 0.98));
  color: rgba(245, 240, 255, 0.95);
  border-color: var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.52);
}

body[data-theme="dark"] .home-recommendations__nav:hover,
body[data-theme="dark"] .home-recommendations__nav:focus-visible {
  background: linear-gradient(165deg, rgba(52, 32, 86, 0.98), rgba(36, 22, 58, 0.99));
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

body[data-theme="dark"] .home-recommendations__nav:focus-visible {
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.52),
    0 0 0 3px color-mix(in srgb, var(--accent) 42%, transparent);
}

body[data-theme="dark"] .home-recommendations__dot {
  background: rgba(199, 125, 255, 0.35);
  opacity: 0.5;
}

body[data-theme="dark"] .home-recommendations__dot[aria-current='true'] {
  opacity: 1;
  box-shadow: 0 2px 14px rgba(199, 125, 255, 0.35);
}

/* Neo testimonial shell — lavender / violet (brand tokens), not mint */
.home-recommendation-card {
  position: relative;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(
    170deg,
    #ffffff 0%,
    color-mix(in srgb, var(--accent) 32%, #ffffff) 48%,
    color-mix(in srgb, var(--primary) 10%, #ffffff) 100%
  );
  box-shadow: 6px 8px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, #ffffff);
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  flex: 0 0 calc((100% - (var(--home-rec-gap) * (var(--home-rec-per-view) - 1))) / var(--home-rec-per-view));
  overflow: hidden;
  cursor: default;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-recommendation-card::before,
.home-recommendation-card::after {
  display: none;
}

.home-recommendation-card:hover,
.home-recommendation-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, #ffffff);
}

.home-recommendation-card:focus-within {
  box-shadow:
    10px 10px 0 var(--home-shadow-hard),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, #ffffff),
    0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

.home-recommendation-card__quote {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.93;
}

.home-recommendation-card__meta {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.home-recommendation-card__name {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-recommendation-card__name-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--primary) 55%, transparent);
}

.home-recommendation-card__name-link:hover {
  text-decoration-color: var(--primary);
}

.home-recommendation-card__role {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.9;
  font-style: italic;
}

.home-recommendation-card:active {
  transform: translate(-1px, -1px);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-card {
  border-radius: 20px;
  border: 2px solid var(--border);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.97) 0%, rgba(237, 224, 255, 0.5) 100%);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.2rem 1.2rem 1.15rem;
  transition: transform 0.26s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.26s ease;
}

.home-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--home-shadow-hard);
}

.home-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, rgba(102, 217, 239, 0.35), rgba(199, 125, 255, 0.35));
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.home-card__text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.home-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(224, 170, 255, 0.45);
  margin-bottom: 0.55rem;
}

.home-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}

.home-card__link i {
  transition: transform 0.2s ease;
}

.home-card__link:hover i,
.home-card__link:focus-visible i {
  transform: translateX(4px);
}

.home-cta {
  margin-bottom: 2rem;
}

.home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.65rem;
  border-radius: 22px;
  border: var(--border-width) solid var(--border);
  box-shadow: 8px 8px 0 var(--home-shadow-hard), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(ellipse 70% 90% at 12% 20%, rgba(155, 93, 229, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 80% 120% at 100% 50%, rgba(255, 217, 61, 0.16) 0%, transparent 50%),
    linear-gradient(125deg, rgba(199, 125, 255, 0.32) 0%, rgba(255, 255, 255, 0.96) 52%, rgba(224, 170, 255, 0.12) 100%);
}

.home-cta__text h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.25rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

[data-home-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

body[data-theme="dark"] .home-hero__frame {
  background: linear-gradient(155deg, rgba(155, 93, 229, 0.35), rgba(36, 19, 58, 0.95));
}

body[data-theme="dark"] .home-card,
body[data-theme="dark"] .home-stat,
body[data-theme="dark"] .home-page-card,
body[data-theme="dark"] .home-cta__inner {
  background: linear-gradient(180deg, rgba(36, 19, 58, 0.96), rgba(155, 93, 229, 0.15));
}

body[data-theme="dark"] .home-hero__badge {
  background: rgba(36, 19, 58, 0.92);
  color: var(--text);
}

body[data-theme="dark"] .home-hero-aside__card {
  background: linear-gradient(180deg, rgba(36, 19, 58, 0.96), rgba(155, 93, 229, 0.12));
}

body[data-theme="dark"] .home-hero-aside__chip {
  background: linear-gradient(180deg, rgba(45, 32, 72, 0.95), rgba(28, 16, 46, 0.98));
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .home-hero-aside__card--accent {
  background: linear-gradient(125deg, rgba(155, 93, 229, 0.22), rgba(36, 19, 58, 0.92));
}

body[data-theme="dark"] .home-hero-aside__cta {
  color: color-mix(in srgb, var(--accent) 55%, #fff);
}

body[data-theme="dark"] .home-hero-aside__cta:hover,
body[data-theme="dark"] .home-hero-aside__cta:focus-visible {
  color: #fff;
  border-bottom-color: color-mix(in srgb, var(--pink) 50%, transparent);
}

body[data-theme="dark"] .home-edu-path__card {
  background: linear-gradient(180deg, rgba(36, 19, 58, 0.96), rgba(155, 93, 229, 0.1));
}

body[data-theme="dark"] .home-recommendation-card {
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--primary) 28%, #1a1028) 0%,
    color-mix(in srgb, var(--pink) 14%, #160e22) 100%
  );
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-theme="dark"] .home-honor-card {
  background: linear-gradient(172deg, rgba(36, 19, 58, 0.96) 0%, rgba(44, 25, 71, 0.94) 58%, rgba(31, 17, 49, 0.96) 100%);
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-honor-card__icon {
  background: linear-gradient(145deg, rgba(45, 28, 72, 0.95), rgba(28, 16, 46, 0.96));
}

body[data-theme="dark"] .home-honor-card:hover,
body[data-theme="dark"] .home-honor-card:focus-within {
  box-shadow: 10px 10px 0 var(--home-shadow-hard), 0 10px 22px -16px rgba(199, 125, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .home-recommendation-card:hover,
body[data-theme="dark"] .home-recommendation-card:focus-within {
  box-shadow: 10px 10px 0 var(--home-shadow-hard), 0 10px 22px -16px rgba(199, 125, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .home-recommendation-card:focus-within {
  box-shadow:
    10px 10px 0 var(--home-shadow-hard),
    0 10px 22px -16px rgba(199, 125, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

body[data-theme="dark"] .home-recommendation-card__name-link {
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

body[data-theme="dark"] .home-recommendation-card__name-link:hover {
  text-decoration-color: var(--accent);
}

body[data-theme="dark"] .home-course-cat-nav {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--primary) 26%, #1a1028) 0%,
    color-mix(in srgb, var(--pink) 14%, #160e22) 100%
  );
  border-color: color-mix(in srgb, var(--border) 88%, #1a0f2a);
  box-shadow:
    8px 8px 0 var(--border),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-theme="dark"] .home-course-cat-nav__link {
  color: rgba(245, 240, 255, 0.62);
}

body[data-theme="dark"] .home-course-cat-nav__link:hover,
body[data-theme="dark"] .home-course-cat-nav__link:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--border) 50%, transparent);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .home-course-cat-nav__link:focus-visible {
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.45),
    0 0 0 2px color-mix(in srgb, var(--accent) 42%, transparent);
}

body[data-theme="dark"] .home-course-cat-nav__link.is-active {
  color: #fff;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 48%, #1f1235),
    color-mix(in srgb, var(--pink) 32%, #1a0f28)
  );
  border-color: var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .home-courses__nav {
  background: linear-gradient(165deg, rgba(45, 26, 74, 0.96), rgba(32, 18, 50, 0.98));
  color: rgba(245, 240, 255, 0.95);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.52);
}

body[data-theme="dark"] .home-courses__nav:hover,
body[data-theme="dark"] .home-courses__nav:focus-visible {
  background: linear-gradient(165deg, rgba(52, 32, 86, 0.98), rgba(36, 22, 58, 0.99));
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

body[data-theme="dark"] .home-courses__nav:focus-visible {
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.52),
    0 0 0 3px color-mix(in srgb, var(--accent) 42%, transparent);
}

body[data-theme="dark"] .home-courses__dot {
  background: rgba(199, 125, 255, 0.35);
  opacity: 0.5;
}

body[data-theme="dark"] .home-courses__dot[aria-current='true'] {
  opacity: 1;
  box-shadow: 0 2px 14px rgba(199, 125, 255, 0.35);
}

body[data-theme="dark"] .home-course-lightbox__dialog {
  background: rgba(16, 12, 28, 0.96);
}

body[data-theme="dark"] .home-publication-card {
  background: linear-gradient(175deg, rgba(36, 19, 58, 0.96) 0%, rgba(28, 16, 46, 0.96) 100%);
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-project-card {
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--primary) 28%, #1a1028) 0%,
    color-mix(in srgb, var(--pink) 14%, #160e22) 100%
  );
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-theme="dark"] .home-experience-card {
  background: linear-gradient(175deg, rgba(24, 44, 50, 0.96) 0%, rgba(18, 28, 40, 0.96) 100%);
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-experience-card:hover,
body[data-theme="dark"] .home-experience-card:focus-within {
  box-shadow: 10px 10px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .home-skills-group {
  background: linear-gradient(175deg, rgba(36, 19, 58, 0.96) 0%, rgba(28, 16, 46, 0.96) 100%);
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-skills-group:hover,
body[data-theme="dark"] .home-skills-group:focus-within {
  box-shadow: 10px 10px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .home-skills-group__title i {
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.35), rgba(36, 22, 58, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .home-skill-pill {
  background: linear-gradient(180deg, rgba(32, 22, 52, 0.95) 0%, rgba(24, 44, 50, 0.55) 100%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .home-volunteering-card {
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--primary) 28%, #1a1028) 0%,
    color-mix(in srgb, var(--pink) 14%, #160e22) 100%
  );
  box-shadow: 8px 8px 0 var(--border), inset 0 1px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-theme="dark"] .home-highlights__link {
  background: linear-gradient(135deg, rgba(36, 19, 58, 0.94) 0%, rgba(28, 16, 46, 0.92) 100%);
  box-shadow:
    6px 6px 0 var(--border),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(155, 93, 229, 0.12);
}

@supports (backdrop-filter: blur(10px)) {
  body[data-theme="dark"] .home-highlights__link {
    background: linear-gradient(135deg, rgba(36, 19, 58, 0.72) 0%, rgba(28, 16, 46, 0.82) 100%);
  }
}

body[data-theme="dark"] .home-highlights__link:hover,
body[data-theme="dark"] .home-highlights__link:focus-visible {
  box-shadow:
    10px 10px 0 var(--home-shadow-hard),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent),
    0 12px 40px -8px var(--hl-glow);
}

body[data-theme="dark"] .home-highlights__chev {
  background: linear-gradient(180deg, rgba(45, 28, 72, 0.95), rgba(28, 16, 46, 0.92));
  color: rgba(224, 170, 255, 0.95);
  border-color: var(--border);
}

body[data-theme="dark"] .home-highlights__link:hover .home-highlights__chev,
body[data-theme="dark"] .home-highlights__link:focus-visible .home-highlights__chev {
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.28), rgba(36, 19, 58, 0.85));
}

body[data-theme="dark"] .home-highlights__desc {
  opacity: 0.78;
}

body[data-theme="dark"] .home-highlights::before {
  opacity: 0.5;
}

body[data-theme="dark"] .home-quote {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 38%, #1a0f2e) 0%,
    color-mix(in srgb, var(--pink) 18%, #1c1230) 52%,
    #140c22 100%
  );
  box-shadow: 10px 10px 0 var(--home-shadow-hard), inset 0 1px 0 color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-theme="dark"] .home-quote::before {
  color: color-mix(in srgb, var(--accent) 42%, transparent);
}

body[data-theme="dark"] .home-quote p {
  color: rgba(248, 245, 255, 0.94);
}

body[data-theme="dark"] .home-quote p em {
  color: color-mix(in srgb, var(--accent) 65%, rgba(248, 245, 255, 0.94));
}

body[data-theme="dark"] .home-quote footer {
  color: rgba(220, 210, 235, 0.72);
}

body[data-theme="dark"] .home-quote footer a {
  color: color-mix(in srgb, var(--accent) 40%, var(--pink));
  border-bottom-color: color-mix(in srgb, var(--pink) 55%, transparent);
}

body[data-theme="dark"] .home-quote footer a:hover,
body[data-theme="dark"] .home-quote footer a:focus-visible {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

body[data-theme="dark"] .home-hero::before {
  opacity: 0.55;
  background:
    radial-gradient(ellipse 90% 60% at 10% 15%, rgba(155, 93, 229, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(102, 217, 239, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse 60% 45% at 55% 95%, rgba(255, 217, 61, 0.08) 0%, transparent 45%);
}

body[data-theme="dark"] .home-hero::after {
  background: linear-gradient(
    180deg,
    rgba(22, 14, 36, 0) 0%,
    color-mix(in srgb, var(--bg) 34%, transparent) 52%,
    color-mix(in srgb, var(--bg) 72%, transparent) 80%,
    var(--bg) 100%
  );
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body[data-theme="dark"] .home-hero__name {
    background: linear-gradient(
      118deg,
      #faf5ff 0%,
      #e9d5ff 18%,
      #c4b5fd 42%,
      #a78bfa 62%,
      #c084fc 82%,
      #f0abfc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

body[data-theme="dark"] .home-hero__eyebrow {
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 88%, #0a0514) 0%,
    var(--pink) 48%,
    color-mix(in srgb, var(--primary) 65%, #2a1844) 100%
  );
  border-color: var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .home-btn--ghost {
  background: linear-gradient(180deg, rgba(45, 28, 72, 0.95) 0%, rgba(28, 16, 46, 0.98) 100%);
  color: rgba(245, 240, 255, 0.95);
  box-shadow: 5px 5px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .home-btn--primary {
  background: linear-gradient(145deg, var(--primary) 0%, var(--pink) 50%, color-mix(in srgb, var(--primary) 55%, #2a1844) 100%);
  color: #ffffff;
  box-shadow: 6px 6px 0 var(--border), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .home-hero__opportunity-link {
  color: rgba(245, 240, 255, 0.95);
  background: linear-gradient(180deg, rgba(45, 28, 72, 0.95) 0%, rgba(28, 16, 46, 0.98) 100%);
  box-shadow:
    4px 4px 0 var(--border),
    0 0 0 1px rgba(199, 125, 255, 0.3),
    0 0 18px rgba(155, 93, 229, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .home-hero-aside__label i {
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.45), rgba(36, 19, 58, 0.6));
}

@keyframes home-orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

@media (max-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero__copy--alt {
    margin-top: 0;
  }

  .home-hero__visual--aside {
    justify-content: center;
  }

  .home-hero-aside {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__visual--bento .home-hero-aside {
    margin-top: 0;
  }

  .home-hero__opportunities {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: clamp(0.55rem, 1.8vw, 0.9rem);
    grid-column: 1 / -1;
  }

  .home-edu-path__grid {
    grid-template-columns: 1fr;
  }

  .home-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-honors-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

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

  .home-section__head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
  }

  .home-section__head::before {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .home-section__eyebrow {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .home-section__head :is(h1, h2) {
    grid-column: 2;
    grid-row: 2;
  }

  .home-section__subtext {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    max-width: none;
    text-align: left;
    margin-top: 0;
    padding-top: 0.35rem;
  }

  .course-cert-page .home-section__head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .course-cert-page .home-section__head::before {
    display: none;
    content: none;
  }

  .course-cert-page .home-section__head :is(h1, h2) {
    grid-column: 1;
    grid-row: 1;
  }

  .course-cert-page .home-section__subtext {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .home-section__eyebrow {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .home-recommendations__carousel {
    --home-rec-per-view: 1;
  }

  .home-courses__carousel {
    --home-course-per-view: 1;
  }

  .home-pages-grid,
  .home-focus-grid,
  .home-experience__grid,
  .home-skills__grid,
  .home-publications__grid,
  .home-projects__grid,
  .home-volunteering__grid {
    grid-template-columns: 1fr;
  }

  .home-recommendations__nav {
    display: none;
  }

  .home-courses__nav {
    display: none;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .home-recommendations__carousel {
    --home-rec-per-view: 2;
  }

  .home-courses__carousel {
    --home-course-per-view: 2;
  }

  .home-publications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-experience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-skills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-volunteering__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__orb,
  [data-home-reveal] {
    animation: none !important;
    transition: none !important;
  }

  .home-hero-aside__card:hover,
  .home-stat:hover,
  .home-page-card:hover,
  .home-card:hover,
  .home-edu-path__card:hover,
  .home-experience-card:hover,
  .home-skills-group:hover,
  .home-skill-pill:hover,
  .home-highlights__link:hover,
  .home-btn:hover {
    transform: none !important;
  }

  .home-highlights__link:hover .home-highlights__icon,
  .home-highlights__link:focus-visible .home-highlights__icon,
  .home-highlights__link:hover .home-highlights__chev,
  .home-highlights__link:focus-visible .home-highlights__chev {
    transform: none !important;
  }
}

/* Content width + section rhythm */
.home-main .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.home-region#home-mid {
  position: relative;
  padding-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(248, 244, 255, 0.88) 0%, rgba(255, 255, 255, 0.42) 38%, transparent 100%);
}

.home-region#home-mid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
}

.home-region#home-mid > .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(0.65rem, 1.8vw, 1.35rem);
}

body[data-theme="dark"] .home-region#home-mid {
  background: linear-gradient(180deg, rgba(28, 18, 48, 0.58) 0%, transparent 48%);
}

body[data-theme="dark"] .home-region#home-mid::before {
  opacity: 0.09;
}

.home-region#home-end {
  padding-bottom: 2.5rem;
}

.home-region--hero {
  position: relative;
  isolation: isolate;
}

.home-region--hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(88px, 12vw, 140px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(224, 170, 255, 0.34) 34%,
    rgba(248, 244, 255, 0) 100%
  );
}

body[data-theme="dark"] .home-region--hero::before {
  background: linear-gradient(
    180deg,
    rgba(155, 93, 229, 0.2) 0%,
    rgba(199, 125, 255, 0.08) 36%,
    rgba(18, 10, 31, 0) 100%
  );
}

.home-region--hero .home-hero {
  margin-bottom: 0;
}
