/* =========================================================
   Dua Portfolio — Design System
   Refined, minimal, premium. Light + Dark.
   References: Linear, Vercel, Raycast, Arc
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Light theme (default) */
  --bg: #fbfbfc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f4f4f6;
  --bg-hover: #f0f0f3;

  --text-strong: #16161a;
  --text: #3b3b42;
  --text-muted: #6c6c76;
  --text-faint: #9a9aa5;

  --border: rgba(20, 20, 30, 0.08);
  --border-strong: rgba(20, 20, 30, 0.14);

  --accent: #5b5bd6;         /* refined indigo */
  --accent-hover: #4a4ac4;
  --accent-soft: rgba(91, 91, 214, 0.10);
  --accent-text: #ffffff;

  --shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.04), 0 1px 3px rgba(20, 20, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 20, 40, 0.06), 0 2px 6px rgba(20, 20, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 20, 40, 0.08), 0 4px 12px rgba(20, 20, 40, 0.05);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --maxw: 1120px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-elevated: #131317;
  --bg-subtle: #17171c;
  --bg-hover: #1d1d23;

  --text-strong: #f4f4f7;
  --text: #c4c4cf;
  --text-muted: #8f8f9c;
  --text-faint: #63636e;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #8d8dfb;
  --accent-hover: #a3a3ff;
  --accent-soft: rgba(141, 141, 251, 0.14);
  --accent-text: #0a0a0c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent-soft); color: var(--text-strong); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 1.12;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: 1.16rem; color: var(--text-muted); line-height: 1.7; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section-head p { font-size: 1.06rem; color: var(--text-muted); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--text-strong); color: var(--bg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 13px; border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--text-strong); background: var(--bg-hover); }
.nav-link.active { color: var(--text-strong); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; width: 36px; height: 36px; border-radius: 9px; place-items: center; color: var(--text-strong); border: 1px solid var(--border); background: var(--bg-elevated); }
.nav-burger svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 550;
  padding: 11px 20px; border-radius: 10px;
  transition: all 0.22s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--text-strong); border-color: var(--border-strong); background: var(--bg-elevated); }
.btn-ghost:hover { background: var(--bg-hover); transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 1rem; }

/* ---------- Cards & tokens ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  color: var(--text-muted); background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 7px; letter-spacing: -0.01em;
}
.tag-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,0.16); }

.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero (Home) ---------- */
.hero { position: relative; padding: 108px 0 84px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 72%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 660; margin: 22px 0 22px; letter-spacing: -0.038em; text-wrap: balance; }
.hero h1 .grad { color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-elevated); padding: 26px 24px; transition: background var(--dur) var(--ease); }
.stat-num { font-size: 1.9rem; font-weight: 680; color: var(--text-strong); letter-spacing: -0.03em; font-family: var(--font-mono); }
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Strength cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 28px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 9px; }
.feature p { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Project cards ---------- */
.proj-list { display: flex; flex-direction: column; gap: 24px; }
.proj {
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 34px; overflow: hidden; position: relative;
}
.proj-index { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.04em; }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 14px; }
.proj-head h3 { font-size: 1.55rem; letter-spacing: -0.03em; }
.proj-role { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.proj-desc { color: var(--text-muted); font-size: 1rem; max-width: 760px; margin-bottom: 22px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.proj-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.proj-block h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-bottom: 12px; font-weight: 600; }
.proj-block ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.proj-block li { position: relative; padding-left: 20px; font-size: 0.94rem; color: var(--text); }
.proj-block li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.proj-outcome { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 26px; }
.proj-metric .n { font-size: 1.35rem; font-weight: 660; color: var(--text-strong); font-family: var(--font-mono); letter-spacing: -0.02em; }
.proj-metric .l { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Project links & video ---------- */
.proj-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.proj-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-subtle); border: 1px solid var(--border);
}
.proj-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proj-video-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; border-style: dashed; text-align: center; padding: 20px;
}
.pv-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pv-icon svg { width: 24px; height: 24px; margin-left: 2px; }
.pv-title { font-size: 1rem; font-weight: 600; color: var(--text-strong); }
.pv-sub { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Embedded live-preview window ---------- */
.proj-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.86rem; color: var(--text-faint);
  margin: -14px 0 24px;
}
.proj-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--text-faint); }

.preview-window {
  display: block; position: relative;
  margin: 0 0 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.preview-window:hover,
.preview-window:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  outline: none;
}

