/* =========================================================
   shoaaib.com — "Deep Slate & Mint" theme
   Mobile-first: 1 col → 2 cols (tablet ≥ 640px) → 3 cols (PC ≥ 1024px)
   ========================================================= */

:root {
  /* Palette */
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --text: #212529;
  --text-muted: #5B636B;
  --slate: #2B3440;
  --accent: #2ECC71;          /* mint — swap to #00B4D8 for a cyan accent */
  --accent-ink: #1A8C4C;      /* darker mint for readable text/links on light bg */
  --accent-soft: rgba(46, 204, 113, 0.12);
  --border: rgba(33, 37, 41, 0.08);

  /* Layered "floating" shadows */
  --shadow-sm:
    0 1px 2px rgba(33, 37, 41, 0.04),
    0 2px 6px rgba(33, 37, 41, 0.04);
  --shadow-md:
    0 1px 2px rgba(33, 37, 41, 0.04),
    0 4px 12px rgba(33, 37, 41, 0.06),
    0 12px 28px rgba(33, 37, 41, 0.06);
  --shadow-lg:
    0 2px 4px rgba(33, 37, 41, 0.04),
    0 8px 20px rgba(33, 37, 41, 0.08),
    0 24px 48px rgba(33, 37, 41, 0.10);
  --shadow-accent:
    0 4px 10px rgba(46, 204, 113, 0.25),
    0 12px 28px rgba(46, 204, 113, 0.20);

  /* Fluid spacing — scales smoothly from phone to desktop */
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.6vw, 1.125rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --space-lg: clamp(1.5rem, 1rem + 2vw, 3rem);
  --space-xl: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

  --radius: 12px;
  --radius-lg: 20px;
  --ease: all 0.3s ease;
  --header-h: 72px;
  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* keeps the off-canvas mobile menu from widening the page */
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.menu-open { overflow: hidden; }

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--text); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  transition: var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.975rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: var(--ease); }

.btn-primary {
  background: var(--accent);
  color: #0F2A1B;                 /* dark text on mint = strong contrast */
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: #36D97B;
  box-shadow:
    0 6px 14px rgba(46, 204, 113, 0.30),
    0 18px 36px rgba(46, 204, 113, 0.25);
}
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: var(--ease);
}
/* Frosted glass lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed mobile menu inside the header's box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 246, 248, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-weight: 800; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem); letter-spacing: -0.02em;
  white-space: nowrap; z-index: 120;
}
/* "S" monogram — gradient S on a dark tile */
.logo-mark {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  stroke: none; /* override the global svg stroke; the SVG sets its own */
  box-shadow:
    0 2px 6px rgba(21, 26, 32, 0.18),
    0 8px 20px rgba(0, 180, 216, 0.14);
  transition: var(--ease);
}
.logo-mark .lm-s { stroke-dasharray: 90; stroke-dashoffset: 0; }
.logo-mark .lm-dot { transform-box: fill-box; transform-origin: center; transition: var(--ease); }
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    0 4px 10px rgba(21, 26, 32, 0.2),
    0 12px 28px rgba(46, 204, 113, 0.3);
}
.logo:hover .lm-s { animation: draw-s 0.9s ease; }
.logo:hover .lm-dot { transform: scale(1.35); }
@keyframes draw-s { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem); letter-spacing: -0.02em; }
.logo-first { font-weight: 500; color: var(--text); }
.logo-last {
  font-weight: 800;
  background: linear-gradient(90deg, #1A8C4C, #0092B3);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.logo-role {
  margin-top: 3px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}

/* Hamburger (mobile default) */
.nav-toggle {
  position: relative; z-index: 120;
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--ease);
}
.nav-toggle:hover { box-shadow: var(--shadow-md); }
.nav-toggle .bar {
  width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-in overlay menu (mobile) */
.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(82vw, 340px);
  padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}
.nav-menu.open { transform: translateX(0); visibility: visible; }

.nav-menu .nav-link {
  display: block; padding: 0.9rem 1rem; border-radius: 10px;
  font-size: 1.15rem; font-weight: 600;
  transition: var(--ease);
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-menu .btn { margin-top: 1rem; width: 100%; padding-block: 0.9rem; }

/* Staggered link entrance */
.nav-menu li { opacity: 0; transform: translateX(20px); transition: var(--ease); }
.nav-menu.open li { opacity: 1; transform: none; }
.nav-menu.open li:nth-child(1) { transition-delay: 0.10s; }
.nav-menu.open li:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.open li:nth-child(3) { transition-delay: 0.20s; }
.nav-menu.open li:nth-child(4) { transition-delay: 0.25s; }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(33, 37, 41, 0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.show { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-xl); }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 20%, rgba(255,255,255,0.7) 80%, rgba(255,255,255,0) 100%);
}

.section-head { margin-bottom: var(--space-lg); }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: var(--space-lg); }

.kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.15; letter-spacing: -0.025em; font-weight: 800;
}
.section-sub { margin-top: 0.9rem; color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 600px; height: 600px; border-radius: 50%;
  top: -220px; right: -200px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-grid { display: grid; gap: var(--space-lg); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-title {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.hero-title .tagline { color: var(--text-muted); font-weight: 700; }
.highlight {
  position: relative;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 62%, rgba(46, 204, 113, 0.35) 62%);
}

.hero-bio {
  margin-top: var(--space-md);
  max-width: 560px;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--text-muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--space-lg); }
.hero-actions.center { justify-content: center; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg); padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.avatar-card {
  position: relative; width: min(100%, 420px);
  padding: var(--space-md);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--ease);
  animation: float 6s ease-in-out infinite;
}
.avatar-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
@keyframes float { 50% { translate: 0 -10px; } }

