/* ============================================================
   Stephen Fung — AI Portfolio
   Warm editorial palette · serif headlines · light by default
   ============================================================ */

:root {
  /* Base — warm cream + deep ink */
  --bg: #faf7f2;            /* warm cream parchment */
  --bg-elev: #f4ede0;       /* slightly deeper cream — for callout panels */
  --bg-card: #ffffff;       /* clean white card */
  --border: #ebe2d3;        /* warm tan border */
  --border-strong: #d4c8b3;
  --fg: #1c1917;            /* near-black warm ink */
  --fg-muted: #57534e;      /* warm stone */
  --fg-faint: #8b8275;

  /* Accents — terracotta + sage */
  --accent: #b45309;        /* deeper, restrained terracotta */
  --accent-soft: rgba(180, 83, 9, 0.10);
  --accent-hover: #92400e;
  --sage: #2d6a4f;          /* secondary — forest sage */
  --sage-soft: rgba(45, 106, 79, 0.10);

  /* Status colors — restrained, harmonious with cream */
  --green: #15803d;
  --blue:  #1d4ed8;
  --amber: #b45309;
  --purple:#6d28d9;

  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;

  /* Single-family system: Inter for everything. Was Fraunces serif — swapped after reader feedback that the italic was distracting. */
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.2rem); margin: 0 0 0.6rem; font-weight: 500; }
h2 { font-size: 1.7rem; margin: 3rem 0 1rem; font-weight: 500; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; color: var(--fg); }
p  { color: var(--fg); margin: 0 0 1rem; }
p strong, li strong { font-weight: 600; color: var(--fg); }

code, pre, .mono { font-family: var(--mono); }
code {
  background: var(--bg-elev);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--accent-hover);
}
pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

main { padding: 2.5rem 0 6rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 242, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.95rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  border-bottom: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Eyebrow / small-caps label (replaces mono) ---------- */
.eyebrow,
.label-caps {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.75rem 0 2.25rem;
  }
}
.hero-text { min-width: 0; }
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 0 1.75rem;
}

/* Hero portrait — replaceable with a real photo */
.hero-portrait {
  display: flex;
  justify-content: center;
}
.portrait-frame {
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--bg-elev);
  padding: 10px;
  box-shadow:
    0 18px 40px -22px rgba(28, 25, 23, 0.22),
    0 6px 14px -8px rgba(180, 83, 9, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.portrait-frame::before {
  /* soft warm glow behind the portrait */
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 30%, rgba(232, 193, 156, 0.45) 0%, rgba(180, 83, 9, 0.10) 45%, transparent 70%);
  z-index: -1;
  filter: blur(8px);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.portrait-frame .initials {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(4rem, 8vw, 6.5rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(146, 64, 14, 0.35);
  user-select: none;
}
.portrait-caption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--fg-faint);
  text-align: center;
}
@media (max-width: 820px) {
  .hero-portrait { order: -1; }
  .portrait-frame { width: 180px; }
}
.hero .lede em {
  font-style: italic;
  color: var(--fg);
}
.hero .meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-top: 1.75rem;
}
.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- Project grid (home) ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4rem 0 1.75rem;
}
.section-title h2 { margin: 0; }
.section-title .count {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  border-bottom: 1px solid var(--border);
  color: inherit;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.02);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.08);
  color: inherit;
}
.project-card .pill {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.85rem;
}
.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  color: var(--fg);
  font-weight: 500;
}
.project-card .plain {
  color: var(--fg);
  font-size: 0.98rem;
  margin: 0 0 0.6rem;
  line-height: 1.55;
}
.project-card p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
  flex: 1;
  line-height: 1.55;
}
.project-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-card .arrow {
  margin-top: 1.1rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Tags ---------- */
.tag {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.tag.accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.tag.green  { color: var(--green); border-color: rgba(21, 128, 61, 0.18); background: rgba(21, 128, 61, 0.08); }
.tag.blue   { color: var(--blue);  border-color: rgba(29, 78, 216, 0.18); background: rgba(29, 78, 216, 0.06); }
.tag.purple { color: var(--purple); border-color: rgba(109, 40, 217, 0.18); background: rgba(109, 40, 217, 0.06); }
.tag.yellow { color: var(--amber); border-color: rgba(180, 83, 9, 0.20); background: rgba(180, 83, 9, 0.08); }
.tag.sage   { color: var(--sage); border-color: var(--sage-soft); background: var(--sage-soft); }

/* ---------- Project page ---------- */
.project-hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.crumbs {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fg-faint);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--fg-muted); border-bottom: none; }
.crumbs a:hover { color: var(--accent); }

