/* ============================================
   SECTION STYLES — All 8 Sections
   ============================================ */

/* ──────────────────────────────────────────────
   SECTION 0 — SPLASH / INTRO
   ────────────────────────────────────────────── */
#splash {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.splash-bg .mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-bg));
  will-change: transform;
}

.splash-bg .mesh-blob:nth-child(1) {
  width: var(--blob-lg);
  height: var(--blob-lg);
  background: rgba(99, 102, 241, 0.15);
  top: 20%;
  left: 10%;
  animation: meshMove 12s ease-in-out infinite;
}

.splash-bg .mesh-blob:nth-child(2) {
  width: var(--blob-md);
  height: var(--blob-md);
  background: rgba(6, 182, 212, 0.1);
  top: 60%;
  right: 5%;
  animation: meshMove2 15s ease-in-out infinite;
}

.splash-bg .mesh-blob:nth-child(3) {
  width: var(--blob-sm);
  height: var(--blob-sm);
  background: rgba(139, 92, 246, 0.08);
  bottom: 10%;
  left: 30%;
  animation: meshMove 18s ease-in-out infinite;
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
}

.splash-greeting {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.splash-name {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-top: var(--space-3);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.splash-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.3s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) 2s forwards;
}

.scroll-indicator span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: var(--icon-md);
  height: var(--icon-md);
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
  animation-delay: 2.5s;
}

.scroll-arrow svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}


/* ──────────────────────────────────────────────
   SECTION 1 — HEADLINE / WHO AM I
   ────────────────────────────────────────────── */
#headline {
  padding: var(--space-16) 0 var(--space-12);
}

.headline-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--card-radius-lg);
  background: var(--gradient-card);
  border: 0.0625rem solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.headline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh-1);
  opacity: 0.5;
  pointer-events: none;
}

.avatar-wrapper {
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.avatar-wrapper > :not(.avatar-glow) {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.avatar-glow {
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  background: var(--gradient-hero);
  animation: pulseGlow 3s ease-in-out infinite;
}

.avatar-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.avatar-link:hover {
  transform: scale(1.04);
}

.avatar-link:active {
  transform: scale(0.98);
}

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 0.1875rem solid var(--bg-primary);
}

.avatar-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 0.1875rem solid var(--bg-primary);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.headline-name {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.headline-tagline {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* every tile matches the tallest one */
  gap: var(--space-3);
  margin-top: var(--space-8);
  max-width: 22rem;
  margin-inline: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: clamp(6rem, 30vw, 7.5rem);
  padding: var(--space-4) var(--space-3);
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: var(--card-radius);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
}

.stat-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

.stat-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-glow-sm);
}

.stat-item:hover::after {
  opacity: 1;
}

.stat-item:active {
  transform: scale(0.97);
}

.stat-item.is-tapped {
  animation: statPop var(--duration-slow) var(--ease-out-expo);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-sm);
}

.stat-item.is-tapped::after {
  opacity: 1;
}

@keyframes statPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.94); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.stat-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  position: relative;
  z-index: 1;
}

.stat-item--dual .stat-part + .stat-part {
  padding-top: var(--space-3);
  border-top: 0.0625rem solid var(--border-subtle);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.stat-item--dual .stat-value {
  font-size: var(--text-sm);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: var(--leading-snug);
}


/* ──────────────────────────────────────────────
   SECTION 2 — ABOUT ME / ELEVATOR PITCH
   ────────────────────────────────────────────── */
#about {
  padding: var(--space-12) 0;
}

.about-content {
  position: relative;
  padding-left: var(--space-6);
}

.about-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.125rem;
  background: var(--gradient-hero);
  border-radius: 0.0625rem;
}

.about-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-text em {
  color: var(--accent-glow);
  font-style: normal;
}

.about-quote {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: var(--card-radius);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  text-align: center;
}

.about-quote .quote-mark {
  font-size: var(--text-3xl);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: var(--space-2);
}

.about-quote .quote-text {
  margin: 0;
  font: inherit;
  color: inherit;
}

.about-quote .quote-author {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  font-style: normal;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}


/* ──────────────────────────────────────────────
   SECTION 3 — PASSIONS GRID
   ────────────────────────────────────────────── */
#passions {
  padding: var(--space-12) 0;
}

.passions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

/* Phones: one column so long titles stay readable without shrinking text */
@media (max-width: 23.4375rem) {
  .passions-grid {
    grid-template-columns: 1fr;
  }

  .passion-header .passion-title {
    font-size: var(--text-base);
  }
}

.passion-card {
  padding: var(--space-5);
  border-radius: var(--card-radius);
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: default;
  position: relative;
  overflow: hidden;
}


.passion-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

.passion-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-glow-sm);
}

.passion-card:hover::after {
  opacity: 1;
}

/* Make the first card (aquariums) span full width — it's the star */
.passion-card.passion-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--gradient-subtle);
  border-color: var(--border-accent);
}

.passion-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 1;
}

.passion-emoji {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  display: block;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  line-height: 1;
}

.passion-header .passion-emoji {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.passion-header .passion-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  line-height: 1.2;
}

