/* ══════════════════════════════════════════════════════
   HOME — index.html page-specific styles
   Two-column fixed-sidebar layout

   Layers below (do not redeclare):
     tokens.css   → all CSS custom properties
     base.css     → reset, fonts, .section, @keyframes fadeUp
     components.css → .btn-primary, .btn-secondary, .hero-tag,
                      .section-label, .section-heading, .footer-*

   Tokens used throughout:
     Color      → --c-*, --bg, --surface-*, --border*, --text-*,
                  --accent*, --green, --green-faint
     Typography → --font-*, --fs-*, --lh-*, --ls-*, --h-*, --p-*
     Spacing    → --sp-* (4 px base unit)
     Radii      → --r-*
     Buttons    → --btn-* (sidebar CTA reuses these)
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   1. ROOT LAYOUT — fixed sidebar + scrollable main
══════════════════════════════════════════════════════ */

html, body {
  height: 100%;
  overflow: hidden;   /* main panel scrolls independently */
  margin: 0;
}

.layout {
  display: flex;
  height: 100vh;
}

/* ── Sidebar (left, fixed height, hidden scrollbar) ── */
.sidebar {
  width: 288px;             /* deliberate fixed value — not a spacing step */
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  background: #F6F5F3;      /* lighter tint of --c-sand (#EEEDEB → white) */
  border-right: 1px solid var(--border-med);
  display: flex;
  flex-direction: column;
  padding: var(--sp-12) var(--sp-8) var(--sp-10); /* 48 32 40 */
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* ── Main panel (right, scrollable) ─────────────────── */
.main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background: var(--c-white);
  scroll-behavior: smooth;
}
.main::-webkit-scrollbar       { width: 4px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: 2px; }

/* ══════════════════════════════════════════════════════
   2. SIDEBAR — identity & description
══════════════════════════════════════════════════════ */

.sidebar-name {
  display: block;              /* needed because it's now an <a> */
  font-family: var(--font-display);
  font-size: 2rem;             /* display-scale name, 2 lines */
  font-weight: var(--h-weight); /* 500 */
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-tight); /* 1.15 — compact for stacked lines */
  color: var(--text-primary);
  margin-bottom: var(--sp-3);  /* 12px */
  /* Override the global a {} prose-link styles — the name reads as a
     heading first, link second. Black text, no underline. */
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s;
}
.sidebar-name:hover {
  color: var(--c-taupe);       /* subtle taupe shift on hover */
  text-decoration: none;
}

.sidebar-role {
  font-family: var(--font-body);
  font-size: var(--fs-sm);     /* 0.9rem — bumped from fs-xs */
  font-weight: 600;
  letter-spacing: var(--ls-wider); /* 0.06em */
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);  /* 16px */
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);            /* 4px */
  margin-bottom: var(--sp-6);  /* 24px */
}

.sidebar-tag {
  font-family: var(--font-body);
  font-size: 10px;             /* below fs-2xs; intentional micro label */
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  background: var(--surface-2);        /* rgba(117,114,99,0.08) */
  border: 1px solid var(--border-med);
  border-radius: var(--r-sm);
  padding: var(--sp-1) var(--sp-2);   /* 4px 8px */
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--border-med);
  margin-bottom: var(--sp-5);  /* 20px */
}

.sidebar-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;           /* between fs-xs and fs-sm */
  font-weight: var(--p-weight);
  line-height: 1.75;           /* between lh-relaxed and lh-loose */
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);  /* 20px */
  letter-spacing: var(--ls-normal);
}

