/* ============================================================
   RIFF‑SHFTR — css/layout.css  v3.0.0
   Landing page: header, hero, dash stage, sections, footer
   ============================================================ */

/* ── HEADER ───────────────────────────────────────────────── */
.app-header {
  margin: 0;
  padding: 4px 0 0 10px;
  position: absolute;
  top: 0; left: 0;
  width: fit-content;
  z-index: 20;
}

.badge-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(4px, 0.6vw, 10px);
  transform-origin: top left;
  scale: clamp(0.80, 1vw + 0.48, 1.18);
}

.app-emblem {
  width: clamp(86px, 13.5vw, 142px);
  height: auto;
}

.app-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-preshift {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 0 20px;
  overflow: hidden;
}

/* ── HERO TAGLINES ────────────────────────────────────────── */
.hero-taglines {
  text-align: center;
  padding: 0 20px;
  margin-bottom: clamp(10px, 2vh, 24px);
  position: relative;
  z-index: 5;
}

.hero-line {
  color: transparent;
  background: linear-gradient(to bottom, #F2E9D8 0%, #D6C7A8 45%, #BFAF8A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0.2em 0;
  line-height: 1.2;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.30))
          drop-shadow(0 0 14px rgba(212,175,55,0.18));
}

.hero-top {
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 500;
}
.hero-top::before  { content: '\201C'; }
.hero-top::after   { content: '\201D'; }

.hero-bottom {
  font-size: clamp(0.9rem, 1.6vw, 1.5rem);
  font-weight: 300;
  opacity: 0.85;
}
.hero-bottom::before { content: '\201C'; }
.hero-bottom::after  { content: '\201D'; }

/* ── DASH STAGE ───────────────────────────────────────────── */
.dash-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.dash-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
}

/* Headlights bloom on key insert */
.dash-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(255, 240, 180, 0.18) 0%,
    rgba(255, 200, 80,  0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 7;
}

.dash-stage.key-inserted::after { opacity: 1; }

/* Engine vibrate */
body.engine-running .dash-stage {
  animation: engineVibrate 0.08s linear infinite;
}

/* Engine-fired: full brightness */
.dash-stage.engine-fired {
  filter: brightness(1.18) contrast(1.04);
  transition: filter 0.25s ease;
}

@keyframes engineVibrate {
  0%   { transform: translateY(0)      translateX(0);     }
  25%  { transform: translateY(-0.5px) translateX(0.5px); }
  50%  { transform: translateY(0)      translateX(0);     }
  75%  { transform: translateY(0.5px)  translateX(-0.5px);}
  100% { transform: translateY(0)      translateX(0);     }
}

/* ── IGNITION HINT ────────────────────────────────────────── */
.ignition-hint {
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: clamp(8px, 1.5vh, 16px) 0 0;
  text-align: center;
  opacity: 0.7;
  min-height: 1.4em;
  transition: color 0.3s;
  position: relative;
  z-index: 5;
}

body.engine-running .ignition-hint {
  color: var(--orange);
  opacity: 1;
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
.section-intro {
  padding: 60px 24px 40px;
  background: none;
  position: relative;
  z-index: 3;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(18px, 2.2vw, 26px);
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 10px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.app-footer {
  padding: 20px 20px 26px;
  background: transparent;
}

.branding-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-preshift { padding-top: 70px; }
  .dash-stage    { max-width: 100vw; }
}

@media (min-width: 1200px) {
  .dash-stage { max-width: 1000px; }
}
