/* Futuequipos — "coming soon" page. Dark theme derived from the brand blue #165872. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #050d11;
  --bg-2: #071821;
  --card: #0d1d25;
  --line: #17313d;
  --line-soft: rgba(111, 205, 239, 0.14);

  --ink: #eaf4f8;
  --sub: #97b3c0;
  --dim: #7394a3; /* 5.3:1 on --card, 6:1 on --bg */

  --brand: #165872;
  --brand-2: #1f7ea8;
  --sky: #4fc3ea;
  --sky-hi: #8fe0ff;
  --ice: #d9f6ff;

  --radius-btn: 12px;
  --radius-card: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --font-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --mark-h: clamp(128px, 26vh, 300px);

  /* Pointer position, written by main.js: -1..1 for parallax, px for the spotlight. */
  --px: 0;
  --py: 0;
  --sx: 50vw;
  --sy: 30vh;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--sky-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--sky);
}

.skip-link:focus {
  left: 12px;
}

/* ---------- ambient scene (fixed, behind everything) ---------- */

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

.scene__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 32% at 50% 30%, rgba(31, 126, 168, 0.34), transparent 70%),
    radial-gradient(30% 28% at 18% 70%, rgba(22, 88, 114, 0.4), transparent 70%),
    radial-gradient(26% 24% at 84% 64%, rgba(79, 195, 234, 0.16), transparent 70%);
  transform: translate3d(calc(var(--px) * -24px), calc(var(--py) * -18px), 0);
}

.scene__aurora::before,
.scene__aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.scene__aurora::before {
  width: 46%;
  height: 46%;
  left: 8%;
  top: 22%;
  background: radial-gradient(closest-side, rgba(31, 126, 168, 0.28), transparent);
  animation: drift-a 26s var(--ease-io) infinite alternate;
}

.scene__aurora::after {
  width: 40%;
  height: 40%;
  right: 6%;
  top: 8%;
  background: radial-gradient(closest-side, rgba(79, 195, 234, 0.14), transparent);
  animation: drift-b 32s var(--ease-io) infinite alternate;
}

.scene__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade-in 1.6s ease 0.4s forwards;
}

.scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 205, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 205, 239, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 72%);
}

/* A finer dot grid that only shows up under the pointer. */
.scene__spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  transform: translate3d(calc(var(--sx) - 260px), calc(var(--sy) - 260px), 0);
  background-image: radial-gradient(rgba(143, 224, 255, 0.6) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: calc(260px - var(--sx)) calc(260px - var(--sy));
  mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  opacity: 0.4;
}

.scene__noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- build line + top bar ---------- */

.buildline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: rgba(79, 195, 234, 0.12);
  overflow: hidden;
}

.buildline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--sky-hi), transparent);
  box-shadow: 0 0 12px var(--sky);
  animation: buildline 2.6s var(--ease-io) infinite;
}

.topbar {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: var(--gutter);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(5, 13, 17, 0.72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding-inline: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 24, 33, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-hi);
  white-space: nowrap;
}

.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-hi);
  box-shadow: 0 0 10px var(--sky);
  flex-shrink: 0;
}

.status__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--sky-hi);
  animation: ping 1.8s var(--ease-out) infinite;
}

.topbar__end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.motion-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(7, 24, 33, 0.55);
  color: var(--sub);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.motion-toggle:hover {
  color: var(--sky-hi);
  border-color: rgba(143, 224, 255, 0.45);
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle svg {
  width: 18px;
  height: 18px;
}

.motion-toggle__play,
.motion-toggle[aria-pressed='true'] .motion-toggle__pause {
  display: none;
}

.motion-toggle[aria-pressed='true'] .motion-toggle__play {
  display: block;
}

.clock {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.clock time {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.clock__sep {
  animation: blink 1s steps(1) infinite;
}

/* ---------- hero ---------- */

main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px var(--gutter) 56px;
  text-align: center;
  isolation: isolate;
  /* Orbits, beam and floor are wider than small screens: never let them widen the page. */
  overflow: hidden;
  overflow: clip;
}

/* Perspective floor under the hero, echoing the horizon line of the monogram. */
.hero__floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: 0;
  height: 46%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 195, 234, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 234, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(74deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
  animation: floor 5s linear infinite, fade-in 2s ease 0.8s both;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 30px);
  perspective: 900px;
}

/* Orbits around the monogram: the orbiting point echoes the dot of the logo. */
.orbit {
  position: absolute;
  left: 50%;
  top: calc(var(--mark-h) / 2);
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  opacity: 0;
  animation: fade-in 1.4s ease 1.1s forwards;
}

.orbit--a {
  width: calc(var(--mark-h) * 1.9);
  height: calc(var(--mark-h) * 1.9);
  margin: calc(var(--mark-h) * -0.95) 0 0 calc(var(--mark-h) * -0.95);
  border: 1px solid rgba(111, 205, 239, 0.16);
  transform: rotateX(calc(70deg + var(--py) * 8deg)) rotateY(calc(var(--px) * 10deg));
}

.orbit--a .orbit__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.orbit--a .orbit__ring::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--sky-hi);
  box-shadow: 0 0 14px var(--sky), 0 0 30px rgba(79, 195, 234, 0.6);
}

