/* The pre-auth front door at barstudio.mottl.io — a cinematic, analog-graded
   full-bleed treatment of the venue photo. Shared by the two standalone
   pre-login pages (not base.html): landing.html (the sign-in page) and
   not_authorized.html (the "Brak dostępu" denied-access page). */

:root{
  /* palette — from the brand spec (design/design_discussion.md) */
  --chalk:#F2F0EC;
  --dust-blue:#A8C2C4;
  --warm-concrete:#D8D2CB;
  --asphalt:#2C3133;
  --asphalt-deep:#1C2021;
  --rose:#C58D88;
  --olive:#748C6A;

  --radius-md:14px;
  --ease:cubic-bezier(0.22,1,0.36,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"IBM Plex Sans",system-ui,sans-serif;
  background:var(--asphalt-deep);
  color:var(--chalk);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}

/* ----- the cinematic stage ----- */
.stage{position:fixed;inset:0;overflow:hidden}

/* the venue photograph, graded analog: desaturated, dimmed, cool */
.photo{
  position:absolute;inset:-6%;            /* bleed for the slow drift */
  background:url("background.webp") center 38%/cover no-repeat;
  filter:saturate(.62) contrast(1.04) brightness(.66) sepia(.06);
  transform:scale(1.06);
  animation:drift 46s var(--ease) infinite alternate;
  will-change:transform;
}
@keyframes drift{
  from{transform:scale(1.06) translate3d(0,0,0)}
  to  {transform:scale(1.14) translate3d(-2.2%,-1.6%,0)}
}

/* duotone wash — the rose↔dust-blue double-exposure nod */
.duotone{
  position:absolute;inset:0;
  background:
    linear-gradient(157deg, rgba(197,141,136,.34) 0%, rgba(197,141,136,0) 46%),
    linear-gradient(157deg, rgba(168,194,196,0) 54%, rgba(168,194,196,.30) 100%);
  mix-blend-mode:soft-light;
  pointer-events:none;
}

/* legibility scrim — darker toward the center where the type lives */
.scrim{
  position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(110% 110% at 50% 52%, rgba(28,32,33,.78) 0%, rgba(28,32,33,.4) 40%, rgba(28,32,33,.18) 72%),
    linear-gradient(180deg, rgba(28,32,33,.5) 0%, rgba(28,32,33,0) 24%, rgba(28,32,33,0) 70%, rgba(28,32,33,.5) 100%);
}

/* film grain — animated SVG turbulence, very low opacity */
.grain{
  position:absolute;inset:-200%;pointer-events:none;
  opacity:.05;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation:grain 7s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)} 16%{transform:translate(-6%,4%)}
  33%{transform:translate(4%,-7%)} 50%{transform:translate(-5%,6%)}
  66%{transform:translate(7%,3%)} 83%{transform:translate(-3%,-5%)}
  100%{transform:translate(0,0)}
}

/* ----- foreground layout ----- */
.frame{
  position:relative;z-index:2;height:100%;
  display:grid;grid-template-rows:auto 1fr;
  padding:clamp(20px,3.4vw,40px) clamp(22px,4.6vw,76px);
}
/* not_authorized.html has no top bar — one centered row instead of top+hero */
.frame.centered{grid-template-rows:1fr}

/* top bar — just the date */
.topbar{
  font-family:"IBM Plex Mono",monospace;
  font-size:11.5px;letter-spacing:.26em;text-transform:uppercase;
  color:rgba(242,240,236,.7);font-variant-numeric:tabular-nums;
}

/* main block — centered */
.hero{align-self:center;margin:0 auto;max-width:min(1180px,96%);text-align:center}
.wordmark{
  font-family:"Oswald",sans-serif;font-weight:500;
  text-transform:uppercase;color:var(--chalk);
  font-size:clamp(58px,12.6vw,196px);
  line-height:.82;letter-spacing:-.015em;
  text-shadow:0 2px 60px rgba(28,32,33,.5);
}
.biuro{
  font-family:"IBM Plex Mono",monospace;font-weight:500;
  text-transform:uppercase;color:var(--dust-blue);
  font-size:clamp(22px,2.38vw,29px);letter-spacing:.62em;
  margin:clamp(16px,1.8vw,24px) 0 0;text-indent:.62em;
}

/* not_authorized.html — the denied-access message + back-link */
.headline{
  font-family:"Oswald",sans-serif;font-weight:500;
  text-transform:uppercase;color:var(--chalk);
  font-size:clamp(46px,9.5vw,128px);
  line-height:.86;letter-spacing:-.01em;
  text-shadow:0 2px 60px rgba(28,32,33,.5);
}
.backlink{
  display:inline-block;margin-top:clamp(24px,3.4vw,42px);
  font-family:"IBM Plex Mono",monospace;font-weight:500;
  text-transform:uppercase;color:var(--dust-blue);
  font-size:clamp(12px,1.3vw,15px);letter-spacing:.28em;
  text-decoration:none;
  border-bottom:1px solid rgba(168,194,196,.3);padding-bottom:3px;
  transition:color .22s var(--ease),border-color .22s var(--ease);
}
.backlink:hover{color:var(--chalk);border-color:rgba(242,240,236,.5)}

/* the one quiet sign-in button */
.btn-google{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  margin-top:clamp(30px,4vw,52px);
  width:min(300px,100%);text-decoration:none;cursor:pointer;
  background:var(--chalk);color:var(--asphalt);
  font-family:"IBM Plex Sans",sans-serif;font-weight:500;font-size:15px;
  padding:15px 22px;border-radius:10px;border:1px solid transparent;
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s var(--ease);
}
.btn-google:hover{
  transform:translateY(-1px);background:#fff;
  box-shadow:0 12px 34px -14px rgba(0,0,0,.55);
}
.btn-google:active{transform:translateY(0)}
.btn-google svg{width:18px;height:18px;flex:none}

/* ----- staggered cinematic reveal ----- */
.reveal{opacity:0;transform:translateY(16px);
  animation:rise 1.05s var(--ease) forwards}
.clip{opacity:0;clip-path:inset(0 0 102% 0);transform:translateY(8px);
  animation:unclip 1.25s var(--ease) forwards}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes unclip{to{opacity:1;clip-path:inset(0 0 -8% 0);transform:none}}
.d1{animation-delay:.15s}.d2{animation-delay:.4s}
.d3{animation-delay:.74s}.d4{animation-delay:.92s}

@media (max-width:760px){
  body{overflow-y:auto}
  .frame{min-height:100%}
  .hero{max-width:100%}
}
@media (prefers-reduced-motion:reduce){
  .photo,.grain{animation:none}
  .reveal,.clip{animation-duration:.01s}
}
