/* Self-hosted fonts (latin subset) — replaces Google Fonts for privacy + speed */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dmsans-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dmsans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dmsans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =========================================
   ZACHARY ISAACSON — Personal Portfolio
   Warm & personal aesthetic
   Fonts: Lora (serif display) + DM Sans (body)
   ========================================= */

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

:root {
  --cream:       #FAF7F2;
  --cream-dark:  #F2EDE4;
  --warm-tan:    #E8DDD0;
  --brown-mid:   #C4A882;
  --brown:       #8B6F47;
  --brown-deep:  #5C4A32;
  --ink:         #2C2016;
  --ink-light:   #6B5744;
  --rust:        #C4602B;
  --rust-light:  #E8896A;
  --sage:        #7D9E88;
  --white:       #FFFFFF;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow-soft: 0 4px 24px rgba(44, 32, 22, 0.08);
  --shadow-card: 0 8px 40px rgba(44, 32, 22, 0.12);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--ink-light); line-height: 1.75; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- FADE ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--brown-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 96, 43, 0.3);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--brown-deep);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid var(--warm-tan);
  transition: var(--transition);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--brown);
  background: var(--cream-dark);
  transform: translateY(-2px);
}

.btn-disabled {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--ink-light);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--warm-tan);
  cursor: default;
}

.link-arrow {
  color: var(--rust);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}
.link-arrow:hover { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--warm-tan);
  box-shadow: 0 2px 20px rgba(44, 32, 22, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-light);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--rust);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .nav-cta {
  background: var(--rust);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 500;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--brown-deep);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  /* Top-align with clearance for the fixed nav (z-index 100 sits above this overlay),
     and scroll if the links are taller than the screen. Was justify-content:center,
     which pushed the first link ("About") up under the header bar on shorter screens. */
  justify-content: flex-start;
  padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--rust); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #E8DDD0, #C4A882);
  top: -100px; left: -100px;
  animation: blobFloat1 12s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #E8896A, #C4602B);
  top: 20%; right: -80px;
  opacity: 0.2;
  animation: blobFloat2 15s ease-in-out infinite;
}
.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #7D9E88, #5C7A6A);
  bottom: -80px; left: 30%;
  opacity: 0.25;
  animation: blobFloat3 10s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.05); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 1rem;
  color: var(--brown);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-name {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-name em {
  font-style: italic;
  color: var(--rust);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ink-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-roles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-role {
  font-size: 0.95rem;
  color: var(--brown-deep);
  font-weight: 500;
}
.hero-role-dot {
  color: var(--brown);
  font-size: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--brown);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none; /* decorative — never intercept clicks on the CTA buttons above it */
}
/* On short viewports the vertically-centered hero content reaches the bottom-pinned
   scroll hint and the two overlap (seen at 1440x900). There isn't room for both, so
   drop the decorative hint when the viewport is too short to clear the buttons. */
@media (max-height: 940px) {
  .hero-scroll-hint { display: none; }
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--brown-mid);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding: 10rem 0 4rem;
  background: var(--cream);
  border-bottom: 1px solid var(--warm-tan);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-eyebrow {
  font-size: 0.85rem;
  color: var(--rust);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--ink-light);
  max-width: 520px;
  margin-top: 0.75rem;
}

/* ---------- PHOTO PLACEHOLDER & REAL PHOTO ---------- */
.photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--warm-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown-deep);
  border: 3px solid var(--cream-dark);
  flex-shrink: 0;
}
.photo-placeholder.large {
  width: 160px;
  height: 160px;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}
/* When you swap in a real photo, use this class on an <img> tag */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--warm-tan);
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: var(--shadow-soft);
}
.profile-photo-sm {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--cream-dark);
  flex-shrink: 0;
}

