:root {
  color-scheme: dark;
  --ink: #050a0e;
  --paper: #f7f4ed;
  --muted: #c7cbd0;
  --gold: #dba64e;
  --gold-light: #ffe6a8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow: hidden; background: var(--ink); color: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button { font: inherit; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__backdrop,
.hero__veil,
.atmosphere { position: absolute; inset: 0; pointer-events: none; }

.hero__backdrop {
  z-index: -4;
  background: url("background.webp") 50% 52% / cover no-repeat;
  transform: scale(1.025);
  animation: backdropIn 1.8s cubic-bezier(.2,.7,.2,1) both;
}

.hero__veil {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3,8,12,.85) 0%, rgba(3,8,12,.55) 26%, rgba(3,8,12,.03) 52%, rgba(3,8,12,.55) 100%),
    linear-gradient(180deg, rgba(3,8,12,.32), transparent 42%, rgba(3,8,12,.72) 100%);
}

.atmosphere {
  z-index: -2;
  opacity: .16;
  filter: blur(28px);
  background: radial-gradient(ellipse, rgba(239,221,178,.85), transparent 68%);
}

.atmosphere--one { width: 42vw; height: 22vh; top: 58%; left: -15%; animation: drift 13s ease-in-out infinite alternate; }
.atmosphere--two { width: 45vw; height: 24vh; top: 20%; left: 55%; animation: drift 16s 1s ease-in-out infinite alternate-reverse; }

.brand {
  position: absolute;
  z-index: 3;
  top: clamp(28px, 5vh, 58px);
  left: clamp(28px, 5vw, 78px);
  width: clamp(210px, 21vw, 285px);
  aspect-ratio: 3.05 / 1;
  overflow: hidden;
  animation: brandRise .8s .08s ease-out both;
}

.brand img {
  display: block;
  width: 187%;
  max-width: none;
  height: auto;
  transform: translate(-46.5%, -40.5%);
  filter: sepia(1) saturate(2.1) hue-rotate(348deg) brightness(1.35) drop-shadow(0 0 14px rgba(232,176,78,.7));
}

/* The supplied replacement logo is already tightly cropped and transparent. */
.brand img { width: 100%; max-width: 100%; height: auto; transform: none; }
.brand img, .gate__logo { filter: brightness(0) saturate(100%) invert(72%) sepia(42%) saturate(720%) hue-rotate(355deg) brightness(96%) contrast(92%) drop-shadow(0 0 14px rgba(232,176,78,.62)); }
.brand img { filter: none; }
.brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("logo.png") center / 100% 100% no-repeat; filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,.28)); clip-path: polygon(34% 0, 100% 0, 100% 100%, 34% 100%); }
/* New supplied logo: show the complete mark, with a light finish for contrast. */
.brand { width: clamp(170px, 18vw, 240px); aspect-ratio: 1.9 / 1; }
.brand img { width: 126%; max-width: none; height: auto; transform: translate(-9.8%, -27.5%); filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255,255,255,.3)); }
.brand::after { display: none; }

.pitch {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: clamp(28px, 5vw, 78px);
  width: min(34vw, 510px);
  transform: translateY(-20%);
  text-shadow: 0 4px 25px rgba(0,0,0,.85);
  animation: pitchRise .9s .22s ease-out both;
}

