/* === Sean Khozin — Modern Personal Website === */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-alt: #f5f5f4;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #a8a29e;
  --accent: #1e3a5f;
  --accent-light: #2d5a8e;
  --accent-subtle: #e8eef5;
  --gold: #b08d57;
  --gold-light: #d4b98a;
  --border: #e7e5e4;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; transition: color 150ms var(--ease); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  background: rgba(250,250,249,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(250,250,249,0.95); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.01em;
  padding: 0.25rem 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width 300ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform 300ms var(--ease), opacity 150ms var(--ease); }

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30,58,95,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(176,141,87,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30,58,95,0.03) 0%, transparent 50%);
}
.hero-content { text-align: center; padding: 6rem 2rem; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-name {
  font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 400;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); margin-bottom: 0.5rem;
  opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 400;
  font-style: italic; color: var(--text-2); margin-bottom: 2rem;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--text-2); max-width: 600px; margin: 0 auto 3rem; line-height: 1.8;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  opacity: 0; animation: fadeUp 0.8s var(--ease) 1s forwards;
}
.scroll-indicator { width: 24px; height: 40px; border: 2px solid var(--text-3); border-radius: 12px; position: relative; }
.scroll-indicator::after {
  content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px;
  background: var(--text-3); border-radius: 2px; transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; padding: 0.75rem 1.75rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; border-radius: 4px;
  transition: all 300ms var(--ease); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

/* --- Sections --- */
.section { padding: 8rem 0; }
.section-header { margin-bottom: 4rem; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }

/* --- About --- */
.about-portrait-grid { display: grid; grid-template-columns: 340px 1fr; gap: 5rem; align-items: start; }
.about-photo { position: relative; }
.about-photo-frame {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: 0 20px 60px rgba(30,58,95,0.15), 0 4px 16px rgba(0,0,0,0.08);
}
.about-photo-frame::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, transparent 60%, rgba(30,58,95,0.08) 100%);
  pointer-events: none;
}
.about-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  display: block;
}
.about-body { min-width: 0; }
.about-text .lead { font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-2); margin-bottom: 1.5rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-highlights { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.highlight-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; text-align: center; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.highlight-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.highlight-number { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; }
.highlight-label { font-size: 0.75rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.05em; text-transform: uppercase; }

/* --- Roles --- */
.section-roles { background: var(--surface-alt); }
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.role-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.role-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); border-radius: 10px; margin-bottom: 1.5rem; color: var(--accent);
}
.role-icon svg { width: 24px; height: 24px; }
.role-card h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; line-height: 1.3; }
.role-position { font-size: 0.875rem; font-weight: 500; color: var(--gold); margin-bottom: 0.25rem; }
.role-parent { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 1rem; }
.role-links { margin-top: 1rem; display: flex; gap: 0.75rem; }
.role-link { font-size: 0.8125rem; font-weight: 500; color: var(--accent); text-decoration: none; border: 1px solid var(--border); padding: 0.35rem 0.875rem; border-radius: 4px; transition: all 200ms var(--ease); }
.role-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.role-card p:last-child { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 4rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -3.5rem; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); z-index: 1; transition: background 150ms var(--ease);
}
.timeline-item:hover .timeline-marker { background: var(--accent); }
.timeline-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.timeline-content h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.3; }
.timeline-content p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }

/* --- INFORMED --- */
.section-informed { background: var(--accent); color: #fff; }
.section-informed .section-label { color: var(--gold-light); }
.section-informed .section-title { color: #fff; }
.informed-text .lead { font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; color: rgba(255,255,255,0.9); }
.informed-text p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.informed-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pillar {
  padding: 2rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; transition: background 300ms var(--ease);
}
.pillar:hover { background: rgba(255,255,255,0.12); }
.pillar h4 { font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.5rem; color: #fff; }
.pillar p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-bottom: 0; line-height: 1.6; }
.informed-references { margin-top: 3rem; }
.informed-references h4 { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.informed-ref { display: block; padding: 0.875rem 1.25rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; text-decoration: none; font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0.75rem; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.informed-ref:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.informed-ref span { display: block; font-size: 0.75rem; color: var(--gold-light); margin-top: 0.25rem; }

/* --- Research --- */
.section-research { background: var(--surface-alt); }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
a.research-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  text-decoration: none; color: var(--text);
}
a.research-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); color: var(--text); }
.research-journal { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
a.research-card h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.4; color: var(--text); }
a.research-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.research-card-multi {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.research-card-multi:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.research-card-multi h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.4; }
.research-card-multi p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.research-card-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.research-link { font-size: 0.8125rem; font-weight: 500; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; }
.research-link::before { content: '\2192'; margin-right: 0.5rem; }
.research-link:hover { color: var(--accent-light); text-decoration: underline; }
.research-links { display: flex; gap: 1rem; justify-content: center; margin-top: 4rem; flex-wrap: wrap; }


/* --- Music --- */
.section-music { background: var(--accent); color: #fff; }
.section-music .section-label { color: var(--gold-light); }
.section-music .section-title { color: #fff; font-style: italic; }
.music-intro { font-size: 1.0625rem; color: rgba(255,255,255,0.75); margin-bottom: 3rem; max-width: 600px; line-height: 1.8; }
.music-embed { margin-bottom: 2.5rem; max-width: 800px; }
.music-embed iframe { display: block; }
.music-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.music-btn { color: #fff; border-color: rgba(255,255,255,0.3); display: inline-flex; align-items: center; }
.music-btn:hover { background: #fff; color: var(--accent); border-color: #fff; }
.music-article {
  margin-top: 3rem; padding: 2.5rem; max-width: 800px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.music-article:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.music-article-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.75rem; }
.music-article h4 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; color: #fff; margin-bottom: 0.25rem; }
.music-article-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; font-style: italic; }
.music-article p { font-size: 0.9375rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 1.5rem; }
.music-article .music-btn { font-size: 0.8125rem; padding: 0.5rem 1.25rem; }

/* --- Boards --- */
.section-boards { background: var(--surface-alt); }
.boards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.board-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2rem;
  text-align: center; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.board-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.board-item h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; line-height: 1.4; }

/* --- Contact --- */
.section-contact { text-align: center; }
.contact-content .lead { font-size: 1.125rem; color: var(--text-2); max-width: 600px; margin: 0 auto 3rem; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); transition: all 300ms var(--ease);
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Footer --- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-content { text-align: center; }
.footer-content p { font-size: 0.8125rem; color: var(--text-3); }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; } 50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-portrait-grid { grid-template-columns: 280px 1fr; gap: 3rem; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .informed-pillars { grid-template-columns: repeat(2, 1fr); }
  .boards-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1.5rem 0;
    opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 0.875rem; }
  .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); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .nav-links a { font-size: 0.70rem; }
  .about-portrait-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto 2rem; }
  .about-highlights { flex-direction: column; }
  .roles-grid, .informed-pillars, .research-grid, .boards-grid { grid-template-columns: 1fr; }
  .hero-cta, .contact-links { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.5rem; }
  .section-title { font-size: 1.5rem; }
}
