/* ══════════════════════════════════════════════════════════════
   mattobrad.com — shared theme
   Single source of truth for tokens, layout, components, motion.
   Page-specific rules live in each page's own <style> block.
   ══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --black:  #000000;
  --bg:     #060608;
  --bg1:    #0c0c0f;
  --bg2:    #111116;
  --sf:     rgba(255,255,255,0.04);
  --sf2:    rgba(255,255,255,0.07);
  --bd:     rgba(255,255,255,0.07);
  --bd2:    rgba(255,255,255,0.13);
  --text:   #F2F2F5;
  --muted:  #8B8B94;
  --dim:    #3C3C44;
  --blue:   #2997FF;
  --green:  #30D158;
  --orange: #FF9F0A;
  --purple: #BF5AF2;
  --red:    #FF453A;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --r:      18px;
  --max:    1100px;

  /* elevation + lighting */
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,.07) inset, 0 26px 60px rgba(0,0,0,.5);
  --edge-light: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: none; background: none; }

::selection { background: rgba(41,151,255,.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── BACKGROUND LAYERS ───────────────────────────── */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(80px); will-change: transform;
}
.a1 {
  width: min(55vw, 640px); height: min(55vw, 640px);
  background: radial-gradient(ellipse, rgba(41,151,255,.11) 0%, transparent 68%);
  top: -10%; left: -6%;
  animation: a1d 26s ease-in-out infinite alternate;
}
.a2 {
  width: min(48vw, 560px); height: min(48vw, 560px);
  background: radial-gradient(ellipse, rgba(48,209,88,.06) 0%, transparent 68%);
  bottom: -10%; right: -6%;
  animation: a2d 20s ease-in-out infinite alternate;
}
.a3 {
  width: min(32vw, 400px); height: min(32vw, 400px);
  background: radial-gradient(ellipse, rgba(191,90,242,.055) 0%, transparent 68%);
  top: 45%; left: 35%;
  animation: a3d 32s ease-in-out infinite alternate;
}
@keyframes a1d { to { transform: translate(6%, 10%) scale(1.07); } }
@keyframes a2d { to { transform: translate(-8%, -7%) scale(1.1);  } }
@keyframes a3d { to { transform: translate(-10%, 8%) scale(.93);  } }

.dot-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}

/* film-grain — barely-there texture that kills flat banding */
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .028;
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%,2%); }
  40%  { transform: translate(2%,-3%); }
  60%  { transform: translate(-2%,-2%); }
  80%  { transform: translate(3%,3%); }
  100% { transform: translate(0,0); }
}

/* soft vignette pulls focus to center content */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 30%, transparent 60%, rgba(0,0,0,.42) 100%);
}

/* ── SCROLL PROGRESS ─────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 12px rgba(41,151,255,.5);
  transition: width .1s linear;
}

/* ── NAV ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5%, 56px);
  transition: background .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-color: var(--bd);
}
.nav-logo {
  font-size: .98rem; font-weight: 700; letter-spacing: -.15px;
  display: flex; align-items: center; gap: 9px;
}
.nav-logo-mark {
  width: 30px; height: 30px; object-fit: contain;
  flex-shrink: 0; display: block;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; font-size: .875rem; font-weight: 500;
  color: var(--muted); padding: 8px 13px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--sf); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue); transform: translateX(-50%);
}
.nav-cta {
  font-size: .84rem; font-weight: 700;
  padding: 9px 18px; border-radius: 999px;
  background: var(--sf2); border: 1px solid var(--bd2);
  color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.nav-cta:hover {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.nav-menu-btn {
  display: none; color: var(--text);
  background: var(--sf); border: 1px solid var(--bd);
  border-radius: 10px; padding: 9px;
  transition: background .2s;
}
.nav-menu-btn:hover { background: var(--sf2); }

.m-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.m-nav.open { display: flex; }
.m-nav a {
  font-size: 2rem; font-weight: 700; color: var(--muted);
  padding: 12px 48px; border-radius: 16px;
  transition: color .2s, background .2s;
}
.m-nav a:hover { color: var(--text); background: var(--sf); }
.m-nav-close {
  position: absolute; top: 20px; right: 4%;
  color: var(--muted); font-size: 1.3rem;
  padding: 10px 12px; border-radius: 10px;
  transition: color .2s; background: none; border: none;
}
.m-nav-close:hover { color: var(--text); }

/* ── LAYOUT HELPERS ──────────────────────────────── */
.wrap { position: relative; z-index: 3; }
.container { width: min(92%, var(--max)); margin: 0 auto; }
section { padding: clamp(72px, 10vw, 112px) 0; }