/* ---------- ABOUT STRIP (homepage) ---------- */
.strip-about {
  padding: 6rem 0;
  background: var(--cream-dark);
}
.strip-about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.strip-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.strip-text p {
  margin-bottom: 1rem;
}
.strip-text .link-arrow { margin-top: 0.5rem; }
/* Real headshot in the about strip, larger than the 90px .profile-photo-sm
   default so it holds its own next to the heading and paragraphs. The column
   must not shrink in the flex row, or the circle squishes into an oval. */
.strip-photo { flex-shrink: 0; }
.strip-photo img { width: 150px; height: 150px; object-fit: cover; }

/* ---------- PROJECTS (homepage) ---------- */
.section-projects {
  padding: 6rem 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header h2 { font-size: 2rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brown-mid);
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--cream-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.project-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.project-status.live {
  background: #EAF5ED;
  color: #2D7A3E;
}
.project-status.wip {
  background: #FEF3E2;
  color: #B45309;
}
.project-status.retired {
  background: #EDEAE4;
  color: #6B655C;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.project-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.project-link {
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-style: dashed;
}
.more-card-inner {
  text-align: center;
}
.more-plus {
  display: block;
  font-size: 2.5rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.more-card-inner p {
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ---------- BLOG (homepage) ---------- */
.section-blog {
  padding: 5rem 0;
  background: var(--cream-dark);
}
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--warm-tan);
  transition: var(--transition);
}
.blog-item:hover { color: var(--rust); }
.blog-date {
  font-size: 0.8rem;
  color: var(--brown);
  white-space: nowrap;
  min-width: 90px;
}
.blog-title {
  flex: 1;
  font-weight: 500;
  color: var(--ink);
}
.blog-arrow { color: var(--brown); transition: var(--transition); }
.blog-item:hover .blog-arrow { transform: translateX(4px); color: var(--rust); }

/* ---------- ABOUT PAGE ---------- */
.about-main { padding: 5rem 0 6rem; }
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6rem;
}
.about-meta { margin-top: 1rem; }
.meta-item {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--warm-tan);
}
.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.meta-value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
}

.about-body h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.about-body h2:first-child { margin-top: 0; }
.about-body p { margin-bottom: 1rem; font-size: 1.05rem; }
.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ---------- PROJECTS PAGE ---------- */
.projects-full { padding: 4rem 0 6rem; }
.project-full-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}
.project-full-card:hover { box-shadow: var(--shadow-card); }
.project-full-header { margin-bottom: 1.5rem; }
.project-full-header > div { margin-bottom: 0.75rem; }
.project-full-header h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.project-full-desc { font-size: 1rem; max-width: 600px; }

.project-full-details {
  display: flex;
  gap: 3rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.project-detail-group { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  font-weight: 500;
}
.detail-value { font-size: 0.9rem; color: var(--ink); }

.projects-more {
  margin-top: 3rem;
  text-align: center;
  padding: 3rem;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--warm-tan);
}
.projects-more p { margin-bottom: 0.75rem; font-size: 1rem; }

/* ---------- DEMO APPS ---------- */
.demo-apps-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-tan);
}
.demo-apps-header {
  margin-bottom: 2rem;
}
.demo-apps-header h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.demo-apps-header p { font-size: 0.95rem; max-width: 620px; }

.demo-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.demo-app-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.demo-app-card:hover { box-shadow: var(--shadow-soft); }
.demo-app-card.coming-soon { opacity: 0.7; }
.demo-app-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.demo-app-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.demo-app-card p { font-size: 0.88rem; }

