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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #5eead4;
  color: #0f2b4c;
}

/* ===== NAV ===== */
#nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(15, 43, 76, 0.08);
}

.nav-logo {
  color: #0f2b4c;
  transition: color 0.3s ease;
}

#nav:not(.scrolled) .nav-logo {
  color: #0f2b4c;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5eead4;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  position: relative;
}

/* ===== HERO ANIMATIONS ===== */
.hero-title {
  will-change: transform;
}

@keyframes heroSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-eyebrow {
  animation: heroFadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  transform: translateY(100%);
}

.hero-sub {
  animation: heroFadeIn 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* ===== SCROLL LINE ===== */
@keyframes scrollLineMove {
  0% { top: -16px; }
  100% { top: 48px; }
}

.scroll-line {
  animation: scrollLineMove 1.5s ease-in-out infinite;
}

/* ===== REVEAL ANIMATIONS (below fold only) ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  letter-spacing: 0.3em;
}

/* ===== FORM ===== */
select option {
  background: #fff;
  color: #0f2b4c;
}

/* ===== MENU ITEMS ===== */
li {
  border-bottom: 1px solid rgba(15, 43, 76, 0.06);
  padding-bottom: 6px;
}

li:last-child {
  border-bottom: none;
}

/* ===== UTILITY ===== */
@media (max-width: 767px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
  background: #bed2e0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c9eb8;
}