/* ── Resume download — DS Primary Outline, Taupe ───── */
.sidebar-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);            /* 8px — matches .btn gap */
  font-family: var(--btn-font);
  font-size: var(--btn-size-sm); /* 0.875rem */
  font-weight: var(--btn-weight); /* 600 */
  letter-spacing: var(--btn-ls);
  color: var(--c-taupe);
  background: transparent;
  text-decoration: none;
  padding: var(--btn-pad-v-sm) var(--btn-pad-h-sm); /* 8px 20px */
  border: none;
  border-radius: var(--btn-radius); /* 9999px pill */
  box-shadow: inset 0 0 0 2px var(--c-taupe);
  transition: var(--btn-transition);
  margin-bottom: var(--sp-8);  /* 32px */
  width: fit-content;
}
.sidebar-resume:hover {
  background: var(--c-taupe);
  color: var(--text-inverse);
}

/* ══════════════════════════════════════════════════════
   3. SIDEBAR — navigation
══════════════════════════════════════════════════════ */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);            /* 4px between items — tight list */
  flex: 1;                     /* pushes footer to bottom of sidebar */
}

.sidebar-nav-label {
  font-family: var(--font-body);
  font-size: 9px;              /* micro label, below fs-2xs */
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-2); /* 8px */
  padding-left: var(--sp-3);  /* 12px — aligns with link text */
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);            /* 8px */
  font-family: var(--btn-font);       /* match Download Resume — Noto Sans */
  font-size: var(--btn-size-sm);      /* 0.875rem */
  font-weight: 500;
  letter-spacing: var(--btn-ls);      /* 0 */
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);   /* 8px 12px */
  border-radius: var(--r-sm);
  border-left: 2px solid transparent; /* active indicator rail */
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 233, 214, 0.5); /* --c-peach @ 50% — faint preview */
}

.sidebar-link.active {
  color: var(--c-taupe);
  font-weight: var(--btn-weight);     /* 600 — matches button */
  background: var(--c-peach);
  border-left-color: var(--accent);
}

.sidebar-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon { opacity: 1; }

/* ══════════════════════════════════════════════════════
   4. SIDEBAR — footer (socials + CTA)
══════════════════════════════════════════════════════ */

.sidebar-footer {
  padding-top: var(--sp-6);          /* 24px */
  border-top: 1px solid var(--border-med);
  margin-top: var(--sp-6);           /* 24px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);                  /* 16px */
}

.sidebar-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-1);                  /* 4px */
}

.social-link {
  width: 36px;                       /* fixed icon touch target */
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-black);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.15s;
}
.social-link:hover {
  color: var(--c-taupe);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Sidebar CTA — full-width primary action, reuses btn tokens */
.sidebar-cta {
  font-family: var(--btn-font);
  font-size: var(--btn-size-sm);     /* 0.875rem */
  font-weight: var(--btn-weight);    /* 600 */
  letter-spacing: var(--btn-ls);     /* 0 */
  color: var(--btn-solid-text);      /* #FFFFFF */
  background: var(--btn-solid-bg);   /* #000000 */
  border: none;
  border-radius: var(--btn-radius);  /* 9999px pill */
  padding: 11px 0;                   /* vertical only — width: 100% handles horizontal */
  width: 100%;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: var(--btn-transition);
}
.sidebar-cta:hover {
  background: var(--btn-solid-bg-hover);    /* → taupe */
  color: var(--btn-solid-text);             /* keep label white */
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   5. CONTENT SECTIONS — shared structure for main panel
══════════════════════════════════════════════════════ */

.content-section {
  padding: 72px var(--sp-16);        /* 72px top/bottom, 64px sides */
  border-bottom: 1px solid var(--border);
  position: relative;
}
.content-section:last-child { border-bottom: none; }

/* Background variants — same palette as DS section.bg-* */
.content-section.bg-sand  { background: var(--c-sand); }
.content-section.bg-peach { background: var(--c-peach); }
.content-section.bg-taupe { background: var(--c-taupe); }
.content-section.bg-black { background: var(--c-black); }

/* Section eyebrow (replaces .section-label from components.css
   — slightly smaller and uses a shorter rule, kept distinct) */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);          /* 0.6rem */
  font-weight: 700;
  letter-spacing: 0.12em;           /* slightly wider than ls-widest for micro caps */
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--sp-2);                  /* 8px */
  margin-bottom: var(--sp-5);       /* 20px */
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-h {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--h-weight);      /* 500 */
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-snug);       /* 1.25 — compact heading */
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: var(--fs-base);         /* 1rem */
  font-weight: var(--p-weight);      /* 300 */
  line-height: var(--lh-loose);      /* 1.8 */
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);       /* 40px */
}