/* ---------- BLOG PAGE ---------- */
.blog-main { padding: 4rem 0 6rem; }
.blog-empty {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.blog-empty-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.blog-empty h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.blog-empty p { margin-bottom: 1rem; }
.blog-empty .btn-primary { margin-top: 1.5rem; }

.blog-grid {
  display: grid;
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-card h3 { margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.95rem; margin-bottom: 1rem; }

/* ---------- FAMILY PAGE ---------- */
.family-hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.family-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.family-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.family-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.family-hero h1 { margin-bottom: 1rem; }
.family-subtitle {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.family-actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.family-access-note { font-size: 0.85rem; color: var(--brown); }

.family-about { padding: 5rem 0; }
.family-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.family-feature {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.family-feature h3 { margin-bottom: 0.5rem; }

.family-dev-note {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 700px;
}
.family-dev-note h2 { font-size: 1.8rem; margin-bottom: 1.25rem; }
.family-dev-note p { margin-bottom: 1rem; }
.family-dev-note .link-arrow { margin-top: 0.5rem; display: inline-block; }

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 32, 22, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(44, 32, 22, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: none; border: none;
  font-size: 1rem;
  color: var(--ink-light);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--warm-tan); }
.modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.modal h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.modal p { margin-bottom: 0.8rem; font-size: 0.95rem; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- CONTACT PAGE ---------- */
.contact-main { padding: 4rem 0 6rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 1.5rem; font-size: 1rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
}
.contact-method-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-method-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.contact-method-value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
  transition: var(--transition);
}
a.contact-method-value:hover { color: var(--rust); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1.5px solid var(--warm-tan);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--brown); }

.form-submit { align-self: flex-start; }
.form-note { font-size: 0.8rem; color: var(--brown); }
.form-success {
  display: none;
  background: #EAF5ED;
  color: #2D7A3E;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--warm-tan);
  padding: 3rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 600;
}
.footer-loc {
  font-size: 0.85rem;
  color: var(--brown);
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--warm-tan);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--rust-light); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--brown);
  text-align: right;
  justify-self: end;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .strip-about-inner { flex-direction: column; gap: 2rem; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .family-about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; justify-self: auto; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-full-details { flex-direction: column; gap: 1rem; }
  h1 { font-size: 2.5rem; }
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
}

/* ---------- NAV DROPDOWN ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-light);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  position: relative;
}
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--rust);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--ink); }
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.active::after { transform: scaleX(1); }

.nav-caret { font-size: 0.7rem; transition: var(--transition); }
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  /* See ::before below — the 14px offset above leaves an empty gap between the
     trigger and menu; the cursor would cross it and lose :hover, closing the
     menu before reaching it. The bridge keeps the hover area continuous. */
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-light);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
/* Transparent bridge spanning the 14px gap up to the trigger, so moving the
   cursor from "Projects" into the menu keeps .nav-dropdown:hover alive. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--cream);
  color: var(--rust);
}

/* Mobile menu sections */
.mobile-menu-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mobile-menu-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brown);
  font-weight: 500;
}
.mobile-menu-section a {
  font-size: 1.4rem !important;
}

/* ---------- HOME PROJECTS ---------- */
.home-projects-section { padding: 4rem 0 6rem; }
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.home-project-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.home-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brown-mid);
}
.home-project-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.placeholder-thumb {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-icon { font-size: 3rem; }
.home-project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-project-card:hover .home-project-thumb img { transform: scale(1.04); }
.home-project-info { padding: 1.5rem; }
.home-project-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.home-project-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.home-project-info p { font-size: 0.9rem; margin-bottom: 1rem; }

.home-project-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-style: dashed;
  cursor: default;
  min-height: 280px;
}
.home-project-add:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--warm-tan);
}
.add-project-inner { text-align: center; }

/* Project detail modal */
.modal-project {
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
}
.project-detail { }
.project-detail h2 { font-size: 1.8rem; margin: 0.5rem 0 1rem; }
.project-detail-desc { font-size: 1rem; margin-bottom: 1.5rem; }
.project-detail-facts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}
.project-detail-fact { display: flex; flex-direction: column; gap: 0.2rem; }
.project-photos { }
.photos-placeholder {
  padding: 2rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-light);
  border: 1px dashed var(--warm-tan);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.project-photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ---------- DEMOS PAGE ---------- */
