/* ==========================================================================
   void.rent — coming soon
   ========================================================================== */

:root {
  --bg: #000;
  --fg: #f3f3f1;
  --dim: rgba(243, 243, 241, 0.62);
  --faint: rgba(243, 243, 241, 0.38);
  --line: rgba(243, 243, 241, 0.18);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --pad: clamp(16px, 2.6vw, 34px);

  /* height of the skyline image; width follows the 3:1 ratio */
  --city-h: max(33.35vw, 62vh);
}

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

html { height: 100%; background: var(--bg); }

body {
  min-height: 100%;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

kbd { font: inherit; }

/* --------------------------------------------------------------------------
   Scene
   -------------------------------------------------------------------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.city {
  position: absolute;
  left: 50%;
  bottom: -14px;
  height: var(--city-h);
  aspect-ratio: 2000 / 667;
  transform: translate3d(calc(-50% + var(--px, 0px)), var(--py, 0px), 0);
  will-change: transform;
  animation: rise 2s var(--ease) 0.15s backwards;
}

.city__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;
  filter: contrast(1.06);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 18%, #000 46%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 18%, #000 46%);
  animation: breathe 24s ease-in-out 2s infinite alternate;
}

/* light line that sweeps up as the skyline is revealed */
.city__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: 100%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 25%, rgba(255,255,255,.95) 75%, transparent);
  box-shadow: 0 0 22px 3px rgba(255, 255, 255, 0.35);
  animation: scan 2s var(--ease) 0.15s;
}

/* cursor-driven light: everything is dimmed except around the pointer */
.spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--sx, 50%) var(--sy, 55%),
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0.1) 9vmax,
    rgba(0, 0, 0, 0.48) 38vmax
  );
  animation: fade 1.6s ease 1.4s backwards;
}

/* dark pool behind the type + top fade, keeps the copy legible */
.shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 34% at 50% 36%, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0) 22%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}

/* --------------------------------------------------------------------------
   HUD (corners)
   -------------------------------------------------------------------------- */

.hud {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  animation: fade 1.2s ease 1.6s backwards;
}

.hud--top { top: 0; padding-top: max(var(--pad), env(safe-area-inset-top)); }

.hud--bottom {
  bottom: 0;
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  color: #fff;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}

.brand svg { width: 14px; height: 14px; }

.status { display: inline-flex; align-items: center; gap: 12px; }

.status__bars { display: inline-flex; gap: 3px; }

.status__bars i {
  width: 4px;
  height: 10px;
  background: var(--fg);
  opacity: 0.18;
  animation: seg 1.6s ease-in-out infinite;
}

.status__bars i:nth-child(2) { animation-delay: 0.16s; }
.status__bars i:nth-child(3) { animation-delay: 0.32s; }
.status__bars i:nth-child(4) { animation-delay: 0.48s; }
.status__bars i:nth-child(5) { animation-delay: 0.64s; }

.coords b { font-weight: 500; font-variant-numeric: tabular-nums; }

.hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin: 0 4px;
  border: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(92px, 17vh, 200px) 16px 140px;
  text-align: center;
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  animation: fadeUp 1s var(--ease) 0.8s backwards;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
}

/* wordmark ------------------------------------------------------------- */

.mark {
  display: flex;
  margin: clamp(18px, 3vh, 30px) 0 clamp(14px, 2.4vh, 22px);
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 640;
  font-size: clamp(44px, 10.4vw, 164px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.mark__void,
.mark__rest { display: inline-flex; }

.mark span span {
  display: inline-block;
  animation: letter 1.1s var(--ease) calc(0.95s + var(--i) * 70ms) backwards;
}

/* "void" is hollow — stroke first, black fill on top hides inner contour overlaps */
.mark__void span {
  color: #000;
  -webkit-text-stroke: 0.05em var(--fg);
  paint-order: stroke fill;
  transition: -webkit-text-stroke-color 0.4s ease, color 0.6s var(--ease);
}

.mark__rest { color: var(--fg); }
.mark__rest span:first-child { color: var(--faint); }

.mark:hover .mark__void span { color: var(--fg); }
.mark:hover .mark__void span:nth-child(2) { transition-delay: 0.05s; }
.mark:hover .mark__void span:nth-child(3) { transition-delay: 0.1s; }
.mark:hover .mark__void span:nth-child(4) { transition-delay: 0.15s; }

.tagline {
  max-width: 34ch;
  font-weight: 400;
  font-stretch: 100%;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--dim);
  animation: fadeUp 1s var(--ease) 1.6s backwards;
}

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

.cta {
  --bx: 0px;
  --by: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  margin-top: clamp(26px, 4.4vh, 40px);
  padding: 0 11px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.5s var(--ease);
  animation: fadeUp 1s var(--ease) 1.8s backwards;
}

/* white fill rises from the bottom on hover, like looking up */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}

.cta:hover,
.cta:focus-visible,
.cta.is-pressed { color: #000; border-color: #fff; }

.cta:hover::before,
.cta:focus-visible::before,
.cta.is-pressed::before { transform: scaleY(1); }

.cta:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }

.cta__x { width: 17px; height: 17px; flex: none; }

.cta__kbd {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border: 1px solid currentColor;
  opacity: 0.55;
  font-size: 12px;
  letter-spacing: 0;
}

/* steps ---------------------------------------------------------------- */

.steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  animation: fadeUp 1s var(--ease) 2s backwards;
}

.steps li { display: inline-flex; align-items: center; gap: 9px; }

.steps b { font-weight: 500; color: var(--dim); }

.steps__n { color: var(--fg); }

.steps__sep { width: 28px; height: 1px; background: var(--line); }

.steps__bell { display: inline-flex; align-items: center; gap: 6px; }

.steps__bell svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 8%;
  animation: ring 4s ease-in-out 3s infinite;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes scan {
  0%   { top: 100%; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { top: 0%; opacity: 0; }
}

@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
}

@keyframes letter {
  from { opacity: 0; transform: translate3d(0, 0.32em, 0); filter: blur(14px); }
}

@keyframes seg {
  0%, 100% { opacity: 0.16; }
  40%      { opacity: 1; }
}

@keyframes ring {
  0%, 76%, 100% { transform: rotate(0); }
  80% { transform: rotate(16deg); }
  84% { transform: rotate(-13deg); }
  88% { transform: rotate(9deg); }
  92% { transform: rotate(-5deg); }
  96% { transform: rotate(2deg); }
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-6%, 4%, 0); }
  40%  { transform: translate3d(5%, -3%, 0); }
  60%  { transform: translate3d(-3%, -6%, 0); }
  80%  { transform: translate3d(4%, 5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

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

@media (max-width: 760px) {
  :root { --city-h: 57vh; }

  /* keep the central tower centred on narrow screens */
  .city { transform: translate3d(calc(-53% + var(--px, 0px)), var(--py, 0px), 0); }

  .hero { padding-top: clamp(92px, 15vh, 140px); }

  .mark { font-size: min(15vw, 84px); }

  .shade {
    background:
      radial-gradient(ellipse 80% 34% at 50% 34%, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,0) 100%),
      linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0) 20%);
  }

  .steps { flex-direction: column; gap: 12px; margin-top: 24px; }
  .steps .steps__sep { width: 18px; }

  .hint, .status [data-scramble] { display: none; }
}

@media (max-width: 380px) {
  .cta { gap: 12px; padding-left: 18px; letter-spacing: 0.12em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root { --city-h: 58vh; }
  .hero { padding-top: 76px; }
  .steps { display: none; }
}

@media (hover: none) {
  .hint { display: none; }
  .cta__kbd { display: none; }
  .cta { padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
