/* ================================================================
   PRISM — Growth Tier Programmer Resume
   Dual accent: Teal (#14b8a6) + Indigo (#6366f1)
   Two-row hero split, diagonal accent block, spinning photo ring
   Font: Manrope + JetBrains Mono
   ================================================================ */

:root {
  --bg: #0c1222;
  --bg2: #101828;
  --surface: #151d30;
  --surface2: #1a2340;
  --border: rgba(20,184,166,0.08);
  --border2: rgba(20,184,166,0.16);
  --text: #8b95a8;
  --bright: #e8ecf4;
  --muted: #556070;
  --accent: #14b8a6;
  --accent2: #6366f1;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(20,184,166,0.15);
  --glow2: rgba(99,102,241,0.12);
  --dim: rgba(20,184,166,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.25);
  --ease: cubic-bezier(.4,0,.2,1);
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: all 0.25s var(--ease); }
a:hover { color: var(--bright); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }

/* ── Fixed Top Nav ─────────────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--background, rgba(12,18,34,0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--bright); }
.nav-logo { width: 28px; height: 28px; border-radius: 8px; }
.nav-name { font-weight: 700; font-size: 14px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--bright); background: var(--dim); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-hamburger span { width: 20px; height: 2px; background: var(--bright); border-radius: 2px; transition: all 0.25s var(--ease); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile menu */
.mob-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(12,18,34,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 12px 20px 16px;
  gap: 4px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease);
}
.mob-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mob-link {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 10px 12px; border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.mob-link:hover { color: var(--accent); background: var(--dim); }

/* ── Sections ──────────────────────────────────────────────────── */
.sec { position: relative; padding: 100px 0; }
.sec-alt { background: var(--bg2); }
.sec-sm { padding: 48px 0; }

/* Accent background section (tech stack) */
.sec-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.sec-accent .sec-heading, .sec-accent .sec-heading-light { color: #fff; }
.sec-accent .sh-num { color: rgba(255,255,255,0.5); }

/* ── Section Headings ──────────────────────────────────────────── */
.sec-heading {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--bright);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sh-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero-cover-wrap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 50vh; overflow: hidden;
}
.hero-cover-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.04; }

/* Diagonal accent block */
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 80vh;
  background: linear-gradient(180deg, rgba(20,184,166,0.04), rgba(99,102,241,0.03));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

/* Row 1: Name */
.hero-row1 {
  position: relative;
  padding: 140px 0 40px;
  z-index: 1;
}
.hero-chips { margin-bottom: 16px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--dim);
  border: 1px solid var(--border2);
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
}
.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bright);
  margin-bottom: 10px;
  animation: heroIn 0.8s var(--ease) both;
}
.hero-title {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--accent2);
  animation: heroIn 0.8s 0.15s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to{opacity: 1; transform: translateY(0)}
}

/* Row 2: Split */
.hero-row2 {
  position: relative;
  padding: 0 0 80px;
  z-index: 1;
}
.hero-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

/* Photo with spinning ring */
.photo-ring {
  position: relative;
  width: 200px; height: 200px;
}
.photo-img {
  width: 100%; height: 100%;
  border-radius: 16px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.photo-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  animation: ringSpin 5s linear infinite;
  z-index: 1;
}
@keyframes ringSpin { to{transform: rotate(360deg)} }
.photo-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: var(--gradient);
  filter: blur(24px);
  opacity: 0.12;
  z-index: 0;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hm {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.hm:hover { color: var(--bright); border-color: var(--border2); }
.hm svg { stroke: var(--accent); flex-shrink: 0; }

/* Gradient button */
.btn-grad {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  color: #fff;
  background: var(--gradient);
  padding: 12px 28px;
  border-radius: 10px;
  border: none; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-grad:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px var(--glow);
  color: #fff;
}

/* ── Content Blocks ────────────────────────────────────────────── */
.content-block { margin-bottom: 72px; position: relative; z-index: 1; }

/* ── Skills ─────────────────────────────────────────────────────── */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.skill-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}
.skill-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sk-name { font-weight: 600; font-size: 14px; color: var(--bright); }
.sk-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--accent2); text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(99,102,241,0.08);
  padding: 2px 8px; border-radius: 4px;
}
.sk-track { height: 4px; background: rgba(255,255,255,0.04); border-radius: 100px; overflow:clip; }
.sk-bar { height: 100%; background: var(--gradient); border-radius: 100px; font-size: 0; color: transparent; transform-origin: left; }

