/* ============================================================
   John Angelo Vasquez | Portfolio
   Dark / charcoal / warm-orange design system
   ============================================================ */

/* Self-hosted fonts (no external requests) */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-400.woff2") format("woff2"); }
/* Bricolage Grotesque + Inter load from Google Fonts (see index.html <head>) */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/space-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-700.woff2") format("woff2"); }

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ff6b1a;
  --accent-hover: #ff7f36;
  --accent-soft: rgba(255, 107, 26, 0.12);
  --accent-glow: rgba(255, 107, 26, 0.35);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(var(--max-w), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }

.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-bottom: 18px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 54px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: #14100b; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.tags li {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px;
  background: rgba(255,255,255,0.02);
}
.icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid rgba(255,107,26,.4);
  color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; position: relative; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 82% 30%, rgba(255,107,26,.07), transparent 60%),
    radial-gradient(700px 500px at 8% 85%, rgba(255,255,255,.025), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-name {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 102px);
  line-height: 1.02;
  letter-spacing: 0.015em;
  margin: 6px 0 10px;
}
.hero-title { font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 27px); font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.hero-title .divider { color: var(--accent); margin: 0 6px; }
.hero-desc { color: var(--muted); font-size: clamp(15.5px, 1.6vw, 17.5px); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.stat { flex: 1; padding: 22px 26px 0 0; }
.stat + .stat { border-left: 1px solid var(--border); padding-left: 26px; }
.stat dd { margin: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--text); }
.stat-num::after { content: ""; }
.stat-label { display: block; font-size: 12.5px; color: var(--faint); margin-top: 4px; letter-spacing: .04em; }

