:root {
  color-scheme: dark;
  --bg: #17120f;
  --text: #f6eee3;
  --muted: #c5b6a5;
  --accent: #dcc7a7;
  --paper: #f6eee3;
  --ink: #17120f;
  --line: rgba(246, 238, 227, 0.16);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(22px, 3.4vw, 48px) clamp(22px, 4vw, 64px);
  isolation: isolate;
}

.gate-media,
.gate-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gate-media { overflow: hidden; background: #2a1c14; }

.gate-media img,
.gate-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gate-media img {
  object-position: center 45%;
  filter: sepia(0.35) saturate(0.68) brightness(0.7);
}

.gate-media video {
  object-position: center 45%;
  filter: sepia(0.16) saturate(0.76) brightness(0.66);
}

.gate-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 10, 7, 0.84) 0%, rgba(14, 10, 7, 0.5) 52%, rgba(14, 10, 7, 0.7) 100%),
    linear-gradient(180deg, rgba(14, 10, 7, 0.58) 0%, rgba(14, 10, 7, 0.1) 42%, rgba(23, 18, 15, 0.9) 100%);
}

.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.gate-brand { display: inline-flex; }

.gate-brand img {
  display: block;
  width: 58px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(94%) sepia(11%) saturate(342%) hue-rotate(340deg) brightness(102%) contrast(93%);
}

.gate-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) 0;
  position: relative;
  z-index: 1;
}

.gate-copy { max-width: 680px; }

.gate-brand-name { white-space: nowrap; }

.gate h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(15, 9, 5, 0.4);
}

.gate-qr-block {
  justify-self: end;
  width: min(320px, 100%);
}

.gate-qr-card {
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.gate-qr {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.gate-qr canvas {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  image-rendering: pixelated;
}

.gate-qr-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(23, 18, 15, 0.62);
}

.gate-qr-link {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
  color: rgba(23, 18, 15, 0.72);
}

.gate-note {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 1px solid rgba(220, 199, 167, 0.5);
  font-size: 10px;
  line-height: 1.65;
  color: rgba(246, 238, 227, 0.7);
}

.gate-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 238, 227, 0.48);
}

.gate-copy,
.gate-qr-card {
  animation: gate-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-qr-card { animation-delay: 0.12s; }

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  body { overflow: auto; }

  .gate { padding: 22px; }

  .gate-top { justify-content: center; }

  .gate-main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
    padding: 56px 0 36px;
    text-align: center;
  }

  .gate-copy { max-width: 560px; }

  .gate h1 { font-size: clamp(38px, 10vw, 58px); }

  .gate-qr-block { justify-self: center; width: min(300px, 100%); }

  .gate-note { margin-top: 14px; text-align: left; }

  .gate-foot { justify-content: center; }

}

@media (prefers-reduced-motion: reduce) {
  .gate-media video { display: none; }
  .gate-copy,
  .gate-qr-card { animation: none; }
}

@media (max-height: 640px) and (min-width: 821px) {
  .gate-main { padding: 28px 0; }
  .gate h1 { font-size: clamp(38px, 4.4vw, 58px); }
  .gate-qr-block { width: 280px; }
  .gate-qr { min-height: 210px; }
  .gate-qr canvas { width: 210px; height: 210px; }
}
