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

:root {
  /* Colors */
  --navy: #001b3d;
  --navy-dark: #000a1e;
  --wine: #92484f;
  --blue-accent: #708ab5;
  --surface: #fbf9f5;
  --surface-container: #efeeea;
  --surface-variant: #e4e2de;
  --on-surface: #1b1c1a;
  --on-surface-variant: #44474e;
  --outline: #74777f;

  /* Fonts */
  --font-headline: 'Newsreader', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--surface);
  background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

/* ===== Sticky Nav ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.site-nav.visible {
  transform: translateY(0);
}

.site-nav .logo {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-dark);
}

.site-nav .nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.site-nav .nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover {
  color: var(--wine);
}

/* ===== Hamburger Button ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 1.5rem 2rem;
  gap: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
  padding-top: 3rem;
  overflow: hidden;
  background-color: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.95) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, transparent 50%),
    linear-gradient(to top, var(--navy) 0%, rgba(0, 27, 61, 0.6) 35%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  padding: 0 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wine);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  height: 10rem;
}

.typing-line {
  display: inline;
}

.typing-word {
  display: inline;
  font-weight: 600;
}

.typing-word.magenta {
  color: var(--wine);
  text-shadow: 0 0 20px rgba(146, 72, 79, 0.5);
}

.typing-word.blue {
  color: var(--blue-accent);
  text-shadow: 0 0 20px rgba(112, 138, 181, 0.5);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue-accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  margin-top: 17rem;
  color: var(--surface-variant);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 300px;
  line-height: 1.7;
}

/* ===== Sections shared ===== */
.section {
  padding: 4rem 1.5rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wine);
}

.section-title {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--navy-dark);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* ===== Work Section ===== */
.work-section {
  background-color: var(--surface-container);
}

.flagship-card {
  background: var(--navy);
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.flagship-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--wine);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.flagship-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.flagship-media {
  border-radius: 0.5rem;
  overflow: hidden;
}

.flagship-media-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wine);
  transition: color 0.2s;
}

.flagship-media-link:hover {
  color: #fff;
}

.flagship-media img,
.flagship-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.flagship-card h3 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.flagship-card p {
  color: var(--surface-variant);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.flagship-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flagship-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.flagship-stat .icon {
  color: var(--wine);
  font-size: 1.2rem;
}

.work-summary {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.work-card {
  background: var(--surface);
  border-radius: 0.25rem;
  padding: 2rem;
}

.work-card h4 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.work-card p {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--surface-container);
}

.about-headline {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  color: var(--navy-dark);
  line-height: 1.2;
}

.about-text h2 em {
  font-style: italic;
}

.about-text .body-text {
  margin-top: 2rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.about-text .body-text p + p {
  margin-top: 1rem;
}

.credentials-box {
  margin-top: 2.5rem;
  background: var(--surface-container);
  border-radius: 0.25rem;
  padding: 1.5rem 2rem;
}

.credentials-box .cred-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--on-surface);
}

.credentials-box ul {
  list-style: none;
}

.credentials-box li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(116, 119, 127, 0.2);
  font-size: 0.9rem;
}

.credentials-box li:last-child {
  border-bottom: none;
}

.credentials-box .cred-value {
  font-style: italic;
  color: var(--wine);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  border-radius: 0.25rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}

.stat-card.light {
  background: var(--surface-container);
}

.stat-card.dark {
  background: var(--navy-dark);
  color: #fff;
}

.stat-card.accent {
  background: var(--wine);
  color: #fff;
  grid-column: span 2;
}

.stat-number {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-style: italic;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.stat-card.full-width {
  grid-column: span 2;
}

.stat-card .stat-description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.stat-card.dark .stat-description {
  opacity: 0.8;
}

.stat-card.wine {
  background: var(--wine);
  color: #fff;
}

.stat-card.navy {
  background: var(--navy);
  color: #fff;
}

/* ===== Education Section ===== */
.education-section {
  background-color: var(--surface);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.education-photo img {
  border-radius: 0.5rem;
  width: 100%;
  object-fit: cover;
}

.education-logo {
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.education-info h3 {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--navy-dark);
  margin-bottom: 1rem;
}

.education-info p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Testimonial ===== */
.flagship-testimonial {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 2rem;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.flagship-testimonial blockquote {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-align: justify;
  padding: 0 1rem 0 3rem;
  position: relative;
}

.flagship-testimonial blockquote::before {
  content: '\201D';
  font-family: var(--font-headline);
  font-size: 8rem;
  color: var(--wine);
  opacity: 0.3;
  position: absolute;
  left: -1rem;
  top: 50%;
  margin-top: -3.5rem;
}

.flagship-testimonial cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--blue-accent);
  text-align: right;
  padding-right: 1rem;
}

/* ===== Speaking Section ===== */
.speaking-section {
  background: var(--surface);
  padding-bottom: 0;
}

.speaking-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
}

