/* ================================================================
   Joané Burger — Portfolio
   General Sans · Merlot palette · Sierra-inspired layout
   WCAG 2.1 AA compliant on every surface
   ================================================================ */

/* General Sans from Fontshare (free, license: SIL Open Font) */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,201,300,301,400,401,500,501,600,601,700,701&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Palette — WCAG 2.1 AA verified on all combinations */
  --paper:       #FDFBF4;   /* main background */
  --paper-warm:  #FAF3D9;   /* subtle surface */
  --cream:       #F7E594;   /* Butter Cream — accent surface */
  --sky:         #BAD6FD;   /* Cloudy Sky — accent surface */
  --sky-soft:    #DCE9FB;   /* lighter sky surface */
  --ink:         #570301;   /* Merlot — primary text */
  --ink-soft:    #6E1715;   /* slightly lifted merlot */
  --muted:       #6E3E3B;   /* rosy brown — passes AA on all surfaces (5.85+) */
  --line:        rgba(87, 3, 1, 0.14);
  --line-strong: rgba(87, 3, 1, 0.28);

  /* Typography */
  --font: "General Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale — bigger and chunkier, Sierra-style */
  --fs-xs:    clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --fs-sm:    clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --fs-base:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --fs-lg:    clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-xl:    clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-2xl:   clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --fs-3xl:   clamp(2.5rem, 2rem + 2.4vw, 4rem);
  --fs-4xl:   clamp(3rem, 2.2rem + 3.5vw, 5.5rem);
  --fs-hero:  clamp(3.5rem, 2.5rem + 5vw, 7.5rem);

  /* Space */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6rem;
  --sp-8: 9rem;
  --sp-9: 12rem;

  /* Layout */
  --page-x: clamp(1.25rem, 4vw, 4rem);
  --max-w: 1400px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "cv01";
}
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 600;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-2xl); letter-spacing: -0.025em; }
h4 { font-size: var(--fs-xl); letter-spacing: -0.02em; line-height: 1.15; }
h5 { font-size: var(--fs-lg); font-weight: 500; line-height: 1.25; }
p  { line-height: 1.6; }
strong { font-weight: 600; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }

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

/* ---------- Top nav ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink);
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

/* Resume CTA-style link */
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-cta::after { display: none; }

/* ================================================================
   HOME PAGE
   ================================================================ */

/* Hero */
.hero {
  padding: var(--sp-7) 0 var(--sp-6);
  display: grid;
  gap: var(--sp-3);
  max-width: 1300px;
}
.hero .eyebrow {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hero h1 {
  margin-top: var(--sp-2);
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
}
.hero .lede {
  font-size: var(--fs-xl);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  max-width: 38ch;
  margin-top: var(--sp-3);
  letter-spacing: -0.01em;
}
.hero .meta-line {
  font-size: var(--fs-base);
  color: var(--muted);
  margin-top: var(--sp-2);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--fs-base);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary .arrow { display: inline-block; transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translate(2px, -2px); }

.location-line {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
}

/* Marquee (skill keywords replacing Sierra's logo strip) */
.marquee {
  margin: var(--sp-6) 0;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: var(--sp-5);
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  padding-right: var(--sp-5);
}
.marquee-track span {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.marquee-track span.dot {
  color: var(--muted);
  font-weight: 400;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Section eyebrow + heading pair */
.section-intro {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-6) 0 var(--sp-4);
  max-width: 880px;
}
.section-intro .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
.section-intro h2 { letter-spacing: -0.03em; }
.section-intro h2 em { font-style: italic; font-weight: 500; }
.section-intro .lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 62ch;
  margin-top: var(--sp-2);
  line-height: 1.5;
}

/* Design philosophies */
.philosophies {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0 var(--sp-7);
}
.phil-card {
  padding: var(--sp-4);
  background: var(--paper-warm);
  border-radius: 24px;
  border: 1px solid var(--line);
}
.phil-card .num {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.phil-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.phil-card p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Selected work — zigzag layout */
.work-list {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.work-card {
  display: grid;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
}
.work-card .preview {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card .preview.bg-sky { background: var(--sky); }
.work-card .preview.bg-cream { background: var(--cream); }
.work-card .preview.bg-warm { background: var(--paper-warm); }
.work-card .preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.work-card .preview .ph {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0.45;
  letter-spacing: 0.05em;
}
.work-card:hover .preview { transform: scale(0.99); }

.work-info { display: grid; gap: var(--sp-2); }
.work-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
.work-info .meta span + span::before {
  content: "·";
  margin-right: var(--sp-2);
  opacity: 0.6;
}
.work-info h3 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.025em;
  max-width: 22ch;
  transition: color 0.2s;
}
.work-info h3 em { font-style: italic; font-weight: 500; }
.work-card:hover h3 { opacity: 0.78; }
.work-info p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  max-width: 58ch;
}
.work-info .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: start;
  transition: gap 0.3s;
}
.work-card:hover .read-more { gap: 0.75rem; }

/* Mid-page philosophy banner */
.banner {
  padding: var(--sp-7) 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--sp-6) 0 var(--sp-7);
}
.banner h2 {
  font-size: var(--fs-3xl);
  max-width: 26ch;
  letter-spacing: -0.03em;
}
.banner h2 em { font-style: italic; font-weight: 500; }
.banner p {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 60ch;
  margin-top: var(--sp-3);
}

