:root {
  --ink: #f5f1ea;
  --ink-dim: rgba(245, 241, 234, 0.82);
  --night: #0d1424;
  --ember: #f2994a;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Stage ────────────────────────────────────────────────────────────
   .frame is exactly the box the whole 16:9 photo occupies (as large as fits,
   never cropped, never scaled by CSS transforms). The logo lives inside it,
   so it always sits on the photo's sky, never on the blurred fill. */
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.stage__fill {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(40px) saturate(1.1) brightness(0.7);
}

.frame {
  --w: min(100vw, 177.7778vh);
  --w: min(100vw, 177.7778svh);
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--w);
  height: calc(var(--w) * 0.5625);
  container-type: inline-size;
}

.stage__photo {
  display: block;
  width: 100%;
  height: 100%;
  animation: fade 1.6s ease-out both;
}

/* Soft shade in the photo's top-left sky so the logo reads. */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 0% 0%, rgba(8, 12, 24, 0.5), rgba(8, 12, 24, 0) 70%);
  pointer-events: none;
}

/* ── Brand: top-left corner of the photo, sized relative to the photo ── */
.brand {
  position: absolute;
  z-index: 1;
  top: 3cqw;
  left: 3cqw;
  width: max(150px, 28cqw);
  text-align: center;
  animation: rise 1.2s 0.3s ease-out both;
}

.brand__logo { margin: 0; line-height: 0; }

.brand__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
}

.brand__tag {
  margin: -0.4em 0 0;
  font-size: max(0.5rem, 0.95cqw);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.brand__tag::before,
.brand__tag::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  margin: 0 0.7em;
  vertical-align: middle;
  background: var(--ember);
}

/* Small frames (phones): tighter tagline so it stays within the logo width. */
@container (max-width: 560px) {
  .brand { top: 2.5cqw; left: 2.5cqw; }
  .brand__tag { letter-spacing: 0.1em; }
  .brand__tag::before, .brand__tag::after { width: 0.9em; margin: 0 0.4em; }
}

/* 404 page link */
.brand__tag a { color: inherit; text-decoration-color: var(--ember); text-underline-offset: 0.3em; }

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 16px 0.8rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage__photo, .brand { animation: none; }
}