.demos-section { padding: 4rem 0 6rem; }
.demos-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #FEF3E2;
  border: 1px solid #FBBF24;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.demos-notice-icon { font-size: 1.4rem; flex-shrink: 0; }
.demos-notice strong { display: block; color: var(--ink); margin-bottom: 0.25rem; font-size: 0.95rem; }
.demos-notice p { font-size: 0.88rem; margin: 0; }
.demo-apps-grid.full { grid-template-columns: repeat(3, 1fr); }

/* ---------- PETS PAGE ---------- */
.pets-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pets-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pets-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.pets-hero h1 em { color: var(--rust); font-style: italic; }
.pets-tagline {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-top: 1rem;
  line-height: 1.7;
}

.dogs-section { padding: 5rem 0; }
.dogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.dog-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dog-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  overflow: hidden;
}
.dog-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.dog-photo-placeholder {
  font-size: 5rem;
  opacity: 0.5;
}
.dog-name-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 100px;
}
.dog-name-badge.luke { background: var(--rust); }

.dog-info { padding: 1.75rem; }
.dog-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--warm-tan);
}
.dog-stat { display: flex; flex-direction: column; }
.dog-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.dog-stat-value { font-size: 0.88rem; color: var(--ink); }

.dog-bio p { font-size: 0.95rem; margin-bottom: 0.75rem; }

.dog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.dog-tag {
  font-size: 0.75rem;
  background: var(--cream-dark);
  color: var(--brown-deep);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}

.dogs-together {
  padding: 5rem 0;
  background: var(--cream-dark);
}
.dogs-together-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.dogs-together-inner h2 { font-size: 2rem; margin-bottom: 1.25rem; }
.dogs-together-inner p { font-size: 1rem; margin-bottom: 1rem; }

.together-photo-placeholder {
  margin-top: 2rem;
  padding: 3rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--warm-tan);
  font-size: 3rem;
  text-align: center;
}
.together-photo-placeholder p {
  font-size: 0.85rem;
  color: var(--brown);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.together-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  object-fit: cover;
  max-height: 400px;
}

/* ---------- PROJECTS-MORE ---------- */
.projects-more {
  margin-top: 3rem;
  text-align: center;
  padding: 3rem;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--warm-tan);
}
.projects-more p { margin-bottom: 0.75rem; font-size: 1rem; }

/* Responsive updates */
@media (max-width: 900px) {
  .dogs-grid { grid-template-columns: 1fr; }
  .home-projects-grid { grid-template-columns: 1fr; }
  .demo-apps-grid.full { grid-template-columns: 1fr; }
}

/* ---------- APP SHOWCASE (apps.html) ---------- */
.showcase-intro { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.showcase-card {
  background: var(--white);
  border: 1px solid var(--warm-tan);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.showcase-thumb {
  aspect-ratio: 16 / 10;
  background: var(--cream-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--warm-tan);
  cursor: zoom-in;
  position: relative;
}
.showcase-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: var(--transition);
}
.showcase-thumb:hover img { transform: scale(1.03); }
/* Dashed slot for screenshots still to be captured */
.shot-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1rem;
  color: var(--brown);
  background: repeating-linear-gradient(45deg, var(--cream-dark), var(--cream-dark) 12px, var(--cream) 12px, var(--cream) 24px);
}
.shot-placeholder .ph-icon { font-size: 1.7rem; opacity: 0.7; }
.shot-placeholder .ph-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brown-deep); }
.shot-placeholder .ph-note { font-size: 0.72rem; color: var(--ink-light); max-width: 88%; line-height: 1.5; }
.showcase-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.showcase-body h3 { font-size: 1.25rem; }
.showcase-body p { font-size: 0.9rem; margin: 0; }
.showcase-cta { margin-top: auto; padding-top: 0.6rem; }
.platform-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--cream-dark); color: var(--brown-deep);
}
.platform-tag.ios { background: #ECEEF3; color: #3A4256; }
.platform-tag.ai { background: #F0EAF6; color: #6B3FA0; }
.platform-tag.interactive { background: #EAF5ED; color: #2D7A3E; }
/* Lightbox for full screenshots */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(44, 32, 22, 0.82);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: min(1100px, 94vw); max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: 1fr; }
}
/* Gallery count badge on thumbnails */
.gallery-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(44, 32, 22, 0.78); color: #fff;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem; border-radius: 100px;
  display: flex; align-items: center; gap: 0.3rem;
  pointer-events: none;
}
/* Lightbox prev/next + counter */
.lightbox-overlay .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-overlay .lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }
.lb-counter {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; letter-spacing: 0.05em;
  background: rgba(44, 32, 22, 0.6); padding: 0.3rem 0.9rem; border-radius: 100px;
}
@media (max-width: 600px) { .lb-prev { left: 0; } .lb-next { right: 0; } }

