/* ═══════════════════════════════════════════════════════════
   Aldas Kšečkauskas — Portfolio
   1. Design tokens      5. Hero
   2. Reset & base       6. Sections (about / skills / projects)
   3. Animations         7. Contact & footer
   4. Header & nav       8. Responsive & motion preferences
   ═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* brand */
  --accent-1: #7c6cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));

  /* dark theme (default) */
  --bg:            #070711;
  --bg-elevated:   rgba(255, 255, 255, .04);
  --bg-elevated-2: rgba(255, 255, 255, .07);
  --text:          #f2f3f8;
  --text-muted:    #a1a3b8;
  --text-faint:    #6f7189;
  --border:        rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .20);
  --shadow:        0 24px 60px -24px rgba(0, 0, 0, .85);
  --blob-opacity:  .40;
  --grid-opacity:  .05;

  /* typography */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* layout */
  --container: 1180px;
  --radius:    18px;
  --radius-lg: 26px;
  --header-h:  72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="light"] {
  --bg:            #f6f7fb;
  --bg-elevated:   rgba(255, 255, 255, .78);
  --bg-elevated-2: rgba(255, 255, 255, .95);
  --text:          #14162b;
  --text-muted:    #545876;
  --text-faint:    #80849e;
  --border:        rgba(20, 22, 43, .10);
  --border-strong: rgba(20, 22, 43, .20);
  --shadow:        0 24px 60px -30px rgba(23, 25, 60, .35);
  --blob-opacity:  .18;
  --grid-opacity:  .05;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
/* solid brand marks draw with fill, not stroke */
.social-link .icon path[d^="M12 2a10"],
.social-link .icon path[d^="M4.98"] { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--accent-1);
  color: #fff;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

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

::selection { background: var(--accent-1); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid var(--bg);
}

/* ── ANIMATED BACKGROUND ──────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  transition: opacity .6s var(--ease);
  will-change: transform;
}
.blob-1 { background: var(--accent-1); top: -14%; left: -10%;  animation: drift-1 22s ease-in-out infinite; }
.blob-2 { background: var(--accent-2); top: 32%;  right: -14%; animation: drift-2 26s ease-in-out infinite; }
.blob-3 { background: var(--accent-3); bottom: -18%; left: 24%; animation: drift-3 30s ease-in-out infinite; }

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--text);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ── 3. ANIMATIONS ────────────────────────────────────────── */
@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0)        scale(1); }
  50%      { transform: translate3d(8vw, 6vh, 0)    scale(1.18); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0)        scale(1.1); }
  50%      { transform: translate3d(-9vw, -7vh, 0)  scale(.9); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0)        scale(.95); }
  50%      { transform: translate3d(6vw, -8vh, 0)   scale(1.22); }
}

/* the "shine" sweep across gradient text */
@keyframes shine-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* one-shot light flash across a heading when it scrolls in */
@keyframes flash-sweep {
  0%   { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateX(320%)  skewX(-18deg); opacity: 0; }
}

/* shimmer streak across a card on hover */
@keyframes card-shimmer {
  0%   { transform: translateX(-130%) rotate(18deg); }
  100% { transform: translateX(260%)  rotate(18deg); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(124, 108, 255, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(124, 108, 255, 0); }
  100% { box-shadow: 0 0 0 0   rgba(124, 108, 255, 0); }
}

@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes ring-spin { to { --ring-angle: 360deg; } }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes rotator-in {
  from { opacity: 0; transform: translateY(70%) rotateX(-70deg); filter: blur(6px); }
  to   { opacity: 1; transform: none;                            filter: blur(0); }
}

@keyframes mouse-wheel {
  0%   { transform: translateY(0);   opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity   .75s var(--ease),
    transform .75s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── SCROLL PROGRESS BAR ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(124, 108, 255, .8);
  transition: width .1s linear;
}

/* ── 4. HEADER & NAV ──────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease),
              backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -28px rgba(0, 0, 0, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 6px 18px -6px var(--accent-1);
}
.brand .dot { color: var(--accent-2); }

.nav-links { display: flex; gap: 6px; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
  transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-elevated); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 22px; }
.nav-link.is-active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.icon-btn .icon { width: 19px; height: 19px; }

/* sun visible in dark mode (click → go light), moon in light mode */
.icon-moon { display: none; }
.icon-sun  { display: block; }
:root[data-theme="light"] .icon-moon { display: block; }
:root[data-theme="light"] .icon-sun  { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  border: 0;
  background: var(--gradient);
  background-size: 200% 200%;
  box-shadow: 0 12px 34px -14px var(--accent-1);
}
.btn-primary:hover {
  box-shadow: 0 18px 44px -14px var(--accent-1);
  background-position: 100% 50%;
}
.btn-primary:hover .icon { transform: translateX(4px); }

/* the button "blykstelėjimas" — a light streak crossing on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) rotate(18deg);
  z-index: -1;
}
.btn-primary:hover::before { animation: card-shimmer .9s var(--ease); }

.btn-ghost {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--bg-elevated-2); border-color: var(--accent-2); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ── 5. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 26px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-ring 2.2s ease-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  margin-bottom: 18px;
}

/* gradient text with a slow travelling highlight */
.shine {
  background: linear-gradient(100deg,
      var(--accent-1) 0%, var(--accent-2) 25%, #ffffff 40%,
      var(--accent-3) 55%, var(--accent-1) 80%, var(--accent-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-sweep 6s linear infinite;
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-role-label { color: var(--text-faint); font-weight: 500; }

.rotator {
  display: inline-block;
  perspective: 420px;
  color: var(--accent-2);
}
.rotator-word { display: inline-block; animation: rotator-in .6s var(--ease); }

.hero-lead {
  max-width: 54ch;
  font-size: 1.07rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero-stats dt {
  font-family: var(--font-head);
  font-size: 1.95rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* avatar */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-wrap {
  position: relative;
  width: min(330px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease);
}

.avatar {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from var(--ring-angle),
      var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: ring-spin 9s linear infinite;
}

.avatar-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(46px);
  opacity: .45;
  z-index: -1;
}

.float-chip {
  position: absolute;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.chip-1 { top: 8%;   left: -6%;  animation: float-chip 5.5s ease-in-out infinite; }
.chip-2 { top: 44%;  right: -8%; animation: float-chip 6.5s ease-in-out infinite .8s; }
.chip-3 { bottom: 8%; left: 2%;  animation: float-chip 7.5s ease-in-out infinite 1.6s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  opacity: .6;
  transition: opacity .3s var(--ease);
}
.scroll-cue:hover { opacity: 1; }
.mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
}
.mouse span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: mouse-wheel 1.8s ease-in-out infinite;
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 52px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee span {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .3s var(--ease);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span:hover { color: var(--accent-2); }

/* ── 6. SECTIONS ──────────────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 132px) 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 14px;
}

/* ── THE FLASH: a light streak crosses the heading on reveal ── */
.flash {
  position: relative;
  display: block;
  overflow: hidden;
}
.flash::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 0;
  width: 38%;
  height: 180%;
  background: linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--accent-2) 75%, #fff),
      transparent);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.reveal.is-visible .flash::after,
.is-visible .flash::after,
.flash.is-visible::after { animation: flash-sweep 1.1s var(--ease) .25s; }
:root[data-theme="light"] .flash::after { mix-blend-mode: multiply; opacity: .35; }

.section-sub {
  font-size: 1.04rem;
  color: var(--text-muted);
}

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease), background-color .45s var(--ease);
}

/* mouse-following spotlight + shimmer streak on hover */
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in srgb, var(--accent-1) 26%, transparent), transparent 62%);
  transition: opacity .45s var(--ease);
}
.glow-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 40%;
  height: 220%;
  z-index: -1;
  background: linear-gradient(90deg, transparent,
      color-mix(in srgb, var(--text) 14%, transparent), transparent);
  transform: translateX(-160%) rotate(18deg);
  pointer-events: none;
}
.glow-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover::after  { animation: card-shimmer 1.05s var(--ease); }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 22px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  font-size: 1.35rem;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p  { color: var(--text-muted); font-size: .97rem; }