.orbit--b {
  width: calc(var(--mark-h) * 1.45);
  height: calc(var(--mark-h) * 1.45);
  margin: calc(var(--mark-h) * -0.725) 0 0 calc(var(--mark-h) * -0.725);
  border: 1px dashed rgba(111, 205, 239, 0.14);
  animation: fade-in 1.4s ease 1.2s forwards, spin 70s linear infinite reverse;
}

.orbit--c {
  width: calc(var(--mark-h) * 2.5);
  height: calc(var(--mark-h) * 2.5);
  margin: calc(var(--mark-h) * -1.25) 0 0 calc(var(--mark-h) * -1.25);
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(79, 195, 234, 0.22) 88%, transparent 90%);
  mask-image: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70%, transparent 70.2%);
  -webkit-mask-image: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70%, transparent 70.2%);
  animation: fade-in 1.4s ease 1.3s forwards, spin 9s linear infinite;
}

.halo {
  position: absolute;
  left: 50%;
  top: calc(var(--mark-h) / 2);
  width: calc(var(--mark-h) * 2);
  height: calc(var(--mark-h) * 2);
  margin: calc(var(--mark-h) * -1) 0 0 calc(var(--mark-h) * -1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 234, 0.22), rgba(22, 88, 114, 0.12) 40%, transparent 68%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.mark {
  position: relative;
  height: var(--mark-h);
  aspect-ratio: 517 / 468;
  transform: rotateX(calc(var(--py) * -9deg)) rotateY(calc(var(--px) * 12deg));
  filter: drop-shadow(0 0 28px rgba(79, 195, 234, 0.35));
}

.mark__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Starts as a zero-height band on the crossbar and unfolds up and down. */
  clip-path: inset(54.67% 0 45.33% 0);
  -webkit-clip-path: inset(54.67% 0 45.33% 0);
  animation: unfold 1.05s var(--ease-io) 0.45s forwards;
}

.mark__dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: dot-pop 0.7s cubic-bezier(0.34, 1.8, 0.64, 1) 1.25s forwards;
}

.mark__ping {
  position: absolute;
  left: 94.45%;
  top: 68.53%;
  width: 12%;
  aspect-ratio: 1;
  margin: -6% 0 0 -6%;
  border-radius: 50%;
  border: 1.5px solid var(--sky-hi);
  opacity: 0;
  animation: ping 2.8s var(--ease-out) 1.5s infinite;
}

/* The crossbar of the "f", extended as a light beam across the viewport. */
.mark__beam {
  position: absolute;
  top: calc(var(--mark-h) * 0.5467);
  left: 50%;
  width: 100vw;
  height: 2px;
  margin-top: -1px;
  transform: translateX(-50%) scaleX(0);
  background: linear-gradient(
    90deg,
    transparent 2%,
    rgba(79, 195, 234, 0.35) 22%,
    var(--sky-hi) 42%,
    var(--ice) 50%,
    var(--sky-hi) 58%,
    rgba(79, 195, 234, 0.35) 78%,
    transparent 98%
  );
  box-shadow: 0 0 18px rgba(79, 195, 234, 0.55);
  animation: beam-draw 0.95s var(--ease-io) 0.1s forwards, beam-settle 1.2s ease 1.6s forwards;
  pointer-events: none;
}

