/* Tiffany Portfolio — hero */
:root {
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --pink: #F598F2;
  --white: #ffffff;
  --black: #000000;
}

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

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ============ VIDEO BG ============ */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
  animation: videoFadeIn 1200ms ease-in-out both;
}

.bg-video.active { opacity: 1; }

@keyframes videoFadeIn {
  from { filter: brightness(0.6); }
  to { filter: brightness(1); }
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

/* ============ NAVBAR ============ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.navbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 15px; /* py-9 = 36px */
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.nav-index {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: -0.08px;
  text-transform: uppercase;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-spring);
}

.nav-link:hover .nav-underline {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-email {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}

.nav-clock {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}

/* Mobile menu panel — CSS grid rows animation */
.mobile-panel {
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-spring);
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 18px;
}

.mobile-panel-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-panel.open { grid-template-rows: 1fr; }
.mobile-panel.open .mobile-panel-inner { padding-bottom: 32px; }

.mobile-link {
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.84px;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.mobile-link .nav-index { font-size: 10px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 1340px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 150px;
  padding: 190px 15px 0 15px;
}

.hero-section {
  width: 100%;
  display: flex;
}

/* Upper section */
.hero-section-upper { align-items: flex-end; }

.switcher-col {
  flex: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.switcher-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
  padding: 2px 0;
}

.switcher-btn:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

.switcher-btn.active { opacity: 1; }
.switcher-btn.active:hover { opacity: 1; }

.switcher-index {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: -0.08px;
}

.switcher-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
}

.availability-col {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px 2px rgba(245, 152, 242, 0.8);
  animation: dotPulse 1.6s ease-in-out infinite;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.avail-dot.dot-white {
  background: var(--white);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.8);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.avail-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: uppercase;
}

/* Bottom section */
.hero-section-bottom {
  padding-bottom: 60px;
  align-items: flex-end;
  gap: 40px;
}

.name-col { flex: 2; }

.hero-name {
  font-size: 200px;
  line-height: 81%;
  letter-spacing: -6px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.name-period {
  color: var(--pink);
  transition: color 0.6s ease;
}

.name-period.period-white { color: var(--white); }

.intro-col {
  flex: 1;
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-para {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  font-weight: 500;
  max-width: 480px;
}

.cta-btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.12px;
  text-transform: lowercase;
  border: 1px solid var(--white);
  padding: 14px 32px;
  transition: color 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
  z-index: 1;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-spring);
  z-index: -1;
}

.cta-btn:hover { color: var(--black); border-color: var(--pink); }
.cta-btn:hover::before { transform: translateY(0); }

/* ============ REVEALS ============ */
.reveal-up {
  opacity: 0;
  transform: translateY(80px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}

.reveal-right.revealed.reveal-delay { transition-delay: 0.08s; }

/* ============ TABLET 810–1199 ============ */
@media (min-width: 810px) and (max-width: 1199px) {
  .navbar-inner {
    padding: 30px 18px;
    gap: 16px;
  }

  .hero-name {
    font-size: 129.6px;
    line-height: 113.4px;
    letter-spacing: -7.7px;
  }

  .hero-section-bottom {
    gap: 28px;
    padding-bottom: 52px;
  }

  .intro-col { padding-left: 24px; }
}

/* ============ MOBILE <810 ============ */
@media (max-width: 809px) {
  .navbar-inner {
    padding: 24px 18px;
  }

  .nav-left { display: none; }
  .menu-toggle { display: block; }
  .mobile-panel { display: grid; }

  .hero-inner {
    justify-content: flex-end;
    align-items: flex-start;
    gap: 72px;
    padding: 140px 18px 0 18px;
  }

  .hero-section-upper {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px; /* gap-7 */
  }

  .hero-section-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px; /* gap-8 */
    padding-bottom: 44px; /* pb-11 */
  }

  .hero-name {
    font-size: clamp(68px, 21vw, 80px);
    line-height: 96px;
    letter-spacing: -4.8px;
    white-space: normal;
  }

  .intro-col { padding-left: 0; }

  .hero-para { max-width: 420px; }

  .reveal-right { transform: translateX(60px); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .bg-video { opacity: 0; }
  .bg-video.active { opacity: 1; }

  .reveal-up, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
