/* ============================================================
   WITT SCAFIDI — DIGITAL RESUME
   main.css
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:        #0f172a;
  --navy-light:  #1e293b;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --green:       #10b981;
  --white:       #ffffff;
  --off-white:   #f7f5f2;
  --gray-100:    #f0ede9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --text:        #0f172a;
  --text-muted:  #64748b;

  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --transition:  all 0.3s ease;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:      0 4px 6px -1px rgba(0,0,0,0.1),  0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  --radius:    12px;
  --radius-sm:  6px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--blue-light); }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section       { padding: 100px 0; }
.section-alt   { background: var(--off-white); }
.section-dark  { background: var(--navy); position: relative; overflow: hidden; }
.section-dark > * { position: relative; z-index: 1; }
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.section-dark h2,
.section-dark p { color: var(--white); }

.section-header { margin-bottom: 60px; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

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

/* --- Scroll-reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}
.nav-logo:hover img {
  border-color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links li a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
}
.nav-cta:hover {
  background: var(--blue-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* film grain texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  color: var(--blue-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.9; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.about-text p { margin-bottom: 1rem; }

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.contact-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.contact-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.about-photo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.about-values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.value-icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.value-card h3 {
  font-size: 0.975rem;
  margin-bottom: 0.35rem;
}
.value-card p { font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   TIMELINE (EXPERIENCE)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--green) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2.25rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2.55rem;
  top: 0.4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--off-white);
  box-shadow: 0 0 0 3px var(--blue);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.timeline-header h3 { font-size: 1.1rem; }

.timeline-org {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
  margin-top: 0.2rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
}

.timeline-content ul { margin-bottom: 1.2rem; }
.timeline-content ul li {
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.timeline-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
  top: 0.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.edu-card.featured {
  border-left: 4px solid var(--blue);
  background: linear-gradient(135deg, #fefeff 0%, #f5f8ff 100%);
}

.edu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.edu-card h3 { font-size: 1.1rem; }

.edu-degree {
  font-size: 0.875rem !important;
  color: var(--blue) !important;
  font-weight: 500;
  margin-top: 0.2rem !important;
}
.edu-school {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.1rem !important;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}
.edu-gpa {
  background: var(--navy);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}
.edu-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.edu-honors {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gray-200);
}
.edu-honors li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.honor-badge { font-size: 1rem; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.skill-group:hover { box-shadow: var(--shadow); }

.skill-group h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}
.skill-tag:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

/* ============================================================
   ATHLETICS
   ============================================================ */
.athletics-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: center;
}

.athletics-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.athletics-subtitle {
  color: var(--blue) !important;
  font-weight: 500;
  margin-bottom: 1.25rem !important;
  font-size: 0.875rem !important;
}
.athletics-text p { margin-bottom: 1.25rem; line-height: 1.75; }

.athletics-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.athletics-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
}

.athletics-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6) !important;
  margin: 1rem 0 2.5rem;
}
.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060c18;
  padding: 2.5rem 0;
  text-align: center;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25) !important;
}

/* ============================================================
   SPOTIFY / ON ROTATION
   ============================================================ */
.spotify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spotify-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.spotify-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.spotify-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.spotify-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.spotify-card:hover .spotify-cover {
  transform: scale(1.04);
}

.spotify-info {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotify-playlist-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.spotify-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.spotify-tracks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.spotify-tracks li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.45rem;
}
.spotify-tracks li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.track-title {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.track-artist {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  max-width: 45%;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: #1db954;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  transition: var(--transition);
}
.spotify-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.spotify-btn:hover {
  background: #1ed760;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .spotify-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   BLOG / WRITING
   ============================================================ */

/* Post listing page */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.post-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.post-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

/* Individual post page */
.post-banner {
  background: var(--navy);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.post-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.06;
  pointer-events: none;
}
.post-banner .container { position: relative; z-index: 1; }
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1.25;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  max-width: 780px;
}
.post-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.post-container {
  max-width: 780px;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.post-body p {
  margin-bottom: 1.5rem;
}
.post-body h2, .post-body h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }
.post-body hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2.5rem 0;
}
.post-body strong { color: var(--navy); }
.post-body em { color: var(--gray-600); }
.post-body blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--gray-600);
  font-style: italic;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { justify-content: flex-start; }
  .about-photo img { max-width: 260px; }
  .about-values-row { grid-template-columns: 1fr; }
  .athletics-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .athletics-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 120px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .skills-grid { grid-template-columns: 1fr; }
  .edu-row { grid-template-columns: 1fr; }

  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.75rem; }
  .timeline-marker { left: -2.1rem; }

  .timeline-header { flex-direction: column; gap: 0.4rem; }
  .edu-card-header { flex-direction: column; }
  .edu-meta { align-items: flex-start; }
}