/* ── Timeline ──────────────────────────────────────────────────── */
.tl { position: relative; padding-left: 28px; }
.tl::before {
  content: ''; position: absolute;
  top: 6px; bottom: 6px; left: 6px;
  width: 2px; background: var(--gradient);
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -28px; top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 2;
  transition: all 0.3s var(--ease);
}
.tl-item:hover .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow), 0 0 20px var(--glow);
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s var(--ease);
}
.tl-item:hover .tl-card {
  border-color: var(--border2);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.tl-role { font-size: 15px; font-weight: 700; color: var(--bright); transition: color 0.25s var(--ease); }
.tl-item:hover .tl-role { color: var(--accent); }
.tl-co { font-size: 12px; color: var(--accent2); margin-top: 2px; }
.tl-date { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.tl-desc { font-size: 14px; line-height: 1.7; }

/* ── Tech Stack Chips (on accent bg) ───────────────────────────── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 150px; flex: 1 1 150px;
  transition: all 0.3s var(--ease);
}
.chip-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cc-name { font-weight: 700; font-size: 14px; color: #fff; display: block; margin-bottom: 2px; }
.cc-cat { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 10px; }
.cc-track { height: 3px; background: rgba(255,255,255,0.15); border-radius: 100px; overflow:clip; }
.cc-bar { height: 100%; background: rgba(255,255,255,0.7); border-radius: 100px; font-size: 0; color: transparent; transform-origin: left; }

/* ── Projects ──────────────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.proj-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.proj-thumb { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.proj-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.proj-card:hover .proj-img { transform: scale(1.05); }
.proj-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: all 0.35s var(--ease);
}
.proj-card:hover .proj-overlay { opacity: 1; transform: translateY(0); }
.proj-btn {
  font-size: 12px; font-weight: 600;
  color: #fff; background: var(--accent);
  padding: 7px 16px; border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.proj-btn:hover { background: var(--accent2); color: #fff; }
.proj-body { padding: 18px; }
.proj-tech { font-family: var(--mono); font-size: 10px; color: var(--accent2); display: block; margin-bottom: 6px; }
.proj-name { font-size: 16px; font-weight: 700; color: var(--bright); margin-bottom: 6px; transition: color 0.25s var(--ease); }
.proj-card:hover .proj-name { color: var(--accent); }
.proj-desc { font-size: 13px; line-height: 1.7; }

/* ── Certifications ────────────────────────────────────────────── */
.cert-list { display: flex; flex-direction: column; gap: 8px; }
.cert-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: all 0.3s var(--ease);
}
.cert-row:hover { border-color: var(--border2); transform: translateX(4px); box-shadow: var(--shadow); }
.cert-name { font-size: 14px; font-weight: 700; color: var(--bright); transition: color 0.25s var(--ease); }
.cert-row:hover .cert-name { color: var(--accent); }
.cert-from { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }
.cert-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cert-yr { font-family: var(--mono); font-size: 11px; color: var(--accent2); }
.cert-ext { color: var(--muted); transition: color 0.2s var(--ease); }
.cert-ext:hover { color: var(--accent); }

/* ── Portfolio ─────────────────────────────────────────────────── */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.folio-card { transition: all 0.3s var(--ease); }
.folio-card:hover { transform: translateY(-3px); }
.folio-thumb {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 3/2; margin-bottom: 12px;
}
.folio-img { width: 100%; height: 100%; object-fit: cover; transition: all 0.4s var(--ease); }
.folio-card:hover .folio-img { transform: scale(1.04); filter: brightness(0.5); }
.folio-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.folio-card:hover .folio-hover { opacity: 1; }
.folio-hover span {
  font-size: 13px; font-weight: 600;
  color: #fff; background: var(--gradient);
  padding: 8px 20px; border-radius: 8px;
}
.folio-cat { font-family: var(--mono); font-size: 10px; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.06em; }
.folio-name { font-size: 15px; font-weight: 700; color: var(--bright); margin: 4px 0 6px; transition: color 0.25s var(--ease); }
.folio-card:hover .folio-name { color: var(--accent); }
.folio-desc { font-size: 13px; line-height: 1.7; }

/* ── Services ──────────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.svc-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-bar-accent {
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gradient);
  transition: width 0.5s var(--ease);
}
.svc-card:hover .svc-bar-accent { width: 100%; }
.svc-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
.svc-name { font-size: 15px; font-weight: 700; color: var(--bright); margin-bottom: 4px; transition: color 0.25s var(--ease); }
.svc-card:hover .svc-name { color: var(--accent); }
.svc-sub { font-size: 12px; color: var(--accent2); margin-bottom: 10px; }
.svc-desc { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.svc-price { font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 600; }
.svc-link { font-size: 13px; font-weight: 500; color: var(--accent); }
.svc-link:hover { color: var(--bright); }

/* ── Testimonials ──────────────────────────────────────────────── */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.rev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s var(--ease);
}
.rev-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.rev-text { font-size: 14px; line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.rev-author { display: flex; align-items: center; gap: 12px; }
.rev-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rev-name { font-size: 13px; font-weight: 600; color: var(--bright); display: block; }
.rev-role { font-size: 11px; color: var(--muted); }

/* ── Social ────────────────────────────────────────────────────── */
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.social-pill {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 100px;
  transition: all 0.25s var(--ease); display: inline-flex;
}
.social-pill:hover { color: var(--accent); border-color: var(--border2); }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-lead { font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.contact-items { display: flex; flex-direction: column; gap: 6px; }
.ci {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
  padding: 6px 0; transition: all 0.2s var(--ease);
}
.ci svg { stroke: var(--accent); flex-shrink: 0; }
.ci-link:hover { color: var(--accent); transform: translateX(3px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.f-grp { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.f-row .f-grp { margin-bottom: 0; }
.f-grp label { font-size: 12px; font-weight: 500; color: var(--muted); }
.f-grp input, .f-grp textarea {
  font-family: var(--font); font-size: 14px; color: var(--bright);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; outline: none;
  transition: all 0.25s var(--ease); resize: vertical;
}
.f-grp input:focus, .f-grp textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--dim);
}
.f-grp input::placeholder, .f-grp textarea::placeholder { color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-tag { font-size: 13px; color: var(--muted); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { color: var(--muted); padding: 5px; border-radius: var(--radius, 6px); transition: all 0.2s var(--ease); }
.footer-social a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--muted); text-align: center; }

/* ── Scroll Animation ────────────────────────────────────────────
   Resting state is fully visible; the scroll-driven enhancement lives in the
   ANIMATIONS block at the end of this file. */
.ao { opacity: 1; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sec { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mob-menu { display: flex; }
  .hero-row1 { padding-top: 100px; }
  .hero-name { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .photo-ring { width: 160px; height: 160px; margin: 0 auto; }
  .hero-info { display: flex; flex-direction: column; align-items: center; }
  .hero-meta { justify-content: center; }
  .hero-diagonal { display: none; }
  .skill-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .folio-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .tl-head { flex-direction: column; gap: 3px; }
  .footer-row { flex-direction: column; gap: 10px; text-align: center; }
}

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }


/* ══════════════════════════════════════
   ANIMATIONS — scroll-driven reveal, progressive enhancement only
   The resting state is FULLY VISIBLE and lives outside every guard, so a browser
   with no scroll timeline — or a blocked script, or a stylesheet that arrives
   late — can never strand the name, bio, CTAs or any section behind them. The
   hidden from-state lives ONLY inside the @keyframes, never in the rule:
   `@supports` proves the FEATURE exists, it does not prove the ViewTimeline is
   ACTIVE. Inside a same-origin iframe (every owner-facing preview surface) the
   timeline resolves to null, the animation effect is not applied, and a
   rule-level `opacity: 0` would stay in force with nothing left to reveal it.
   Keyframed, the base visible declaration simply wins.
   Only opacity and transform animate: nothing reflows.
   ══════════════════════════════════════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ao { animation: ao-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }

    /* Group stagger is an animation-RANGE shift, never a delay: a wall-clock
       delay on a scroll timeline finishes long before the visitor arrives.
       Both ends stay inside `entry`, so every reveal completes once the element
       has entered — an end anchored to `cover` would leave the LAST section of
       the page permanently part-transparent, because the visitor runs out of
       page to scroll before the range finishes. */
    :is(.skill-grid, .chip-grid, .proj-grid, .folio-grid, .svc-grid, .rev-grid, .cert-list, .tl, .social-row, .contact-grid) > .ao:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skill-grid, .chip-grid, .proj-grid, .folio-grid, .svc-grid, .rev-grid, .cert-list, .tl, .social-row, .contact-grid) > .ao:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skill-grid, .chip-grid, .proj-grid, .folio-grid, .svc-grid, .rev-grid, .cert-list, .tl, .social-row, .contact-grid) > .ao:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skill-grid, .chip-grid, .proj-grid, .folio-grid, .svc-grid, .rev-grid, .cert-list, .tl, .social-row, .contact-grid) > .ao:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skill-grid, .chip-grid, .proj-grid, .folio-grid, .svc-grid, .rev-grid, .cert-list, .tl, .social-row, .contact-grid) > .ao:nth-child(n+6) { animation-range: entry 40% entry 78%; }

    /* The timeline entries slide in from the rail rather than rising, keeping
       the original reveal direction (x: -16). */
    .tl > .ao { animation-name: tl-in; }

    /* The bar grows along its own axis. The author's inline width stays the
       resting width, so the track never reflows while it fills. */
    .sk-bar, .cc-bar { animation: bar-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

    /* The decorative diagonal block drifts on the DOCUMENT scroll timeline —
       this one is a parallax, not a reveal, so `scroll()` is correct where
       `view()` would restart per element. It is a purely decorative gradient
       wedge behind the hero: if the timeline never resolves it simply sits
       still, and it is `display: none` under 768px anyway. */
    .hero-diagonal { animation: diagonal-drift linear both; animation-timeline: scroll(); animation-range: 0% 80vh; }

    /* The `to` keyframe deliberately omits `transform`, so the end state is the
       element's OWN underlying transform rather than a hard `none`. A filling
       scroll-driven animation outranks both author rules and inline styles, so a
       `to{}` permanently overrides every `:hover` lift and every
       JS-written transform on the same element for the rest of the page's life.
       Measured in Chrome 152: with `transform:none` a hovered card reports the
       identity matrix; with the implicit `to` it reports its real hover translate
       and its JS tilt matrix, while the reveal still runs on a ViewTimeline. */
    @keyframes ao-in { from { opacity: 0; transform: translateY(20px); } to{opacity: 1} }
    @keyframes tl-in { from { opacity: 0; transform: translateX(-16px); } to{opacity: 1} }
    @keyframes bar-fill-in { from { transform: scaleX(0); } to{transform: scaleX(1)} }
    @keyframes diagonal-drift { from { transform: translateY(0); } to{transform: translateY(-15%)} }
  }
}