/* ── SECTION LABELS ──────────────────────────────── */
.eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--blue); margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--blue); }
.eyebrow .sec-num {
  color: var(--dim); font-weight: 800; letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.06;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted); font-weight: 300; line-height: 1.85;
  font-size: clamp(.9rem, 1.5vw, 1rem);
  max-width: 540px;
}

/* gradient hairline divider between homepage sections */
.section-divider {
  position: relative; height: 1px; width: min(92%, var(--max));
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--bd2) 20%, var(--bd2) 80%, transparent);
}
.section-divider::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--bg2); border: 1px solid var(--bd2);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* ── REVEAL SYSTEM ───────────────────────────────── */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; }
.d5 { transition-delay: .35s; }
.d6 { transition-delay: .42s; }
.d7 { transition-delay: .49s; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  padding: 13px 26px; border-radius: 999px;
  background: var(--blue); color: #fff; border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: background .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-primary:hover {
  background: #3aa3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 40px rgba(41,151,255,.38);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  background: transparent; color: var(--text);
  border: 1px solid var(--bd2);
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.btn-secondary:hover {
  background: var(--sf2); border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 9px 0; border-radius: 6px;
  transition: color .2s, gap .25s var(--ease);
}
.btn-back:hover { color: var(--text); gap: 10px; }
.btn-back svg { transition: transform .25s var(--ease); }
.btn-back:hover svg { transform: translateX(-3px); }

/* ── PROJECT CARD COMPONENT ──────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.project-card {
  background: var(--bg1); border: 1px solid var(--bd);
  border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  text-decoration: none; color: inherit;
}
.project-card:hover {
  border-color: var(--bd2);
  box-shadow: var(--shadow-card-hover);
}
/* cursor spotlight (desktop pointers only, driven by JS --mx/--my) */
@media (pointer: fine) {
  .project-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255,255,255,.055), transparent 65%);
    opacity: 0; transition: opacity .35s;
    pointer-events: none; z-index: 1;
  }
  .project-card:hover::after { opacity: 1; }
}
.card-shim {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,.045) 50%, transparent 65%);
  background-size: 200% 100%; background-position: -100% 0;
  transition: background-position .6s var(--ease);
  pointer-events: none; z-index: 1;
}
.project-card:hover .card-shim { background-position: 200% 0; }

.card-bar { height: 3px; width: 100%; flex-shrink: 0; }
.cb-blue   { background: linear-gradient(90deg, var(--blue),   rgba(41,151,255,0)); }
.cb-green  { background: linear-gradient(90deg, var(--green),  rgba(48,209,88,0));  }
.cb-orange { background: linear-gradient(90deg, var(--orange), rgba(255,159,10,0)); }
.cb-purple { background: linear-gradient(90deg, var(--purple), rgba(191,90,242,0)); }
.cb-red    { background: linear-gradient(90deg, var(--red),    rgba(255,69,58,0));  }

/* card art panel */
.card-art {
  position: relative;
  height: 132px; flex-shrink: 0;
  border-bottom: 1px solid var(--bd);
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(255,255,255,.045), transparent 55%),
    var(--bg2);
  overflow: hidden;
}
.card-art svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform .5s var(--ease);
}
.project-card:hover .card-art svg { transform: translateY(-4px) scale(1.03); }
.card-art .art-line   { stroke: rgba(255,255,255,.22); }
.card-art .art-faint  { stroke: rgba(255,255,255,.09); }
.card-art .art-fill   { fill: rgba(255,255,255,.06); }
.card-art .art-blue   { color: var(--blue); }
.card-art .art-green  { color: var(--green); }
.card-art .art-orange { color: var(--orange); }
.card-art .art-purple { color: var(--purple); }
.card-art .art-red    { color: var(--red); }

