/* =========================================================
   Tarun Vignesh — Portfolio
   Dark · cinematic · warm-amber accent
   ========================================================= */

:root {
  --bg: #0a0908;
  --bg-elevated: #110f0e;
  --bg-card: #100e0d;
  --bg-card-hover: #16120f;
  --border: #1e1a17;
  --border-strong: #2d2722;

  --text: #f2ece3;
  --text-muted: #9a8f82;
  --text-dim: #5c5249;

  --accent: #f5b33d;             /* warm amber / honey */
  --accent-warm: #ff7e5f;        /* coral */
  --accent-glow: #ffd89d;        /* cream highlight */
  --accent-soft: rgba(245, 179, 61, 0.12);
  --accent-rgb: 245, 179, 61;
  --warm-rgb: 255, 126, 95;
  --gradient-warm: linear-gradient(135deg, #f5b33d 0%, #ff7e5f 100%);
  --gradient-warm-soft: linear-gradient(135deg, rgba(245,179,61,0.18), rgba(255,126,95,0.12));

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Fraunces', 'Inter', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01", "cv11";
}

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

::selection { background: var(--accent); color: #2a1a05; }

.accent { color: var(--accent); }
.accent-dot { color: var(--accent); }
.muted { color: var(--text-muted); }

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Background atmosphere ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.aurora {
  position: fixed; pointer-events: none; z-index: 0;
  top: -25%; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 80vw;
  max-width: 1400px; max-height: 900px;
  background:
    radial-gradient(ellipse 50% 40% at 35% 50%, rgba(245, 179, 61, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 38% at 70% 55%, rgba(255, 126, 95, 0.10) 0%, transparent 60%);
  filter: blur(50px);
  opacity: 0.85;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--gradient-warm);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
  transition: width 80ms linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.35));
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.nav__brand:hover .nav__brand-mark {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 6px 18px rgba(var(--accent-rgb), 0.55));
}
.nav__brand-text { color: var(--text); }

.nav__links {
  display: none;
  gap: 2.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav__links a {
  position: relative; padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--gradient-warm);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__cta svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.nav__cta:hover svg { transform: translate(2px, -2px); }

@media (min-width: 760px) {
  .nav__links { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }

.btn--primary {
  background: var(--gradient-warm);
  color: #2a1a05;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.18), 0 0 0 1px rgba(255, 216, 157, 0.2) inset;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(var(--accent-rgb), 0.32), 0 0 0 1px rgba(255, 216, 157, 0.4) inset;
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4.5rem, 13vh, 9.5rem) 0 clamp(4.5rem, 9vh, 7.5rem);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 5rem; }
}
.hero__main { min-width: 0; }

.hero__portrait {
  position: relative;
  width: clamp(220px, 60vw, 360px);
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 216, 157, 0.04) inset;
  isolation: isolate;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.10) contrast(1.06) brightness(0.96);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.hero__portrait:hover img {
  filter: grayscale(0) contrast(1.10) brightness(1.02);
  transform: scale(1.04);
}
.hero__portrait-ring {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(245,179,61,0.55), rgba(245,179,61,0) 38%),
    linear-gradient(315deg, rgba(255,126,95,0.4), rgba(255,126,95,0) 50%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1.5px;
  opacity: 0.85;
}
.hero__portrait-glow {
  position: absolute; z-index: -1;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(circle at 50% 60%, rgba(var(--accent-rgb), 0.28), transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); margin-bottom: 1.85rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  letter-spacing: 0.01em;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
  50%      { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0.04); }
}

.hero__title {
  font-size: clamp(2.7rem, 8.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin-bottom: 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}
.hero__title-first {
  color: var(--text);
  font-family: var(--font-sans);
}
.hero__title-last {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #F2ECE3 0%, #FFD89D 50%, #F5B33D 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title-last .accent-dot {
  -webkit-text-fill-color: var(--accent-warm);
  background: none;
  color: var(--accent-warm);
}

.hero__sub {
  max-width: 660px;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 2.7rem;
  line-height: 1.65;
}
.hero__sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 4rem; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; max-width: 600px;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero__meta > div { display: flex; flex-direction: column; gap: 0.3rem; }
.meta__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.meta__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 11vh, 7.5rem) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 280px 1fr; gap: 5.5rem; }
}