/* Glint that keeps travelling along the beam. */
.mark__beam::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 140px;
  height: 6px;
  border-radius: 6px;
  background: radial-gradient(closest-side, #fff, rgba(143, 224, 255, 0.6) 40%, transparent);
  opacity: 0;
  animation: glint 5.5s var(--ease-io) 2.4s infinite;
}

/* Scan lines that ride the edges of the unfold. */
.mark__scan {
  position: absolute;
  left: -14%;
  right: -14%;
  top: 54.67%;
  height: 0;
  pointer-events: none;
}

.mark__scan::before,
.mark__scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-hi) 30%, var(--ice) 50%, var(--sky-hi) 70%, transparent);
  box-shadow: 0 0 12px var(--sky);
  opacity: 0;
}

.mark__scan::before {
  animation: scan-up 1.05s var(--ease-io) 0.45s forwards;
}

.mark__scan::after {
  animation: scan-down 1.05s var(--ease-io) 0.45s forwards;
}

/* Periodic sheen across the monogram, masked by the logo itself. */
.mark__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
  mask: url('/assets/img/logo-mark.svg') center / 100% 100% no-repeat;
  -webkit-mask: url('/assets/img/logo-mark.svg') center / 100% 100% no-repeat;
  mix-blend-mode: overlay;
  animation: shine 7s var(--ease-io) 2.6s infinite;
  pointer-events: none;
}

.wordmark {
  width: min(430px, 78vw);
  height: auto;
  fill: var(--ink);
  fill-rule: evenodd;
  overflow: visible;
}

.wordmark path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  animation: letter-in 0.8s var(--ease-out) forwards;
}

.wordmark path:nth-child(1) { animation-delay: 1.05s; }
.wordmark path:nth-child(2) { animation-delay: 1.1s; }
.wordmark path:nth-child(3) { animation-delay: 1.15s; }
.wordmark path:nth-child(4) { animation-delay: 1.2s; }
.wordmark path:nth-child(5) { animation-delay: 1.25s; }
.wordmark path:nth-child(6) { animation-delay: 1.3s; }
.wordmark path:nth-child(7) { animation-delay: 1.35s; }
.wordmark path:nth-child(8) { animation-delay: 1.4s; }
.wordmark path:nth-child(9) { animation-delay: 1.45s; }
.wordmark path:nth-child(10) { animation-delay: 1.5s; }
.wordmark path:nth-child(11) { animation-delay: 1.55s; }

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(28px, 5vh, 52px);
  max-width: 760px;
}

