/* ==========================================================
   Harlan Tasci — Portfolio
   Black · Gold · Purple, with a light mode
   ========================================================== */

:root {
  --bg: #0a090d;
  --bg-2: #121019;
  --surface: #16131f;
  --surface-2: #1d1929;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.45);
  --text: #f3eee2;
  --muted: #a69fb5;
  --gold: #e3b341;
  --gold-2: #f6d77a;
  --purple: #9b7bff;
  --purple-2: #6f4bd8;
  --on-gold: #120e05;
  --glow-gold: rgba(227, 179, 65, 0.16);
  --glow-purple: rgba(124, 92, 255, 0.18);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf7f0;
  --bg-2: #f2ede2;
  --surface: #ffffff;
  --surface-2: #f6f1fb;
  --line: rgba(122, 90, 20, 0.16);
  --line-strong: rgba(122, 90, 20, 0.4);
  --text: #1a1625;
  --muted: #5d5670;
  --gold: #9a7210;
  --gold-2: #b8891a;
  --purple: #6542d1;
  --purple-2: #4f2fb8;
  --on-gold: #ffffff;
  --glow-gold: rgba(196, 150, 40, 0.14);
  --glow-purple: rgba(101, 66, 209, 0.10);
  --shadow: 0 20px 45px -25px rgba(40, 25, 70, 0.35);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, var(--glow-purple), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, var(--glow-gold), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--purple) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: .9rem;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--purple));
  box-shadow: 0 6px 18px -6px var(--gold);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links a { padding: 12px 16px; font-size: 1.05rem; }
  .site-header.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Sections ---------- */
main { flex: 1; }
.section { padding-block: 72px; }
.section-tight { padding-block: 40px 72px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  border-radius: 2px;
}
.page-head { padding-block: 64px 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 56px;
}
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.4rem); margin-bottom: .3em; }
.hero .lead { margin: 0 0 30px; }
.hero-photo {
  position: relative;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(from var(--a), var(--gold), var(--purple), var(--gold-2), var(--purple-2), var(--gold));
  animation: spin 8s linear infinite;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 10% -8% -8% 10%;
  border-radius: 40px;
  background: radial-gradient(closest-side, var(--glow-purple), transparent);
  z-index: -1;
  filter: blur(30px);
}
.hero-photo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 26px;
  border: 4px solid var(--bg);
}
@keyframes spin { to { --a: 360deg; } }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.gallery .photo img { object-position: center 30%; }
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 30px -10px var(--gold);
}
.btn-gold:hover { color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--gold); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--purple); transform: translateY(-2px); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.card::before {
  /* spotlight that follows the mouse */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), var(--glow-purple), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--gold);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.card-icon svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Split (text + photos) ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child { font-size: 1.2rem; }

.photo-stack { display: grid; gap: 16px; }
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 9, 13, .65);
  backdrop-filter: blur(6px);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery .photo { grid-column: span 2; grid-row: span 2; }
