/* ============================================================
   ALAM BENÍTEZ — portfolio design tokens
   Dark / technical system · Inversa-leaning
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  /* — surfaces (warm near-black) — */
  --bg:        #0c0c0a;
  --bg-1:      #111110;
  --bg-2:      #171714;
  --bg-card:   #131311;

  /* — hairlines — */
  --line:      rgba(232,230,223,0.12);
  --line-soft: rgba(232,230,223,0.06);
  --line-hard: rgba(232,230,223,0.22);

  /* — text (warm bone) — */
  --text:      #ece9e1;
  --text-dim:  #9b988e;
  --text-faint:#615f58;

  /* — signal — */
  --acid:      #d6ff3f;          /* primary signal — used sparingly */
  --acid-dim:  rgba(214,255,63,0.16);
  --coral:     #ff6a3d;          /* rare "live" / hotspot only */

  /* — type — */
  --display: 'Space Grotesk', sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --body:    'Hanken Grotesk', sans-serif;

  --grid: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared primitives ---- */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mono-acid { color: var(--acid); }

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

/* faint engineering grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}

/* live availability dot */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255,106,61,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,106,61,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,106,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); }
}

/* corner registration ticks (Inversa-style frame) */
.tick { position: absolute; width: 9px; height: 9px; opacity: 0.6; }
.tick::before, .tick::after {
  content: ''; position: absolute; background: var(--line-hard);
}
.tick::before { width: 9px; height: 1px; top: 0; left: 0; }
.tick::after  { width: 1px; height: 9px; top: 0; left: 0; }
.tick.tr { right: 0; transform: scaleX(-1); }
.tick.bl { bottom: 0; transform: scaleY(-1); }
.tick.br { right: 0; bottom: 0; transform: scale(-1,-1); }

/* entrance helpers — base state is VISIBLE; animate from hidden only when allowed */
@media (prefers-reduced-motion: no-preference) {
  .clip-up   { animation: clipUp 0.9s cubic-bezier(.16,1,.3,1) both; }
  .fade-in   { animation: fadeIn 1s ease both; }
  .rise      { animation: rise 0.9s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes clipUp {
  from { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); }
  to   { clip-path: inset(0 0 -2% 0);  transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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