.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.shimmer {
  background: linear-gradient(90deg, var(--sky-hi) 0%, var(--ice) 25%, var(--sky) 50%, var(--sky-hi) 75%, var(--ice) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.6;
  color: var(--sub);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.rise {
  animation: rise 0.9s var(--ease-out) both;
}

.rise--1 { animation-delay: 0.95s; }
.rise--2 { animation-delay: 1.1s; }
.rise--3 { animation-delay: 1.25s; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  color: var(--dim);
  transition: color 0.2s;
  animation: fade-in 1s ease 2.2s both;
}

.scroll-cue:hover {
  color: var(--sky-hi);
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: nudge 2.2s ease-in-out infinite;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.25s, border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease-out);
  transform: translate3d(var(--mx-offset, 0), var(--my-offset, 0), 0);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: rgba(143, 224, 255, 0.28);
  box-shadow: 0 10px 30px rgba(31, 126, 168, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--primary:hover {
  box-shadow: 0 14px 40px rgba(31, 126, 168, 0.55), 0 0 0 1px rgba(143, 224, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Light sweep on hover. */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(13, 29, 37, 0.55);
  border-color: var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(143, 224, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(79, 195, 234, 0.25), 0 0 24px rgba(79, 195, 234, 0.18);
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  padding: clamp(72px, 12vh, 128px) var(--gutter) clamp(72px, 10vh, 112px);
}

.contact__head {
  max-width: 1120px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-hi);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--sky-hi));
}

.contact__title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.contact__lead {
  margin-top: 12px;
  color: var(--sub);
  font-size: 1.05rem;
}

.cards {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 26px 26px 22px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(16, 38, 48, 0.72), rgba(9, 22, 29, 0.82));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}

/* Spotlight fill that follows the pointer. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(79, 195, 234, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

/* Spotlight border: lights up on every card near the pointer. */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(143, 224, 255, 0.75), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.cards:hover .card::after,
.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--sky-hi);
  background: linear-gradient(135deg, rgba(22, 88, 114, 0.6), rgba(79, 195, 234, 0.1));
  border: 1px solid rgba(111, 205, 239, 0.3);
  box-shadow: 0 0 24px rgba(79, 195, 234, 0.12);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.card__value {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.card__meta {
  color: var(--sub);
  font-size: 0.95rem;
  margin-top: 2px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 17, 0.45);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.action svg {
  width: 17px;
  height: 17px;
  color: var(--sky-hi);
  flex-shrink: 0;
}

.action:hover {
  border-color: rgba(143, 224, 255, 0.55);
  background: rgba(22, 88, 114, 0.35);
}

.action--main {
  border-color: rgba(143, 224, 255, 0.35);
  background: rgba(22, 88, 114, 0.4);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  color: var(--dim);
  font-size: 0.88rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.footer__brand svg {
  height: 26px;
  width: auto;
  fill: url(#fe-gradient);
}

.footer__brand .footer__word {
  height: 10px;
  fill: var(--sub);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(13, 29, 37, 0.92);
  border: 1px solid rgba(143, 224, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(79, 195, 234, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: 0.93rem;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--sky-hi);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- scroll reveal (below the fold only) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .card.reveal.is-in {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}

.js .cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .cards .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 96px var(--gutter);
  text-align: center;
}

.lost__code {
  font-family: var(--font-mono);
  color: var(--sky-hi);
  letter-spacing: 0.3em;
}

/* ---------- keyframes ---------- */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes unfold {
  to {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

@keyframes beam-draw {
  to { transform: translateX(-50%) scaleX(1); }
}

@keyframes beam-settle {
  to { opacity: 0.55; }
}

@keyframes glint {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  60% { opacity: 1; }
  72%, 100% { left: calc(100% - 140px); opacity: 0; }
}

@keyframes scan-up {
  0% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--mark-h) * -0.5467)); }
}

@keyframes scan-down {
  0% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--mark-h) * 0.4533)); }
}

@keyframes dot-pop {
  to { transform: scale(1); }
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(60%) scaleY(1.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shine {
  0% { background-position: 100% 0; }
  30%, 100% { background-position: 0% 0; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes drift-a {
  to { transform: translate3d(38%, 18%, 0) scale(1.15); }
}

@keyframes drift-b {
  to { transform: translate3d(-42%, 30%, 0) scale(0.9); }
}

@keyframes floor {
  to { background-position: 0 72px, 0 0; }
}

@keyframes buildline {
  0% { left: -34%; }
  100% { left: 100%; }
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

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

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .contact__head {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 84px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .clock__city {
    display: none;
  }

  .status {
    font-size: 10.5px;
    letter-spacing: 0.13em;
    padding-inline: 12px 14px;
  }

  .card {
    padding: 22px 20px 20px;
  }
}

@media (max-height: 700px) and (min-width: 561px) {
  :root {
    --mark-h: clamp(110px, 20vh, 200px);
  }

  .hero__copy {
    gap: 14px;
  }
}

/* ---------- pause control (WCAG 2.2.2): stops the loops, never the one-shot intro ---------- */

.is-paused .buildline::after,
.is-paused .status__dot::after,
.is-paused .scene__aurora::before,
.is-paused .scene__aurora::after,
.is-paused .orbit--a .orbit__ring,
.is-paused .halo,
.is-paused .mark__beam::after,
.is-paused .mark__shine,
.is-paused .shimmer,
.is-paused .scroll-cue svg {
  animation-play-state: paused;
}

.is-paused .orbit--b,
.is-paused .orbit--c {
  animation-play-state: running, paused;
}

.is-paused .hero__floor {
  animation-play-state: paused, running;
}

.is-paused .clock__sep,
.is-paused .mark__ping {
  animation: none;
}

/* ---------- reduced motion: final state, no loops ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .mark__beam {
    opacity: 0.55;
  }

  .mark__beam::after,
  .mark__ping,
  .mark__shine,
  .buildline::after,
  .status__dot::after {
    display: none;
  }

  .mark {
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
