/* Bright, kinetic homepage that keeps the story, portrait, and four chapters in one desktop glance. */
:root {
  --pink: #ff168f;
  --hot-pink: #ff168f;
  --deep-pink: #a80055;
}

body {
  background: linear-gradient(145deg, #fffafd 0%, #fff1f8 48%, #fffaf5 100%);
  background-attachment: fixed;
}

header {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #ff95c8;
  background: #fff8fcf2;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 5;
}

.brand-number {
  width: 58px;
  height: 58px;
  padding: 5px 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #ff168f;
  box-shadow: 3px 4px 0 #ffc1df;
}
.brand-number > .brand-total {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 31px;
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.brand-number > .brand-total > span {
  margin: 0 0 0 2px;
  font-size: 15px;
  line-height: 1;
}
.brand-number > small {
  display: block;
  margin: 1px 0 0;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.5px;
}
.brand { color: #9c1450; }
.home-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 2px solid #930047;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff2999, #df086d);
  box-shadow: 3px 5px 0 #8f0b4b;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.home-link:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 4px 8px 0 #8f0b4b; filter: saturate(1.12); }
.home-link:active { transform: translateY(2px); box-shadow: 1px 2px 0 #8f0b4b; }
.home-link .home-star { color: #fff16d; font-size: 17px; margin: 0; animation: home-star-pulse 2s ease-in-out infinite; }
.ambient { display: none; }

header nav { gap: 10px; }
header nav a {
  padding: 8px 13px;
  border: 2px solid;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 2px 3px 0 currentColor;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
header nav a[data-cat="research"] { background: #ff7886; border-color: #a72b3b; color: #641824; }
header nav a[data-cat="leadership"] { background: #ffda42; border-color: #8a6800; color: #513d00; }
header nav a[data-cat="creative-writing"] { background: #4ddd91; border-color: #087241; color: #084329; }
header nav a[data-cat="community-impact"] { background: #5fc2ff; border-color: #126598; color: #083b5c; }
header nav a:hover { transform: translateY(-3px) rotate(-1deg); filter: saturate(1.12); box-shadow: 3px 6px 0 currentColor; }
header nav a:nth-child(even):hover { transform: translateY(-3px) rotate(1deg); }
header nav a[aria-current] { border-bottom-width: 2px; outline: 3px solid #fff; outline-offset: -5px; }

body[data-category="home"] main { max-width: 1500px; padding: 0 3.5%; }

.home-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(290px, .65fr);
  align-items: center;
  gap: clamp(35px, 7vw, 110px);
  padding: 48px 3% 72px;
  overflow: visible;
}

.home-copy { position: relative; z-index: 1; }
.home-copy .eyebrow { color: #b20d5c; font-size: 12px; letter-spacing: 2px; }
.home-copy h1 {
  font-size: clamp(39px, 4.1vw, 62px);
  line-height: 1.04;
  margin: 14px 0 22px;
  color: #851144;
  max-width: 650px;
}
.home-copy h1 em {
  display: inline;
  color: #ff168f;
  text-shadow: 2px 2px 0 #ffd3e8;
  font-style: normal;
}
.home-copy > p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  margin: 0 0 13px;
  max-width: 630px;
  color: #5a253d;
}
.home-copy strong {
  color: #a20c54;
  background: linear-gradient(transparent 61%, #ffd238 61%);
  font-weight: 800;
}
.home-copy .story-close {
  font-family: Kalam, cursive;
  color: #e40078;
  font-size: clamp(20px, 2vw, 27px);
  margin-top: 18px;
  transform: rotate(-1deg);
}

.portrait-wrap {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}
.home-portrait {
  height: clamp(350px, 47vh, 470px);
  max-width: 300px;
  margin: 0 auto 44px;
  transform: rotate(2.5deg);
  border: 8px solid #fff;
  border-bottom-width: 48px;
  border-radius: 22px;
  outline: 2px solid #ff4aa1;
  box-shadow: 8px 10px 0 #ffd1e6;
}
.home-portrait::before {
  display: block;
  content: '✦';
  position: absolute;
  top: -31px;
  right: -28px;
  left: auto;
  width: auto;
  height: auto;
  background: none;
  color: #ff168f;
  font-size: 55px;
  transform: none;
  animation: spark-float 2.2s ease-in-out infinite;
}
.home-portrait img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 14px;
}
.home-portrait .portrait-caption { bottom: -45px; color: #8f124a; display: block; padding: 0 4px; }
.home-portrait .portrait-caption span { font-size: 21px; }
.home-portrait .portrait-caption small { display: block; font-size: 10px; letter-spacing: .2px; }
.portrait-doodle {
  position: absolute;
  left: -19px;
  bottom: 3px;
  background: #fff16d;
  color: #67122f;
  border: 2px solid #a63b5c;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: Kalam, cursive;
  font-size: 14px;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 #f296be;
  animation: doodle-bob 2.8s ease-in-out infinite;
}

.home-paths { position: relative; z-index: 1; grid-column: 1 / -1; width: 100%; margin-top: 18px; }
.home-paths::before { content: ''; position: absolute; inset: -28px -3vw -38px; background: #ffe4f1; border-block: 2px solid #ff9acb; z-index: -2; }
.home-paths .section-bar { margin: 0 0 22px; align-items: flex-end; }
.home-paths .section-bar h2 { font-size: clamp(34px, 4vw, 54px); color: #8f124a; }
.home-paths .section-bar > span { font-size: 12px; color: #9b5172; font-weight: 800; letter-spacing: 1.6px; }
.home-paths .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.home-paths .category-card {
  min-height: clamp(230px, 28vh, 300px);
  padding: 27px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-width: 2px;
  border-radius: 22px;
  box-shadow: 6px 7px 0 var(--home-shadow);
  overflow: hidden;
  isolation: isolate;
}
.home-paths .category-card::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 18px solid #fff4;
  border-radius: 50%;
  right: -42px;
  bottom: -46px;
  z-index: -1;
  transition: transform .4s;
}
.home-paths .category-card:hover::before { transform: scale(1.35) rotate(20deg); }
.home-paths .category-card.c0 { background: #ff6575; border-color: #a72b3b; color: #57121d; --home-hover: #ff4e62; --home-shadow: #c13b4d; }
.home-paths .category-card.c1 { background: #ffd52d; border-color: #8a6800; color: #4c3900; --home-hover: #ffca08; --home-shadow: #c6a317; }
.home-paths .category-card.c2 { background: #39d783; border-color: #087241; color: #073d25; --home-hover: #20c96e; --home-shadow: #1a9a5a; }
.home-paths .category-card.c3 { background: #45b9ff; border-color: #126598; color: #073756; --home-hover: #27aaf8; --home-shadow: #2782b9; }
.home-paths .category-icon { font-size: 44px; line-height: 1; }
.home-paths .category-card h3 { font-size: clamp(24px, 2.2vw, 34px); margin: 0 0 10px; line-height: 1.05; }
.home-paths .category-card p { font-size: 16px; line-height: 1.35; }
.home-paths .chapter-arrow { position: absolute; right: 15px; top: 14px; font-size: 22px; }
.home-paths .category-card:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 8px 11px 0 var(--home-shadow); }
.home-paths .category-card.c1:hover,
.home-paths .category-card.c3:hover { transform: translateY(-7px) rotate(1deg); }

.home-spark {
  position: absolute;
  color: #ff168f;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(2px 3px 0 #ffd0e6);
  animation: spark-float 2.4s ease-in-out infinite;
}
.hs-one { font-size: 48px; left: -18px; top: 12%; }
.hs-two { font-size: 31px; left: 43%; bottom: 10%; animation-delay: .5s; }
.hs-three { font-size: 39px; right: -12px; top: 12%; animation-delay: 1s; }

@keyframes spark-float {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  50% { transform: translateY(-10px) rotate(9deg) scale(1.08); }
}
@keyframes doodle-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes home-star-pulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.18); } }
@media (max-width: 1180px) {
  .home-stage { grid-template-columns: minmax(380px, 1.1fr) minmax(260px, .7fr); gap: 45px; }
  .home-paths .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-paths .category-card { min-height: 220px; }
  .home-copy h1 { font-size: 43px; }
  .home-copy > p { font-size: 15px; }
  .home-portrait { height: 370px; }
}

@media (max-width: 980px) {
  body[data-category="home"] main { padding: 0 5%; }
  .home-stage { grid-template-columns: 1.2fr .8fr; padding-top: 34px; }
  .home-paths { grid-column: 1 / -1; width: 100%; }
  .home-paths .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-paths .category-card { min-height: 220px; }
  .home-portrait { height: 390px; }
}

@media (max-width: 650px) {
  .home-stage { display: flex; flex-direction: column; align-items: stretch; padding-top: 28px; gap: 24px; }
  .home-copy h1 { font-size: 43px; }
  .home-copy > p { font-size: 16px; }
  .portrait-wrap { max-width: 315px; }
  .home-portrait { height: 385px; max-width: 315px; }
  .home-paths .section-bar { display: flex; flex-direction: row; }
  .home-paths .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .home-paths .category-card { min-height: 185px; padding: 20px 15px; }
  .home-paths .category-card h3 { font-size: 20px; }
  .hs-one { left: -8px; }
  .hs-two { display: none; }
  .hs-three { right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-spark,
  .home-portrait::before,
  .portrait-doodle,
  .home-link .home-star { animation: none !important; }
}