.speaking-header .section-title {
  margin-bottom: 0.5rem;
}

.speaking-header p {
  max-width: 280px;
  color: var(--on-surface-variant);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
}

.speaking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: auto;
}

.speaking-item {
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
  height: 240px;
}

.speaking-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.speaking-item:hover img {
  transform: scale(1.05);
}

.speaking-item.large {
  height: 300px;
}

.speaking-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 10, 30, 0.75), transparent);
}

.speaking-overlay .event-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.speaking-overlay .event-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin-top: 0.25rem;
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--navy);
  text-align: center;
}

.contact-container {
  max-width: 600px;
}

.contact-section .section-label {
  color: var(--wine);
}

.contact-section .section-title {
  color: #fff;
}

.contact-description {
  color: var(--surface-variant);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-actions .btn-primary {
  background: var(--wine);
}

.contact-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface-container);
  padding: 2rem;
  text-align: center;
}

.footer-info .footer-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
}

.footer-info .footer-copy {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  margin-top: 0.5rem;
}

.footer-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--navy-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-variant);
  color: var(--on-surface);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== Responsive: sm (≥640px) — Large Mobile ===== */
@media (min-width: 640px) {
  .speaking-grid {
    grid-template-columns: 1fr 1fr;
  }
  .speaking-item.large {
    grid-column: span 2;
    height: 300px;
  }
  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
  .hero-description {
    margin-top: 23rem;
  }
}

/* ===== Responsive: md (≥768px) — Tablet ===== */
@media (min-width: 768px) {
  .site-nav { padding: 1rem 2rem; }
  .site-nav .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .hero-title { font-size: 3.5rem; height: 10rem; }
  .hero-name { font-size: 1.75rem; }
  .hero-content { padding: 0 2rem; }

  .section { padding: 6rem 2rem; }
  .section-title { font-size: 2rem; }

  .flagship-card { padding: 2.5rem; }
  .flagship-card h3 { font-size: 1.8rem; }

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

  .speaking-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .flagship-testimonial blockquote {
    font-size: 1.7rem;
    padding: 0 2rem 0 4rem;
  }
  .flagship-testimonial blockquote::before {
    font-size: 10rem;
    left: -1.5rem;
    margin-top: -4.5rem;
  }
  .flagship-testimonial cite {
    padding-right: 2rem;
  }
}

/* ===== Responsive: lg (≥1024px) — Laptop ===== */
@media (min-width: 1024px) {
  .hero {
    align-items: center;
    padding-top: 0;
  }

  .hero-image img {
    object-position: 75% center;
  }

  .hero-gradient {
    background: linear-gradient(to right, var(--navy) 0%, rgba(0, 27, 61, 0.92) 35%, transparent 70%);
  }

  .hero-description {
    margin-top: 2rem;
  }

  .hero-title { font-size: 4.5rem; height: 15rem; }
  .hero-name { font-size: 2rem; }
  .hero-content { padding: 0 3rem; }

  .section-title { font-size: 2.8rem; }

  .flagship-card { padding: 3.5rem; }
  .flagship-card h3 { font-size: 2.2rem; }
  .flagship-content { grid-template-columns: 1fr 1fr; }

  .about-trio { grid-template-columns: 1fr 1fr 1fr; }
  .about-grid { grid-template-columns: 5fr 7fr; }
  .work-summary { grid-template-columns: 1fr 1fr; }

  .speaking-grid { height: 600px; }
  .speaking-item.large {
    grid-column: 1;
    grid-row: span 2;
    height: auto;
  }
  .speaking-item:not(.large) {
    height: auto;
  }

  .flagship-testimonial blockquote {
    font-size: 2rem;
    padding: 0 2rem 0 5rem;
  }
  .flagship-testimonial blockquote::before {
    font-size: 12rem;
    left: -2rem;
    margin-top: -5.5rem;
  }
}

/* ===== Responsive: xl (≥1280px) — Desktop ===== */
@media (min-width: 1280px) {
  .section { padding: 8rem 3rem; }
  .section-title { font-size: 3rem; }
}

/* ===== Responsive: 2xl (≥1536px) — Wide ===== */
@media (min-width: 1536px) {
  .section-container { max-width: 1200px; }
}
