@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('vendor/archivo-var.woff2') format('woff2');
}
/* A fixed 125% instance so the canvas engine can request the expanded cut,
   which the canvas font shorthand cannot express via font-stretch. */
@font-face {
  font-family: 'ArchivoExp';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 125% 125%;
  font-display: swap;
  src: url('vendor/archivo-var.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect x='8' y='2' width='8' height='20' fill='%230a0a0a'/><rect x='2' y='8' width='20' height='8' fill='%230a0a0a'/><rect x='10' y='4' width='4' height='16' fill='%23E8E6E0'/><rect x='4' y='10' width='16' height='4' fill='%23E8E6E0'/></svg>") 12 12, crosshair;
}

body {
  background: #14161A;
  color: #E8E6E0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#loop-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.building {
  position: fixed;
  top: 26px;
  left: 30px;
  z-index: 2;
  font-family: 'Archivo', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(232, 230, 224, .34);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  animation: fade-in 2.4s ease 1s forwards;
}
.building span { animation: blink 2.8s infinite; }
.building span:nth-child(2) { animation-delay: .4s; }
.building span:nth-child(3) { animation-delay: .8s; }

@keyframes blink { 0%, 20% { opacity: .15; } 45%, 70% { opacity: 1; } 100% { opacity: .15; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---- Waitlist CTA ---------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Bal oldali, fekete-fehér, high-tech waitlist blokk. */
.cta {
  position: fixed;
  left: clamp(28px, 6vw, 96px);
  bottom: clamp(40px, 13vh, 128px);
  z-index: 3;
  width: min(84vw, 348px);
  text-align: left;
  opacity: 0;
  animation: fade-in 1.4s ease 1.2s forwards;
}

/* Hairline tick a fejléc fölött – technikai keretezés. */
.cta::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(232, 230, 224, .55);
  margin-bottom: 22px;
}

.cta-h {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}
.cta-h .l1 { display: block; color: #F2F0EA; }
.cta-h .l2 { display: block; color: rgba(232, 230, 224, .4); font-weight: 300; }

.waitlist { width: 100%; }

.field {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(232, 230, 224, .24);
  background: rgba(232, 230, 224, .03);
  transition: border-color .2s ease, background .2s ease;
}
.field:focus-within {
  border-color: rgba(232, 230, 224, .72);
  background: rgba(232, 230, 224, .05);
}

#waitlist-email {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .01em;
  color: #E8E6E0;
  background: transparent;
  border: 0;
  padding: 14px;
  cursor: text;
}
#waitlist-email::placeholder { color: rgba(232, 230, 224, .32); }
#waitlist-email:focus { outline: none; }
#waitlist-email:disabled { opacity: .5; }

#waitlist-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  border: 0;
  border-left: 1px solid rgba(232, 230, 224, .24);
  background: transparent;
  color: #E8E6E0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
#waitlist-btn .arrow { font-size: 17px; line-height: 1; transition: transform .18s ease; }
#waitlist-btn:hover:not(:disabled) { background: #E8E6E0; color: #14161A; }
#waitlist-btn:hover:not(:disabled) .arrow { transform: translateX(2px); }
#waitlist-btn:active:not(:disabled) .arrow { transform: translateX(0); }
#waitlist-btn:disabled { cursor: default; opacity: .5; }

.waitlist.is-done { display: none; }

.waitlist-status {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .01em;
  line-height: 1.5;
  min-height: 1.1em;
  margin-top: 16px;
  color: rgba(232, 230, 224, .5);
}
.waitlist-status.is-ok  { color: #F2F0EA; }
.waitlist-status.is-err { color: rgba(232, 230, 224, .82); }

/* Honeypot: bot-csapda, ember számára láthatatlan (nem display:none, hogy a botok kitöltsék). */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; opacity: 1; }
  .building { animation: none; opacity: 1; }
}
