/* Corporate-meets-Sport — Yanny Wang portfolio */
:root {
  --navy: #1a3352;
  --navy-mid: #244566;
  --navy-light: #335a7c;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --western-purple: #4f2683;
  --purple-soft: #7b5aa6;
  --accent-line: rgba(79, 38, 131, 0.35);
  --shadow: 0 4px 24px rgba(26, 51, 82, 0.1);
  --radius: 12px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-light);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 26, 46, 0.06);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo span {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--navy-light);
  text-decoration: none;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--navy-light);
  color: var(--white) !important;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 45%, #2d4d6e 100%);
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 6rem) 1.5rem clamp(4.5rem, 11vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  max-width: 520px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(90, 140, 190, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-light), #5a7fa3, transparent);
  opacity: 0.9;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-inner--intro .hero-copy {
  max-width: 52rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40ch;
  margin: 0 0 1.5rem;
  border-left: 4px solid rgba(255, 255, 255, 0.55);
  padding-left: 1.15rem;
  line-height: 1.35;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Accordion sections (compact page) */
.sections-accordion {
  padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem);
  background: var(--off-white);
}

.accordion-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.accordion-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.panel {
  border: 1px solid rgba(26, 51, 82, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel:last-of-type {
  margin-bottom: 0;
}

.panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
}

.panel-summary::-webkit-details-marker {
  display: none;
}

.panel-summary::marker {
  content: "";
}

.panel-summary:hover {
  background: rgba(26, 51, 82, 0.04);
}

.panel-summary:focus {
  outline: none;
}

.panel-summary:focus-visible {
  outline: 2px solid var(--navy-light);
  outline-offset: -2px;
}

.panel-summary-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  min-width: 0;
}

.panel-kicker {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.panel-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-mid);
  line-height: 1.25;
}

.panel-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--navy-light);
  border-bottom: 2.5px solid var(--navy-light);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.25s ease;
}

.panel[open] .panel-chevron {
  transform: rotate(225deg);
  margin-bottom: -4px;
}

.panel-body {
  padding: 0 1.25rem 1.35rem;
  border-top: 1px solid rgba(26, 51, 82, 0.08);
  background: var(--white);
}

.panel-body--muted {
  background: var(--off-white);
}

.panel-intro {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.panel-body .section-intro.panel-intro {
  margin-bottom: 1.25rem;
}

.panel--contact .panel-summary--contact:hover {
  background: rgba(26, 51, 82, 0.06);
}

.panel-body--contact {
  background: var(--navy);
  color: var(--white);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.panel-intro--contact {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1rem;
}

.contact-links--block {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-links--block a {
  color: var(--white);
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-links--block a:hover {
  color: #c8daf2;
  text-decoration: none;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2.25rem;
}

.bg-white {
  background: var(--white);
}

.bg-off {
  background: var(--off-white);
}

/* Experience cards */
.experience-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 26, 46, 0.06);
  position: relative;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  border-radius: 0 0 2px 2px;
  opacity: 0.85;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.exp-company {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.exp-role {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.exp-dates {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.exp-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.exp-list li {
  margin-bottom: 0.65rem;
}

.exp-list li::marker {
  color: var(--navy-light);
}

/* Athletics */
.athletics-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .athletics-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillar-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(12, 26, 46, 0.08);
}

.pillar-list li:last-child {
  border-bottom: none;
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: center;
  padding: 0 4px;
}

.pillar-icon--sm {
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.pillar-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.highlight-box {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid rgba(255, 255, 255, 0.55);
}

.highlight-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.highlight-box p + p {
  margin-top: 1rem;
}

/* Academics */
.academics-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 26, 46, 0.06);
  max-width: 720px;
}

.academics-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.course-tags span {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--navy-mid);
  border: 1px solid rgba(26, 51, 82, 0.2);
}

/* Footer */
.site-footer {
  background: #132238;
  color: rgba(255, 255, 255, 0.5);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer strong {
  color: rgba(255, 255, 255, 0.75);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(12, 26, 46, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(12, 26, 46, 0.06);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-cta {
    text-align: center;
  }
}
