/* =========================================================
   ENTRANCE: one photograph of the venue, brought to life.
   js/entry.js draws it in WebGL with a scene map: the lights come up in
   turn, the leaves move in a breeze, the velvet breathes, and on entry the
   camera walks through the arch as the curtains swing aside. Without WebGL
   the photo stands still and entering pushes into it.
   ========================================================= */
.gate{
  --bar:clamp(44px,8.4vh,88px);
  --ax:50%;--ay:44%;
  position:fixed;inset:0;z-index:1000;overflow:hidden;background:#0b0302;color:var(--cream);
  font-family:var(--font);
}
.gate.is-done,.skip-gate .gate{display:none}
.js .gate__dark{opacity:1}

/* the photographs: the canvas draws them; the plain images are the no-WebGL fallback */
.gate__stills{position:absolute;inset:0}
.gate__still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 43%;transform-origin:50% 56%}
.gate.has-gl .gate__stills{display:none}
.gate__film{position:absolute;inset:0;width:100%;height:100%;display:block}
.gate:not(.has-gl) .gate__film{display:none}

/* ---------- atmosphere ---------- */
.gate__dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}
/* a shadow for the title to stand in, on the left of the frame */
.gate__scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(9,3,1,.86) 0%,rgba(9,3,1,.66) 26%,rgba(9,3,1,.22) 46%,rgba(9,3,1,0) 60%)}
.gate__vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(95% 90% at var(--ax) var(--ay),transparent 42%,rgba(0,0,0,.4) 80%,rgba(0,0,0,.78))}
.gate__dark{position:absolute;inset:0;background:#000;pointer-events:none}

/* ---------- title card: set like a film's title screen on a streaming service ----------
   a small label with the glass, the name in tall condensed capitals, a line of facts, one line
   of story and a solid play button. The face is Anton, loaded only for the letters of the name. */
.gate{--title:"Anton",Impact,"Arial Narrow Bold","Arial Narrow",sans-serif}
.gate__copy{position:absolute;left:var(--pad);top:50%;z-index:3;transform:translateY(-48%);display:flex;flex-direction:column;align-items:flex-start;gap:clamp(22px,3.6vh,36px);max-width:min(48vw,640px)}
.gate__title{display:flex;flex-direction:column;align-items:flex-start;text-align:left;pointer-events:none}
.gate__kicker{display:flex;align-items:center;gap:12px;margin-bottom:clamp(8px,1.4vh,14px);font-size:clamp(12px,.95vw,14px);font-weight:700;letter-spacing:.36em;text-transform:uppercase;color:rgba(255,241,222,.94);text-shadow:0 1px 8px rgba(0,0,0,.75)}
.gate__glass{width:auto;height:clamp(22px,2.6vh,28px);stroke:#F2D29A;stroke-width:10;margin:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.6))}
.gate__glass circle{fill:none}
/* the full name, one word to a line; each word carries its own brass gradient so "Media" is as bright as "Marktini" */
.gate__word{font-family:var(--title);font-weight:400;text-transform:uppercase;font-size:clamp(72px,min(15vh,12.2vw),190px);line-height:.9;letter-spacing:.01em;margin-left:-.03em;
  filter:drop-shadow(0 2px 0 rgba(24,7,2,.9)) drop-shadow(0 20px 40px rgba(0,0,0,.6))}
.gate__word span{display:block;padding-top:.04em;
  background:linear-gradient(176deg,#FFF3DA 0%,#F4D49C 28%,#C9964C 54%,#F6DBA6 72%,#A06D2E 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
/* the line of facts under the title, the way a film lists its year, rating and length */
.gate__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:clamp(16px,2.4vh,24px);font-size:clamp(14px,1.1vw,17px);font-weight:500;letter-spacing:.005em;color:rgba(255,241,222,.84);text-shadow:0 1px 8px rgba(0,0,0,.8)}
.gate__meta b{font-weight:700;color:#F6C77C}
.gate__tag{padding:2px 8px 1px;border:1px solid rgba(255,241,222,.6);border-radius:3px;font-size:.8em;font-weight:600;letter-spacing:.06em;line-height:1.3}
.gate__log{margin-top:clamp(10px,1.6vh,16px);max-width:32ch;font-size:clamp(17px,1.45vw,22px);font-weight:400;line-height:1.38;letter-spacing:-.01em;color:#FFF8F0;text-shadow:2px 2px 6px rgba(0,0,0,.6)}

/* ---------- letterbox, controls ---------- */
.gate__bar{position:absolute;left:0;right:0;z-index:4;height:var(--bar);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 var(--pad);background:#000;
  font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:rgba(251,230,216,.5)}
.gate__bar--t{top:0}
.gate__bar--b{bottom:0}
.gate__skip{font:inherit;letter-spacing:inherit;text-transform:inherit;color:rgba(251,230,216,.62);padding:10px 0;transition:color .3s}
.gate__skip:hover,.gate__skip:focus-visible{color:var(--cream)}
.gate__ui{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.gate__enter{display:inline-flex;align-items:center;gap:12px;height:clamp(50px,6.2vh,58px);padding:0 clamp(28px,2.4vw,36px) 0 clamp(22px,1.9vw,28px);border-radius:4px;border:0;background:#FFF4E6;
  color:#120907;font-size:clamp(16px,1.25vw,19px);font-weight:700;letter-spacing:-.01em;box-shadow:0 10px 30px -10px rgba(0,0,0,.6);transition:background .35s var(--ease),box-shadow .45s var(--ease)}
.gate__enter:hover,.gate__enter:focus-visible{background:rgba(255,244,230,.82);box-shadow:0 0 70px rgba(245,162,60,.5)}
.gate__enter:active{background:rgba(255,244,230,.7)}
.gate__enter svg{flex:none;width:clamp(16px,1.3vw,19px);height:auto}
/* the second button, grey like a player's "more info"; phones only, where it stands in for the skip link in the bar */
.gate__more{display:none;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 16px;border-radius:4px;background:rgba(109,109,110,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:#fff;font-size:16px;font-weight:700;letter-spacing:-.01em;transition:background .35s var(--ease)}
.gate__more:hover,.gate__more:focus-visible{background:rgba(109,109,110,.42)}
.gate__more:active{background:rgba(109,109,110,.32)}
.gate__more svg{flex:none;width:17px;height:auto}
.gate__hint{font-size:13px;color:rgba(251,230,216,.66);letter-spacing:.01em;text-shadow:0 1px 6px rgba(0,0,0,.8)}

.gate.is-ready .gate__word span{animation:leaf 9s ease-in-out infinite alternate}
@keyframes leaf{from{background-position:0 0}to{background-position:0 -18px}}

/* phones and narrow tablets: the photo fills the frame, the title sits low in its shadow */
@media (max-width:820px){
  /* the foot of the frame goes nearly black, the way a phone app sets a title over its poster */
  .gate__scrim{background:linear-gradient(0deg,rgba(6,2,1,.97) 0%,rgba(6,2,1,.9) 26%,rgba(6,2,1,.5) 44%,rgba(6,2,1,0) 62%)}
  .gate__copy{left:0;right:0;top:auto;bottom:calc(var(--bar) + 2.2vh);transform:none;max-width:none;align-items:center;gap:clamp(18px,2.6vh,24px);padding:0 20px}
  .gate__title{align-items:center;text-align:center}
  .gate__kicker{font-size:11px;letter-spacing:.32em;gap:9px;margin-bottom:6px}
  .gate__glass{height:20px}
  .gate__word{font-size:clamp(60px,20vw,112px);margin-left:0}
  /* facts on one line: the services are in the story line below */
  .gate__meta{justify-content:center;gap:6px 14px;margin-top:14px;font-size:13px}
  .gate__meta span:last-child{display:none}
  .gate__log{margin-top:10px;max-width:30ch;font-size:15px;line-height:1.4;color:rgba(255,248,240,.9)}
  /* play and skip side by side, the full width of the card */
  .gate__ui{flex-wrap:nowrap;width:100%;max-width:380px;gap:10px}
  .gate__enter,.gate__more{flex:1 1 0;min-width:0;height:48px;padding:0 12px;justify-content:center;font-size:16px}
  .gate__enter svg{width:16px}
  .gate__more{display:inline-flex}
  .gate__hint,.gate__bar--t .gate__skip{display:none}
  .gate__bar{font-size:10px;letter-spacing:.1em;white-space:nowrap}
}
/* short phones: the story line goes so the poster in the arch stays clear */
@media (max-width:820px) and (max-height:760px){
  .gate__log{display:none}
}
/* tablets held upright: the arch fills the middle of the frame, so the title card moves to the foot, centred */
@media (min-width:821px) and (max-width:1366px) and (orientation:portrait){
  .gate__scrim{background:linear-gradient(0deg,rgba(9,3,1,.92) 0%,rgba(9,3,1,.76) 30%,rgba(9,3,1,.2) 50%,rgba(9,3,1,0) 60%)}
  .gate__copy{left:0;right:0;top:auto;bottom:calc(var(--bar) + 3vh);transform:none;max-width:none;align-items:center;gap:clamp(20px,2.2vh,26px);padding:0 var(--pad)}
  .gate__title{align-items:center;text-align:center}
  .gate__word{font-size:clamp(84px,11.5vw,150px);margin-left:0}
  .gate__meta{justify-content:center;margin-top:14px}
  .gate__log{display:none}
  .gate__ui{justify-content:center}
}
@media (max-height:560px){
  .gate__hint{display:none}
}
@media (prefers-reduced-motion:reduce){
  .gate.is-ready .gate__word span{animation:none}
}
