:root {
  --ink: #17323f;
  --muted: #5f7280;
  --line: #d9e3e6;
  --paper: #ffffff;
  --mist: #f5faf9;
  --teal: #12818f;
  --teal-dark: #0a5965;
  --coral: #e85f46;
  --gold: #f2b84b;
  --grass: #2f7d4e;
  --shadow: 0 16px 40px rgba(23, 50, 63, 0.12);
  --scroll-progress: 0%;
  --softball-x: calc(50vw - 31px);
  --softball-y: 82px;
  --softball-rotate: 0deg;
  --hero-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 56px) 64px;
  background: linear-gradient(135deg, rgba(18, 129, 143, 0.95), rgba(23, 50, 63, 0.86)), url("assets/photos/hailey-04.jpeg") center / cover;
  color: white;
  background-position: center calc(50% + var(--hero-shift));
}

.scroll-progress {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(23, 50, 63, 0.12);
}

.scroll-progress span {
  display: block;
  width: var(--scroll-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal));
  transform-origin: left;
}

.softball-floater {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 62px;
  height: 62px;
  pointer-events: none;
  transform: translate3d(var(--softball-x), var(--softball-y), 0) rotate(var(--softball-rotate));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 14px 16px rgba(23, 50, 63, 0.30)) drop-shadow(0 4px 6px rgba(23, 50, 63, 0.18));
}

.softball {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  animation: ball-idle 3s ease-in-out infinite;
}

@keyframes ball-idle {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
  }

  50% {
    translate: 0 -6px;
    scale: 1.03;
  }
}

.softball-floater.is-popping .softball {
  animation: ball-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ball-pop {
  0% {
    translate: 0 14px;
    scale: 0.78;
  }

  30% {
    translate: 0 -30px;
    scale: 1.18;
  }

  55% {
    translate: 0 8px;
    scale: 0.91;
  }

  75% {
    translate: 0 -12px;
    scale: 1.07;
  }

  90% {
    translate: 0 3px;
    scale: 0.97;
  }

  100% {
    translate: 0 0;
    scale: 1;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-weight: 900;
  text-decoration: none;
}

.navlinks {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.navlinks a {
  text-decoration: none;
  opacity: 0.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd785;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  font-weight: 950;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 50, 63, 0.18);
}

.button.primary {
  background: var(--gold);
  color: #17323f;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.88);
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(calc(var(--hero-shift) * -0.35));
  transition: transform 0.2s ease;
}

.summary-band {
  margin-top: -52px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.summary-card,
.panel,
.feature-card,
.game-card,
.profile-card,
.development-card,
.coach-note,
.academic-card,
.references-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 50, 63, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.45s ease;
}

.summary-card:hover,
.panel:hover,
.feature-card:hover,
.game-card:hover,
.profile-card:hover,
.development-card:hover,
.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(23, 50, 63, 0.13);
  border-color: rgba(18, 129, 143, 0.32);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal.is-visible:hover {
  transform: translateY(-4px);
}

.summary-card {
  padding: 20px;
}

.label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.value {
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px clamp(18px, 4vw, 28px) 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

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

.profile-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-card-photo {
  width: 100%;
  height: 82px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin: 12px 0 10px;
}

.profile-card.highlight {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-color: transparent;
}

.profile-card.highlight .label,
.profile-card.highlight p {
  color: rgba(255, 255, 255, 0.82);
}

.profile-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.profile-card p,
.development-card p,
.academic-card p,
.coach-note {
  color: var(--muted);
}

.profile-card a,
.development-card a,
.references-strip a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.academic-card {
  min-height: 210px;
  padding: 22px;
}

.academic-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.development-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.development-card {
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.development-card h3 {
  font-size: 1.7rem;
}

.development-card p:not(.eyebrow) {
  margin-bottom: auto;
}

.development-card.featured {
  border-color: rgba(232, 95, 70, 0.38);
  box-shadow: 0 16px 38px rgba(232, 95, 70, 0.14);
}

.coach-note {
  margin-top: 14px;
  padding: 18px 20px;
}

.reference-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.references-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 18px;
}

.references-strip .label {
  margin-right: 4px;
}

.stat-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel {
  padding: 22px;
}

.panel h3 {
  font-size: 1.35rem;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.metric strong {
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card {
  padding: 24px;
}

.feature-card .big {
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 1;
}

.slash {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.slash span {
  border-radius: 8px;
  background: #eef7f6;
  padding: 10px 12px;
  font-weight: 900;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.link-pill {
  color: var(--teal-dark);
  text-decoration: none;
}

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

.game-card {
  padding: 18px;
}

.game-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.result {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--line);
  font-weight: 950;
}

.result.W {
  background: #dff4e6;
  color: var(--grass);
}

.result.L {
  background: #fde9e5;
  color: var(--coral);
}

.result.T {
  background: #fff4d8;
  color: #8c6518;
}

.score {
  margin-top: 10px;
  font-size: 1.7rem;
  font-weight: 950;
}

.game-lines {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  max-width: 1180px;
  margin: 80px auto 0;
  padding: 28px clamp(18px, 4vw, 28px) 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  margin-top: 6px !important;
  font-size: 0.82rem;
  opacity: 0.78;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split,
  .stat-panels,
  .games-grid,
  .profile-grid,
  .development-grid,
  .academics-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  :root {
    --softball-x: calc(100vw - 62px);
    --softball-y: 100px;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .navlinks {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 11px;
    font-size: 0.78rem;
  }

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

  .section-head.row,
  .site-footer {
    display: block;
  }

  .source-pill {
    margin-top: 14px;
  }

  .softball-floater {
    width: 52px;
    height: 52px;
    opacity: 0.90;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .softball-floater:active {
    cursor: grabbing;
  }

  .softball-floater.is-dragging {
    transition: none !important;
    filter: drop-shadow(0 20px 22px rgba(23, 50, 63, 0.38)) drop-shadow(0 6px 8px rgba(23, 50, 63, 0.22));
  }

  .softball {
    width: 52px;
    height: 52px;
  }

  table {
    min-width: 0;
    font-size: 0.72rem;
  }

  th,
  td {
    padding: 10px 8px;
  }

  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .softball {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
