/* =====================================================================
   SALMAT.DEV — Premium Portfolio Stylesheet
   Dark theme · Editorial typography · Smooth animations
   ===================================================================== */

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

:root {
  /* Palette */
  --bg:           #0a0a0c;
  --bg-2:         #111115;
  --bg-3:         #18181f;
  --border:       rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.18);
  --text:         #e8e8ef;
  --text-muted:   #888898;
  --text-faint:   #44444e;
  --accent:       #3297be;         /* warm gold */
  --accent-dim:   rgba(17, 32, 236, 0.15);
  --accent-glow:  rgba(23, 54, 228, 0.25);
  --white:        #ffffff;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;

  /* Sizing */
  --max-w:    1200px;
  --nav-h:    72px;
  --radius:   12px;
  --radius-lg:20px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── CURSOR GLOW ──────────────────────────────────────────────────── */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  top: -200px; left: -200px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: top .05s linear, left .05s linear;
  z-index: 0;
  mix-blend-mode: screen;
}

/* ─── NAV ──────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, backdrop-filter .3s;
}
#nav.scrolled {
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--white);
}
.dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links li a {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links li a:hover { color: var(--white); }

.nav-cta {
  padding: .5rem 1.2rem !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: 100px !important;
  color: var(--white) !important;
  transition: background .2s, border-color .2s !important;
}
.nav-cta:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: rgba(10,10,12,.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-menu ul li a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text);
  transition: color .2s;
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ─── SHARED SECTION STYLES ─────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px clamp(20px,5vw,60px);
}
.section-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-header { margin-bottom: 4rem; }

/* ─── REVEAL ANIMATION ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  background: var(--accent);
  color: #0a0a0c;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: #6c7ee6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  color: var(--text-muted);
  font-size: .85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-hover); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.3rem;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* subtle dot-grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* bottom fade to blend into next section */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px clamp(20px,5vw,60px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .35rem 1rem;
  margin-bottom: 2rem;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-headline-sub {
  display: block;
  color: var(--text-muted);
  font-size: .7em;
}

.hero-body {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-body strong { color: var(--white); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
}
.hero-socials a {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .2s;
}
.hero-socials a:hover { color: var(--accent); }

/* Profile image */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 300px;
}
.hero-image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-image {
  width: 300px; height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-image-tag {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1.2rem;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  z-index: 2;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(20px,5vw,60px);
  display: flex;
  align-items: center;
  gap: .8rem;
  z-index: 1;
}
.scroll-hint span {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: slideLine 2s ease infinite;
}
@keyframes slideLine { to { left: 100%; } }

/* ─── MARQUEE ───────────────────────────────────────────────────────── */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── ABOUT ─────────────────────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}
.about-text .about-quote {
  margin-top: 2rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: .04em;
}

/* =====================================================================
   CURATED WORKS — Scoped CSS
   All selectors are namespaced under .curated-works to prevent
   any leakage into the rest of the site.
   Add this <link> or <style> block alongside your existing style.css.
   ===================================================================== */

/* ─── SECTION WRAPPER ────────────────────────────────────────────── */
.curated-works {
  /* Inherits your existing section background (var(--bg-2) in your system) */
}

.cw-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 60px);
}

/* ─── HEADER ─────────────────────────────────────────────────────── */
.cw-header {
  margin-bottom: 4rem;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────────── */
/* Staggered fade-up; JS adds .cw-visible via IntersectionObserver */
.cw-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.cw-reveal.cw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PROJECT GRID ───────────────────────────────────────────────── */
.cw-grid {
  display: grid;
  /* Two columns on wide screens, one on mobile */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ─── PROJECT CARD ───────────────────────────────────────────────── */
.cw-card {
  position: relative;
  border-radius: 20px;
  /* Min height gives the card presence */
  min-height: 380px;
  overflow: hidden;
  cursor: pointer;
  /* Default border uses the card's unique accent color */
  border: 1px solid rgba(255,255,255,.06);
  transition:
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease;
}

/* Hover state: card lifts + accent glow */
.cw-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), 0 20px 60px rgba(0,0,0,.4);
  transform: translateY(-4px);
}

/* ── Background image layer ── */
.cw-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cw-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Blurred by default; sharpens on card hover */
  filter: blur(3px) brightness(.35) saturate(.8);
  transform: scale(1.06);
  transition:
    filter .5s ease,
    transform .5s ease;
}

.cw-card:hover .cw-bg-img {
  /* On hover: image zooms in slightly and becomes crisper */
  filter: blur(1px) brightness(.25) saturate(1);
  transform: scale(1.1);
}

/* Dark gradient overlay for readability */
.cw-bg-overlay {
  position: absolute;
  inset: 0;
  /* Gradient darkens bottom (where text lives) */
  background: linear-gradient(
    160deg,
    rgba(10,10,12,.2) 0%,
    rgba(10,10,12,.75) 60%,
    rgba(10,10,12,.95) 100%
  );
}

/* ── Content layer ── */
.cw-content {
  position: relative;
  z-index: 1;
  padding: 2rem 2rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Shift content down slightly so hover overlay has room at the bottom */
  padding-bottom: 5rem;
}