.project-hero .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.18);
}
.project-hero .status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.project-hero .status.beta {
  color: var(--amber);
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.20);
}
.project-hero .status.beta .dot { background: var(--amber); }
.project-hero .status.research {
  color: var(--blue);
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.18);
}
.project-hero .status.research .dot { background: var(--blue); }

.project-hero h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); }
.project-hero .tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 62ch;
  margin: 0.6rem 0 1.5rem;
}
.project-hero .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* "What is this?" plain-English intro panel */
.intro-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .intro-panel { grid-template-columns: 1fr; gap: 1.25rem; }
}
.intro-panel .block .label-caps {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sage);
}
.intro-panel .block p:last-child { margin-bottom: 0; }
.intro-panel .block p { font-size: 1rem; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-meta .field .label {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 0.35rem;
}
.project-meta .field .value { color: var(--fg); font-size: 0.98rem; font-weight: 500; }

/* ---------- Mockup / preview panels (no more terminal chrome) ---------- */
.mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.02);
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.mockup-product {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}
.mockup-product::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.mockup-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fg-faint);
}
.mockup-body {
  padding: 1.5rem;
  background: var(--bg-card);
  font-size: 0.92rem;
}

/* mock UI building blocks */
.mock-row { display: flex; gap: 1rem; align-items: stretch; margin-bottom: 0.85rem; flex-wrap: wrap; }
.mock-col { flex: 1; min-width: 180px; }
.mock-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.mock-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.mock-num { font-size: 1.6rem; font-weight: 600; color: var(--fg); font-family: var(--serif); font-variant-numeric: tabular-nums; }
.mock-num.accent { color: var(--accent); }
.mock-num.green  { color: var(--green); }
.mock-num.amber  { color: var(--amber); }
.mock-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
  border: 1px solid var(--border);
}
.mock-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d97706);
}
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mock-table th, .mock-table td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
}
.mock-table th {
  color: var(--fg-faint);
  font-weight: 600;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.mock-table td { color: var(--fg); }
.mock-table tr:last-child td { border-bottom: none; }

.mock-chat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
}
.mock-chat .msg { margin-bottom: 0.85rem; }
.mock-chat .msg:last-child { margin-bottom: 0; }
.mock-chat .msg .who {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 0.3rem;
}
.mock-chat .msg.user .who { color: var(--blue); }
.mock-chat .msg.ai   .who { color: var(--accent); }
.mock-chat .msg p { margin: 0; color: var(--fg); line-height: 1.55; }

/* ---------- Timeline / iteration list ---------- */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.75rem;
  margin: 1.75rem 0;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--sage);
}
.timeline-item .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}
.timeline-item h4 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.timeline-item p { color: var(--fg-muted); font-size: 0.98rem; margin: 0; line-height: 1.6; }

/* ---------- Hiccups list ---------- */
.hiccup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1.1rem 1.4rem;
  margin: 0.85rem 0;
  border-radius: var(--radius-sm);
}
.hiccup .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.hiccup p { margin: 0; color: var(--fg); line-height: 1.6; }
.hiccup .fix {
  color: var(--fg-muted);
  margin-top: 0.55rem;
  font-size: 0.96rem;
}
.hiccup .fix::before {
  content: '→ ';
  color: var(--sage);
  font-weight: 600;
}