.passion-featured .passion-emoji {
  font-size: var(--text-4xl);
  margin-bottom: 0;
  flex-shrink: 0;
}

.passion-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 1;
}

.passion-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  position: relative;
  z-index: 1;
}

.passion-featured .passion-info {
  flex: 1;
}

.passion-featured .passion-title {
  font-size: var(--text-base);
}

.passion-featured .passion-desc {
  font-size: var(--text-sm);
}


/* ──────────────────────────────────────────────
   SECTION 4 — FUN FACTS
   ────────────────────────────────────────────── */
#funfacts {
  padding: var(--space-12) 0;
  overflow: hidden;
}

.funfacts-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: var(--space-4) var(--container-padding);
  margin: 0 calc(-1 * var(--container-padding));
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.funfacts-scroll::-webkit-scrollbar {
  display: none;
}

.funfact-card {
  flex: 0 0 var(--funfact-card-width);
  max-width: calc(100vw - 2 * var(--container-padding));
  scroll-snap-align: center;
  padding: var(--space-6);
  border-radius: var(--card-radius);
  background: var(--bg-secondary);
  border: 0.0625rem solid var(--border-subtle);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.funfact-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.funfact-card:nth-child(even) {
  transform: rotate(1deg);
}

.funfact-card:hover {
  transform: rotate(0deg) scale(1.02);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-sm);
}

.funfact-emoji {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.funfact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: var(--space-2);
}

.funfact-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.funfacts-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.funfacts-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.funfacts-dot.active {
  background: var(--accent-glow);
  width: var(--dot-active-width);
  border-radius: var(--radius-sm);
}


/* ──────────────────────────────────────────────
   SECTION 5 — TOP 5 LISTS
   ────────────────────────────────────────────── */
#top5 {
  padding: var(--space-12) 0;
}

.top5-lists {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.top5-list {
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.top5-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-3);
}

.top5-header-emoji {
  font-size: var(--text-xl);
}

.top5-header-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.top5-items {
  padding: 0 var(--space-5) var(--space-5);
}

.top5-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 0.0625rem solid var(--border-subtle);
}

.top5-item:not(:has(.top5-item-author)) {
  align-items: center;
}

.top5-item:last-child {
  border-bottom: none;
}

.top5-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  min-width: 2rem;
  flex-shrink: 0;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top5-item-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.top5-item-text strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
}

.top5-item-title {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.top5-item-author {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: var(--leading-normal);
}


/* ──────────────────────────────────────────────
   SECTION 6 — GALLERY
   ────────────────────────────────────────────── */
#gallery {
  padding: var(--space-12) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(var(--gallery-row-min), auto);
  gap: var(--space-3);
  width: 100%;
}

.gallery-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-4) var(--space-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery placeholder (when no photos yet) */
.gallery-placeholder {
  grid-column: 1 / -1;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background: var(--bg-glass);
  border: 0.125rem dashed var(--border-subtle);
  border-radius: var(--card-radius);
}

.gallery-placeholder-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.gallery-placeholder-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 100%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--card-radius);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-img.is-entering {
  animation: lightboxIn var(--duration-normal) var(--ease-out-expo);
}

.lightbox-img.slide-from-right {
  animation: lightboxSlideFromRight var(--duration-normal) var(--ease-out-expo);
}

.lightbox-img.slide-from-left {
  animation: lightboxSlideFromLeft var(--duration-normal) var(--ease-out-expo);
}

.lightbox-caption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-6);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--text-2xl);
  line-height: 1;
  z-index: 1;
  transition: background var(--duration-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-next {
  right: var(--space-4);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: var(--text-xl);
  transition: background var(--duration-fast);
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}


/* ──────────────────────────────────────────────
   SECTION 7 — CTA / VERDICT
   ────────────────────────────────────────────── */
#verdict {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-16) 0;
}

.verdict-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.verdict-bg .mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-bg));
}

.verdict-bg .mesh-blob:nth-child(1) {
  width: var(--blob-xl);
  height: var(--blob-xl);
  background: rgba(99, 102, 241, 0.18);
  top: 30%;
  left: 20%;
  animation: meshMove 10s ease-in-out infinite;
}

.verdict-bg .mesh-blob:nth-child(2) {
  width: var(--blob-lg);
  height: var(--blob-lg);
  background: rgba(139, 92, 246, 0.12);
  bottom: 20%;
  right: 10%;
  animation: meshMove2 13s ease-in-out infinite;
}

.verdict-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: var(--page-max);
  padding-inline: var(--container-padding);
}

.verdict-emoji {
  font-size: var(--emoji-hero);
  margin-bottom: var(--space-6);
  display: block;
  animation: float 3s ease-in-out infinite;
}

.verdict-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.verdict-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  line-height: var(--leading-normal);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-5) var(--space-8);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  animation: gradientShift 4s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 2.5rem rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary .btn-icon {
  font-size: var(--text-xl);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
  background: var(--bg-glass);
}

/* ── Confetti Container ── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--radius-sm);
  animation: confettiLaunch 2.5s var(--ease-out-quart) forwards;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: var(--space-8) 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Progress Dots (Side Nav) ── */