/* About on home */
.home-about {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5) 0 var(--sp-7);
}
.home-about .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
.home-about h2 {
  font-size: var(--fs-3xl);
  max-width: 16ch;
  margin-top: var(--sp-2);
}
.home-about h2 em { font-style: italic; font-weight: 500; }

.about-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 24px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  opacity: 0.55;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

.about-body { display: grid; gap: var(--sp-3); }
.about-body h4 {
  font-weight: 600;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}
.about-body p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
}
.about-stat {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--sky);
  border-radius: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  align-self: start;
}
.about-stat .num {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.about-stat .label {
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
  max-width: 22ch;
}

/* Footer */
.footer {
  padding: var(--sp-7) 0 var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-5);
}
.footer-cta {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.footer-cta h2 {
  font-size: var(--fs-4xl);
  max-width: 14ch;
  letter-spacing: -0.035em;
}
.footer-cta h2 em { font-style: italic; font-weight: 500; }
.footer-cta .email {
  font-size: var(--fs-2xl);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: opacity 0.2s;
}
.footer-cta .email:hover { opacity: 0.7; }
.footer-cta .reply {
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--muted);
  max-width: 38ch;
}

.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-meta .links { display: flex; gap: var(--sp-3); }
.footer-meta a { transition: color 0.2s; font-weight: 500; }
.footer-meta a:hover { color: var(--ink); }

/* ================================================================
   CASE STUDY PAGES
   ================================================================ */

.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0 var(--sp-6);
}

/* Sticky left nav */
.cs-nav {
  display: none;
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: var(--fs-sm);
  padding: var(--sp-3) 0;
}
.cs-nav .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-3);
  transition: color 0.2s, gap 0.3s;
}
.cs-nav .back:hover { color: var(--ink); gap: 0.7rem; }
.cs-nav .nav-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.cs-nav ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cs-nav a {
  display: block;
  font-weight: 500;
  color: var(--muted);
  padding-left: var(--sp-2);
  border-left: 2px solid var(--line);
  transition: color 0.2s, border-color 0.2s, padding-left 0.3s;
  line-height: 1.4;
}
.cs-nav a:hover {
  color: var(--ink);
  padding-left: calc(var(--sp-2) + 4px);
}
.cs-nav a.is-active {
  color: var(--ink);
  border-left-color: var(--ink);
}

.cs-main { min-width: 0; }

/* CS header */
.cs-header { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.cs-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.cs-header .meta span + span::before {
  content: "·";
  margin-right: var(--sp-2);
  opacity: 0.6;
}
.cs-header h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.035em;
  max-width: 22ch;
  line-height: 1.05;
}
.cs-header h1 em { font-style: italic; font-weight: 500; }
.cs-header .tagline {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  margin-top: var(--sp-3);
  max-width: 60ch;
  line-height: 1.5;
}