/* ══════════════════════════════════════════════════════
   6. OVERVIEW SECTION
══════════════════════════════════════════════════════ */

.overview-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Warm peach/sand radial wash — matches DS hero gradient style */
.overview-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(
    ellipse at 70% 30%,
    rgba(255,233,214,0.55) 0%,
    rgba(238,237,235,0.25) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.overview-inner {
  position: relative;
  z-index: 1;
  /* side padding inherited from .content-section — no extra inset */
}

/* Availability badge — pale-green pill with Taupe outline */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;                          /* between sp-1 and sp-2 */
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--c-taupe);
  background: #E8F5E9;               /* pale green wash */
  border: none;
  box-shadow: inset 0 0 0 1.5px var(--c-taupe); /* solid taupe outline */
  border-radius: var(--btn-radius);  /* pill shape */
  padding: var(--sp-1) var(--sp-3); /* 4px 12px */
  margin-bottom: var(--sp-5);       /* 20px */
  animation: fadeUp 0.6s ease both;
  width: fit-content;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-taupe);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Hero title */
.overview-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-tight);     /* 1.15 — large display */
  color: var(--text-primary);
  margin-bottom: var(--sp-4);       /* 16px */
  animation: fadeUp 0.6s 0.08s ease both;
}

/* Subtitle pill row — uses shared .hero-tag.accent from components.css */
.overview-subtitle-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);                  /* 8px */
  margin-bottom: var(--sp-6);       /* 24px */
  animation: fadeUp 0.6s 0.08s ease both;
}

/* Description body */
.overview-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;                 /* between fs-base and fs-xl */
  font-weight: var(--p-weight);      /* 300 */
  line-height: var(--lh-loose);      /* 1.8 */
  color: var(--text-secondary);
  max-width: var(--container-prose); /* 720px — DS prose width */
  margin-bottom: var(--sp-8);       /* 32px */
  animation: fadeUp 0.6s 0.14s ease both;
}

/* Stats row — 3 independent peach-tinted cards */
.overview-stats {
  display: flex;
  gap: var(--sp-3);                  /* 12px between cards */
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.2s ease both;
}

.stat { display: flex; flex-direction: column; gap: var(--sp-1); }

.overview-stats .stat {
  background: rgba(255, 233, 214, 0.4); /* --c-peach @ 0.4 opacity */
  border: none;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);  /* 16 20 */
}
.overview-stats .stat-label { color: var(--c-taupe); }

.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);          /* 1.6rem */
  font-weight: var(--h-weight);      /* 500 */
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);          /* 0.6rem */
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════
   7. MY APPS — app card grid
══════════════════════════════════════════════════════ */

.app-grid {
  display: grid;
  /* Responsive: as many columns as fit at >=340px each; the last row
     stretches its column(s) to 1fr. When only one column fits, each
     card takes the full width of the section. */
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-4);                  /* 16px */
}

.app-card {
  background: var(--c-white);
  border: none;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.app-card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Image-based visual — aspect ratio matches the source image */
.app-card-visual.has-image {
  height: auto;
  aspect-ratio: 9450 / 4200;        /* SkySavage main page preview */
  padding: 0;
}
.app-card-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6); /* 20 24 24 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;                  /* squared — icon PNGs carry their own corners */
  margin-bottom: var(--sp-3);       /* 12px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* Image-based icon — PNG fills the 48×48 frame */
