/* ===========================================================
   LAST BITE — cold, elegant, premium horror
   =========================================================== */
:root {
  --black:      #070405;
  --surface:    #0a0708;
  --surface-2:  #0e090b;
  --line:       #1a1517;
  --line-2:     #1f191b;
  --text:       #ece8e6;
  --text-soft:  #cfcac7;
  --muted:      #6e6a68;
  --muted-dim:  #4a4644;
  --blood:      #c4302b;
  --blood-soft: #f0c4c4;

  --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --pad-x: clamp(20px, 6vw, 64px);
  --section-y: clamp(70px, 12vh, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-soft);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blood); color: #1a0606; }

a { color: inherit; text-decoration: none; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 22px;
}

.rule {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--blood);
  margin: 30px auto;
}

.ico { width: 1em; height: 1em; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 2px;
  transition: background .35s ease, color .35s ease, transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.btn .ico { width: 16px; height: 16px; }
.btn--outline {
  border: 1px solid var(--blood);
  color: var(--blood-soft);
}
.btn--outline:hover {
  background: var(--blood);
  color: #1a0606;
  box-shadow: 0 0 34px -8px var(--blood);
}
.btn--solid {
  background: var(--blood);
  color: #1a0606;
  font-weight: 500;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px -6px var(--blood);
}
.btn:focus-visible,
.nav__cta:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blood-soft);
  outline-offset: 4px;
}

.section {
  padding: var(--section-y) var(--pad-x);
  text-align: center;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 0.5px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 4, 5, 0.82);
  backdrop-filter: blur(10px);
  padding: 14px var(--pad-x);
  border-bottom-color: var(--line);
}
.nav__logo {
  font-family: var(--serif);
  letter-spacing: 5px;
  font-size: 15px;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links a { transition: color .3s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blood-soft);
  border: 1px solid var(--line-2);
  padding: 9px 18px;
  border-radius: 2px;
  transition: border-color .3s ease, color .3s ease;
}
.nav__cta .ico { width: 14px; height: 14px; }
.nav__cta:hover { border-color: var(--blood); color: var(--blood); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* fallback backdrop when no video/poster present */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a0d0f 0%, #070405 72%);
  z-index: -1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at center, rgba(7,4,5,0.55) 0%, transparent 75%),
    linear-gradient(to bottom, rgba(7,4,5,0.7) 0%, rgba(7,4,5,0.4) 45%, rgba(7,4,5,0.95) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__mark {
  display: block;
  width: clamp(46px, 6vw, 66px);
  height: auto;
  margin: 0 auto 22px;
  opacity: 0.92;
  filter: drop-shadow(0 0 18px rgba(196,48,43,0.35));
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 11vw, 132px);
  letter-spacing: clamp(8px, 2vw, 18px);
  line-height: 1;
  color: var(--text);
  text-indent: clamp(8px, 2vw, 18px); /* balance trailing letter-spacing */
}
.hero__tag {
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: 1px;
  font-style: italic;
  color: var(--muted);
  color: #9a9491;
  max-width: 480px;
  margin: 0 auto 38px;
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted-dim);
  width: 26px; height: 26px;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll svg { width: 100%; height: 100%; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- world ---------- */
.world__line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 660px;
  margin: 0 auto;
}

/* ---------- atmosphere ---------- */
.atmos {
  position: relative;
  height: clamp(360px, 70vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.atmos__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.atmos__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(7,4,5,0.25) 0%, rgba(7,4,5,0.78) 100%),
    linear-gradient(to bottom, rgba(7,4,5,0.55), rgba(7,4,5,0.55));
}
.atmos__line {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 38px);
  letter-spacing: 1px;
  color: var(--text);
  max-width: 720px;
  padding: 0 var(--pad-x);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* ---------- pillars ---------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.card {
  border: 0.5px solid var(--line-2);
  padding: 42px 28px;
  text-align: left;
  transition: border-color .4s ease, background .4s ease, transform .4s ease;
}
.card:hover {
  border-color: var(--blood);
  background: rgba(196, 48, 43, 0.03);
  transform: translateY(-4px);
}
.card__ic { color: var(--blood); }
.card__ic svg { width: 30px; height: 30px; }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 17px;
  color: var(--text);
  margin: 18px 0 12px;
}
.card__body { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
}
.shot {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border: 0.5px solid var(--line);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.shot::after {
  content: "SCREENSHOT";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 3px;
  color: #3a3634;
}
/* once a real image is set via inline style, hide placeholder label */
.shot[style*="url"]::after { content: ""; }
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,4,5,0.25);
  opacity: 0;
  transition: opacity .4s ease;
}
.shot:hover::before { opacity: 1; }

/* ---------- final cta ---------- */
.finalcta {
  background:
    radial-gradient(ellipse at center, rgba(196,48,43,0.06) 0%, transparent 65%),
    var(--surface);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.finalcta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 58px);
  letter-spacing: clamp(3px, 1vw, 6px);
  color: var(--text);
  margin-bottom: 34px;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px var(--pad-x);
  background: #050304;
}
.footer__copy { font-size: 11px; letter-spacing: 1px; color: var(--muted-dim); }
.footer__social { display: flex; gap: 22px; }
.footer__social a { color: var(--muted); transition: color .3s ease, transform .3s ease; }
.footer__social svg { width: 20px; height: 20px; display: block; }
.footer__social a:hover { color: var(--blood); transform: translateY(-2px); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .nav__cta span { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  .hero__video, .atmos__video { display: none; }
  * { transition-duration: .01ms !important; }
}