/* Portrait treatment */
.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.portrait-frame {
  position: relative; width: min(580px, 100%);
  display: flex; align-items: flex-end; justify-content: center;
}
.portrait-frame::before {
  content: ""; position: absolute; inset: 8% 2% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,107,26,.20), transparent 72%);
  filter: blur(12px); pointer-events: none;
  border: 0;
}
.portrait-photo {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  filter: saturate(.94) contrast(1.04) brightness(.97);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
/* Warm color grade so the portrait suits the dark background */
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(165deg, rgba(255,107,26,.16), transparent 45%),
    linear-gradient(to top, rgba(10,10,11,.5), transparent 42%);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
/* Decorative background design around the portrait */
.portrait-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.decor-ring {
  position: absolute; top: 50%; left: 50%; width: 560px; height: 560px;
  transform: translate(-50%, -52%);
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%;
}
.decor-ring.small {
  width: 430px; height: 430px; transform: translate(-50%, -52%);
  border-color: rgba(255,107,26,.14);
}
.decor-dot {
  position: absolute; top: calc(50% - 291px); left: calc(50% - 5px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent-glow);
}
.decor-plus {
  position: absolute; color: rgba(255,255,255,.18);
  font-size: 20px; font-weight: 300; font-family: var(--font-body);
}
.decor-plus.p1 { top: 6%; left: 8%; }
.decor-plus.p2 { top: 22%; right: 4%; color: rgba(255,107,26,.45); }
.decor-plus.p3 { bottom: 18%; left: 2%; }
.portrait-inner { text-align: center; }
.portrait-mono { display: block; font-family: var(--font-display); font-size: 92px; font-weight: 700; color: var(--text); line-height: 1; }
.portrait-mono::first-letter { color: var(--accent); }
.portrait-note { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.frame-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); }
.frame-corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.frame-corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.frame-corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.frame-corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.portrait-caption { color: var(--faint); font-size: 13px; letter-spacing: .06em; margin: 0; }
.hero-scroll { display: flex; justify-content: center; margin-top: 70px; }
.hero-scroll span { width: 24px; height: 40px; border: 1.5px solid var(--border-strong); border-radius: 14px; position: relative; display: block; }
.hero-scroll span::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: .3; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.about-main p { color: var(--muted); font-size: 16.5px; }
.about-main p:first-child { color: var(--text); font-size: 18px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.skills-grid .card { height: 100%; display: flex; flex-direction: column; }
.skills-grid .tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.skills-grid .tags li { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5px 8px; line-height: 1.3; }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.skill-head h3 { margin: 0; }

/* ---------- Projects ---------- */
.projects-list { display: grid; gap: 26px; }
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .22s ease, box-shadow .22s ease;
}
.project:nth-child(even) .project-media { order: 2; }
.project:hover { border-color: rgba(255,107,26,.45); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,107,26,.12); }
.project-media { position: relative; display: block; min-height: 300px; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.project:hover .project-media img { transform: scale(1.045); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,.55)); pointer-events: none; }
.project-arrow {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #14100b; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: translateX(6px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.project:hover .project-arrow { transform: translateX(0); opacity: 1; }
.project-body { padding: 38px 36px; display: flex; flex-direction: column; justify-content: center; }
.project-cat { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.project-body h3 { font-size: clamp(21px, 2.4vw, 27px); }
.project-body > p { color: var(--muted); font-size: 15px; }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.project-links a { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .18s; }
.project-links a:hover { color: var(--accent); }
.private-note { font-size: 13.5px; color: var(--faint); font-style: italic; }

/* ---------- Featured project gallery (images + hover videos) ---------- */
.project-featured { grid-template-columns: 1fr; }
.project-gallery { padding: 26px 26px 0; }
.gallery-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.gallery-images img {
  width: 100%; height: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; object-position: top center;
  border-radius: 10px; border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease;
}
.gallery-images img:hover { border-color: rgba(255,107,26,.5); transform: translateY(-2px); }
.gallery-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.video-tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #000; cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.video-tile:hover { border-color: rgba(255,107,26,.55); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(255,107,26,.15); }
.video-tile .video-poster, .video-tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-tile video { opacity: 0; transition: opacity .45s ease; }
.video-tile.playing video { opacity: 1; }
.video-hint {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: rgba(10,10,11,.45);
  opacity: 1; transition: opacity .3s ease;
}
.video-hint .icon { width: 30px; height: 30px; color: var(--accent); }
.video-tile.playing .video-hint { opacity: 0; pointer-events: none; }
.video-label {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: rgba(10,10,11,.72); border: 1px solid var(--border-strong);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px);
  transition: opacity .3s ease;
}
.video-tile.playing .video-label { opacity: 0; }

/* ---------- Ad creatives masonry grid ---------- */
.ads-grid { columns: 4 220px; column-gap: 12px; }
.ads-grid img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--border);
  margin-bottom: 12px; break-inside: avoid;
  transition: border-color .2s ease, transform .2s ease;
}
.ads-grid img:hover { border-color: rgba(255,107,26,.5); transform: translateY(-2px); }

/* ---------- Collapsible ads gallery ---------- */
.ads-collapse {
  position: relative;
  max-height: 380px;
  overflow: hidden;
  transition: max-height .6s ease;
}
.ads-collapse::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--surface) 85%);
  pointer-events: none; transition: opacity .4s ease;
}
.ads-collapse.open { max-height: 6000px; }
.ads-collapse.open::after { opacity: 0; }
.ads-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px auto 0; padding: 12px 26px;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text); font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.ads-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.ads-toggle .icon { width: 18px; height: 18px; color: inherit; transition: transform .3s ease; }
.ads-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.project-gallery .ads-toggle { display: flex; }

