/* ============================================================
   Shashank — Portfolio  |  Light Professional Theme
   Palette: crisp white · warm off-white · deep indigo · slate
   Typography: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --ground:      #FFFFFF;
  --raised:      #F7F8FC;
  --card:        #FFFFFF;
  --border:      #E4E7F0;
  --border-soft: #EEF0F7;

  /* Ink */
  --ink:         #0F1117;
  --ink-2:       #1E2335;
  --muted:       #5B6478;
  --faint:       #9AA0B4;

  /* Accent — deep indigo */
  --accent:      #3730A3;
  --accent-mid:  #4F46E5;
  --accent-soft: #EEF2FF;
  --accent-glow: rgba(79, 70, 229, 0.12);

  /* Status */
  --live-color:  #059669;
  --live-bg:     #ECFDF5;

  /* Typography */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Layout */
  --page:   1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,17,23,.06), 0 1px 2px rgba(15,17,23,.04);
  --shadow-md:  0 4px 16px rgba(15,17,23,.08), 0 2px 6px rgba(15,17,23,.04);
  --shadow-lg:  0 12px 40px rgba(15,17,23,.10), 0 4px 12px rgba(15,17,23,.06);
  --shadow-card: 0 2px 8px rgba(55,48,163,.06), 0 0 0 1px var(--border);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ── Reset ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-mid); outline-offset: 3px; border-radius: 3px; }

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header ──────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
header.pinned {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(15,17,23,.06);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}

.mark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mark::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-mid);
}

nav { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: .35rem .6rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
nav a:hover { color: var(--ink); background: var(--raised); }
nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-text { max-width: 600px; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.048em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}

.h1-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.standfirst {
  margin: 1.75rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  font-weight: 400;
}

/* ── Buttons ─────────────────────────────────────────────── */

.actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: all .22s ease;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent-mid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(79,70,229,.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--ground);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--accent-mid);
  color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Legacy .btn / .btn.quiet support */
.btn:not(.btn-primary):not(.btn-secondary) {
  background: var(--accent-mid);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,.28);
}
.btn:not(.btn-primary):not(.btn-secondary):hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn.quiet {
  background: var(--ground) !important;
  color: var(--ink-2) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.btn.quiet:hover {
  border-color: var(--accent-mid) !important;
  color: var(--accent-mid) !important;
  transform: translateY(-1px) !important;
}

/* ── Hero visual panel ───────────────────────────────────── */

.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--raised);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Floating badge on hero visual */
.hero-badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-md);
}
.hero-badge-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--live-color);
  box-shadow: 0 0 0 3px rgba(5,150,105,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(5,150,105,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(5,150,105,.08); }
}
.hero-badge-text { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.hero-badge-sub  { font-size: .7rem; color: var(--muted); font-weight: 400; }

/* ── Section chrome ──────────────────────────────────────── */

main { display: block; }
section { padding-block: clamp(3.5rem, 9vh, 6rem); }
section + section { border-top: 1px solid var(--border-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-mid);
  font-weight: 500;
  margin: 0 0 .75rem;
}

.section-header {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.section-header h2 { margin: 0; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}
h3 { letter-spacing: -0.022em; color: var(--ink); }

/* ── Work cards ──────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,17,23,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.22,.68,0,1.2),
              box-shadow .3s ease,
              border-color .3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(79,70,229,.14), 0 4px 16px rgba(15,17,23,.08);
  border-color: rgba(79,70,229,.35);
}

/* Thumbnail */
.card-thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--raised);
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22,.68,0,1.1);
  display: block;
}
.work-card:hover .card-thumb img { transform: scale(1.07); }

/* Gradient shimmer overlay on image */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(15,17,23,.55) 100%
  );
  opacity: 0;
  transition: opacity .35s ease;
}
.work-card:hover .card-thumb::after { opacity: 1; }

/* Card body */
.card-body {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
}
.card-tag {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-soft);
  border: 1px solid rgba(79,70,229,.2);
  padding: .28rem .7rem;
  border-radius: 99px;
  font-weight: 600;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.status.live { color: var(--live-color); font-weight: 600; }
