:root {
  --background: hsl(222 47% 8%);
  --foreground: hsl(0 0% 100%);
  --card: hsl(222 40% 12%);
  --primary: hsl(189 94% 53%);
  --primary-foreground: hsl(222 47% 8%);
  --muted-foreground: hsl(215 20% 65%);
  --border: hsl(217 33% 20%);
  --gradient-hero:
    radial-gradient(ellipse at top, hsl(217 91% 25% / 0.4), transparent 60%),
    radial-gradient(ellipse at bottom right, hsl(189 94% 35% / 0.25), transparent 50%),
    linear-gradient(180deg, hsl(222 47% 8%), hsl(222 47% 5%));
  --gradient-mesh:
    radial-gradient(at 20% 30%, hsl(189 94% 53% / 0.15) 0, transparent 50%),
    radial-gradient(at 80% 70%, hsl(217 91% 60% / 0.12) 0, transparent 50%),
    radial-gradient(at 50% 100%, hsl(189 94% 53% / 0.08) 0, transparent 50%);
  --gradient-primary: linear-gradient(135deg, hsl(189 94% 53%), hsl(199 89% 60%));
  --gradient-text: linear-gradient(135deg, hsl(0 0% 100%), hsl(189 94% 75%));
  --glass-bg: hsl(222 40% 14% / 0.55);
  --glass-border: hsl(189 94% 53% / 0.18);
  --shadow-card: 0 20px 60px -20px hsl(222 47% 2% / 0.6);
  --shadow-elevated: 0 30px 80px -30px hsl(189 94% 53% / 0.25);
  --shadow-glow: 0 0 40px hsl(189 94% 53% / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.container {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}

.section,
.section-full {
  position: relative;
}

.section {
  padding-block: 7rem;
}

.section-full {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.05), var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-hover {
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.glass-hover:hover {
  transform: translateY(-4px);
  border-color: hsl(189 94% 53% / 0.5);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.08), var(--shadow-elevated);
}

.text-gradient,
.text-gradient-primary {
  color: var(--foreground);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  background-image: var(--gradient-text);
}

.text-gradient-primary {
  background-image: var(--gradient-primary);
}

.mesh-bg,
.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mesh-bg {
  background-image: var(--gradient-mesh);
}

.grid-pattern {
  opacity: 0.4;
  background-image:
    linear-gradient(hsl(189 94% 53% / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(189 94% 53% / 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding-block: 1.25rem;
  transition: padding 0.4s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled .nav {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.05), var(--shadow-card);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-links a {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.desktop-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.4s var(--ease), border-color 0.2s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: var(--glass-bg);
  border: 1px solid hsl(189 94% 53% / 0.3);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: hsl(189 94% 53% / 0.6);
}

.btn-large {
  min-height: 3.5rem;
  padding-inline: 2rem;
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  position: relative;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-button span:first-child {
  top: 1rem;
}

.menu-button span:last-child {
  top: 1.65rem;
}

.menu-button.is-open span:first-child {
  top: 1.32rem;
  transform: rotate(45deg);
}

.menu-button.is-open span:last-child {
  top: 1.32rem;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  margin-top: 0.75rem;
  border-radius: 1rem;
  padding: 1rem;
}

.mobile-menu a,
.mobile-menu button {
  width: 100%;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem;
  color: hsl(0 0% 100% / 0.82);
}

.hero-grid,
.about-grid,
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  padding-block: 5rem;
}

.about-grid {
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--muted-foreground);
}

.eyebrow svg,
.mini-card svg {
  color: var(--primary);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  margin-top: 2rem;
  font-size: clamp(2.65rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 800;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.35rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 44rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

strong {
  color: var(--foreground);
  font-weight: 700;
}

em {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(217 33% 20% / 0.5);
}

.stats strong {
  display: block;
  font-size: 2rem;
}

.stats span {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.hero-image-wrap {
  position: relative;
}

.image-card {
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 0.5rem;
}

.image-card img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.hero-image-wrap .image-card {
  aspect-ratio: 4 / 5;
}

.portrait-card {
  max-width: 520px;
}

.portrait-card img {
  aspect-ratio: 4 / 5;
}

.hero-note {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  width: min(220px, 80%);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
}

.hero-glow {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.hero-glow-left {
  top: 34%;
  left: -10rem;
  width: 31rem;
  height: 31rem;
  background: hsl(189 94% 53% / 0.2);
  filter: blur(120px);
}

.hero-glow-right {
  right: 0;
  bottom: 0;
  width: 37rem;
  height: 37rem;
  background: hsl(199 89% 60% / 0.1);
  filter: blur(140px);
}

.kicker {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.body-copy,
.section-intro > p,
.contact-lead {
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.75;
}

.body-copy {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-intro > p:not(.kicker) {
  margin-top: 1.25rem;
}

.section-intro.compact {
  max-width: 42rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mini-card {
  min-height: 9rem;
  border-radius: 1rem;
  padding: 1.25rem;
}

.mini-card h3 {
  margin-top: 0.8rem;
  font-size: 1rem;
}

.mini-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.talk-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.talk-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  border-radius: 1.5rem;
  padding: 2rem;
}

.talk-card::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: hsl(189 94% 53% / 0.1);
  filter: blur(40px);
  transition: background 0.5s ease;
}

.talk-card:hover::before {
  background: hsl(189 94% 53% / 0.2);
}

.talk-card > * {
  position: relative;
}

.talk-icon,
.contact-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 60px hsl(189 94% 53% / 0.18);
}

.audience {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-card p:last-child,
.book-card p:not(.book-subtitle) {
  margin-top: 0.8rem;
  color: var(--muted-foreground);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  padding: 0.35rem;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.book-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-radius: 1.5rem;
  padding: 2rem;
}

.book-cover {
  flex: 0 0 9rem;
  overflow: hidden;
  border-radius: 0.4rem;
  transform: rotateY(-18deg) rotateX(3deg);
  box-shadow: 0 30px 60px -20px hsl(189 94% 53% / 0.35), 6px 6px 0 hsl(0 0% 0% / 0.4), inset 4px 0 0 hsl(0 0% 0% / 0.2);
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.stars,
.book-subtitle {
  color: var(--primary);
}

.stars {
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}

.book-subtitle {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.contact-section {
  overflow: hidden;
}

.contact-section .mesh-bg {
  opacity: 0.6;
}

.contact-lead {
  margin-top: 1.25rem;
}

.contact-links {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.25rem;
}

.contact-link small,
.footer small {
  display: block;
  color: var(--muted-foreground);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  border-radius: 1.5rem;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid hsl(217 33% 20% / 0.6);
  border-radius: 0.75rem;
  background: hsl(222 47% 8% / 0.4);
  color: var(--foreground);
  outline: none;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input {
  min-height: 3rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(189 94% 53% / 0.14);
}

.form-submit {
  width: 100%;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.75;
}

.footer {
  border-top: 1px solid hsl(217 33% 20% / 0.5);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer p {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.toast-area {
  position: fixed;
  z-index: 80;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
}

.toast {
  border-radius: 1rem;
  padding: 1rem;
  background: hsl(222 40% 12% / 0.96);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  animation: toast-in 0.25s ease both;
}

.toast.success {
  border-color: hsl(142 72% 45% / 0.5);
}

.toast.error {
  border-color: hsl(0 84% 60% / 0.55);
}

.toast strong {
  display: block;
}

.toast span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.animate-fade-up {
  animation: fade-up 0.8s var(--ease) both;
}

.animate-fade-in {
  animation: fade-in 1s ease-out both;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .desktop-links,
  .desktop-cta,
  .hero-image-wrap {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 0.25rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .talk-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 4rem;
  }

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

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .container {
    width: min(100% - 1.25rem, 1400px);
  }

  .section {
    padding-block: 5rem;
  }

  .glass,
  .site-header.is-scrolled .nav {
    background: hsl(222 40% 12% / 0.86);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    padding: 0.65rem 0.85rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  h1 {
    max-width: 11ch;
  }

  .btn-large {
    width: 100%;
  }

  .stats {
    gap: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }

  .gallery-large,
  .gallery-wide {
    grid-column: span 2;
  }

  .book-card {
    flex-direction: column;
  }

  .book-cover {
    flex-basis: auto;
    width: 8rem;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