@media (max-width: 500px) {
  .hero-name { font-size: 3rem; }
  .hero-cta  { flex-direction: column; align-items: center; }
  .contact-links { flex-direction: column; align-items: center; }
  .about-contact { flex-direction: column; }
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--navy);
  padding: 110px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 55%);
  pointer-events: none;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.06;
  pointer-events: none;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.page-breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }
.page-breadcrumb span:last-child { color: rgba(255,255,255,0.65); }

.page-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  position: relative;
  z-index: 1;
  line-height: 1.15;
}
.page-banner-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TEASER SECTIONS (home page)
   ============================================================ */
.teaser-preview-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.teaser-preview-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.97));
  pointer-events: none;
}
.teaser-label-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.teaser-bullets {
  margin: 0.75rem 0 1rem;
}
.teaser-bullets li {
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.teaser-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
  top: 0.35rem;
}
.teaser-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.teaser-more-hint {
  font-size: 0.82rem;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* Education teaser */
.edu-teaser {
  background: linear-gradient(135deg, #fefeff 0%, #f5f8ff 100%);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.edu-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Skills teaser */
.skills-teaser { text-align: center; }
.skills-teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Athletics teaser */
.athletics-teaser {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.athletics-teaser-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.athletics-teaser-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}
.athletics-teaser-photo:hover img { transform: scale(1.04); }

.athletics-teaser-info h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }

.teaser-stats-row {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}
.teaser-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.teaser-stat-item .stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.teaser-stat-item .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ============================================================
   BASEBALL PHOTO (full athletics page)
   ============================================================ */
.baseball-hero-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
  margin-bottom: 3.5rem;
}

/* ============================================================
   RESPONSIVE (additions)
   ============================================================ */
@media (max-width: 900px) {
  .athletics-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .athletics-teaser-photo img { height: 300px; }
}
@media (max-width: 768px) {
  .teaser-cta-row { flex-direction: column; align-items: flex-start; }
  .skills-teaser .teaser-cta-row { align-items: center; }
  .edu-teaser-header { flex-direction: column; }
  .page-banner { padding: 100px 0 42px; }
}

/* ============================================================
   EXPERIENCE PHOTO
   ============================================================ */
.exp-photo {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.exp-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.exp-photo-caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted) !important;
  font-style: italic;
  max-width: 320px;
}

/* ============================================================
   PHOTO GALLERY (Off the Clock)
   ============================================================ */

/* MUSIC SUB-LABELS */
.music-sub-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* TOP SONGS GRID */
.top-songs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .top-songs-grid { grid-template-columns: 1fr; }
}

/* TOP SONG */
.top-song-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.top-song-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.top-song-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-song-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.top-song-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.top-song-artist {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .top-song-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

.photo-grid {
  column-count: 2;
  column-gap: 1rem;
}

.photo-tile {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .photo-grid { column-count: 1; }
}

/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-page-wrap {
  background: var(--gray-100);
  min-height: 60vh;
  padding-bottom: 4rem;
}

/* Download bar */
.resume-download-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
.resume-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.resume-hint {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  margin: 0;
}
.resume-hint a { color: var(--blue); font-weight: 500; }
.resume-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.resume-dl-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Resume card (document look) */
.resume-container { padding-top: 2.5rem; }
.resume-card {
  background: var(--white);
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
}

/* Resume header */
.res-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy);
}
.res-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.res-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.res-contact a {
  color: var(--navy);
  font-weight: 500;
}
.res-contact a:hover { color: var(--blue); }
.res-sep { color: var(--gray-400); }

/* Resume sections */
.res-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}
.res-section-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.res-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--navy);
}

/* Resume entries */
.res-entry { margin-bottom: 1.25rem; }
.res-entry:last-child { margin-bottom: 0; }

.res-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.res-entry-left { flex: 1; }
.res-entry-right { text-align: right; flex-shrink: 0; }

.res-org {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}
.res-role {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0;
}
.res-role-primary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}
.res-org-sub {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0;
}
.res-date {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}
.res-gpa {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.1rem 0 0;
}

.res-bullets {
  padding-left: 1.1rem;
  margin: 0;
}
.res-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.15rem 0;
  line-height: 1.55;
  list-style: disc;
}

.res-skills-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ── Print styles ── */
@media print {
  .navbar, footer, .resume-download-bar, .page-banner { display: none !important; }
  .resume-page-wrap { background: none; padding: 0; }
  .resume-card {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
  }
  .resume-container { padding: 0; }
  body { font-size: 11pt; }
  .res-name { font-size: 1.75rem; }
  a { color: inherit !important; text-decoration: none; }
}

/* Responsive */
@media (max-width: 680px) {
  .resume-card { padding: 2rem 1.5rem; }
  .res-entry-header { flex-direction: column; gap: 0.2rem; }
  .res-entry-right { text-align: left; }
  .resume-download-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