.status.live::before {
  background: var(--live-color);
  box-shadow: 0 0 0 3px rgba(5,150,105,.2);
  animation: pulse 2s infinite;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 .625rem;
  line-height: 1.25;
  transition: color .2s;
}
.work-card:hover .card-title { color: var(--accent-mid); }

.card-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.card-stack {
  margin-top: 1.1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}
.card-arrow {
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-mid);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: -0.01em;
  transition: gap .22s;
}
.work-card:hover .card-arrow { gap: .7rem; }
.card-arrow svg { flex-shrink: 0; transition: transform .22s; }
.work-card:hover .card-arrow svg { transform: translateX(3px); }

/* ── Old .row work list (kept for compat on work.html if needed) ── */
.work { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto;
  gap: clamp(.75rem,3vw,2.5rem);
  align-items: start;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border-soft);
  text-decoration: none;
  transition: background .2s;
  border-radius: 0;
}
.row:last-child { border-bottom: 1px solid var(--border-soft); }
.row:hover { background: var(--raised); }
.row h3 {
  margin: 0;
  font-size: clamp(1.05rem,1.8vw,1.35rem);
  font-weight: 700;
  line-height: 1.25;
  transition: color .2s, transform .25s;
}
.row:hover h3 { color: var(--accent-mid); transform: translateX(4px); }
.row p { margin: .5rem 0 0; color: var(--muted); font-size: .875rem; max-width: 46ch; }
.stack {
  margin: .7rem 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--faint);
}
.side {
  display: flex; flex-direction: column; align-items: flex-end; gap: .4rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.visit { color: var(--faint); }
.row:hover .visit { color: var(--accent-mid); }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: .15rem; }
  .side { align-items: flex-start; margin-top: .75rem; flex-direction: row; gap: 1rem; }
}

/* ── Beliefs / values grid ───────────────────────────────── */

.beliefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.belief {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.belief:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(79,70,229,.2);
}
.belief-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.belief-icon svg { width: 20px; height: 20px; color: var(--accent-mid); }
.belief h3 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 700; }
.belief p  { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }

/* ── Stats row ───────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: default;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.04) 0%, rgba(124,58,237,.06) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.stat:hover::before { opacity: 1; }

.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #7C3AED 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  border-radius: 0 0 2px 2px;
}
.stat:hover::after { transform: scaleX(1); }

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79,70,229,.12), 0 2px 8px rgba(79,70,229,.06);
  border-color: rgba(79,70,229,.25);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Diagram / architecture ──────────────────────────────── */