.section__head { display: flex; flex-direction: column; gap: 0.85rem; position: sticky; top: 6rem; align-self: start; }
@media (max-width: 879px) { .section__head { position: static; } }
.section__head--row {
  position: static;
  flex-direction: row; align-items: center; gap: 1.25rem; margin-bottom: 2.75rem;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section__body { display: flex; flex-direction: column; gap: 2.25rem; }

.lede {
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.55;
}

.bullets { display: flex; flex-direction: column; gap: 0.6rem; color: var(--text-muted); }
.bullets li {
  position: relative; padding-left: 1.4rem;
  line-height: 1.6;
}
.bullets li strong { color: var(--text); font-weight: 500; }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--gradient-warm);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.4) 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}
.timeline__item {
  position: relative;
  padding-left: 2rem;
}
.timeline__marker {
  position: absolute;
  left: 0; top: 1.6rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  z-index: 1;
}
.timeline__marker--current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px rgba(var(--accent-rgb), 0.5);
  animation: marker-pulse 2.4s ease-in-out infinite;
}
@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 0 14px rgba(var(--accent-rgb), 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.04), 0 0 18px rgba(var(--accent-rgb), 0.25); }
}

/* ---------- Job card ---------- */
.job {
  padding: 1.6rem 1.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.job::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-warm-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.job:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.job:hover::before { opacity: 0.5; }
.job > * { position: relative; z-index: 1; }

.job__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.job__role {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.job__company { color: var(--text-muted); font-size: 0.93rem; margin-top: 0.25rem; }
.job__date {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.32rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg-elevated);
}
.job__date--current {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--accent-soft);
}
.job__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-tiny 1.6s ease-in-out infinite;
}
@keyframes pulse-tiny {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.job__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.job__sub--prev { color: var(--text-dim); margin-bottom: 1rem; }

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } }

.project {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  position: relative;
}
.project::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.project:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.project:hover::after { opacity: 1; }
.project:hover .project__arrow { transform: translate(3px, -3px); color: var(--accent); }
.project:hover .project__cover img { transform: scale(1.05); }
.project > *:not(.project__cover) { position: relative; z-index: 1; }

.project__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.project__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.3rem;
}
.project__tag {
  font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--text-muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project__arrow {
  width: 18px; height: 18px; color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.project__title {
  font-size: 1.28rem; font-weight: 600; letter-spacing: -0.018em;
}
.project__desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.project__stack {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: auto; padding-top: 0.85rem;
}
.project__stack span {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
}

.project__more-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.25rem;
}
.more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.95rem; color: var(--text-muted);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.more svg { width: 14px; height: 14px; }
.more:hover { color: var(--accent); gap: 0.7rem; }

/* ---------- Skills ---------- */
.skills-group { display: flex; flex-direction: column; gap: 0.85rem; }
.skills-group__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li {
  font-size: 0.83rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.chips li:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.certs { display: flex; flex-direction: column; gap: 0.85rem; }
.certs li {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.certs li::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.certs li:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
  background: var(--bg-card-hover);
}
.certs li:hover::before { opacity: 1; }
.cert__badge {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent); font-weight: 600;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: var(--accent-soft);
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.cert__name { font-size: 0.97rem; font-weight: 500; line-height: 1.3; }
.cert__name .cert__code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-left: 0.45rem;
  font-weight: 400;
}
.cert__org  { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- Contact ---------- */
.section--contact { text-align: center; padding-top: clamp(5rem, 12vh, 8rem); }
.section--contact .section__num { display: inline-block; margin-bottom: 1.5rem; }
.contact__title {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.contact__title .display-italic {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.contact__sub {
  color: var(--text-muted);
  max-width: 520px; margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 580px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.socials li { border-bottom: 1px solid var(--border); }
.socials a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0.6rem;
  font-size: 1.12rem;
  color: var(--text);
  transition: color 0.25s var(--ease), padding 0.25s var(--ease), background 0.25s var(--ease);
}
.socials a svg {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.socials a:hover {
  color: var(--accent);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.socials a:hover svg { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- Footer ---------- */
.footer {
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer__meta { font-family: var(--font-mono); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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