/* alejandro.css — cream paper, editorial type, signal red. */

:root {
  --a-bg:     oklch(0.95 0.02 80);
  --a-bg-2:   oklch(0.92 0.025 80);
  --a-ink:    oklch(0.22 0.01 20);
  --a-mute:   oklch(0.48 0.01 30);
  --a-accent: oklch(0.58 0.22 25);
  --a-rule:   oklch(0.82 0.02 80);
}

body { background: var(--a-bg); color: var(--a-ink); }

.hero {
  position: relative;
  min-height: 100dvh;
  padding: var(--space-6) var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: center;
  isolation: isolate;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: var(--space-7); } }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a-accent);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 0.6em;
}
.hero__eyebrow::before {
  content: "";
  width: 2.5rem; height: 1px; background: var(--a-accent);
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(var(--type-8), 8.5vw, var(--type-11));
  font-weight: 700;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  opacity: 0;
  animation: rise 1100ms var(--ease-out-expo) 200ms forwards;
}
.hero__name em { font-style: normal; color: var(--a-accent); }
.hero__role {
  font-size: var(--type-5);
  font-weight: 400;
  color: var(--a-mute);
  margin-top: var(--space-3);
  max-width: 32ch;
  opacity: 0;
  animation: rise 1100ms var(--ease-out-expo) 400ms forwards;
}

/* Animated SVG scan grid — purposeful, looped */
.scan {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  justify-self: end;
  opacity: 0;
  animation: fadein 1200ms var(--ease-out-quart) 300ms forwards;
}
@keyframes scan-pulse {
  0%   { fill: var(--a-bg); }
  10%  { fill: var(--a-accent); }
  60%  { fill: var(--a-bg-2); }
  100% { fill: var(--a-bg); }
}
.scan rect.cell {
  fill: var(--a-bg);
  stroke: var(--a-rule);
  stroke-width: 0.5;
  animation: scan-pulse 4.8s ease-in-out infinite;
}
.scan text { font-family: var(--font-mono); font-size: 10px; fill: var(--a-mute); letter-spacing: 0.06em; }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-5);
  position: relative;
}
.section__num {
  font-family: var(--font-mono);
  font-size: var(--type-1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a-accent);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--type-7), 5vw, var(--type-9));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.section__lead {
  font-size: var(--type-4);
  max-width: 64ch;
  color: var(--a-mute);
  margin-bottom: var(--space-4);
}

.tagrow {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-mono);
}
.tagrow li {
  border: 1px solid var(--a-rule);
  padding: 0.5em 0.9em;
  font-size: var(--type-2);
  letter-spacing: 0.04em;
  background: var(--a-bg-2);
  transition: border-color 250ms var(--ease-out-quart), color 250ms var(--ease-out-quart);
}
.tagrow li:hover { border-color: var(--a-accent); color: var(--a-accent); }

.tlist { list-style: none; padding: 0; margin: 0; }
.tlist li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--a-rule);
  display: grid;
  grid-template-columns: 4ch 1fr auto;
  gap: var(--space-3);
  align-items: baseline;
}
.tlist li b { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--type-5); }
.tlist li q { color: var(--a-mute); font-size: var(--type-3); }
.tlist li q::before { content: "\201C"; }
.tlist li q::after { content: "\201D"; }
.tlist li .who { font-family: var(--font-mono); font-size: var(--type-1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-mute); text-align: right; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--type-3);
  margin-top: var(--space-3);
}
.contacts a {
  text-decoration: none;
  border-bottom: 1px solid var(--a-rule);
  padding-bottom: 2px;
  transition: border-color 250ms var(--ease-out-quart), color 250ms var(--ease-out-quart);
}
.contacts a:hover { border-bottom-color: var(--a-accent); color: var(--a-accent); }
.contacts a small { display: block; font-size: var(--type-1); color: var(--a-mute); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2px; }

footer.foot {
  padding: var(--space-6) var(--space-4) var(--space-4);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--type-1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a-mute);
}
footer.foot a { color: var(--a-accent); text-decoration: none; }

/* uptime sparkline footer flourish */
.spark {
  display: block;
  width: min(380px, 90%);
  margin: var(--space-4) auto var(--space-3);
  opacity: 0.6;
}
.spark polyline { fill: none; stroke: var(--a-accent); stroke-width: 1.5; }
.spark .grid { stroke: var(--a-rule); stroke-width: 0.4; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadein { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(12px); } }
