/* ---------------------------------------------------------
   Puente II — Coming Soon
--------------------------------------------------------- */

@font-face {
  font-family: "TenPounds";
  src:
    url("/fonts/TenPounds-Regular.woff2") format("woff2"),
    url("/fonts/TenPounds-Regular.woff") format("woff"),
    url("/fonts/TenPounds-Regular.otf") format("opentype"),
    url("/fonts/TenPounds-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #050202;
  --bg-1: #0c0304;
  --bg-2: #170507;
  --ink: #efe6e2;
  --ink-dim: rgba(239, 230, 226, 0.42);
  --ink-faint: rgba(239, 230, 226, 0.22);
  --line: rgba(239, 230, 226, 0.16);
  --accent: #6e1f22;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 38%, var(--bg-2) 0%, var(--bg-1) 46%, var(--bg-0) 78%),
    linear-gradient(180deg, #060202 0%, #030101 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 140% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

/* ---------- cursor glow (trailing) ---------- */

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

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(190, 70, 66, 0.18) 0%,
    rgba(140, 45, 45, 0.09) 38%,
    rgba(90, 25, 28, 0.035) 58%,
    transparent 74%
  );
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(-9999px, -9999px, 0);
}

.cursor-glow--core {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
}

.cursor-glow--trail-1 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  background: radial-gradient(
    circle,
    rgba(160, 55, 52, 0.1) 0%,
    rgba(110, 38, 38, 0.05) 42%,
    transparent 72%
  );
}

.cursor-glow--trail-2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  background: radial-gradient(
    circle,
    rgba(130, 45, 42, 0.06) 0%,
    rgba(80, 28, 28, 0.025) 48%,
    transparent 76%
  );
}

@media (hover: none) {
  .cursor-glow-trail {
    display: none;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  padding: 1.5rem;
  text-align: center;
}

.logo {
  margin: 0;
  font-family: "TenPounds", "Georgia", "Iowan Old Style", serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(110, 31, 34, 0.55), 0 0 2px rgba(239, 230, 226, 0.25);
}

/* ---------- countdown ---------- */

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 2.6em;
}

.countdown__value {
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.countdown__sep {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--ink-faint);
  transform: translateY(-0.55em);
  font-weight: 300;
}

/* ---------- gracias abuelita ---------- */

.thanks {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  margin: 0;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(239, 230, 226, 0.3);
  user-select: none;
}

/* ---------- ocean coordinates ---------- */

.coords {
  position: fixed;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 1;
  text-align: right;
  font-family: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  line-height: 1.5;
}

.coords__value {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: rgba(239, 230, 226, 0.4);
}

.coords__ocean {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 230, 226, 0.26);
}

/* ---------- decorative marks ---------- */

.mark {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  color: rgba(185, 98, 95, 0.52);
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mark__g {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.mark--top-left {
  top: 6vh;
  left: 5vw;
  width: 58px;
  height: 58px;
  opacity: 0.28;
  animation: pulse 14s var(--ease-settle) infinite;
}

.mark--left-center {
  top: 50%;
  left: 3.4vw;
  width: 34px;
  height: 84px;
  transform: translateY(-50%);
  opacity: 0.24;
  animation: pulse 16s var(--ease-settle) infinite 2s;
}

.mark--bottom-left {
  bottom: 7vh;
  left: 5vw;
  width: 50px;
  height: 50px;
  opacity: 0.26;
  animation: pulse 15s var(--ease-settle) infinite 4s;
}

.mark--top-right {
  top: 6vh;
  right: 5vw;
  width: 56px;
  height: 56px;
  opacity: 0.25;
  animation: pulse 18s var(--ease-settle) infinite 1s;
}

.mark--right-center {
  top: 50%;
  right: 3.4vw;
  width: 34px;
  height: 84px;
  transform: translateY(-50%);
  opacity: 0.24;
  animation: pulse 17s var(--ease-settle) infinite 3s;
}

.mark--bottom-right {
  bottom: 15vh;
  right: 4.6vw;
  width: 40px;
  height: 40px;
  opacity: 0.24;
  animation: pulse 13s var(--ease-settle) infinite 2.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.36; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .mark--left-center,
  .mark--right-center {
    display: none;
  }
  .mark--top-left,
  .mark--top-right {
    width: 40px;
    height: 40px;
  }
  .mark--bottom-left {
    width: 36px;
    height: 36px;
  }
  .coords {
    left: 50%;
    right: auto;
    bottom: 3.2rem;
    transform: translateX(-50%);
    text-align: center;
  }
  .thanks {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none !important;
  }
}
