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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #ff6b3f;
  color: #fff;
}

/* Navigation */
.nav-brand {
  letter-spacing: 0.05em;
}

.nav-line-1 {
  transform-origin: right center;
}

.nav-line-2 {
  transform-origin: right center;
}

nav.scrolled .nav-brand {
  color: #1a1a1a;
}

nav.scrolled .nav-line-1,
nav.scrolled .nav-line-2 {
  background: #1a1a1a;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 1;
}

#mobile-menu .mobile-link {
  opacity: 0;
}

#mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero-sub {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

h1 {
  animation: fadeIn 1s ease 0.5s forwards;
  opacity: 0;
}

.hero-sub ~ p,
h1 + p {
  animation: fadeIn 1s ease 0.7s forwards;
  opacity: 0;
}

.hero-sub ~ p + div,
h1 + p + div {
  animation: fadeIn 0.8s ease 0.9s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}

/* Thin line accents */
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #ff8f62;
  margin-top: 1.5rem;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6b3f;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}
