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

:root {
  --bg: #111110;
  --text: #ededec;
  --text-muted: rgba(237, 237, 236, 0.6);
  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'Outfit', 'SF Pro Display', system-ui, sans-serif;
  --mono: 'SF Mono', 'Geist Mono', 'JetBrains Mono', monospace;
}

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

/* ── Background image ── */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.55) brightness(0.65) contrast(1.1);
  transform: scale(1.02);
  animation: bgSettle 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes bgSettle {
  from {
    transform: scale(1.08);
    opacity: 0;
  }
  to {
    transform: scale(1.02);
    opacity: 1;
  }
}

/* ── Gradient fade: image → dark on the left ── */

.bg-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, var(--bg) 0%, var(--bg) 18%, transparent 52%),
    linear-gradient(to top, var(--bg) 0%, transparent 35%);
}

/* ── Film grain ── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background: url("img/grain.png") repeat;
  background-size: 128px 128px;
}

/* ── Layout ── */

main {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 40px 48px;
  max-width: 1400px;
}

.nav-mark {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Hero: left-aligned, asymmetric whitespace ── */

.hero {
  margin-top: auto;
  margin-bottom: auto;
  padding-left: 2vw;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text);
}

.tagline {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ── Footer meta ── */

footer {
  padding-left: 2vw;
}

.meta {
  display: flex;
  gap: 56px;
  align-items: flex-end;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.in {
  animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .bg-fade {
    background:
      linear-gradient(to bottom, var(--bg) 0%, rgba(17,17,16,0.7) 30%, rgba(17,17,16,0.5) 55%, var(--bg) 100%);
  }

  .bg img {
    object-position: 60% center;
  }

  main {
    padding: 28px 24px;
  }

  .hero {
    padding-left: 0;
  }

  footer {
    padding-left: 0;
  }

  .meta {
    gap: 36px;
  }
}
