/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — Colin Whitehill
   Design: editorial minimalism (light theme)
   Fonts: Fraunces (headings) · DM Sans (body / UI)
   Palette: warm white · warm gray · clean black

   To retheme, edit the :root variables below.
═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #ffffff;
  --bg-alt:     #f8f8f6;     /* barely-there warm off-white */
  --bg-hover:   #f2f2ef;

  /* Borders */
  --border:        #e5e5e0;
  --border-strong: #cdcdc6;

  /* Text */
  --text:       #0d0d0b;     /* near-black with a warm tint */
  --text-muted: #888880;     /* warm mid-gray */
  --text-dim:   #b8b8b0;     /* light warm gray for hints */

  /* Buttons / primary ink */
  --ink:        #0d0d0b;
  --ink-hover:  #2a2a28;

  /* Fonts */
  --font-display: 'Fraunces', serif;  /* headings only */
  --font-body:    'DM Sans', sans-serif;

  /* Shape */
  --radius:    8px;
  --radius-lg: 14px;

  /* Transitions */
  --t:      0.2s ease;
  --t-slow: 0.55s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container:   1080px;
  --section-gap: 96px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── UTILITY ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   Transparent until scrolled; gains white bg + border on scroll.
═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

/* JS adds this class when scrollY > 30 */
.nav.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity var(--t);
}
.nav-logo:hover { opacity: 0.5; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   HERO — split layout: text left · photo right
═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* ── Hero text (left column) ── */

/* Small label: "Developer / Builder" */
.hero-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Main heading — Fraunces for warmth and character */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 22px;
  /* Optical size — crisp at large sizes */
  font-variation-settings: 'opsz' 72;
}

/* Primary tagline */
.hero-tagline {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* Supporting description */
.hero-sub {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* CTA button row */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  border: 1px solid transparent;
}

/* Solid black — primary action */
.btn-primary {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background-color: var(--ink-hover);
  border-color: var(--ink-hover);
}

/* Ghost outline — secondary action */
.btn-outline {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Photo (right column) ── */
.hero-photo {
  width: 100%;
}

/* Placeholder box — replace with <img class="photo-img"> for real photo */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);   /* icon + hint text use this */
}

.photo-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ── Commandly card: logo + title inline ── */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Applied when swapping in a real photo */
.photo-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SHARED STYLES
═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

/* Header row: "01 · Selected Projects" */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--text);
  font-variation-settings: 'opsz' 40;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════════ */

/* 2-column grid; featured card spans both */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-featured {
  grid-column: 1 / -1;
}

/* ── Project Card ── */
.card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t);
}

.card:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

/* Featured card: extra padding + black top accent line */
.card.card-featured {
  padding: 36px;
  border-top: 2px solid var(--ink);
}

/* Title area: name + optional external link */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Small label above title */
.card-badge {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-badge-featured { color: var(--text-muted); }

.card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-featured .card-title { font-size: 1.6rem; }

/* External link arrow ↗ */
.card-arrow {
  font-size: 1.05rem;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
  transition: color var(--t), transform var(--t);
}
.card:hover .card-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Description paragraph */
.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.74;
  font-weight: 300;
  flex: 1;
}

/* Feature bullet list — 2 columns inside featured card */
.card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}

.card-features li {
  font-size: 0.81rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* Footer row: tech tags + optional CTA link */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

/* Tech stack pills */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.69rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color var(--t), color var(--t);
}
.card:hover .tag {
  border-color: var(--border-strong);
}

/* "View project →" text link */
.card-cta {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t);
}
.card-cta:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   ABOUT — warm off-white background to separate it visually
═══════════════════════════════════════════════════════════════ */
.about-section {
  background-color: var(--bg-alt);
}

/* Two-column: body text left, sidebar right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 1.01rem;
  color: var(--text-muted);
  line-height: 1.82;
  font-weight: 300;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 600; color: var(--text); }

/* ── Sidebar ── */
.about-aside {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.aside-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.aside-list li {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.aside-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}

.contact-links { max-width: 580px; }

/* Each contact row: type · value · ↗ */
.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--t);
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row:hover { padding-left: 6px; }

.contact-type {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  min-width: 52px;
}

.contact-value {
  font-size: 0.91rem;
  color: var(--text-muted);
  flex: 1;
  transition: color var(--t);
}
.contact-row:hover .contact-value { color: var(--text); }