.quote {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 34px 40px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-elevated);
  text-align: center;
}
.quote p {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-size: .87rem;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  font-size: 1.12rem;
}
.skill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--accent-1));
  box-shadow: 0 0 14px var(--c, var(--accent-1));
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}
.tag-list li:hover {
  color: var(--text);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.tag-list-sm li { font-size: .77rem; padding: 4px 11px; }

/* projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  transition: transform .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated-2);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.project-media-contain img { object-fit: contain; padding: 22px; }
.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      color-mix(in srgb, var(--bg) 82%, transparent), transparent 58%);
}
.project-card:hover .project-media img { transform: scale(1.07); }

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #34d399;
}
.badge-wip { color: #fbbf24; }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 26px;
}
.project-body h3 { font-size: 1.32rem; }
.project-body > p {
  font-size: .97rem;
  color: var(--text-muted);
}
.project-note {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  font-size: .82rem !important;
  color: var(--text-faint) !important;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), gap .3s var(--ease);
}
.project-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  gap: 12px;
}
.project-link-alt { color: var(--text-muted); }
.project-link-alt:hover { color: var(--text); border-color: var(--border-strong); }

/* ── 7. CONTACT & FOOTER ──────────────────────────────────── */
.section-contact { padding-bottom: clamp(80px, 10vw, 120px); }

.contact-panel {
  position: relative;
  padding: clamp(44px, 7vw, 76px) clamp(26px, 5vw, 60px);
  border-radius: clamp(26px, 4vw, 40px);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-panel::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
      color-mix(in srgb, var(--accent-1) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.contact-panel > * { position: relative; }
.contact-panel .section-sub {
  max-width: 48ch;
  margin: 0 auto 34px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: transform .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.social-link:hover {
  transform: translateY(-3px);
  color: var(--text);
  border-color: var(--accent-2);
}
.social-link .icon { width: 17px; height: 17px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: .89rem;
  color: var(--text-faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.to-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.to-top:hover { transform: translateY(-3px); border-color: var(--accent-2); }

/* ── 8. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-role, .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 30px; }
  .scroll-cue { display: none; }
}

@media (max-width: 820px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 18px 24px 26px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .35s var(--ease), transform .35s var(--ease),
                visibility .35s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  /* keep the bar opaque while the drawer is open, even at scroll 0 */
  .site-header:has(.nav.is-open) {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom-color: transparent;
  }

  .nav-links { flex-direction: column; gap: 2px; }
  .nav-link { padding: 13px 16px; font-size: 1rem; border-radius: 14px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: var(--bg-elevated); }

  .float-chip { font-size: .74rem; padding: 7px 13px; }
  .chip-1 { left: -2%; }
  .chip-2 { right: -2%; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .brand-text { display: none; }
  .hero-stats { width: 100%; justify-content: space-between; gap: 16px; }
  .hero-stats dt { font-size: 1.6rem; }
  .hero-stats dd { font-size: .74rem; }
  .btn { width: 100%; }
  .card { padding: 24px; }
  .project-body { padding: 22px; }
  .quote { padding: 26px 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ── MOTION PREFERENCES ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}
