/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0c0b;
  --fg: #f2ece4;
  --muted: #8a7e72;
  --accent: #d4a053;
  --accent-light: #e8c48a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 8s ease;
}

.hero__img.loaded {
  opacity: 0.55;
  transform: scale(1);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,11,0.3) 0%, rgba(14,12,11,0.6) 50%, var(--bg) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(212,160,83,0.08) 0%, transparent 60%);
}

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 3rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.nav__brand svg { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.nav__links a:nth-child(2) { animation-delay: 0.6s; }
.nav__links a:nth-child(3) { animation-delay: 0.7s; }

.nav__links a:hover { color: var(--fg); }

/* ── Hero Content ── */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  max-width: 880px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero__line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__word:nth-child(1) { animation-delay: 1s; }
.hero__word:nth-child(2) { animation-delay: 1.15s; color: var(--accent-light); }
.hero__word:nth-child(3) { animation-delay: 1.3s; }
.hero__word:nth-child(4) { animation-delay: 1.45s; color: var(--accent); }

.hero__sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.7s forwards;
}

/* ── Buttons ── */
.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s ease 2s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn--primary {
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 2px;
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(212,160,83,0.2);
}

.btn--primary svg { transition: transform 0.3s ease; }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  padding: 0.85rem 1.4rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(138,126,114,0.25);
  border-radius: 2px;
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: rgba(242,236,228,0.3);
}

/* ── Hero Footer ── */
.hero__footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 3rem;
  opacity: 0;
  animation: fadeUp 1s ease 2.3s forwards;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease infinite;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav__links { gap: 1.5rem; }
  .hero__content { padding: 0 1.5rem; }
  .hero__footer { padding: 1.25rem 1.5rem; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .nav__links { display: none; }
  .hero__footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
