/* ═══════════════════════════════════════════════════════════
   BASE — Reset, global typography, utilities, animations
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

/* ── Body ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Skip Link (accessibility) ───────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 9999;
  outline: none;
}

/* ── Global Links ────────────────────────────────────────── */
a {
  color: #34B6E8;
  text-decoration-color: rgba(52, 182, 232, 0.35);
}
a:visited {
  color: #8A9DAC;
  text-decoration-color: rgba(138, 157, 172, 0.35);
}
a:hover {
  color: #6CCDF0;
}
a:focus-visible {
  outline: 2px solid #34B6E8;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout Container ────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-10);
}

/* ── Utilities ───────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.overline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.05em;
  opacity: 0.45;
  transition: opacity 0.4s ease;
  user-select: none;
}
.section-in-view .overline { opacity: 1; }

.section-label-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.section-label-row .overline { margin: 0; }

.label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

/* ── Dot Grid Backgrounds ────────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(1, 158, 219, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dot-grid-subtle {
  background-image: radial-gradient(circle, rgba(1, 158, 219, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Corner Frame Brackets ───────────────────────────────── */
.frame {
  position: relative;
}
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.frame::before {
  top: 0; left: 0;
  border-width: 1.5px 0 0 1.5px;
}
.frame::after {
  bottom: 0; right: 0;
  border-width: 0 1.5px 1.5px 0;
}
.section-in-view .frame::before,
.section-in-view .frame::after { opacity: 1; }

/* ── Plus Crosshair Marker ───────────────────────────────── */
.crosshair {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0.35;
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--primary);
}
.crosshair::before { width: 1px; height: 100%; left: 50%; top: 0; }
.crosshair::after  { width: 100%; height: 1px; top: 50%; left: 0; }

/* ── Section Reveal Animations ───────────────────────────── */
.reveal-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Prefers-reduced-motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .annotation-badge {
    animation: none !important;
    transform: none;
  }
  .scroll-arrow {
    animation: none !important;
  }
  .status-dot::after {
    animation: none !important;
  }
}

/* ── Callout Section (shared across about/resume) ────────── */
.callout {
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.callout .dot-grid-subtle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(1, 158, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.callout .container { position: relative; z-index: 2; }
.callout-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
  opacity: 0.7;
}
.callout-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
.callout-sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-9, 36px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 var(--space-5); }
  .container { padding: 0 var(--space-5); }
}