/* ---------- Stack / tools ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  margin: 1.25rem 0;
}
.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}
.stack-item .name { font-weight: 600; color: var(--fg); font-size: 0.96rem; }
.stack-item .role {
  color: var(--fg-faint);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* ---------- Roadmap ---------- */
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.roadmap-list li {
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.roadmap-list .ver {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.roadmap-list .ver.next  { color: var(--sage); border-color: var(--sage-soft); background: var(--sage-soft); }
.roadmap-list .ver.later { color: var(--blue); border-color: rgba(29, 78, 216, 0.18); background: rgba(29, 78, 216, 0.06); }
.roadmap-list .roadmap-text { flex: 1; }
.roadmap-list strong { color: var(--fg); font-weight: 600; }
.roadmap-list .roadmap-text p { color: var(--fg-muted); margin: 0.25rem 0 0; font-size: 0.95rem; line-height: 1.55; }

/* ---------- About / list panels ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.about-card h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
}
.about-card ul { margin: 0; padding-left: 1.25rem; color: var(--fg-muted); }
.about-card ul li { margin-bottom: 0.45rem; line-height: 1.55; }
.about-card ul li strong { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.88rem;
  color: var(--fg-faint);
  background: var(--bg);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--fg-muted); border-bottom: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted  { color: var(--fg-muted); }
.faint  { color: var(--fg-faint); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2.75rem 0; }

/* ============================================================
   Interactive Walkthrough
   Figma-style step-through player for project pages
   ============================================================ */

.walkthrough {
  margin: 2.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.02);
}

.walkthrough-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.walkthrough-header .titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.walkthrough-header .label-caps { color: var(--sage); }
.walkthrough-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.walkthrough-header .step-counter {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.walkthrough-stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-card) 60%);
}

.walkthrough-track {
  display: flex;
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.walkthrough-step {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  min-height: 360px;
}
@media (max-width: 760px) {
  .walkthrough-step { grid-template-columns: 1fr; }
}

.walkthrough-screen {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}
@media (max-width: 760px) {
  .walkthrough-screen { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Placeholder "drop a screenshot here" screen frame */
.screen-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-strong);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(212, 200, 179, 0.10) 12px,
      rgba(212, 200, 179, 0.10) 24px
    ),
    var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}
.screen-placeholder .ph-icon {
  font-size: 1.8rem;
  color: var(--fg-faint);
}
.screen-placeholder .ph-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
}
.screen-placeholder .ph-hint {
  font-size: 0.85rem;
  color: var(--fg-faint);
  font-style: italic;
  max-width: 28ch;
  line-height: 1.4;
}

/* When a real screenshot is provided */
.walkthrough-screen img,
.walkthrough-screen video {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* Step caption */
.walkthrough-caption {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-card);
}
.walkthrough-caption .step-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.walkthrough-caption h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.walkthrough-caption p {
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.walkthrough-caption .step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

/* Controls */
.walkthrough-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  gap: 1rem;
}
.wt-nav {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  font-size: 1.05rem;
  transition: background 160ms, border-color 160ms, transform 160ms, color 160ms;
}
.wt-nav:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.wt-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.step-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-dot {
  appearance: none;
  background: var(--border-strong);
  border: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 160ms, transform 160ms, width 160ms;
}
.step-dot:hover { background: var(--fg-muted); }
.step-dot.active {
  background: var(--accent);
  width: 22px;
}

