/* =====================================================
   STEPHANIE WISNER — WEBSITE STYLES
   ===================================================== */

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

:root {
  --navy:     #0b1120;
  --navy-mid: #111827;
  --teal:     #14b8a6;
  --teal-dim: #0d9488;
  --gold:     #c9a84c;
  --white:    #ffffff;
  --off-white:#f8f9fb;
  --muted:    #6b7280;
  --border:   rgba(255,255,255,0.08);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ─────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label.light { color: var(--teal); opacity: 0.9; }

.section-intro {
  max-width: 640px;
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover { background: var(--teal-dim); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(20,184,166,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── NAV ────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#nav.scrolled {
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: var(--teal);
  color: var(--navy);
  padding: 0.45rem 1.1rem;
  border-radius: 0.3rem;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--teal-dim); color: var(--navy); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(20,184,166,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.25s forwards;
}
#hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.55s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease infinite;
}

/* ── ABOUT ───────────────────────────────────── */
#about {
  padding: 8rem 0;
  background: var(--navy-mid);
}
.split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}
.split-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.split-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
  font-size: 0.975rem;
}
.split-text p strong { color: var(--white); font-weight: 600; }
.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.split-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.badge-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.badge-card:hover {
  background: rgba(20,184,166,0.06);
  border-color: rgba(20,184,166,0.3);
}
.badge-icon {
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.badge-card strong { display: block; font-size: 0.875rem; margin-bottom: 0.2rem; }
.badge-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin: 0; }

/* ── BOOK ─────────────────────────────────────── */
#book {
  padding: 8rem 0;
  background: var(--navy);
}
.book-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}
.book-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.book-float {
  position: relative;
  display: inline-block;
  animation: bookFloat 4s ease-in-out infinite;
}
.book-float img {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 8px 20px rgba(0,0,0,0.4),
    4px 0 15px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.book-float:hover img {
  transform: scale(1.03);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    0 12px 30px rgba(20,184,166,0.15),
    4px 0 20px rgba(0,0,0,0.35);
}
.book-shadow {
  width: 240px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 70%);
  margin: 0 auto;
  animation: bookShadow 4s ease-in-out infinite;
  border-radius: 50%;
}
.book-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
}
.book-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.book-info h2 em { color: var(--teal); font-style: italic; }
.book-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.book-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.1rem;
  font-size: 0.975rem;
}
.book-info p em { color: var(--white); font-style: normal; font-weight: 500; }
.book-highlights {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.book-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.book-highlights li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── SPEAKING ─────────────────────────────────── */
#speaking {
  padding: 8rem 0;
  background: var(--navy-mid);
}
#speaking h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 600px;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.institution {
  padding: 1.1rem 1.4rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  text-align: center;
}
.institution:hover {
  background: rgba(20,184,166,0.08);
  border-color: rgba(20,184,166,0.35);
  color: var(--white);
}
.speaking-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.speaking-cta p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin: 0; }

/* ── PUBLICATIONS ──────────────────────────────── */
#publications {
  padding: 8rem 0;
  background: var(--navy);
}
#publications h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.pub-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.pub-card:hover {
  background: rgba(20,184,166,0.06);
  border-color: rgba(20,184,166,0.3);
  transform: translateY(-2px);
}
.pub-venue {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.pub-card h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}

/* ── CONNECT ──────────────────────────────────── */
#connect {
  padding: 8rem 0;
  background: linear-gradient(135deg, #0a1628 0%, #0e1e33 50%, #0b2030 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#connect::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.connect-inner { position: relative; z-index: 1; }
#connect h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
#connect p {
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}
.connect-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.connect-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.connect-link:hover {
  background: rgba(20,184,166,0.12);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.connect-icon {
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 700;
  width: 1.4rem;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  padding: 2rem 0;
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes bookFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes bookShadow {
  0%, 100% { transform: scaleX(1);    opacity: 0.7; }
  50%       { transform: scaleX(0.75); opacity: 0.35; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-aside { flex-direction: row; flex-wrap: wrap; }
  .badge-card { flex: 1 1 240px; }

  .book-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .book-cover { order: -1; }
  .book-float img { width: 260px; }
  .book-highlights li { text-align: left; }

  .institutions-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,17,32,0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-top: 0.5rem; }

  /* Sections — tighter vertical padding on mobile */
  #about, #book, #speaking, #publications, #connect {
    padding: 5rem 0;
  }

  /* Hero */
  #hero h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* About */
  .split-text h2 { font-size: 1.7rem; max-width: 100%; }
  .stat-row { gap: 1.25rem; flex-wrap: wrap; }
  .stat-num { font-size: 2rem; }
  .split-aside { flex-direction: column; }
  .badge-card { flex: unset; width: 100%; }

  /* Book */
  .book-layout { text-align: center; }
  .book-float img { width: 200px; }
  .book-shadow { width: 160px; }
  .book-info h2 { font-size: 1.7rem; }
  .book-highlights { text-align: left; }
  .book-info .btn { width: 100%; justify-content: center; }

  /* Speaking */
  #speaking h2 { font-size: 1.6rem; }
  .institutions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .institution { min-height: 56px; font-size: 0.8rem; padding: 0.8rem 0.75rem; }
  .speaking-cta { flex-direction: column; align-items: stretch; }
  .speaking-cta .btn { text-align: center; justify-content: center; }

  /* Publications */
  .pubs-grid { grid-template-columns: 1fr; }

  /* Connect */
  #connect h2 { font-size: 2rem; }
  #connect p { font-size: 0.9rem; }
  .connect-links { flex-direction: column; align-items: stretch; }
  .connect-link { justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