/* ---------- ACCESSIBILITY ---------- */
/* Visible keyboard focus ring for keyboard users (not shown on mouse click) */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Respect users who prefer reduced motion: calm animations, show content immediately */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ---------- Case studies (index + generated article pages) ---------- */
.cs-section { padding: 3.5rem 0 5rem; }
.cs-body { max-width: 780px; margin: 0 auto; }
.cs-body .lede {
  font-size: 1.18rem; line-height: 1.7; color: var(--ink-light);
  margin-bottom: 2rem;
}
.cs-body h3 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ink);
  margin: 2.4rem 0 0.9rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--rust); display: inline-block;
}
.cs-body h4 { font-size: 1.1rem; color: var(--ink); margin: 1.8rem 0 0.6rem; }
.cs-body p { line-height: 1.75; color: var(--ink-light); margin-bottom: 1.1rem; }
.cs-body ul, .cs-body ol { margin: 0 0 1.3rem 1.3rem; }
.cs-body li { line-height: 1.7; color: var(--ink-light); margin-bottom: 0.55rem; }
.cs-body li::marker { color: var(--rust); }
.cs-body code {
  font-size: 0.88em; background: var(--cream-dark); padding: 0.1em 0.35em;
  border-radius: 5px; color: var(--brown-deep);
}
/* Some case studies quote source material (rulebook text, a script header) verbatim —
   set it off from the surrounding prose so a long quote doesn't read as narration. */
.cs-body blockquote {
  margin: 0 0 1.3rem; padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--rust); background: var(--cream-dark);
  border-radius: 0 8px 8px 0;
}
.cs-body blockquote > :last-child { margin-bottom: 0; }
.cs-body hr { border: none; border-top: 1px solid var(--warm-tan); margin: 2.2rem 0; }
.cs-figure { margin: 2rem 0; }
.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--warm-tan);
  background: var(--white);
}
.cs-body .about-cta { margin-top: 3rem; }
.cs-table-wrap { overflow-x: auto; margin: 0 0 1.3rem; }
.cs-table-wrap table { border-collapse: collapse; min-width: 480px; }
.cs-table-wrap th, .cs-table-wrap td {
  text-align: left; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--warm-tan);
  color: var(--ink-light); line-height: 1.5;
}
.cs-table-wrap th { color: var(--ink); font-weight: 600; }

.cs-theme { margin-bottom: 2.6rem; }
.cs-theme > h2 {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--ink);
  margin-bottom: 1.2rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rust); display: inline-block;
}
.cs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
a.cs-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-soft);
  text-decoration: none; transition: var(--transition);
}
a.cs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cs-card-icon { font-size: 1.5rem; line-height: 1; }
.cs-card h3 { font-size: 1.08rem; line-height: 1.4; color: var(--ink); margin: 0; }
.cs-card p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-light); margin: 0; flex: 1; }
.cs-card .cs-read { font-size: 0.9rem; font-weight: 600; color: var(--rust); }