.gallery .wide { grid-column: span 4; }
.gallery .tall { grid-row: span 3; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--purple), transparent);
}
.timeline li { position: relative; padding: 0 0 30px 44px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px var(--glow-gold);
}
.timeline .when {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple);
}
.timeline h3 { font-size: 1.2rem; margin: 4px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

.award-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.award-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.award-list li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.award-list .medal {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.award-list .medal svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
}
.contact-card:hover { color: var(--text); }
.contact-card .card-icon { margin: 0; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { font-size: 1.05rem; word-break: break-word; }

/* ---------- CTA band ---------- */
.cta {
  border-radius: 28px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background:
    radial-gradient(500px 200px at 100% 0%, var(--glow-purple), transparent 70%),
    radial-gradient(500px 200px at 0% 100%, var(--glow-gold), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .92rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}
.lightbox::backdrop { background: rgba(5, 4, 8, .85); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 16px; border: 2px solid var(--gold); }
.lightbox p { text-align: center; color: #f3eee2; margin: 10px 0 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 120px; }
.notfound h1 { font-size: clamp(5rem, 18vw, 10rem); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-block-start: 40px; }
  .hero-photo { max-width: 440px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .photo, .gallery .wide { grid-column: span 1; grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .section { padding-block: 52px; }
  .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
  .page-head { padding-block-start: 44px; }
}

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

/* ==========================================================
   One-page layout (inspired by a full-screen intro + scroll flow)
   ========================================================== */
.intro {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.intro-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(10px) saturate(115%);
  transform: scale(1.05);
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(10, 9, 13, .2), rgba(10, 9, 13, .75)),
    linear-gradient(180deg, rgba(60, 35, 120, .35), rgba(10, 9, 13, .2) 40%, var(--bg));
}
.intro-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
}
.intro-top .brand { color: #fff; }
.intro-top .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.intro-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.intro-links a { color: #fff; text-decoration: none; font-style: italic; font-weight: 500; opacity: .9; }
.intro-links a:hover { color: var(--gold-2); opacity: 1; }
.intro h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  margin: 0;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.intro .tag {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  margin: 10px 0 0;
  color: var(--gold-2);
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
:root[data-theme="light"] .intro .tag { color: #f6d77a; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-2);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) { .intro-links { display: none; } }

/* sticky bar that appears after the intro */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar .nav-links a.active {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

section[id] { scroll-margin-top: 76px; }

.hello { text-align: center; padding-block: 88px 40px; }
.hello .hi { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 400; margin: 0; color: var(--muted); }
.hello h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 4px 0 0; }
.brace { color: var(--purple); font-weight: 500; }
.avatar {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  margin: 44px auto 0;
  border-radius: 50%;
  position: relative;
}
.avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from var(--a), var(--gold), var(--purple), var(--gold-2), var(--purple-2), var(--gold));
  animation: spin 8s linear infinite;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow-purple), transparent);
  filter: blur(10px);
}
.avatar img {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 5px solid var(--bg);
}
.socials { display: flex; justify-content: center; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.socials a {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--gold);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s, color .2s, border-color .2s, box-shadow .2s;
}
.socials a:hover { transform: translateY(-4px); color: var(--purple); border-color: var(--purple); box-shadow: 0 12px 26px -12px var(--purple); }
.socials svg { width: 24px; height: 24px; }
.bio { max-width: 680px; margin: 32px auto 0; color: var(--muted); font-size: 1.1rem; }
.hello .btn-row { justify-content: center; margin-top: 28px; }

.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0; }
.section-head .eyebrow { justify-content: center; }

.panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 26px;
  background:
    radial-gradient(500px 220px at 100% 0%, var(--glow-purple), transparent 70%),
    radial-gradient(500px 220px at 0% 100%, var(--glow-gold), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
@media (max-width: 620px) { .panel { padding: 28px 22px; } }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 28vw), 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.stack-item:hover { transform: translateY(-4px); border-color: var(--purple); }
.stack-item .badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--purple));
}
.soft { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; padding: 0; list-style: none; max-width: 760px; }
#contact .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 900px) { .gallery .photo:last-child { grid-column: span 1; } }
.stack-item .logo {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #fbf9f4;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stack-item .logo img { width: 34px; height: 34px; object-fit: contain; }
.stack-item:hover .logo { transform: scale(1.08) rotate(-4deg); box-shadow: 0 12px 26px -12px var(--purple); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 20px; max-width: 980px; margin: 0 auto; }
.project {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.project.featured { border-color: var(--line-strong); }
.project-art {
  aspect-ratio: 1;
  border-radius: 20px;
  display: grid; place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), transparent 45%),
    linear-gradient(140deg, var(--gold-2), var(--gold) 40%, var(--purple-2));
}
.project-art svg { width: 44%; height: 44%; }
.project-art.small { width: 120px; justify-self: center; }
.project-art.small svg { width: 48px; height: 48px; }
.project h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.project p { color: var(--muted); margin: 0; }
.project .when { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.btn svg[fill="currentColor"] { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .project { grid-template-columns: 1fr; }
  .project-art { max-width: 160px; }
  .project-art.small { width: 90px; justify-self: start; }
}
