/* Intro cinematic */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #161411;
  color: #f3ebe2;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-mark { text-align: center; }
.intro .brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  letter-spacing: 0.08em;
  animation: intro-rise 0.9s ease both;
}
.intro .brand em {
  font-style: italic;
  color: #e8c9a4;
}
.intro .line {
  width: 0;
  height: 1px;
  margin: 1rem auto;
  background: linear-gradient(90deg, transparent, #e8c9a4, transparent);
  animation: intro-line 0.8s 0.35s ease forwards;
}
.intro .tag {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,235,226,0.65);
  animation: intro-rise 0.8s 0.45s ease both;
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-line {
  to { width: min(220px, 40vw); }
}

body.is-home { overflow-x: hidden; }
body.intro-lock { overflow: hidden; }

/* Soft grain atmosphere */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Parallax helper */
[data-parallax] {
  will-change: transform;
}

/* Accent underline motion on section heads */
.section-head h2 {
  background-image: linear-gradient(90deg, var(--brass), transparent 70%);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 0.35rem;
  transition: background-size 0.8s ease;
}
.section-head.is-in h2,
.reveal.is-in.section-head h2 {
  background-size: 140px 2px;
}
.section-dark .section-head h2 {
  background-image: linear-gradient(90deg, #e8c9a4, transparent 70%);
}