/* Mock UI helpers used inside walkthrough screens */
.wt-mock {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 14px -6px rgba(28, 25, 23, 0.10);
}
.wt-mock h4 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.wt-mock .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--fg);
}
.wt-mock .row:last-child { border-bottom: none; }
.wt-mock .row .v { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.wt-mock .pill-line {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wt-mock .pill-line.green { background: rgba(21,128,61,0.10); color: var(--green); }
.wt-mock .pill-line.sage  { background: var(--sage-soft); color: var(--sage); }

/* ============================================================
   Project card thumbnails (home)
   ============================================================ */
.project-card .card-thumb {
  height: 110px;
  margin: -1.75rem -1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card .card-thumb svg { width: 56px; height: 56px; }
.project-card .card-thumb.thumb-fire {
  background: linear-gradient(135deg, #f4ede0 0%, #e8c19c 100%);
}
.project-card .card-thumb.thumb-award {
  background: linear-gradient(135deg, #f0e7d4 0%, #d4a373 100%);
}
.project-card .card-thumb.thumb-os {
  background: linear-gradient(135deg, #e8efe6 0%, #a8c5b0 100%);
}
.project-card .card-thumb.thumb-job {
  background: linear-gradient(135deg, #ede4d8 0%, #b88c5a 100%);
}
.project-card .card-thumb.thumb-nas {
  background: linear-gradient(135deg, #e6e8ee 0%, #8fa3bd 100%);
}
.project-card .card-thumb.thumb-work {
  background: linear-gradient(135deg, #e8efe6 0%, #2d6a4f 100%);
}

/* ============================================================
   Metric strip
   ============================================================ */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric-strip .metric {
  padding: 1.25rem 1.4rem;
  border-right: 1px solid var(--border);
}
.metric-strip .metric:last-child { border-right: none; }
@media (max-width: 760px) {
  .metric-strip .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-strip .metric:last-child { border-bottom: none; }
}
.metric-strip .num {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.metric-strip .num.accent { color: var(--accent); }
.metric-strip .num.sage   { color: var(--sage); }
.metric-strip .label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
}

/* ============================================================
   Credentials strip — "Where I've operated"
   ============================================================ */
.credentials {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.credentials .creds-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.credentials .creds-head .label-caps { color: var(--sage); }
.credentials .creds-head .resume-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.credentials .creds-head .resume-link::after {
  content: '↓';
  font-size: 0.78rem;
  opacity: 0.7;
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--border);
}
.cred:last-child { border-right: none; }
@media (max-width: 760px) {
  .cred { border-right: none; border-bottom: 1px solid var(--border); }
  .cred:last-child { border-bottom: none; }
}
.cred .org {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.cred .role {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.cred .years {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.cred .proof {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.45;
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
}
.cred .proof strong { color: var(--accent); font-weight: 600; }
.creds-edu {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.creds-edu strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   Featured tier-1 card — Shippo body of work
   ============================================================ */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  color: inherit;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.02);
}
.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.08);
  color: inherit;
}
@media (max-width: 760px) {
  .featured-card { grid-template-columns: 1fr; }
}
.featured-body { padding: 2.25rem 2.4rem; }
.featured-body .pill {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.85rem;
}
.featured-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.85rem;
  color: var(--fg);
  font-weight: 500;
  font-family: var(--serif);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.featured-body .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.featured-body .body-copy {
  color: var(--fg);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.featured-body .arrow {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.featured-aside {
  padding: 2.25rem 2.4rem;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 760px) {
  .featured-aside { border-left: none; border-top: 1px solid var(--border); }
}
.featured-aside .aside-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 0.85rem;
}
.featured-aside .aside-metric {
  margin-bottom: 1.1rem;
}
.featured-aside .aside-metric:last-child { margin-bottom: 0; }
.featured-aside .aside-metric .num {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.featured-aside .aside-metric .num.accent { color: var(--accent); }
.featured-aside .aside-metric .num.sage { color: var(--sage); }
.featured-aside .aside-metric .lbl {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

/* Tier-2 / Tier-3 sub-headers */
.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tier-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.tier-head .tier-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-style: italic;
}

.project-grid.tier-2 {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.project-grid.tier-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.project-grid.tier-3 .project-card { padding: 1.4rem; }
.project-grid.tier-3 .project-card .card-thumb { height: 80px; margin: -1.4rem -1.4rem 1rem; }
.project-grid.tier-3 .project-card h3 { font-size: 1.2rem; }

.tinkering-link {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.tinkering-link a { color: var(--accent); border-bottom: none; }

/* Status pills on project cards */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.status-pill .dot { width: 5px; height: 5px; border-radius: 50%; }
.status-pill.live { background: rgba(21, 128, 61, 0.08); color: var(--green); border: 1px solid rgba(21, 128, 61, 0.18); }
.status-pill.live .dot { background: var(--green); }
.status-pill.pilot { background: rgba(180, 83, 9, 0.08); color: var(--amber); border: 1px solid rgba(180, 83, 9, 0.20); }
.status-pill.pilot .dot { background: var(--amber); }
.status-pill.side { background: var(--bg-elev); color: var(--fg-muted); border: 1px solid var(--border); }
.status-pill.side .dot { background: var(--fg-faint); }

/* ============================================================
   "How I think about AI" section
   ============================================================ */
.ai-thesis {
  margin: 4rem 0 1rem;
  padding: 2.25rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ai-thesis .thesis-head {
  margin-bottom: 1.5rem;
}
.ai-thesis .thesis-head .label-caps { color: var(--sage); }
.ai-thesis .thesis-head h3 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.thesis-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.thesis-col p {
  margin: 0 0 0.85rem;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}
.thesis-col .anchor {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--accent-hover);
  font-style: italic;
  line-height: 1.5;
}

/* ============================================================
   About — Director-altitude rebuild
   ============================================================ */
.about-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}
.about-block .label-caps { color: var(--sage); display: block; margin-bottom: 0.5rem; }
.about-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.about-block p { margin: 0 0 0.85rem; color: var(--fg); line-height: 1.65; }
.about-block p:last-child { margin-bottom: 0; }
.about-block .scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.about-block .scope-item .lbl {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 0.25rem;
}
.about-block .scope-item .val {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.about-block .xfn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-top: 0.85rem;
}
.about-block .xfn-item {
  padding: 0.85rem 1.1rem;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
}
.about-block .xfn-item .who {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.about-block .xfn-item p { font-size: 0.88rem; color: var(--fg-muted); margin: 0; line-height: 1.5; }

.craft-footer {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.craft-footer .label-caps { color: var(--fg-faint); margin-bottom: 0.5rem; display: block; }
.craft-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
}
.craft-footer li::before { content: '· '; color: var(--fg-faint); margin-right: 0.25rem; }
.craft-footer li:first-child::before { content: ''; margin: 0; }

/* ============================================================
   Contact — three-CTA layout
   ============================================================ */
.contact-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.contact-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  transition: all 0.15s ease;
}
.contact-cta a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.contact-cta a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.contact-cta a.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.contact-invite {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
  margin: 1.25rem 0;
  max-width: 70ch;
}
.contact-invite strong { color: var(--accent-hover); font-weight: 600; }

/* ============================================================
   Simulated screenshot frames (for walkthroughs)
   ============================================================ */
.wt-screen {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow:
    0 12px 32px -10px rgba(28, 25, 23, 0.18),
    0 4px 12px -4px rgba(28, 25, 23, 0.08);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}
.ws-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #ece5d4;
  border-bottom: 1px solid var(--border-strong);
}
.ws-dots { display: flex; gap: 0.32rem; }
.ws-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d4c8b3;
}
.ws-dots span:nth-child(1) { background: #e89070; }
.ws-dots span:nth-child(2) { background: #e8c068; }
.ws-dots span:nth-child(3) { background: #8fbf6a; }
.ws-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-app {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-card);
  min-height: 240px;
}
.ws-app.no-side { grid-template-columns: 1fr; }
.ws-side {
  background: #f7f1e3;
  border-right: 1px solid var(--border);
  padding: 0.8rem 0.7rem;
  font-size: 0.78rem;
}
.ws-side .ws-side-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  margin: 0.6rem 0 0.4rem;
  font-weight: 700;
}
.ws-side .ws-side-label:first-child { margin-top: 0; }
.ws-side ul { list-style: none; margin: 0; padding: 0; }
.ws-side li {
  padding: 0.32rem 0.5rem;
  border-radius: 4px;
  color: var(--fg-muted);
  font-size: 0.78rem;
  cursor: default;
  margin-bottom: 0.1rem;
}
.ws-side li.active { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.ws-main { padding: 0.95rem 1.1rem 1.1rem; overflow: hidden; }
.ws-main .ws-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ws-main .ws-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--fg);
}
.ws-main .ws-subtitle {
  font-size: 0.7rem;
  color: var(--fg-faint);
  font-family: var(--mono);
}
.ws-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.ws-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
}
.ws-card .lbl {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 0.18rem;
  font-weight: 700;
}
.ws-card .val {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ws-card .val.green { color: var(--green); }
.ws-card .val.accent { color: var(--accent); }
.ws-rows {
  font-size: 0.78rem;
}
.ws-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.ws-row:first-child { border-top: none; padding-top: 0.2rem; }
.ws-row .name {
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-row .meta {
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}
.ws-row .v {
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.ws-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ws-pill.green { background: rgba(21, 128, 61, 0.10); color: var(--green); }
.ws-pill.amber { background: rgba(180, 83, 9, 0.10); color: var(--amber); }
.ws-pill.blue  { background: rgba(29, 78, 216, 0.08); color: var(--blue); }
.ws-pill.sage  { background: var(--sage-soft); color: var(--sage); }
.ws-bar-h {
  height: 6px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
}
.ws-bar-h > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), #4a8a6f);
}

/* Small screens */
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  .nav { padding: 0.85rem 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.92rem; }
  main { padding: 1.75rem 0 4rem; }
  .hero { padding: 2.75rem 0 2.25rem; }
  .project-meta { padding: 1.1rem 1.25rem; }
  .mockup-body { padding: 1.1rem; }
  .intro-panel { padding: 1.25rem; }
  .about-card { padding: 1.25rem; }
}