.diagram {
  border: 1px solid var(--border);
  background: var(--raised);
  background-image: radial-gradient(circle at 1px 1px, rgba(79,70,229,.04) 1px, transparent 0);
  background-size: 24px 24px;
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.diagram::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #7C3AED 50%, var(--accent-mid) 100%);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.flow { display: block; width: 100%; min-width: 780px; height: auto; }

/* Drop shadow beneath boxes */
.flow .shadow { fill: var(--ink); opacity: .06; filter: blur(2px); }

/* Default box */
.flow .box {
  fill: var(--ground);
  stroke: var(--border);
  stroke-width: 1.5;
  transition: filter .3s ease, stroke .3s ease;
}
.flow .box:hover {
  filter: drop-shadow(0 4px 12px rgba(79,70,229,.15));
  stroke: var(--accent-mid);
}

/* Key/accent box */
.flow .box.key {
  fill: var(--accent-soft);
  stroke: var(--accent-mid);
  stroke-width: 1.8;
}
.flow .box.key:hover {
  filter: drop-shadow(0 4px 16px rgba(79,70,229,.25));
}

/* Solid filled box */
.flow .box.solid {
  fill: var(--accent-mid);
  stroke: var(--accent-mid);
}
.flow .box.solid:hover {
  filter: drop-shadow(0 4px 16px rgba(79,70,229,.35));
}

/* Text */
.flow .label {
  fill: var(--ink); font-family: var(--sans); font-size: 12px;
  font-weight: 600; text-anchor: middle; letter-spacing: -0.01em;
}
.flow .label.invert { fill: #fff; }
.flow .sub {
  fill: var(--muted); font-family: var(--mono); font-size: 9px;
  text-anchor: middle; letter-spacing: .05em;
}
.flow .stage {
  fill: var(--faint); font-family: var(--mono); font-size: 9px;
  letter-spacing: .15em; text-anchor: middle;
}

/* ── Flowing edge animations ── */
.flow .edge {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  stroke-dashoffset: 0;
  animation: flowEdge 1.8s linear infinite;
}
.flow .edge.key {
  stroke: var(--accent-mid);
  stroke-width: 1.8;
  stroke-dasharray: 8 4;
  animation: flowEdge 1.4s linear infinite;
}
.flow .edge.dashed {
  stroke-dasharray: 4 4;
  stroke: var(--faint);
  animation: flowEdge 2.2s linear infinite;
}

@keyframes flowEdge {
  to { stroke-dashoffset: -20; }
}

.flow .head { fill: var(--faint); }
.flow .head.key { fill: var(--accent-mid); }

/* ── Entrance animations for diagram elements ── */
.diagram .flow .box,
.diagram .flow .shadow {
  opacity: 0;
  animation: nodeIn .5s ease forwards;
}
.diagram .flow .box:nth-of-type(1),
.diagram .flow .shadow:nth-of-type(1) { animation-delay: .1s; }
.diagram .flow .box:nth-of-type(2),
.diagram .flow .shadow:nth-of-type(2) { animation-delay: .2s; }
.diagram .flow .box:nth-of-type(3),
.diagram .flow .shadow:nth-of-type(3) { animation-delay: .3s; }
.diagram .flow .box:nth-of-type(4),
.diagram .flow .shadow:nth-of-type(4) { animation-delay: .4s; }
.diagram .flow .box:nth-of-type(5),
.diagram .flow .shadow:nth-of-type(5) { animation-delay: .5s; }
.diagram .flow .box:nth-of-type(6),
.diagram .flow .shadow:nth-of-type(6) { animation-delay: .6s; }
.diagram .flow .box:nth-of-type(7),
.diagram .flow .shadow:nth-of-type(7) { animation-delay: .7s; }
.diagram .flow .box:nth-of-type(8),
.diagram .flow .shadow:nth-of-type(8) { animation-delay: .8s; }

@keyframes nodeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Crosscut bar */
.crosscut {
  margin-top: 1.25rem;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(79,70,229,.2);
}
.caption { margin: 1rem 0 0; font-size: .83rem; color: var(--faint); max-width: 70ch; }

/* ── Prose + detail pages ────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.prose p { margin: 0 0 1rem; max-width: 64ch; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: .975rem; font-weight: 700; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }

.facts { display: flex; flex-direction: column; gap: 0; }
.fact {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: .75rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: .875rem;
}
.fact dt {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: .05rem;
}
.fact dd { margin: 0; color: var(--muted); }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.cols h3 {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  font-weight: 600;
  margin: 0 0 .875rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent-soft);
}
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li {
  font-size: .875rem;
  color: var(--muted);
  padding-block: .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cols li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-mid);
  opacity: .5;
  flex-shrink: 0;
}

/* ── Case study page image banner ────────────────────────── */

.project-banner {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 21/9;
  background: var(--raised);
  margin-bottom: 2.5rem;
}
.project-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-banner-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #E0E7FF 60%, #F0FFFE 100%);
}

/* ── Nav links / backlink ────────────────────────────────── */

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  transition: color .2s;
}
.backlink:hover { color: var(--accent-mid); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  padding-block: 2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.pager a { color: var(--muted); transition: color .2s; }
.pager a:hover { color: var(--accent-mid); }

/* ── Footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.footer-sub {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-avail {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--live-color);
  background: var(--live-bg);
  padding: .35rem .85rem;
  border-radius: 99px;
}
.footer-avail::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live-color);
  animation: pulse 2s infinite;
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .work-card:hover { transform: none; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}
