:root {
  --ink: #111111;
  --cream: #f3efe4;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 36px 20px 28px;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
  margin: 0 auto;
}

h1,
.card h2,
.stamp,
.close {
  font-family: "Lilita One", system-ui, sans-serif;
  font-weight: 400;
}

h1 { margin: 18px 0 0; }

.line {
  display: block;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.mark {
  display: block;
  margin-top: 6px;
  font-size: clamp(108px, 20vw, 248px);
  line-height: 0.78;
  letter-spacing: 0.01em;
}

.down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 60px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.down .chevron {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(0) rotate(45deg);
  animation: nudge 1.5s ease-in-out infinite;
}

.catalog { padding: 28px 24px 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  gap: 24px;
}

.card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 408 / 546;
  overflow: hidden;
  border-radius: 18px;
  background: #1a1020;
}

.card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser {
  filter: blur(16px);
  transform: scale(1.12);
}

.stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

.card h2 {
  margin: 14px 0 0;
  text-align: center;
  font-size: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: #2a2a2a; }

.btn:focus-visible,
.brand:focus-visible,
.foot a:focus-visible,
.close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero :focus-visible { outline-color: var(--cream); }

.foot {
  padding: 28px 20px 40px;
  text-align: center;
}

.foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

dialog {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
}

dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.88); }

.cinema { width: min(1100px, 100%); }

.cinema video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.close:focus-visible { outline-color: #fff; }

@supports (animation-timeline: scroll()) {
  .brand,
  h1 {
    animation: hero-drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0vh 80vh;
  }
}

@supports (animation-timeline: view()) {
  .card {
    animation: card-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 72%;
  }

  .card + .card {
    animation-range: entry 14% entry 86%;
  }

  .card figure img:not(.teaser) {
    transform-origin: center 18%;
    animation: photo-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

.card.wait {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.wait.in {
  opacity: 1;
  transform: none;
}

@keyframes hero-drift {
  to { transform: translateY(-56px); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(8px) rotate(45deg); }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(72px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photo-settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .brand,
  h1,
  .card,
  .card figure img,
  .down .chevron {
    animation: none;
  }

  .card.wait {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 800px) {
  .brand img { width: 124px; }
  .mark { font-size: clamp(76px, 22vw, 120px); }
  .grid { grid-template-columns: minmax(0, 460px); }
}