.avatar { border-radius: var(--radius); overflow: hidden; background: #fff; }
.avatar img { width: 100%; height: auto; transition: transform 0.6s ease; }
.avatar-card:hover .avatar img { transform: scale(1.03); }
.code-card {
  margin-top: var(--space-sm);
  background: #1B2129; color: #D9E1E8;
  border-radius: var(--radius); padding: 1rem 1.1rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.85rem); line-height: 1.6;
  overflow-x: auto;
}
.code-dots { display: flex; gap: 6px; margin-bottom: 0.6rem; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4450; }
.code-dots i:first-child { background: var(--accent); }
.c-key { color: var(--accent); }
.c-str { color: #9FE8C0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-md); }
.about-text p { color: var(--text-muted); font-size: 1.075rem; }
.about-text p + p { margin-top: 1rem; }

/* ---------- Responsive grid (1 → 2 → 3) ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 204, 113, 0.35);
}

.skill-card { padding: var(--space-md); }
.skill-card h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; letter-spacing: -0.01em; }
.skill-card p { color: var(--text-muted); font-size: 0.975rem; }

.icon-wrap {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  transition: var(--ease);
}
.icon-wrap svg { width: 24px; height: 24px; }
.skill-card:hover .icon-wrap {
  background: var(--accent); color: #0F2A1B;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-accent);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tags li {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--ease);
}
.card:hover .tags li { border-color: rgba(46, 204, 113, 0.3); }

/* ---------- Tech stack & AI tools ---------- */
.stack-group + .stack-group { margin-top: var(--space-lg); }
.stack-title {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}
.stack-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
}
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.1rem 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--ease);
}
.logo-tile img { width: 40px; height: 40px; object-fit: contain; transition: var(--ease); }
.logo-tile span { font-size: 0.8rem; font-weight: 600; line-height: 1.25; color: var(--text-muted); transition: var(--ease); }
.logo-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: var(--shadow-lg);
}
.logo-tile:hover img { transform: scale(1.12); }
.logo-tile:hover span { color: var(--text); }

/* AI tools get a soft mint wash to stand out */
.stack-group-ai .logo-tile {
  background: linear-gradient(180deg, var(--surface), rgba(46, 204, 113, 0.06));
}

/* Project cards */
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
}
.project-thumb span {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--ease);
}
.project-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15));
}
.project-card:hover .project-thumb span { transform: scale(1.12); }

/* Placeholder thumbnails — replace with <img> screenshots of your projects */
.thumb-1 { background: linear-gradient(135deg, #2ECC71, #1A8C4C); }
.thumb-2 { background: linear-gradient(135deg, #2B3440, #4A5868); }
.thumb-3 { background: linear-gradient(135deg, #00B4D8, #2ECC71); }
.thumb-4 { background: linear-gradient(135deg, #3A4450, #2ECC71); }
.thumb-5 { background: linear-gradient(135deg, #1B2129, #2B3440); }
.thumb-6 { background: linear-gradient(135deg, #1A8C4C, #00B4D8); }

.project-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.project-body p { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.975rem; }
.project-body .tags { margin-bottom: 1.25rem; }

.project-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--accent-ink);
  transition: var(--ease);
}
.project-link svg { width: 18px; height: 18px; transition: var(--ease); }
.project-link:hover { color: var(--text); }
.project-link:hover svg { transform: translateX(5px); }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 0%, rgba(46, 204, 113, 0.14), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(0, 180, 216, 0.10), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}
.contact-card .section-sub { max-width: 520px; margin-inline: auto; }

.socials { display: flex; justify-content: center; gap: 0.75rem; margin-top: var(--space-lg); }
.socials a {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
}
.socials svg { width: 20px; height: 20px; }
.socials a:hover {
  transform: translateY(-4px);
  background: var(--accent); color: #0F2A1B; border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-lg); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text-muted); text-align: center;
}
.back-top { font-weight: 600; transition: var(--ease); }
.back-top:hover { color: var(--accent-ink); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET ≥ 640px — 2 columns
   ========================================================= */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ≥ 860px — desktop nav + side-by-side hero/about */
@media (min-width: 860px) {
  .nav-toggle, .nav-backdrop { display: none !important; }

  .nav-menu {
    position: static; width: auto; padding: 0;
    flex-direction: row; align-items: center; gap: 0.35rem;
    background: none; box-shadow: none;
    transform: none; visibility: visible;
  }
  .nav-menu li { opacity: 1; transform: none; }
  .nav-menu .nav-link {
    position: relative; padding: 0.5rem 0.9rem;
    font-size: 0.95rem; color: var(--text-muted);
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active { background: none; color: var(--text); }
  .nav-menu .nav-link::after {
    content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
    height: 2px; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: var(--ease);
  }
  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link.active::after { transform: scaleX(1); }
  .nav-menu .btn { margin: 0 0 0 0.75rem; width: auto; padding: 0.6rem 1.2rem; }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  /* Code snippet floats over the illustration's corner on larger screens */
  .hero-visual .code-card {
    position: absolute; left: -2.5rem; bottom: -1.5rem;
    width: 72%; margin: 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(46, 204, 113, 0.25);
  }
  .avatar-card { margin-bottom: 1.5rem; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-lg); align-items: start; }
  .about-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* =========================================================
   PC ≥ 1024px — 3 columns
   ========================================================= */
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}

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