.card-body {
  padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; flex: 1; gap: 10px;
}
.card-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  align-self: flex-start;
}
.ct-blue   { color:var(--blue);   background:rgba(41,151,255,.09); border:1px solid rgba(41,151,255,.15); }
.ct-green  { color:var(--green);  background:rgba(48,209,88,.09);  border:1px solid rgba(48,209,88,.15);  }
.ct-orange { color:var(--orange); background:rgba(255,159,10,.09); border:1px solid rgba(255,159,10,.15); }
.ct-purple { color:var(--purple); background:rgba(191,90,242,.09); border:1px solid rgba(191,90,242,.15); }
.ct-red    { color:var(--red);    background:rgba(255,69,58,.09);  border:1px solid rgba(255,69,58,.15);  }

.card-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700; letter-spacing: -.35px; line-height: 1.25;
}
.card-desc {
  font-size: .88rem; color: var(--muted);
  font-weight: 300; line-height: 1.75; flex: 1;
}
.card-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.chip {
  font-size: .72rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--bd);
  color: #9899A8; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--bd2); color: var(--text);
}
.card-arrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--bd);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  transition: color .25s;
}
.project-card:hover .card-arrow { color: var(--text); }
.card-arrow svg { transition: transform .25s var(--ease); }
.project-card:hover .card-arrow svg { transform: translate(3px,-2px); }

/* ── SKILLS SECTION ──────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.skill-group {
  background: var(--bg1); border: 1px solid var(--bd);
  border-radius: 20px; padding: clamp(20px, 3vw, 26px);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .35s var(--ease);
}
.skill-group:hover {
  border-color: var(--bd2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.skill-group::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 2px; border-radius: 0 2px 2px 0;
  background: var(--accent, var(--blue));
}
.skill-group-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.skill-group-head svg { flex-shrink: 0; color: var(--accent, var(--blue)); }
.skill-group-head h3 {
  font-size: .95rem; font-weight: 700; letter-spacing: -.2px;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips .chip {
  font-size: .78rem; font-weight: 600; padding: 6px 13px;
  color: #A5ADC2;
}
/* staggered light-up wave when the group reveals */
.js .reveal .skill-chips .chip { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .2s, border-color .2s, color .2s; }
.js .reveal.on .skill-chips .chip { opacity: 1; transform: none; }
.reveal.on .skill-chips .chip:nth-child(1)  { transition-delay: .10s; }
.reveal.on .skill-chips .chip:nth-child(2)  { transition-delay: .16s; }
.reveal.on .skill-chips .chip:nth-child(3)  { transition-delay: .22s; }
.reveal.on .skill-chips .chip:nth-child(4)  { transition-delay: .28s; }
.reveal.on .skill-chips .chip:nth-child(5)  { transition-delay: .34s; }
.reveal.on .skill-chips .chip:nth-child(6)  { transition-delay: .40s; }
.reveal.on .skill-chips .chip:nth-child(7)  { transition-delay: .46s; }
.reveal.on .skill-chips .chip:nth-child(8)  { transition-delay: .52s; }