/* ---------- Video lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox-frame { position: relative; z-index: 1; width: min(1020px, 94vw); margin: 0; animation: lbIn .3s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.lightbox-video { width: 100%; max-height: 76vh; border-radius: 12px; background: #000; border: 1px solid var(--border-strong); display: block; }
.lightbox-caption { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: 14px; letter-spacing: .04em; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,10,11,.75); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
.lb-btn .icon { width: 20px; height: 20px; color: inherit; }
.lb-close { top: -56px; right: 0; }
.lb-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -60px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-full { bottom: -56px; right: 0; }
@media (max-width: 1100px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- Vertical (9:16) video ads ---------- */
.gallery-vertical { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
.video-vertical { aspect-ratio: 9 / 16; max-height: 480px; }

/* ---------- Experience ---------- */
.timeline { list-style: none; margin: 0 0 60px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 58px; padding: 26px 0; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: 143px; top: 34px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline-date { font-size: 13px; color: var(--faint); font-weight: 500; padding-top: 4px; white-space: nowrap; }
.timeline-body h3 { font-size: 18px; margin-bottom: 2px; }
.timeline-body h3 span { color: var(--faint); font-weight: 500; font-size: 15px; }
.timeline-org { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.timeline-body > p:last-child { color: var(--muted); font-size: 14.5px; margin: 0; }
.edu-block { border-top: 1px solid var(--border); padding-top: 44px; }
.edu-title { font-size: 20px; margin-bottom: 18px; }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.edu-list li { color: var(--muted); font-size: 15px; border-left: 2px solid var(--accent); padding-left: 16px; }
.edu-list strong { color: var(--text); font-weight: 600; }
.edu-list span { color: var(--faint); font-size: 13.5px; margin-left: 8px; }

/* ---------- GitHub ---------- */
.github-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.github-profile { text-decoration: none; display: block; }
.github-profile:hover { border-color: rgba(255,107,26,.45); }
.github-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.github-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid rgba(255,107,26,.4);
  color: var(--accent); font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.github-avatar + div h3 { margin: 0; font-size: 18px; }
.github-avatar + div p { margin: 0; font-size: 13.5px; }
.github-stats { display: flex; gap: 40px; margin-bottom: 18px; }
.link-more { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.repo-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.repo-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-decoration: none; padding: 10px 4px; border-bottom: 1px solid var(--border);
  font-size: 14.5px; font-weight: 500; transition: color .18s, padding-left .18s;
}
.repo-list a:hover { color: var(--accent); padding-left: 10px; }
.repo-list span { color: var(--faint); font-size: 12.5px; font-weight: 400; }
.github-note { font-size: 13px; margin: 0; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; max-width: 860px; }
.contact-inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.contact-inner .section-sub { margin-inline: auto; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 40px; text-align: left; }
.contact-card { text-decoration: none; display: flex; gap: 16px; align-items: flex-start; }
.contact-card:hover { border-color: rgba(255,107,26,.45); transform: translateY(-3px); }
.contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.contact-card p { font-size: 13.5px; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner .muted { font-size: 13.5px; margin: 0; }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a, .to-top {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent; cursor: pointer;
  transition: border-color .18s, color .18s, transform .18s;
}
.footer-links a:hover, .to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-links .icon { width: 18px; height: 18px; color: inherit; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Micro-interactions ---------- */
/* Primary button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -90%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255,107,26,.42); }
.btn-primary:active { transform: translateY(-1px) scale(.98); box-shadow: 0 6px 18px rgba(255,107,26,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.4), 0 0 0 1px rgba(255,107,26,.25); }
.btn-ghost:active { transform: translateY(-1px) scale(.98); }

/* Nav link sliding underline */
.nav-links a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-links a.active::before { display: none; }
.brand { transition: color .2s ease; }
.brand:hover .brand-name { color: var(--accent); }
.brand-name { transition: color .2s ease; }

/* Project cards lift */
.project { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.project:hover { transform: translateY(-6px); border-color: rgba(255,107,26,.5); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 44px rgba(255,107,26,.1); }

/* Project text links underline slide */
.project-links a { position: relative; border-bottom: 0; padding-bottom: 2px; }
.project-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(1); transform-origin: left;
  transition: transform .25s ease;
}
.project-links a:hover::after { transform: scaleX(.35); }

/* Tags pop */
.tags li { transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; cursor: default; }
.tags li:hover { transform: translateY(-3px); border-color: rgba(255,107,26,.55); background: var(--accent-soft); color: var(--text); }

/* Generic cards */
.card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,107,26,.35); box-shadow: 0 18px 44px rgba(0,0,0,.45); }

/* Contact cards */
.contact-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.contact-card:hover { transform: translateY(-5px); border-color: rgba(255,107,26,.5); box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 30px rgba(255,107,26,.08); }
.contact-card:hover .icon { color: var(--accent); transform: scale(1.15) rotate(-8deg); }
.contact-card .icon { transition: transform .28s ease, color .28s ease; }

/* Timeline markers pulse on hover */
.timeline-item { transition: transform .25s ease; }
.timeline-item:hover { transform: translateX(4px); }
.timeline-item::before { transition: box-shadow .25s ease; }
.timeline-item:hover::before { box-shadow: 0 0 0 7px rgba(255,107,26,.16); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: min(340px, 85%); margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(even) .project-media { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { min-height: 240px; }
  .github-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .timeline::before { left: 118px; }
  .timeline-item { grid-template-columns: 92px 1fr; gap: 44px; }
  .timeline-item::before { left: 113px; }
  .gallery-images { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,11,.97); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-name { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat { padding: 16px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .about-cards { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-body { padding: 28px 24px; }
  .project-gallery { padding: 18px 18px 0; }
  .gallery-videos { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-item::before { display: none; }
  .timeline-date { white-space: normal; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============ INFOGRAPHICS ============ */
.info-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .info-duo a { display: block; }
    .info-duo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
    @media (max-width: 720px) { .info-duo { grid-template-columns: 1fr; } }

    .profile-reference.reveal { transform: none; }
    .profile-reference .portrait-frame { width: min(600px, 100%); height: clamp(540px, 52vw, 640px); margin-left: 3%; overflow: visible; opacity: 0; transform: translateX(150px); transition: opacity .8s ease .08s, transform 1.05s cubic-bezier(.22,.75,.24,1) .08s; }
    .profile-reference.visible .portrait-frame { opacity: 1; transform: translateX(0); }
    .profile-reference .portrait-caption { opacity: 0; transform: translateX(76px); transition: opacity .75s ease .34s, transform .95s cubic-bezier(.22,.75,.24,1) .34s; }
    .profile-reference.visible .portrait-caption { opacity: 1; transform: translateX(0); }
    .profile-reference .portrait-frame::before { inset: 4% -4% 8%; background: radial-gradient(closest-side, rgba(255,107,26,.22), transparent 72%); }
    .profile-reference .portrait-frame::after { background: linear-gradient(to top, rgba(10,10,11,.46), transparent 34%); mix-blend-mode: normal; }
    .profile-halo { position: absolute; z-index: 0; top: -1%; left: 50%; width: min(570px, 94%); aspect-ratio: 1; transform: translateX(-50%); border: 1px solid rgba(255,107,26,.3); border-radius: 50%; background: radial-gradient(circle at 50% 34%, rgba(255,107,26,.2), rgba(255,107,26,.045) 48%, transparent 70%); box-shadow: 0 0 90px rgba(255,107,26,.13), inset 0 0 70px rgba(255,107,26,.05); pointer-events: none; }
    .profile-reference .portrait-decor { z-index: 1; }
    .profile-reference .decor-ring { width: 590px; height: 590px; top: 43%; border-color: rgba(255,255,255,.055); }
    .profile-reference .decor-ring.small { width: 448px; height: 448px; top: 43%; border-color: rgba(255,107,26,.16); }
    .profile-reference .decor-dot { top: calc(43% - 298px); }
    .profile-reference .portrait-photo { position: absolute; z-index: 2; left: 50%; bottom: -10%; width: 126%; max-width: none; height: auto; transform: translateX(-50%); filter: saturate(.96) contrast(1.04) brightness(.98); }
    @media (max-width: 1024px) {
      .profile-reference .portrait-frame { width: min(370px, 94vw); height: 455px; margin-inline: auto; transform: translateX(76px); }
      .profile-reference.visible .portrait-frame { transform: translateX(0); }
      .profile-halo { width: min(350px, 92%); }
      .profile-reference .decor-ring { width: 360px; height: 360px; }
      .profile-reference .decor-ring.small { width: 282px; height: 282px; }
      .profile-reference .decor-dot { top: calc(43% - 184px); }
      .profile-reference .portrait-photo { width: 140%; bottom: -13%; }
    }