.app-card-icon.has-image {
  background: transparent;
  border: none;
  padding: 0;
  overflow: hidden;
}
.app-card-icon.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Compact card modifier ─────────────────────────
   No preview image. Icon-placeholder sits left of the
   name + description. Actions row stays at the bottom
   (same pattern as SkySavage). Used for secondary /
   in-progress / placeholder entries beneath the
   full-size hero cards. */
.app-card-compact .app-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-5);   /* 20 24 20 */
}

.app-card-compact-top {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);                  /* 16px */
  align-items: start;
}

/* In compact cards the icon stays at the base 48×48 size —
   same footprint as SkySavage / A1 hero-card icons */
.app-card-compact .app-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;                  /* row layout — no bottom gap needed */
}

/* Placeholder icon — colored rounded square driven by --card-tint */
.app-card-icon-placeholder {
  background: var(--card-tint, var(--c-sand));
  border: none;
  flex-shrink: 0;
}

.app-card-compact .app-card-name {
  font-size: 1rem;
  margin-bottom: var(--sp-1);        /* 4px */
}
.app-card-compact .app-card-desc {
  font-size: 0.8rem;
  margin-bottom: 0;                  /* row owns the gap; .actions adds its own */
}
/* Metrics nested inside the text column align with title + description */
.app-card-compact-text .app-card-metrics {
  margin-top: var(--sp-3);           /* 12px below description */
  gap: var(--sp-4);                  /* 16px — tighter than full-card 24px */
  flex-wrap: wrap;
}
.app-card-compact .app-card-actions {
  padding-top: var(--sp-4);          /* 16px */
  margin-top: var(--sp-5);           /* 20px — separate from icon+text row */
}

.app-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);       /* 4px */
}

.app-card-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  line-height: 1.7;                  /* between lh-relaxed and lh-loose */
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;                 /* push to bottom of card body */
}

.app-card-metrics { display: flex; gap: var(--sp-6); }
/* When stats sit directly in body (not inside .app-card-meta), anchor
   the stats + actions pair to the card bottom together */
.app-card-body > .app-card-metrics {
  margin-top: auto;
  margin-bottom: var(--sp-4);
}

/* Actions row — platform icons + buttons at card bottom, right-aligned */
.app-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.app-card-platforms {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-right: var(--sp-1);
}
.app-card-platforms img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Outline button — Taupe variant (reusable) */
.btn-outline.btn-taupe {
  color: var(--c-taupe);
  box-shadow: inset 0 0 0 2px var(--c-taupe);
}
.btn-outline.btn-taupe:hover,
.btn-outline.btn-taupe.state-hover {
  background: var(--c-taupe);
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 2px var(--c-taupe);
}
.btn-outline.btn-taupe:active,
.btn-outline.btn-taupe.state-active {
  background: rgba(117,114,99,0.82);
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 2px rgba(117,114,99,0.82);
}
.btn-outline.btn-taupe:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c-taupe), var(--btn-focus-ring);
}

.app-metric-val {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--h-weight);
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

.app-metric-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* App Store / external link badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border-med);
  border-radius: var(--btn-radius);
  padding: var(--sp-1) var(--sp-3); /* 4px 12px */
  text-decoration: none;
  transition: background 0.15s;
}
.app-store-badge:hover { background: var(--c-peach); }

/* Caption below each app card — matches .app-metric-label, in taupe */
.app-caption {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-taupe);
  margin-top: var(--sp-3);          /* 12px */
  padding: 0 var(--sp-1);           /* 0 4px */
}

/* ══════════════════════════════════════════════════════
   8. WORK EXPERIENCE — timeline
══════════════════════════════════════════════════════ */

.timeline-exp {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 140px 1px 1fr;
  gap: 0 28px;                       /* 28px — between sp-6(24) and sp-8(32), intentional */
  padding-bottom: var(--sp-10);     /* 40px */
}
.exp-item:last-child { padding-bottom: 0; }

