/* ==========================================================
   HappyFire Engine LLC — happyfireengine site
   Palette: gallery night / museum wall / flame
   ========================================================== */

:root {
  --night: #0e1018;        /* hero: the darkened gallery */
  --ink: #191c28;          /* headings on light */
  --wall: #f6f6f3;         /* museum-wall white */
  --card: #ffffff;
  --stone: #5d6170;        /* body text on light */
  --faint: #9a9daa;
  --line: #e5e5e0;
  --flame: #ff5a2d;
  --ember: #ffb03a;
  --flame-grad: linear-gradient(135deg, #ffb03a, #ff5a2d 60%, #f43f5e);
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--stone);
  background: var(--wall);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

.section-inner { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--flame); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(rgba(14, 16, 24, 0.85), rgba(14, 16, 24, 0));
  backdrop-filter: blur(2px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #fff; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 99px;
}
.nav-cta:hover { border-color: var(--ember); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(255, 122, 61, 0.16), transparent 70%),
    var(--night);
  overflow: hidden;
  perspective: 1100px;
}

.gallery { position: absolute; inset: 0; transform-style: preserve-3d; }

.wall {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7vh;
  transform-style: preserve-3d;
}
.wall-left  { left: -4%;  transform: rotateY(38deg);  transform-origin: left center; }
.wall-right { right: -4%; transform: rotateY(-38deg); transform-origin: right center; }

.frame {
  width: min(240px, 70%);
  aspect-ratio: 4 / 3;
  padding: 10px;
  background: linear-gradient(160deg, #2a2d3c, #171923);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: drift 9s ease-in-out infinite;
}
.wall-left .frame { align-self: flex-end; margin-right: 8%; }
.wall-right .frame { align-self: flex-start; margin-left: 8%; }
.f2, .f5 { animation-delay: -3s; }
.f3, .f6 { animation-delay: -6s; }
.f1 { aspect-ratio: 3 / 4; width: min(190px, 55%); }
.f6 { aspect-ratio: 3 / 4; width: min(190px, 55%); }

/* spotlight above each frame */
.frame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 96%;
  width: 160%;
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 196, 120, 0.14), transparent 75%);
  pointer-events: none;
}

.art {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.art-1 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Johannes_Vermeer_-_Girl_with_a_Pearl_Earring_-_670_-_Mauritshuis.jpg?width=640"), radial-gradient(120% 90% at 30% 25%, #e8d9b8, #a4552f 55%, #3b1f1a); }
.art-2 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Vincent_van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg?width=640"), linear-gradient(200deg, #2c5f8a 10%, #d8b25c 55%, #23324a); }
.art-3 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Monet_-_Impression,_Sunrise.jpg?width=640"), linear-gradient(120deg, #532b3f 20%, #c96f4a 60%, #f2c98a); }
.art-4 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/The_Great_Wave_off_Kanagawa.jpg?width=640"), radial-gradient(100% 100% at 70% 30%, #f0e2cf, #7d8fae 50%, #232a44); }
.art-5 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Georges_Seurat_-_A_Sunday_on_La_Grande_Jatte_--_1884_-_Google_Art_Project.jpg?width=640"), linear-gradient(150deg, #1d3a2f, #6f9e6b 45%, #e5e0c8); }
.art-6 { background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Caspar_David_Friedrich_-_Wanderer_above_the_sea_of_fog.jpg?width=640"), radial-gradient(130% 100% at 50% 80%, #c9ccd8, #55617f 55%, #171d30); }

.floor-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(rgba(255, 140, 66, 0), rgba(255, 140, 66, 0.07));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 120px 24px 90px;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-credit {
  margin-top: 42px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.32);
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--flame-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 90, 45, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 90, 45, 0.45); }
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262a3a; }

/* ---------- musea ---------- */
.musea { background: var(--wall); }
.musea h2, .studio h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 18px; }
.lede { font-size: 1.12rem; max-width: 640px; margin-bottom: 56px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(25, 28, 40, 0.08); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--flame);
  background: linear-gradient(135deg, rgba(255, 176, 58, 0.14), rgba(255, 90, 45, 0.12));
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.feature p { font-size: 0.96rem; }

.quest-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--night);
  border-radius: var(--radius);
  padding: 34px 38px;
}
.quest-strip-title { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.quest-strip-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; margin-top: 4px; }
.quest-strip .btn-dark { background: var(--flame-grad); }

/* ---------- studio ---------- */
.studio { background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.studio-copy p + p { margin-top: 18px; }
.studio-facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.studio-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 5px; }
.studio-facts dd { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact { background: var(--night); }
.contact-inner { text-align: center; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 14px; }
.contact-sub { color: rgba(255, 255, 255, 0.65); margin-bottom: 30px; }
.contact-email {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--flame-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid var(--flame);
  padding-bottom: 4px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* ---------- privacy page ---------- */
.legal-page { background: var(--wall); min-height: 100vh; }
.legal-inner { max-width: 760px; margin: 0 auto; padding: 150px 24px 90px; }
.legal-inner h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; margin-bottom: 8px; }
.legal-updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 44px; }
.legal-inner h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; }
.legal-inner p, .legal-inner li { font-size: 0.98rem; }
.legal-inner ul { padding-left: 22px; margin: 12px 0; }
.legal-inner li { margin-bottom: 8px; }
.legal-inner a { color: var(--flame); }
.legal-header { background: var(--night); position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; gap: 24px; }
  .wall { width: 42%; opacity: 0.55; }
  .frame { width: min(170px, 82%); }
  .f1, .f6 { width: min(140px, 62%); }
}

@media (max-width: 600px) {
  .section-inner { padding: 72px 20px; }
  .site-header, .legal-header { padding: 14px 18px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.85rem; }
  .nav-cta { padding: 6px 12px; }
  .studio-facts { grid-template-columns: 1fr; }
  .quest-strip { padding: 28px 24px; }
  .wall { display: none; }
  .hero {
    background:
      radial-gradient(80% 40% at 50% 108%, rgba(255, 122, 61, 0.22), transparent 70%),
      radial-gradient(60% 30% at 15% 20%, rgba(120, 90, 255, 0.08), transparent 70%),
      var(--night);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame { animation: none; }
  .btn, .feature { transition: none; }
}

.hero-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
.hero-credit a:hover { color: rgba(255,255,255,0.6); }