/* Stats — Sierra-style big percent display */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  margin: var(--sp-4) 0 var(--sp-5);
}
.stat .num {
  font-size: var(--fs-4xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 0.95;
  display: block;
}
.stat .num em { font-style: italic; font-weight: 500; }
.stat .label {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
  max-width: 26ch;
}

/* Project meta grid (Role / Deliverables / Team / Timeline) */
.proj-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-4) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.proj-meta h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}
.proj-meta ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.proj-meta li {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
}

/* Hero image inside CS */
.cs-hero-img {
  margin: 0 0 var(--sp-5);
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  opacity: 1;
  overflow: hidden;
}
.cs-hero-img.bg-sky { background: var(--sky); }
.cs-hero-img.bg-warm { background: var(--paper-warm); }
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero-img .ph { opacity: 0.5; }

/* CS sections */
.cs-section { padding: var(--sp-5) 0; }
.cs-section + .cs-section { border-top: 1px solid var(--line); }
.cs-section .eyebrow {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.cs-section h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  max-width: 26ch;
  margin-bottom: var(--sp-3);
}
.cs-section h2 em { font-style: italic; font-weight: 500; }
.cs-section h3 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.cs-section h4 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.cs-section p {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: var(--sp-2);
}
.cs-section p.lead {
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 400;
  max-width: 64ch;
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}
.cs-section ul {
  list-style: none;
  margin: var(--sp-2) 0;
  max-width: 68ch;
}
.cs-section ul li {
  position: relative;
  padding-left: var(--sp-3);
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cs-section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 600;
}

/* Pull quote / banner */
.pull {
  padding: var(--sp-4);
  background: var(--cream);
  border-radius: 20px;
  margin: var(--sp-4) 0;
  max-width: 72ch;
}
.pull p {
  font-size: var(--fs-xl);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  max-width: none;
}

/* Opener quote — used as a hook above the case-study title.
   Quieter than .pull so the H1 still leads the page visually. */
.opener-quote {
  display: block;
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 3px solid var(--ink);
  max-width: 60ch;
}
.opener-quote p {
  font-size: var(--fs-lg);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: none;
}
.opener-quote .attribution {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* User-quote cards (Sierra-style) */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin: var(--sp-4) 0;
}
.quote-card {
  padding: var(--sp-3);
  background: var(--paper-warm);
  border-radius: 18px;
  display: grid;
  gap: 0.6rem;
}
.quote-card .who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.quote-card .who .avatar {
  width: 36px; height: 36px;
  background: var(--sky);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
}
.quote-card .who-text { font-size: var(--fs-sm); }
.quote-card .who-text .name { font-weight: 600; }
.quote-card .who-text .role { color: var(--muted); }
.quote-card blockquote {
  font-size: var(--fs-base);
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Challenge blocks */
.challenge {
  padding: var(--sp-4);
  background: var(--sky);
  border-radius: 24px;
  margin: var(--sp-3) 0;
}
.challenge .num {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: var(--sp-1);
}
.challenge h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.02em;
}
.challenge p {
  font-size: var(--fs-base);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  max-width: none;
}

/* Solution blocks (Sierra "Solution 01:" pattern) */
.solution {
  padding: var(--sp-5) 0;
}
.solution .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.solution h3 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: var(--sp-3);
  max-width: 26ch;
}
.solution h3 em { font-style: italic; font-weight: 500; }
.solution .lead {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--ink);
  max-width: 64ch;
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}

.figure {
  margin: var(--sp-3) 0;
  background: var(--paper-warm);
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-sm);
  overflow: hidden;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.is-tall { aspect-ratio: 4 / 5; }
.figure.is-wide { aspect-ratio: 21 / 9; }
.figure.is-portrait { aspect-ratio: 3 / 4; max-width: 720px; margin-left: auto; margin-right: auto; }
.figure.is-square { aspect-ratio: 1 / 1; }
.figure.contain img { object-fit: contain; padding: var(--sp-3); }