.exp-date {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-relaxed);
  padding-top: 2px;
  text-align: right;
}

.exp-date-current { color: var(--accent); }

/* Vertical connector line with dot */
.exp-line {
  width: 1px;
  background: var(--border-med);
  position: relative;
}

.exp-line::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sp-2);               /* 8px */
  height: var(--sp-2);
  border-radius: 50%;
  background: var(--c-white);       /* matches .content-section (white) bg so dot "punches through" */
  border: 2px solid var(--accent);
}

.exp-content { padding-top: 0; }

.exp-company {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.exp-role {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-normal);    /* 1.4 */
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);                  /* 4px — compact list */
  margin-bottom: var(--sp-3);
}

.exp-bullet {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  display: flex;
  gap: var(--sp-2);
}

.exp-bullet::before {
  content: '·';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

.exp-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 7px;
}

/* ══════════════════════════════════════════════════════
   9. DESIGN SYSTEMS — metrics + DS page links
══════════════════════════════════════════════════════ */

.ds-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);                  /* 24px */
  align-items: start;
}

/* 2×2 metrics grid */
.ds-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}

.ds-metric-cell {
  background: var(--c-white);
  padding: var(--sp-5);              /* 20px */
}
.ds-metric-cell.peach { background: var(--c-peach); }
.ds-metric-cell.sand  { background: var(--c-sand); }

.ds-metric-number {
  font-family: var(--font-display);
  font-size: 1.8rem;                 /* between h3 and h2 */
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  line-height: var(--lh-tighter);   /* 1.05 */
  margin-bottom: var(--sp-1);
}

.ds-metric-label {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: var(--lh-normal);
}

/* DS description text */
.ds-body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  line-height: var(--lh-loose);
  color: var(--text-secondary);
}

/* Section label above DS link list */
.ds-section-label {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);         /* 0.6rem */
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);       /* 12px */
}

/* DS page link rows */
.ds-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); /* 16 20 */
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: var(--sp-2);
}
.ds-link-card:hover { border-color: var(--border-strong); background: var(--c-sand); }

.ds-link-card-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);          /* 0.9rem — slightly smaller than base */
  font-weight: 500;
  color: var(--text-primary);
}

.ds-link-card-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--p-weight);
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════
   10. AI / ML — feature cards + callout
══════════════════════════════════════════════════════ */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);                  /* 12px */
  margin-bottom: var(--sp-4);       /* 16px */
}

.ai-card {
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);              /* 24px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);                  /* 12px */
}

.ai-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-faint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);          /* 0.9rem */
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  line-height: var(--lh-normal);
}

.ai-card-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.ai-card-result {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
}

.ai-card-result-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* "How I work with ML teams" callout */
.ai-callout {
  background: var(--c-sand);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) 28px;         /* 24px 28px — 28 between sp-6 and sp-8, intentional */
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);                  /* 16px */
}

.ai-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-faint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-callout-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.ai-callout-body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   11. BLOG — empty state
══════════════════════════════════════════════════════ */

.blog-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  border: 1.5px dashed var(--border-med);
  border-radius: var(--r-xl);
  text-align: center;
  padding: var(--sp-12);            /* 48px */
}

.blog-empty-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--h-weight);
  letter-spacing: var(--ls-normal);
  color: var(--text-tertiary);
}

.blog-empty-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════
   11b. DARK SECTION MODIFIERS (bg-black, bg-taupe)
   Applied automatically — no inline styles needed in HTML
══════════════════════════════════════════════════════ */

.content-section.bg-black .section-eyebrow,
.content-section.bg-taupe .section-eyebrow {
  color: rgba(255,255,255,0.50);
}
.content-section.bg-black .section-eyebrow::before,
.content-section.bg-taupe .section-eyebrow::before {
  background: rgba(255,255,255,0.50);
}
.content-section.bg-black .section-h,
.content-section.bg-taupe .section-h {
  color: var(--text-inverse);
}
.content-section.bg-black .section-sub {
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-8);        /* 32px — tighter spacing before contact links */
}
.content-section.bg-taupe .section-sub {
  color: rgba(255,255,255,0.70);
}
/* Lighten caption text against the taupe surface */
.content-section.bg-taupe .app-caption {
  color: rgba(255,255,255,0.65);
}