.progress-nav {
  position: fixed;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.progress-nav.visible {
  opacity: 1;
}

.progress-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
}

.progress-dot.active {
  background: var(--accent-glow);
  height: var(--dot-active-width);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0.5rem rgba(129, 140, 248, 0.4);
}

/* Hide progress nav on very small screens */
@media (max-width: 25rem) { /* --bp-sm */
  .progress-nav {
    display: none;
  }
}


/* ──────────────────────────────────────────────
   CONTACT MODAL — Bottom Sheet Style
   ────────────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.contact-modal.active {
  opacity: 1;
  pointer-events: all;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.contact-modal-sheet {
  position: relative;
  width: 100%;
  max-width: var(--modal-max);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: var(--card-radius-lg) var(--card-radius-lg) 0 0;
  border: 0.0625rem solid var(--border-subtle);
  border-bottom: none;
  padding: var(--space-3) var(--space-6) var(--space-10);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.contact-modal-sheet::-webkit-scrollbar {
  width: 0.25rem;
}

.contact-modal-sheet::-webkit-scrollbar-track {
  background: transparent;
}

.contact-modal-sheet::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 0.125rem;
}

.contact-modal.active .contact-modal-sheet {
  transform: translateY(0);
}

.contact-sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: var(--text-muted);
  margin: 0 auto var(--space-5);
  opacity: 0.5;
}

.contact-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--duration-fast);
  z-index: 1;
}

.contact-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ── Contact Header ── */
.contact-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.contact-header-emoji {
  font-size: var(--text-4xl);
  display: block;
  margin-bottom: var(--space-3);
  animation: float 3s ease-in-out infinite;
}

.contact-header-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.contact-header-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Contact Cards ── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-glass);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: var(--card-radius);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateX(0.25rem);
  box-shadow: var(--shadow-glow-sm);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-icon {
  font-size: var(--text-2xl);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.contact-card-value {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card-action {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-glow);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-card:hover .contact-card-action {
  opacity: 1;
  transform: translateX(0);
}

/* ── Divider ── */
.contact-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 0.0625rem;
  background: var(--border-subtle);
}

.contact-divider span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-out-expo);
  outline: none;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.1875rem rgba(99, 102, 241, 0.15), var(--shadow-glow-sm);
}

.form-textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: var(--leading-normal);
}

/* ── Reaction Picker ── */
.reaction-picker {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-3) 0;
}

.reaction-btn {
  width: var(--touch-target);
  height: var(--touch-target);
  flex-shrink: 0;
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--bg-tertiary);
  border: 0.125rem solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  position: relative;
}

.reaction-btn:hover {
  transform: scale(1.15) translateY(-0.25rem);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-sm);
}

.reaction-btn:active {
  transform: scale(0.95);
}

.reaction-btn.selected {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
  transform: scale(1.1);
}

.reaction-btn.selected::after {
  content: '';
  position: absolute;
  inset: -0.25rem;
  border-radius: 1.125rem;
  border: 0.125rem solid var(--accent-glow);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

/* ── Form Actions ── */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-submit {
  margin-top: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: transparent;
  color: var(--accent-rose);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 0.0625rem dashed rgba(244, 63, 94, 0.45);
  border-radius: 6.25rem;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  text-decoration: none;
}

.btn-outline:hover {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.7);
  background: rgba(244, 63, 94, 0.08);
  transform: scale(1.02);
}

.form-date-link {
  animation: none;
}

/* ── Success State ── */
.contact-success {
  text-align: center;
  padding: var(--space-8) 0;
}

.contact-success.hidden {
  display: none;
}

.success-emoji {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: successBounce 0.6s var(--ease-spring);
}

.success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.success-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

@keyframes successBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Desktop: centered modal instead of bottom sheet ── */
@media (min-width: 37.5rem) { /* --bp-md */
  .contact-modal {
    align-items: center;
  }

  .contact-modal-sheet {
    border-radius: var(--card-radius-lg);
    border: 0.0625rem solid var(--border-subtle);
    max-height: 85vh;
    transform: translateY(2.5rem) scale(0.95);
    opacity: 0;
    transition:
      transform var(--duration-slow) var(--ease-out-expo),
      opacity var(--duration-normal) var(--ease-out-expo);
  }

  .contact-modal.active .contact-modal-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .contact-sheet-handle {
    display: none;
  }
}

/* ── Validation Error States ── */
.form-input.has-error {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 0.1875rem rgba(244, 63, 94, 0.15);
}

.reaction-picker.has-error .reaction-btn {
  border-color: rgba(244, 63, 94, 0.4);
}

.field-error {
  font-size: var(--text-xs);
  color: var(--accent-rose);
  font-weight: 500;
  margin-top: var(--space-1);
  display: block;
  animation: fadeInUp 0.3s var(--ease-out-expo);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  animation: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-0.375rem); }
  40% { transform: translateX(0.3125rem); }
  60% { transform: translateX(-0.25rem); }
  80% { transform: translateX(0.1875rem); }
}