.contact-arrow {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--t), transform var(--t);
}
.contact-row:hover .contact-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS

   Two systems:
   1. Hero — CSS staggered fade-ins on page load (no JS needed)
   2. Sections — .reveal elements triggered by IntersectionObserver
═══════════════════════════════════════════════════════════════ */

/* ── 1. Hero fade-in (CSS only) ── */
.hero-text > * {
  opacity: 0;
  animation: fadeUp 0.65s var(--t-slow) forwards;
}

/* Stagger each hero element with increasing delay */
.hero-label   { animation-delay: 0.08s; }
.hero-name    { animation-delay: 0.20s; }
.hero-tagline { animation-delay: 0.34s; }
.hero-sub     { animation-delay: 0.44s; }
.hero-actions { animation-delay: 0.54s; }

/* Photo fades in slightly after the text */
.hero-photo {
  opacity: 0;
  animation: fadeUp 0.8s 0.28s var(--t-slow) forwards;
}

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

/* ── 2. Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.65s var(--t-slow),
    transform 0.65s var(--t-slow);
}

/* JS adds .is-visible when element enters the viewport */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings within the same section */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Tablet — collapse hero & about to single column */
@media (max-width: 860px) {
  :root { --section-gap: 72px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Photo drops below text; constrain its size */
  .hero-photo { max-width: 260px; }
  .photo-placeholder { aspect-ratio: 1 / 1; }

  /* Projects: single column */
  .projects-grid      { grid-template-columns: 1fr; }
  .card-featured      { grid-column: 1; }

  /* About: stack, sidebar loses its left border */
  .about-grid         { grid-template-columns: 1fr; gap: 36px; }
  .about-aside        {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* Mobile — small adjustments */
@media (max-width: 560px) {
  :root { --section-gap: 56px; }

  .nav-links  { gap: 18px; }
  .hero       { padding: 72px 0 48px; }
  .hero-photo { display: none; }   /* hide photo on very small screens */

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .card       { padding: 20px; }
  .card.card-featured { padding: 22px; }
  .card-features { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT DETAIL PAGES  (projects/commandly.html, etc.)
═══════════════════════════════════════════════════════════════ */

/* ── Back link ── */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--t);
}
.project-back:hover { color: var(--text); }

/* ── HERO — 2-column split ── */
.project-hero {
  padding: 108px 0 80px;
  border-bottom: 1px solid var(--border);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 56px;
  align-items: center;
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.project-logo-lg {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--text);
  font-variation-settings: 'opsz' 64;
}

.project-tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Status pills row */
.project-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pill-live {
  color: #16a34a;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* ── Browser frame (used in hero + carousel) ── */
.browser-frame {
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.09);
}

.browser-chrome {
  background: #f2f2ef;
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* macOS-style traffic light dots */
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url-bar {
  flex: 1;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.browser-frame > img {
  width: 100%;
  display: block;
  line-height: 0;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variation-settings: 'opsz' 36;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.4;
}

/* ── CAROUSEL ── */
.carousel-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.carousel-section-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  line-height: 0;
}
.carousel-slide img {
  width: 100%;
  display: block;
}

/* Controls row below the frame */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), color var(--t);
}
.carousel-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.carousel-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.carousel-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
/* Active dot expands into a pill */
.carousel-dot.active {
  width: 20px;
  background: var(--ink);
}

/* ── DETAILS — 2-col grid ── */
.project-details-section {
  padding: var(--section-gap) 0;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* Right column sticks while left scrolls */
.details-right {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-block {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.detail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 24;
}

.detail-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.84;
  font-weight: 300;
  margin-bottom: 14px;
}
.detail-body:last-child { margin-bottom: 0; }

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.detail-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* Tech stack key/value table */
.tech-stack { display: flex; flex-direction: column; }

.tech-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.tech-row:first-child { border-top: 1px solid var(--border); }

.tech-key {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tech-val {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ── Project page responsive ── */
@media (max-width: 960px) {
  .project-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-hero-image { max-width: 560px; }
  .project-details-grid { grid-template-columns: 1fr; gap: 0; }
  .details-right { position: static; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 44px; }
}

@media (max-width: 700px) {
  .project-hero { padding: 90px 0 60px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 480px) {
  .project-logo-lg { width: 36px; height: 36px; }
  .carousel-section { padding: 48px 0; }
}