.skills-pursuing {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--bd); border-radius: 16px;
  padding: 15px 20px;
  font-size: .85rem; color: var(--muted); font-weight: 400;
}
.skills-pursuing .pursue-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,159,10,.5);
  animation: pursuePing 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pursuePing {
  0%   { box-shadow: 0 0 0 0   rgba(255,159,10,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,159,10,0);   }
  100% { box-shadow: 0 0 0 0   rgba(255,159,10,0);   }
}
.skills-pursuing strong { color: var(--text); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--bd);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.015));
}
.footer-main {
  width: min(92%, var(--max)); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 28px;
  padding: 40px 0 28px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-tagline {
  font-size: .82rem; color: var(--muted); font-weight: 300; line-height: 1.7;
}
.footer-cols { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.footer-col-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--dim); margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: .84rem; color: var(--muted);
  padding: 4px 0; transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--bd);
}
.footer-inner {
  width: min(92%, var(--max)); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 18px 0;
}
.footer-copy { font-size: .78rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: .78rem; color: var(--muted); transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── PROJECT PAGE SHARED (formerly project-styles.php) ── */
.project-page {
  padding-top: clamp(100px, 14vh, 140px);
  padding-bottom: clamp(80px, 10vh, 120px);
  min-height: 100vh;
  position: relative; z-index: 1;
}
.project-page .container { max-width: 820px; }

.back-row {
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp .6s var(--ease) .3s forwards;
}
.proj-header {
  margin-bottom: 48px;
  opacity: 0; animation: fadeUp .7s var(--ease) .4s forwards;
}
.proj-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.pt-blue   { color:var(--blue);   background:rgba(41,151,255,.09); border:1px solid rgba(41,151,255,.14);}
.pt-green  { color:var(--green);  background:rgba(48,209,88,.09);  border:1px solid rgba(48,209,88,.14); }
.pt-orange { color:var(--orange); background:rgba(255,159,10,.09); border:1px solid rgba(255,159,10,.14);}
.pt-purple { color:var(--purple); background:rgba(191,90,242,.09); border:1px solid rgba(191,90,242,.14);}
.pt-red    { color:var(--red);    background:rgba(255,69,58,.09);  border:1px solid rgba(255,69,58,.14); }

.proj-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.06;
  margin-bottom: 16px; word-break: break-word;
}
.proj-summary {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--muted); font-weight: 300; line-height: 1.85;
  max-width: 620px;
}
.proj-visual {
  width: 100%; border-radius: 22px;
  background: var(--bg2); border: 1px solid var(--bd);
  margin-bottom: 48px; overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  opacity: 0; animation: fadeUp .75s var(--ease) .5s forwards;
}
.proj-visual-placeholder {
  height: clamp(180px, 32vw, 320px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--dim); font-size: .82rem; font-weight: 500;
  letter-spacing: .4px;
}
.proj-visual-placeholder svg { opacity: .3; }
.proj-visual img { width: 100%; height: auto; display: block; }

.proj-body { opacity: 0; animation: fadeUp .75s var(--ease) .55s forwards; }
.proj-section { margin-bottom: 44px; }
.proj-section:last-child { margin-bottom: 0; }
.proj-section-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.proj-section-title::before {
  content: ''; width: 3px; height: 16px; border-radius: 2px;
  background: var(--blue); display: block; flex-shrink: 0;
}
.proj-section p {
  font-size: clamp(.9rem, 1.4vw, .98rem);
  color: var(--muted); font-weight: 300; line-height: 1.88;
  margin-bottom: 14px;
}
.proj-section p:last-child { margin-bottom: 0; }
.proj-section em { font-style: normal; color: var(--text); font-weight: 500; }

.tools-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.tool-chip {
  font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--sf); border: 1px solid var(--bd); color: #A0A8BD;
  transition: background .2s, border-color .2s, color .2s;
}
.tool-chip:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--bd2); color: var(--text);
}
.result-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.result-item {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: clamp(.88rem, 1.4vw, .95rem);
  color: var(--muted); font-weight: 300; line-height: 1.72;
}
.result-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); margin-top: .45em; flex-shrink: 0;
}
.proj-divider { height: 1px; background: var(--bd); margin: 44px 0; }
.proj-footer-nav {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 40px; border-top: 1px solid var(--bd);
  margin-top: 60px;
}
.proj-nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600;
  color: var(--muted); transition: color .2s, gap .25s var(--ease);
}
.proj-nav-link:hover { color: var(--text); }
.proj-nav-link.next:hover { gap: 10px; }
.proj-nav-link.prev:hover { gap: 10px; }

/* ── KEYFRAMES ───────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  #nav .nav-links, #nav .nav-cta { display: none; }
  .nav-menu-btn { display: grid; place-items: center; }
  .footer-main { flex-direction: column; }
}

/* ── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .grain, .badge-dot, .scroll-line,
  .skills-pursuing .pursue-dot { animation: none !important; }
  .js .reveal,
  .js .reveal .skill-chips .chip {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .back-row, .proj-header, .proj-visual, .proj-body {
    animation-duration: .01s !important; animation-delay: 0s !important;
  }
  .card-shim { display: none; }
  .project-card, .skill-group, .card-art svg { transition: none !important; }
  *, *::before, *::after { animation-duration: .01s !important; }
}