/* Top row: number + category */
.cw-top {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.cw-num {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: 1rem;
  /* Uses the card's local accent color */
  color: var(--accent);
  opacity: .7;
}

.cw-cat {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .25rem .75rem;
  border-radius: 100px;
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
}

/* Project title */
.cw-title {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
  color: #fff;
}

/* Description */
.cw-desc {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  max-width: 420px;
}

/* Tech tag pills */
.cw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}

.cw-tags span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
  /* Uses the card's local accent */
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04);
  transition: border-color .2s, color .2s;
}

.cw-card:hover .cw-tags span {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ── Hover overlay (CTA button appears on hover) ── */
.cw-hover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(10,10,12,.95) 0%, transparent 100%);
  /* Hidden by default; fades in on card hover */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  display: flex;
  align-items: center;
}

.cw-card:hover .cw-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* CTA button inside hover overlay */
.cw-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: 100px;
  /* Button uses the card's local accent color */
  background: var(--accent);
  color: #0a0a0c;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.cw-cta svg {
  width: 16px;
  transition: transform .25s ease;
}

.cw-cta:hover {
  background: #fff;
  transform: translateX(3px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.cw-cta:hover svg {
  transform: translate(2px, -2px);
}

/* ─── OPEN SOURCE COLLAB CARD ─────────────────────────────────────── */
.cw-collab {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 20px;
  background: var(--bg-3, #18181f);
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
  position: relative;
}

/* Subtle top-left gradient accent on hover */
.cw-collab::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 300px; height: 200px;
  background: radial-gradient(ellipse at top left, rgba(212,168,83,.08), transparent 70%);
  pointer-events: none;
}

.cw-collab:hover {
  border-color: var(--accent, #d4a853);
  box-shadow: 0 0 40px rgba(212,168,83,.1);
}

/* Badge */
.cw-collab-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  /* Uses global accent color (gold) */
  color: var(--accent, #d4a853);
  margin-bottom: 1rem;
}

.cw-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, #d4a853);
  opacity: .8;
}

.cw-collab-title {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cw-collab-desc {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-muted, rgba(255,255,255,.55));
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Action buttons row */
.cw-collab-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cw-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.3rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.cw-link-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

/* Primary variant (Live Site) */
.cw-link-primary {
  background: var(--accent, #d4a853);
  border-color: transparent;
  color: #0a0a0c;
}

.cw-link-primary:hover {
  background: #e6c87a;
  color: #0a0a0c;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(212,168,83,.3);
}

/* Collab image */
.cw-collab-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.cw-collab-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  filter: brightness(.85) saturate(.9);
  transition: filter .4s ease, transform .4s ease;
}

.cw-collab:hover .cw-collab-img {
  filter: brightness(.95) saturate(1.05);
  transform: scale(1.02);
}

/* Thin accent border that appears on hover */
.cw-collab-img-border {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color .35s ease;
  pointer-events: none;
}

.cw-collab:hover .cw-collab-img-border {
  border-color: var(--accent, #d4a853);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cw-grid {
    grid-template-columns: 1fr;
  }
  .cw-card {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .cw-collab {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .cw-collab-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .cw-content {
    padding: 1.5rem 1.5rem 4.5rem;
  }
  .cw-card {
    min-height: 300px;
  }
}

/* ─── SKILLS ────────────────────────────────────────────────────────── */
#skills { background: var(--bg); }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.skill-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, transform .2s;
  cursor: default;
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.skill-pill img { width: 18px; height: 18px; }

/* ─── CONTACT ───────────────────────────────────────────────────────── */
#contact {
  background: var(--bg-2);
}
.contact-inner {
  text-align: center;
}
.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact-headline em { font-style: italic; color: var(--accent); }

.contact-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.contact-btn { margin-bottom: 2.5rem; }
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .85rem;
  color: var(--text-faint);
}
.contact-links a {
  color: var(--text-muted);
  transition: color .2s;
}
.contact-links a:hover { color: var(--accent); }

/* ─── FOOTER ────────────────────────────────────────────────────────── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px clamp(20px,5vw,60px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: .5rem;
}
.footer-tagline {
  font-size: .82rem;
  color: var(--text-faint);
  font-style: italic;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .78rem;
  color: var(--text-faint);
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-faint);
  transition: color .2s;
  padding: .4rem .7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-image-wrap { order: -1; margin: 0 auto; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-body { margin: 0 auto 2rem; }
  .hero-badge { margin: 0 auto 2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { max-width: 400px; }

  .project-item { grid-template-columns: 1fr; gap: 1rem; }
  .project-meta { flex-direction: row; align-items: center; }
  .project-link-arrow { flex-direction: row; align-self: flex-start; }

  .footer-top { flex-direction: column; }
}

@media (max-width: 580px) {
  .section-inner { padding: 80px clamp(16px,4vw,24px); }
  .hero-image, .hero-image-wrap { width: 220px; height: 220px; }
  .hero-image-ring { inset: -10px; }
  .collab-card { padding: 1.5rem; }
  .contact-headline { font-size: 2.8rem; }
}
