:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: #111111;
  --panel-2: #161616;
  --text: #f5f5f0;
  --muted: #a3a3a3;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.2);
  --accent: #ffffff;
  --max: 1240px;
  --radius: 24px;
  --shadow: 0 18px 60px rgba(0,0,0,0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
  font-family: 'Inter', Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
main { overflow: hidden; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.wordmark {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}
.navbar a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar a:hover,
.navbar a.active { color: var(--text); }
.navbar a:hover::after,
.navbar a.active::after { transform: scaleX(1); }

.section { padding: 84px 0; }
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--muted);
}
.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}
.section-heading h2,
.hero h1,
.panel h3 {
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-media {
  position: relative;
  min-height: 760px;
}

.portrait-main {
  position: absolute;
  right: 40px;
  top: 120px;
  width: clamp(320px, 30vw, 430px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  box-shadow: rgba(0,0,0,0.6),
    0 0 20px rgba(255,255,255,0.08);
}

.portrait-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-secondary {
  position: absolute;
  right: -10px;
  bottom: 80px;
  width: 140px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  box-shadow: var(--shadow);
}

.portrait-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1,
.section-heading h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero h1 { font-size: clamp(3.5rem, 7vw, 7rem); max-width: 11ch; }
.section-heading h2 { font-size: clamp(2.4rem, 4vw, 4.4rem); }
.hero-text,
.panel p,
.panel li,
.contact-list a,
.contact-list strong {
  color: var(--muted);
  line-height: 1.8;
}
.hero-text {
  max-width: 48ch;
  margin: 22px 0 0;
  font-size: 1.02rem;
}

.hero-text strong {
  font-weight: 600;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #050505;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hero-stats li,
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stats li {
  padding: 18px 20px;
}
.hero-stats span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stats small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: end;
}
.portrait-frame {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  box-shadow: var(--shadow);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-main {
  aspect-ratio: 3 / 5 ;
  transform: translateY;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
  top: -370px;
  box-shadow: 0 1px 13px rgb(255, 255, 255);
  animation: float 6s ease-in-out infinite;
}

.portrait-main:hover {
  box-shadow: 0 2px 20px rgb(255, 255, 255);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.portrait-secondary {
  aspect-ratio: 3 / 4;
  transform: translateY(42px);
}

.about-layout,
.timeline-grid,
.project-grid,
.skills-layout,
.leadership-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}
.about-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.statement-panel,
.copy-panel,
.timeline-card,
.project-card,
.skill-panel,
.metric-panel,
.leadership-card,
.contact-card,
.form-panel,
.coursework { padding: 28px; }
.statement {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  color: var(--text);
}
.card-topline,
.timeline-date {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--muted);
}
.timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-sub { margin-top: 10px; }
.timeline-card ul,
.project-card ul { margin: 16px 0 0; padding-left: 18px; }
.accent-card { border-color: rgba(255,255,255,0.24); }
.coursework { margin-top: 18px; }
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tag-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  font-size: 0.9rem;
}
.project-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.featured-project { background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)); }
.skills-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-panel h3,
.project-card h3,
.timeline-card h3,
.contact-card h3,
.form-panel h3 { font-size: 1.25rem; }
.leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.9;
  margin-bottom: 12px;
}
.contact-grid { grid-template-columns: 0.95fr 1.05fr; }
.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-list span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
}
.input::placeholder { color: #8a8a8a; }
.textarea {
  min-height: 160px;
  resize: vertical;
}
.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner p { margin: 0; }

.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .about-layout,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-media {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: end;
    position: static;
    max-width: 760px;
  }

  .portrait-main,
  .portrait-secondary {
    position: static;
    width: auto;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    justify-content: flex-start;
    gap: 14px;
  }

  .section { padding: 68px 0; }
  .hero-stats,
  .timeline-grid,
  .skills-layout,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .portrait-secondary {
    display: none;
  }

  .statement-panel,
  .copy-panel,
  .timeline-card,
  .project-card,
  .skill-panel,
  .metric-panel,
  .leadership-card,
  .contact-card,
  .form-panel,
  .coursework {
    padding: 22px;
  }
}