/* — window chrome — */
.pw-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 13px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.pw-dots { display: flex; gap: 6px; flex-shrink: 0; }
.pw-dots i { width: 10px; height: 10px; border-radius: 50%; }
.pw-dots i:nth-child(1) { background: #ff5f57; }
.pw-dots i:nth-child(2) { background: #febc2e; }
.pw-dots i:nth-child(3) { background: #28c840; }
.pw-url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  height: 25px; padding: 0 11px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted);
}
.pw-url svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--text-faint); }
.pw-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-open {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 550;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 7px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.pw-open svg { width: 12px; height: 12px; }
.preview-window:hover .pw-open { background: var(--accent); color: var(--accent-text); }

/* — viewport — */
.pw-view {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  overflow: hidden;
}
.pw-view iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; pointer-events: none; background: var(--bg-elevated);
}

/* — placeholder states — */
.pw-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 15px; padding: 26px; text-align: center;
  background: var(--bg-subtle);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.preview-window.is-ready .pw-placeholder { opacity: 0; visibility: hidden; }
.pw-skel { display: flex; flex-direction: column; gap: 9px; width: min(320px, 62%); }
.pw-skel i {
  display: block; height: 9px; border-radius: 100px;
  background: var(--border-strong);
  animation: pw-pulse 1.6s var(--ease) infinite;
}
.pw-skel i:nth-child(1) { width: 62%; }
.pw-skel i:nth-child(2) { width: 88%; animation-delay: 0.14s; }
.pw-skel i:nth-child(3) { width: 72%; animation-delay: 0.28s; }
@keyframes pw-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
.pw-hint { font-size: 0.85rem; color: var(--text-faint); }
.pw-hint strong { color: var(--accent); font-weight: 600; }
.pw-hint-mobile, .pw-stall { display: none; }
.preview-window.is-stalled .pw-skel { display: none; }
.preview-window.is-stalled .pw-stall { display: block; }
@media (prefers-reduced-motion: reduce) {
  .pw-skel i { animation: none; }
  .preview-window:hover { transform: none; }
}

/* ---------- Skills ---------- */
.skill-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-cat { padding: 28px; }
.skill-cat-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.skill-cat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-subtle); color: var(--accent); flex-shrink: 0; }
.skill-cat-icon svg { width: 19px; height: 19px; }
.skill-cat h3 { font-size: 1.1rem; }
.skill-cat .cat-sub { font-size: 0.82rem; color: var(--text-faint); }
.skill-row { margin-bottom: 18px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 0.95rem; font-weight: 550; color: var(--text-strong); }
.skill-level { font-size: 0.76rem; font-family: var(--font-mono); color: var(--text-muted); }
.skill-bar { height: 5px; border-radius: 100px; background: var(--bg-subtle); overflow: hidden; }
.skill-fill { height: 100%; border-radius: 100px; background: var(--accent); width: 0; transition: width 1.1s var(--ease); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 76px 0 8px; }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 18px; letter-spacing: -0.035em; }
.page-hero p { font-size: 1.12rem; color: var(--text-muted); max-width: 640px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prose p { margin-bottom: 20px; color: var(--text); font-size: 1.04rem; line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); font-weight: 600; }
.about-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 24px; }
.side-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-bottom: 16px; font-weight: 600; }
.timeline { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.timeline li { position: relative; padding-left: 22px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg-elevated); }
.timeline .t-title { font-size: 0.95rem; font-weight: 550; color: var(--text-strong); }
.timeline .t-meta { font-size: 0.83rem; color: var(--text-muted); }
.honor { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.honor:last-child { border-bottom: none; padding-bottom: 0; }
.honor:first-child { padding-top: 0; }
.honor-badge { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.honor-badge svg { width: 17px; height: 17px; }
.honor .h-t { font-size: 0.94rem; font-weight: 550; color: var(--text-strong); }
.honor .h-m { font-size: 0.83rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { padding: 26px; display: flex; align-items: center; gap: 18px; }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-subtle); color: var(--accent); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-card .c-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 600; margin-bottom: 4px; }
.contact-card .c-value { font-size: 1rem; color: var(--text-strong); font-weight: 500; word-break: break-all; }
.contact-card:hover .c-value { color: var(--accent); }
.contact-cta { margin-top: 40px; padding: 40px; text-align: center; }
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-cta p { color: var(--text-muted); margin-bottom: 26px; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band { padding: 56px 44px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .skill-cats, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .proj-body { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; gap: 2px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open .nav-link { padding: 11px 12px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .proj, .feature, .skill-cat { padding: 24px; }
  .cta-band, .contact-cta { padding: 34px 24px; }
  .proj-outcome { gap: 18px; }
}

/* Narrow screens: don't embed the live page, just offer the link. */
@media (max-width: 700px) {
  .pw-view { aspect-ratio: 4 / 3; }
  .pw-view iframe { display: none; }
  .pw-skel { display: none; }
  .pw-hint-desktop { display: none; }
  .pw-hint-mobile { display: block; }
  .pw-dots { display: none; }
}