/* Two-column figure grid (before/after side-by-side comparisons) */
.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
}
@media (min-width: 720px) {
  .figure-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .figure-grid.is-three { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-2); }
}
.figure-grid .ba-card {
  background: var(--paper-warm);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.figure-grid .ba-card .ba-label {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.figure-grid .ba-card.is-after .ba-label { color: var(--ink); background: var(--sky-soft); }
.figure-grid .ba-card .ba-image {
  flex: 1;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-grid .ba-card .ba-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.figure-grid .ba-card .ba-image.contain img {
  object-fit: contain;
  padding: var(--sp-2);
  background: var(--paper);
}
.figure-grid .ba-card .ba-caption {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Figure caption */
.figure-caption {
  margin-top: -0.5rem;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted);
  font-style: italic;
  max-width: 68ch;
}

/* Lessons / numbered insights */
.lessons {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-3) 0;
}
.lesson {
  padding: var(--sp-4);
  background: var(--paper-warm);
  border-radius: 20px;
}
.lesson h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.015em;
}
.lesson h4 .num {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.5rem;
}
.lesson p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Next project */
.cs-next {
  display: block;
  padding: var(--sp-5) 0;
  margin-top: var(--sp-5);
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.cs-next .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.cs-next h3 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.035em;
  max-width: 24ch;
  transition: opacity 0.2s;
  margin: 0;
}
.cs-next h3 em { font-style: italic; font-weight: 500; }
.cs-next:hover h3 { opacity: 0.78; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */

.about-hero {
  padding: var(--sp-7) 0 var(--sp-5);
  display: grid;
  gap: var(--sp-4);
  max-width: 1100px;
}
.about-hero .label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}
.about-hero h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.about-hero h1 em { font-style: italic; font-weight: 500; }
.about-hero .lede {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.45;
  margin-top: var(--sp-3);
  letter-spacing: -0.01em;
}

.about-section {
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}
.about-section h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-3);
  max-width: 18ch;
}
.about-section h2 em { font-style: italic; font-weight: 500; }
.about-section p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
  max-width: 64ch;
}

/* Experience timeline */
.xp-list { list-style: none; margin-top: var(--sp-3); }
.xp-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 2rem;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
}
.xp-item:last-child { border-bottom: 1px solid var(--line); }
.xp-item .years {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
}
.xp-item .role {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.xp-item .role em { font-style: italic; font-weight: 500; }
.xp-item .company {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Skills/tools two-col */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
}
.two-col h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  color: var(--muted);
}
.two-col ul { list-style: none; }
.two-col li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.two-col li:last-child { border-bottom: none; }

.offline-banner {
  padding: var(--sp-4);
  background: var(--cream);
  border-radius: 20px;
  margin: var(--sp-3) 0;
  max-width: 72ch;
}
.offline-banner p {
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: none;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (min-width: 720px) {
  .hero { padding: var(--sp-8) 0 var(--sp-7); }
  .philosophies { grid-template-columns: repeat(3, 1fr); }
  .work-card { grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
  .work-card.flip { direction: rtl; }
  .work-card.flip > * { direction: ltr; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .lessons { grid-template-columns: repeat(2, 1fr); }
  .footer-cta { grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: end; }
  .about-grid { grid-template-columns: 360px 1fr; gap: var(--sp-5); }
  .home-about { grid-template-columns: 1fr 1.4fr; gap: var(--sp-6); align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .xp-item { grid-template-columns: 140px 1.2fr 1.5fr; align-items: baseline; gap: var(--sp-4); }
}

@media (min-width: 1024px) {
  .cs-layout { grid-template-columns: 220px 1fr; gap: var(--sp-6); }
  .cs-nav { display: block; }
}

@media (max-width: 720px) {
  .nav-links { gap: var(--sp-2); font-size: var(--fs-xs); }
  .nav-links li:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
