/* ==========================================================================
   I/F — COMING SOON
   Minimal techno / Berlin industrial-brutalist, high-end cake cafe & bar
   ========================================================================== */

:root{
  --bg:            #050505;
  --fg:            #E7E7E2;
  --fg-dim:        #8a8a85;
  --silver:        #B9B9B3;
  --silver-bright: #F4F4F0;
  --line:          rgba(231,231,226,0.14);
  --line-faint:    rgba(231,231,226,0.06);
  --font-sans:     'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --vh: 1svh;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

body{
  font-family: var(--font-sans);
  position: relative;
}

::selection{
  background: var(--fg);
  color: var(--bg);
}

/* ---------------------------------------------------------------------- */
/* Stage                                                                   */
/* ---------------------------------------------------------------------- */

.stage{
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1svh) * 100);
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 55%),
    var(--bg);
  --mx: 50%;
  --my: 50%;
}

/* subtle mouse-reactive glow */
.stage::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 420px at var(--mx) var(--my), rgba(231,231,226,0.05), rgba(231,231,226,0) 70%);
  transition: background-position 0.05s linear;
  z-index: 1;
}

/* ---------------------------------------------------------------------- */
/* Faint grid overlay                                                      */
/* ---------------------------------------------------------------------- */

.grid-overlay{
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(231,231,226,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231,231,226,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}

/* ---------------------------------------------------------------------- */
/* Film grain                                                              */
/* ---------------------------------------------------------------------- */

.grain{
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  animation: grain-shift 1.4s steps(2) infinite;
  mix-blend-mode: overlay;
}

@keyframes grain-shift{
  0%   { transform: translate(0,0); }
  50%  { transform: translate(-2%,1%); }
  100% { transform: translate(1%,-2%); }
}

/* ---------------------------------------------------------------------- */
/* Scanlines                                                               */
/* ---------------------------------------------------------------------- */

.scanlines{
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    rgba(0,0,0,0) 1px,
    rgba(0,0,0,0) 3px
  );
  opacity: 0.5;
}

.vignette{
  position: fixed;
  inset: 0;
  z-index: 48;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------------------------------------------------------------------- */
/* Corner frame marks — brutalist print register feel                     */
/* ---------------------------------------------------------------------- */

.frame-corner{
  position: fixed;
  width: 18px;
  height: 18px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.55;
}
.frame-tl{ top: 20px; left: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.frame-tr{ top: 20px; right: 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.frame-bl{ bottom: 20px; left: 20px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.frame-br{ bottom: 20px; right: 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------------------------------------------------------------------- */
/* Top / bottom bars                                                       */
/* ---------------------------------------------------------------------- */

.top-bar, .bottom-bar{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vh, 34px) clamp(20px, 4vw, 56px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 5;
  border-bottom: 1px solid transparent;
  opacity: 0;
  animation: fade-in-ui 1.2s ease forwards;
  animation-delay: 2.4s;
}

.bottom-bar{ animation-delay: 2.6s; }

.top-bar__item--center,
.bottom-bar__item--center{
  color: var(--fg);
  display: none;
}

.status-dot{
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--silver);
  margin-right: 8px;
  vertical-align: middle;
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse{
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

@keyframes fade-in-ui{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bottom-bar{ }
.bottom-bar.fade-in-ui, .top-bar{ }

/* ---------------------------------------------------------------------- */
/* Logo section                                                           */
/* ---------------------------------------------------------------------- */

.logo-wrap{
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 30px);
  position: relative;
  z-index: 6;
  padding: 0 24px;
}

.logo-assembly{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72vw, 520px);
  height: auto;
  aspect-ratio: 520 / 240;
}

/* Counter digits — fixed width box so layout never shifts */
.counter{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(64px, 17vw, 168px);
  letter-spacing: 0.02em;
  color: var(--silver-bright);
  text-shadow: 0 0 18px rgba(231,231,226,0.25);
}

.counter::after{
  content: "/F";
  margin-left: 0.12em;
  color: var(--fg);
  opacity: 0.9;
}

.counter.is-flicker{
  animation: digit-flicker 0.09s steps(1) infinite;
}

@keyframes digit-flicker{
  0%   { opacity: 1;    transform: translate(0,0); }
  30%  { opacity: 0.82; transform: translate(-0.5px,0.5px); }
  60%  { opacity: 0.96; transform: translate(0.5px,-0.3px); }
  100% { opacity: 1;    transform: translate(0,0); }
}

.counter.is-ghost{
  text-shadow:
    0 0 14px rgba(231,231,226,0.3),
    -2px 0 6px rgba(231,231,226,0.18),
    2px 0 6px rgba(185,185,179,0.14);
}

.counter.is-hidden{
  display: none;
}

/* Final SVG logo */
.iflogo{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 0 24px rgba(231,231,226,0.08));
}

.iflogo.is-visible{
  opacity: 1;
  animation: logo-settle 0.7s cubic-bezier(.16,.8,.3,1) forwards;
}

@keyframes logo-settle{
  0%   { opacity: 0; transform: scale(1.04); filter: drop-shadow(0 0 40px rgba(231,231,226,0.35)) brightness(1.6); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 24px rgba(231,231,226,0.08)) brightness(1); }
}

/* Text beneath logo */
.tagline,
.coming-soon,
.location{
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}

.tagline{
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.32em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.coming-soon{
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.55em;
  color: var(--fg);
  text-transform: uppercase;
  padding-left: 0.55em; /* optical centering for extreme tracking */
}

.location{
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(9px, 1.2vw, 11px);
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.reveal-text{
  animation: text-reveal 1.1s ease forwards;
}

@keyframes text-reveal{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* thin rule between tagline group */
.tagline::after{
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--line);
  margin: clamp(14px, 2.4vh, 22px) auto 0;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (min-width: 720px){
  .top-bar__item--center,
  .bottom-bar__item--center{
    display: inline;
  }
}

@media (max-width: 480px){
  .logo-assembly{ width: 82vw; }
  .top-bar, .bottom-bar{ font-size: 9px; letter-spacing: 0.16em; }
  .coming-soon{ letter-spacing: 0.42em; }
}

@media (max-height: 560px){
  .top-bar, .bottom-bar{ padding-top: 10px; padding-bottom: 10px; }
  .logo-wrap{ gap: 12px; }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion — show completed state instantly, keep it static        */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  .grain{ animation: none; opacity: 0.03; }
  .status-dot{ animation: none; opacity: 0.8; }
  .top-bar, .bottom-bar{ animation: none; opacity: 1; }
  .iflogo{ animation: none; opacity: 1; }
  .tagline, .coming-soon, .location{ animation: none; opacity: 1; transform: none; }
}