.pitch__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: clamp(.66rem, .78vw, .78rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pitch__kicker span { width: 38px; height: 1px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.pitch h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.25vw, 4.5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.pitch h1 em { color: var(--gold-light); font-style: normal; }
.pitch__copy { max-width: 440px; margin: 20px 0 0; color: var(--gold-light); font-size: clamp(.86rem, 1vw, 1rem); font-weight: 700; line-height: 1.4; }
.pitch__description { display: block !important; max-width: 390px; margin: 9px 0 0; color: #e8ebef; -webkit-text-fill-color: #e8ebef; font-size: clamp(.76rem, .86vw, .9rem); line-height: 1.5; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.pitch__rule { display: flex; align-items: center; width: 110px; margin-top: 25px; }
.pitch__rule i { width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.pitch__rule span { flex: 1; height: 1px; margin-left: 5px; background: linear-gradient(90deg, var(--gold), transparent); }

.experience {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(28px, 5vw, 78px);
  width: min(42vw, 640px);
  transform: translateY(-44%);
  animation: experienceRise .9s .36s ease-out both;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,221,151,.76);
  background: #020609;
  box-shadow: 0 26px 80px rgba(0,0,0,.65), 0 0 42px rgba(219,166,78,.12), inset 0 0 0 6px rgba(4,10,14,.5);
}

.video-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 65px rgba(0,0,0,.44); }
#hero-video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.video-toggle {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(rgba(1,5,8,.18), rgba(1,5,8,.5));
  transition: opacity .3s ease, background .3s ease;
}

.video-toggle:hover { background: rgba(1,5,8,.28); }
.video-toggle.is-hidden { opacity: 0; pointer-events: none; }
.play-icon { display: grid; place-items: center; width: clamp(58px,5.4vw,78px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(7,13,17,.5); box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 8px 28px rgba(0,0,0,.4); transition: transform .25s ease, background .25s ease; }
.play-icon::after { content: ""; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.video-toggle:hover .play-icon { transform: scale(1.08); background: rgba(207,145,50,.8); }
.video-label { font-size: .69rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.corner { position: absolute; z-index: 4; width: 25px; height: 25px; pointer-events: none; border-color: var(--gold-light); border-style: solid; }
.corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.corner--br { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: clamp(68px, 9vh, 84px);
  margin-top: clamp(18px, 2.4vh, 27px);
  padding: 16px 30px;
  overflow: hidden;
  border: 1px solid #ffe6aa;
  color: #161007;
  cursor: pointer;
  background: linear-gradient(110deg, #b97b28, #ffe4a2 48%, #c68a31);
  box-shadow: 0 14px 38px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.8);
  transition: filter .2s ease, transform .2s ease;
  animation: heartbeat 1.08s ease-in-out infinite;
}

.cta::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(74,42,7,.4); pointer-events: none; }
.cta:hover { filter: brightness(1.12); transform: translateY(-2px) scale(1.012); }
.cta:active { transform: scale(.982); }
.cta__text { position: relative; z-index: 2; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.03rem, 1.65vw, 1.4rem); font-weight: 800; letter-spacing: .13em; }
.cta__arrow { position: relative; z-index: 2; font-size: 2rem; line-height: 0; }
.cta__pulse { position: absolute; inset: 0; border: 2px solid rgba(255,229,169,.9); animation: pulseFlash 1.08s ease-out infinite; }
.cta__shine { position: absolute; top: 0; bottom: 0; left: -35%; width: 26%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.5s ease-in-out infinite; }
.microcopy { margin: 9px 0 0; color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .08em; text-align: center; text-shadow: 0 2px 8px #000; }

.gate { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; transition: opacity .28s ease, visibility .28s; }
.gate.is-open { visibility: visible; opacity: 1; }
.gate__backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,7,11,.84); backdrop-filter: blur(10px); cursor: default; }
.gate__panel { position: relative; width: min(430px, 100%); padding: 34px; border: 1px solid rgba(235,199,126,.6); background: linear-gradient(145deg, rgba(18,32,42,.98), rgba(5,12,18,.99)); box-shadow: 0 30px 100px rgba(0,0,0,.72); text-align: center; transform: translateY(18px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.gate.is-open .gate__panel { transform: none; }
.gate__close { position: absolute; top: 8px; right: 13px; border: 0; color: rgba(255,255,255,.7); background: none; font-size: 1.7rem; cursor: pointer; }
.gate__logo { display: block; width: 180px; height: auto; margin: 0 auto 6px; filter: sepia(1) saturate(2.1) hue-rotate(348deg) brightness(1.35) drop-shadow(0 0 14px rgba(232,176,78,.6)); }
.gate__step { margin: 0 0 7px; color: var(--gold-light); font-size: .67rem; font-weight: 800; letter-spacing: .24em; }
.gate h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 5vw, 2.15rem); font-weight: 500; }
.gate__copy { margin: 10px auto 24px; max-width: 310px; color: rgba(255,255,255,.66); font-size: .84rem; line-height: 1.55; }
.slider { position: relative; height: 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.055); touch-action: none; user-select: none; }
.slider__fill { position: absolute; inset: 0 auto 0 0; width: 70px; background: linear-gradient(90deg, rgba(220,162,77,.3), rgba(220,162,77,.08)); }
.slider__label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52px; color: rgba(255,255,255,.7); font-size: .66rem; font-weight: 800; letter-spacing: .16em; pointer-events: none; }
.slider__thumb { position: absolute; z-index: 2; top: 5px; left: 5px; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #ffe0a0; color: #171107; background: linear-gradient(145deg, #ffe0a0, #bd7c28); box-shadow: 0 4px 20px rgba(0,0,0,.4); cursor: grab; }
.slider__thumb:active { cursor: grabbing; }
.slider__thumb span { font-size: 1.65rem; animation: nudge 1s ease-in-out infinite; }
.gate__status { min-height: 18px; margin: 12px 0 -8px; color: #bfeecd; font-size: .76rem; }

@keyframes backdropIn { from { opacity: 0; transform: scale(1.08); } }
@keyframes brandRise { from { opacity: 0; transform: translateY(20px); } }
@keyframes pitchRise { from { opacity: 0; transform: translateY(calc(-32% + 25px)); } }
@keyframes experienceRise { from { opacity: 0; transform: translateY(calc(-44% + 25px)); } }
@keyframes drift { to { transform: translate(12vw, 4vh) scale(1.18); } }
@keyframes heartbeat { 0%,25%,100% { transform: scale(1); } 9% { transform: scale(1.028); } 17% { transform: scale(1.009); } }
@keyframes pulseFlash { 0%,22%,100% { opacity: .2; } 9% { opacity: .9; } 17% { opacity: .45; } }
@keyframes shine { 0%,38% { left: -35%; } 65%,100% { left: 125%; } }
@keyframes nudge { 0%,100% { transform: translateX(3px); } 50% { transform: translateX(-3px); } }
@keyframes gateIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 800px) {
  .hero__backdrop { background-position: 48% center; }
  .hero__veil { background: linear-gradient(180deg, rgba(3,8,12,.62), rgba(3,8,12,.08) 28%, rgba(3,8,12,.76) 57%, #03090d 100%); }
  .brand { top: max(20px, env(safe-area-inset-top)); left: 18px; width: clamp(160px, 48vw, 190px); }
  .pitch { top: 27%; left: 18px; width: min(90vw, 410px); transform: none; }
  .pitch__kicker { margin-bottom: 9px; font-size: .58rem; }
  .pitch h1 { font-size: clamp(1.8rem, 8.4vw, 2.55rem); line-height: 1; }
  .pitch__copy { max-width: 330px; margin-top: 10px; font-size: .7rem; line-height: 1.4; }
  .pitch__description { max-width: 310px; margin-top: 4px; font-size: .64rem; line-height: 1.35; }
  .pitch__rule { display: none; }
  .experience { top: auto; right: 16px; bottom: 18px; left: 16px; width: auto; transform: none; animation-name: mobileRise; }
  .video-frame { box-shadow: 0 16px 45px rgba(0,0,0,.62); }
  .cta { min-height: 64px; margin-top: 13px; padding: 12px 18px; }
  .cta__text { font-size: clamp(.95rem, 4.5vw, 1.13rem); }
  .microcopy { display: none; }
  .gate__panel { padding: 32px 22px 27px; }
}

@media (max-height: 700px) and (orientation: landscape) {
  .brand { width: 125px; }
  .pitch__copy, .pitch__rule, .microcopy { display: none; }
  .experience { width: min(40vw, 540px); }
  .cta { min-height: 52px; margin-top: 11px; }
}

@keyframes mobileRise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