/* ══════════════════════════════════════════════════════
   11c. PROJECTS SECTION — placeholder card visuals + CTA
══════════════════════════════════════════════════════ */

/* Colored visual block used when a project card has no preview image yet.
   Driven by the inline custom property --card-tint on the visual itself. */
.project-card-visual {
  background: var(--card-tint, var(--c-sand));
  aspect-ratio: 9450 / 4200;         /* same proportions as image cards */
  height: auto;
  padding: 0;
}

.project-card-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-taupe);
  opacity: 0.7;
}

/* "View more projects" CTA at the bottom of the section */
.projects-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-10);          /* 40px above the button */
}

/* ══════════════════════════════════════════════════════
   12. CONTACT — dark section
══════════════════════════════════════════════════════ */

/* Secondary intro paragraph (project work) */
.contact-secondary {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--p-weight);
  line-height: var(--lh-loose);
  color: rgba(255,255,255,0.70);
  margin-bottom: var(--sp-12);       /* 48px */
  max-width: 720px;
}

/* Specialties block — six cards on a dark surface */
.contact-specialties {
  margin-bottom: var(--sp-12);       /* 48px */
}
.contact-specialty-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: var(--sp-5);        /* 20px */
}
.contact-specialty-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);                  /* 16px */
}
.contact-specialty-grid > li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  padding: var(--sp-5);              /* 20px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);                  /* 8px */
}
.contact-specialty-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  color: var(--text-inverse);
}
.contact-specialty-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--p-weight);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

/* Primary CTA row (Book a call + Email me) */
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);                  /* 12px */
  margin-bottom: var(--sp-6);        /* 24px */
}
/* Invert the button surfaces for the black background */
.contact-cta-row .btn-solid {
  background: var(--c-white);
  color: var(--c-black);
}
.contact-cta-row .btn-solid:hover {
  background: var(--c-taupe);
  color: var(--c-white);
}
.contact-cta-row .btn-outline {
  background: transparent;
  color: var(--c-white);
  box-shadow: inset 0 0 0 2px var(--c-white);
}
.contact-cta-row .btn-outline:hover {
  background: var(--c-white);
  color: var(--c-black);
  box-shadow: inset 0 0 0 2px var(--c-white);
}

/* Social icons — duplicated from sidebar, light variant */
.contact-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-1);                  /* 4px */
}
.contact-social-link {
  color: rgba(255,255,255,0.85);
}
.contact-social-link:hover {
  color: var(--c-white);
}

/* ══════════════════════════════════════════════════════
   13. RESPONSIVE OVERRIDES
══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Break column layout on tablet */
  html, body { height: auto; overflow: auto; }
  .layout    { flex-direction: column; height: auto; }
  .sidebar   {
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border-med);
  }
  .main { height: auto; overflow: visible; }

  /* Reflow content grids — .app-grid uses auto-fit, no override needed */
  .ai-grid    { grid-template-columns: 1fr; }
  .ds-feature { grid-template-columns: 1fr; }
  .contact-specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .content-section { padding: var(--sp-12) var(--sp-8); } /* 48 32 */
}

@media (max-width: 640px) {
  .content-section { padding: var(--sp-10) var(--sp-5); } /* 40 20 */
  .overview-title  { font-size: 2rem; }
  .contact-specialty-grid { grid-template-columns: 1fr; }

  /* Collapse timeline to single column */
  .exp-item  { grid-template-columns: 1fr; gap: 0; }
  .exp-date  { text-align: left; padding-bottom: var(--sp-1); }
  .exp-line  { display: none; }
}
