/* ============================================
   Patricia Parkinson — Site Styles
   Matching: patriciaparkinson.com
   Color: Teal #235A52, warm grays, orange accent #f0703a
   Fonts: Recoleta (headings), Montserrat (UI/labels), Domine (body/testimonials)
   ============================================ */

/* --- Custom Fonts --- */
@font-face {
  font-family: 'Recoleta Regular';
  src: url('/fonts/Recoleta-Regular.woff2') format('woff2'),
       url('/fonts/Recoleta-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Colors — primary */
  --color-primary: #1a1a1a;
  --color-primary-light: #333333;
  --color-primary-mid: #444444;
  --color-primary-dark: #000000;
  /* Colors — brand green */
  --color-green: #235A52;
  /* Colors — accent (orange) */
  --color-accent: #f0703a;
  --color-accent-hover: #d9612e;
  /* Colors — backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f3;
  --color-bg-warm: #f7f6f3;
  --color-bg-sage: #f0f0f0;
  --color-bg-dark: #1a1a1a;
  /* Colors — text */
  --color-text: #282828;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  /* Colors — borders */
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  /* Fonts */
  --font-display: 'Recoleta Regular', Georgia, serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Domine', Georgia, serif;
  --font-accent: 'Domine', Georgia, serif;
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Type scale */
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 1rem;
  --text-md: 1.05rem;
  --text-lg: 1.4rem;
  --text-xl: 1.85rem;
  --text-2xl: 2.4rem;
  /* Layout */
  --max-width: 1400px;
  --content-narrow: 770px;
  --content-medium: 900px;
  --header-height: 70px;
  --site-gutter: 5vw;
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 4.5rem;
  --spacing-xl: 7rem;
  --spacing-2xl: 9rem;
  --grid-gap: 1.25rem;
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  /* Transitions */
  --transition: 0.3s ease;
}

html {
  font-size: 17.6px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-green);
  color: var(--color-text-white);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--color-text-white);
}

/* --- Focus Visible (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0;
}

h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.92rem; }

em { font-style: normal; }

p {
  margin-bottom: 1.4em;
}

blockquote {
  border-left: 2px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: normal;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-accent);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: var(--header-height);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  max-width: none;
  margin: 0;
  padding: 0 var(--site-gutter);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 34px;
  width: auto;
  transition: opacity 0.4s ease;
}

.logo-img-dark {
  display: none;
}

.site-header.scrolled .logo-img-white {
  display: none;
}

.site-header.scrolled .logo-img-dark {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.4s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--color-text-white);
}

.site-header.scrolled .main-nav a {
  color: var(--color-text);
}

.site-header.scrolled .main-nav a:hover {
  color: var(--color-text);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(247, 246, 243, 0.98);
  min-width: 160px;
  padding: 0.5rem 0;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.has-dropdown:hover .dropdown {
  display: flex;
}

.has-dropdown .dropdown li {
  width: 100%;
}

.has-dropdown .dropdown a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
}

.header-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-self: end;
}

.header-social a {
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  opacity: 0.85;
  transition: all 0.4s ease;
}

.header-social a:hover {
  opacity: 1;
  color: var(--color-text-white);
  border-color: var(--color-text-white);
}

.site-header.scrolled .header-social a {
  color: var(--color-text);
  border-color: rgba(0,0,0,0.15);
}

.site-header.scrolled .header-social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.site-header.scrolled .mobile-menu-toggle span {
  background: var(--color-text);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  transition: var(--transition);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  color: var(--color-text-white);
  padding: var(--spacing-2xl) var(--site-gutter) var(--spacing-xl);
  margin-top: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 20%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-medium);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: normal;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.85;
  opacity: 0.92;
}

/* About Hero — no overlay, just portrait */
.hero--about .hero-bg::after {
  background: transparent;
}

.hero--about .hero-content {
  display: flex;
}

/* Projects page off-white background */
.page-projects {
  background: var(--color-bg-alt);
}

/* Page Hero (smaller, for interior pages) */
.page-hero {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: var(--spacing-lg) var(--site-gutter);
  margin-top: var(--header-height);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

.page-hero p {
  font-size: var(--text-md);
  font-weight: 300;
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-hero p.archive-migration-note {
  font-size: 0.7rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: 0.5rem;
}

.page-hero .btn {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.page-hero .btn:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
  color: var(--color-primary);
}

/* --- Sections --- */
.section {
  padding: 5.5rem var(--site-gutter);
  scroll-margin-top: var(--header-height);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-sage {
  background: var(--color-bg-sage);
}

.section-warm {
  background: var(--color-bg-warm);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: normal;
  text-align: center;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
  text-transform: none;
}

.section-subtitle {
  text-align: center;
  max-width: var(--content-medium);
  margin: -0.5rem auto var(--spacing-md);
  color: var(--color-text-light);
  font-size: var(--text-base);
}

/* --- Book Grid (Library / Antilibrary) --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--spacing-md);
}
.book-card { text-align: center; }
a.book-card { text-decoration: none; color: inherit; display: block; }
a.book-card:hover { color: inherit; }
a.book-card:hover .book-cover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.book-author {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Homepage Hero Variant --- */
.hero--home {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  min-height: 80vh;
  padding-bottom: 8vh;
}

.hero--home .hero-content {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
}

.hero--home .hero-content h1,
.hero--home .hero-content .hero-label,
.hero--home .hero-content .btn {
  max-width: 1030px;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-bottom: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.8;
  max-width: 720px;
  opacity: 0.9;
}

.btn.btn-hero {
  margin-top: 2rem;
  background: #fff;
  border-color: #fff;
  color: var(--color-text);
}

.btn.btn-hero:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
  color: var(--color-text);
}

/* --- Homepage Intro Section --- */
.home-intro {
  text-align: left;
  padding-top: 5.5rem;
}

.home-intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.home-intro-greeting {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

.home-intro-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.8;
  max-width: none;
  margin: 0;
  color: var(--color-text);
}

.home-intro-lead em {
  color: var(--color-primary);
  font-style: normal;
}

.home-intro-lead strong em {
  color: var(--color-text);
  font-style: italic;
}

.home-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.home-pillar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.home-pillar:last-child {
  border-bottom: 1px solid var(--color-border);
}

.home-pillar h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-pillar p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.home-intro-note {
  max-width: none;
  margin: 0 auto;
  font-size: var(--text-md);
  line-height: 1.85;
  color: var(--color-text);
}

.home-intro-note em {
  color: var(--color-primary);
  font-style: normal;
}

.desktop-break {
  display: block;
}

@media (max-width: 768px) {
  .desktop-break {
    display: none;
  }
}

/* --- Skills Tags (Homepage) --- */
.skills-tags-section {
  margin-top: var(--spacing-lg);
}

.skills-tags-heading {
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-light);
  background: var(--color-bg);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.skill-tag:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* --- Garden Page --- */
.growth-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.growth-stage-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.growth-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.growth-stage-card h4 {
  margin-bottom: 0.5rem;
}

.growth-stage-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0;
}

.garden-cta-logo {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.garden-eye-logo {
  width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.garden-eye-logo:hover {
  opacity: 1;
}

.garden-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

/* --- Mission / Intro Text --- */
.intro-text {
  max-width: var(--content-medium);
  margin: 0 auto;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}

.intro-text em {
  color: var(--color-primary);
  font-style: normal;
}

/* --- About Intro (photo + text) --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-intro-text {
  font-size: 0.98rem;
  line-height: 1.85;
}

.about-intro-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-intro-centered {
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.about-portrait {
  display: block;
  margin: 0 auto;
  max-width: 840px;
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-intro-images {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.about-intro-images img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

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

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

/* --- Cards --- */
.card {
  background: var(--color-bg);
  padding: 7%;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.card-accent {
  background: var(--color-bg);
}

.card-bordered {
  background: var(--color-bg);
}

.card-transparent, .card-transparent:hover {
  background: transparent;
  border: 1px solid var(--color-border);
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  color: inherit;
}

/* --- Now Page Grid --- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .card-role {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.84rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- Roles Section (Home) --- */
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.role-card-external .external-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  color: var(--color-text-light);
  font-size: 0.8rem;
  opacity: 0.4;
  transition: opacity var(--transition), color var(--transition);
}

.role-card-external:hover .external-icon {
  opacity: 1;
  color: var(--color-primary);
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  color: var(--color-text);
}

.role-card-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-bg-sage);
}

.role-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.role-card:hover .role-card-thumb img {
  transform: scale(1.03);
}

.role-card-info {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.role-card-info h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.role-card-info .card-role {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.role-card-info p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 0;
}

.role-card-info .card-date {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: 0.5rem;
}

.roles-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.roles-track-wrapper {
  overflow: hidden;
  padding: 20px 0;
  margin: -20px 0;
}

.roles-track {
  display: flex;
  gap: var(--grid-gap);
  transition: transform 0.4s ease;
}

.roles-carousel .role-card {
  flex: 0 0 calc((100% - 4 * var(--grid-gap)) / 5);
  min-width: 0;
}

.roles-carousel-controls {
  position: static;
  height: 0;
  overflow: visible;
}

.roles-prev,
.roles-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  z-index: 2;
  box-shadow: none;
}

.roles-prev {
  left: calc(-1 * var(--site-gutter) + 8px);
}

.roles-next {
  right: calc(-1 * var(--site-gutter) + 8px);
}

.roles-prev:hover,
.roles-next:hover {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: white;
}

/* --- Featured Projects Carousel --- */
.featured-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-track-wrapper {
  overflow: hidden;
  padding: 20px 0;
  margin: -20px 0;
}

.featured-track {
  display: flex;
  gap: var(--grid-gap);
  transition: transform 0.4s ease;
}

.featured-carousel .project-card {
  flex: 0 0 calc((100% - 3 * var(--grid-gap)) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 0 0 0.8rem;
  overflow: hidden;
  aspect-ratio: auto;
}

.featured-carousel .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  color: var(--color-text);
}

.featured-carousel .project-card img {
  position: static;
  inset: auto;
}

.featured-carousel-controls {
  position: static;
  height: 0;
  overflow: visible;
}

.featured-prev,
.featured-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  z-index: 2;
  box-shadow: none;
}

.featured-prev {
  left: calc(-1 * var(--site-gutter) + 8px);
}

.featured-next {
  right: calc(-1 * var(--site-gutter) + 8px);
}

.featured-prev:hover,
.featured-next:hover {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: white;
}

/* --- Collaboration Methods --- */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.method-card {
  padding: 6%;
  text-align: center;
  background: rgb(247, 246, 243);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.method-card:hover {
  box-shadow: none;
}

.method-card h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.method-card p {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* --- Featured Collaborations (Portfolio List) --- */
.collab-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-md);
}

.collab-header h2 {
  font-size: 1.9rem;
  font-weight: normal;
}

.collab-header a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #235A52;
}

.collab-header a:hover {
  color: #1a4840;
}

.collab-list {
  list-style: none;
}

.collab-item {
  margin: 0 -1rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.collab-item:hover {
  background: var(--color-bg);
}

.collab-item a {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  padding: 1.1rem 1rem;
  color: var(--color-text);
}

.collab-item a:hover {
  color: var(--color-primary);
}

.collab-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.collab-role {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-light);
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.collab-year {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-light);
  width: 100px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* --- Page Anchors --- */
.page-anchors {
  font-family: var(--font-heading);
  text-align: center;
  padding: 1rem var(--site-gutter);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  line-height: 2.2;
  position: sticky;
  top: var(--header-height);
  z-index: 999;
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-anchors a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s;
  margin: 0 0.15rem;
  white-space: nowrap;
}

.page-anchors a:hover {
  color: var(--color-primary);
}

/* --- Career Highlights --- */
.highlights-subheading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #235A52;
  max-width: 960px;
  margin: 0 auto 1rem;
}

.highlights-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.highlight-card {
  background: var(--color-bg);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: none;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-text);
}

.clients-card {
  background: var(--color-bg);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.clients-card h4 {
  margin-bottom: 1rem;
}

.clients-list {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 2.4;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Accordion --- */
.accordion-group {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.accordion-title::before {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.2s;
  font-weight: 700;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  line-height: 1;
}

details[open] .accordion-title::before {
  content: "−";
}

.accordion-title::after {
  display: none;
}

.accordion-title::-webkit-details-marker {
  display: none;
}

.accordion-content {
  padding: 0 0 1.5rem 2.15rem;
  text-align: left;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skills-grid h4 {
  color: #235A52;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skills-grid ul {
  list-style: none;
  padding: 0;
}

.skills-grid li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  color: var(--color-text);
  line-height: 1.7;
}

.career-timeline {
  list-style: none;
  padding: 0;
}

.career-timeline li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  line-height: 1.7;
}

.career-timeline li:last-child {
  border-bottom: none;
}

.career-timeline li strong {
  font-style: normal;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.value-card {
  text-align: center;
  padding: 6%;
  background: rgb(247, 246, 243);
  border-radius: var(--radius-md);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.value-card p {
  font-size: 0.82rem;
  color: var(--color-text);
  font-style: normal;
  margin-bottom: 0;
}

.values-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.values-column {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.values-label {
  font-size: var(--text-md);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* --- Gifts --- */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.gift-card {
  background: var(--color-bg);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1.5rem;
  align-items: center;
}

.gift-card h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0;
}

.gift-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1.5rem;
}

.gift-section {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.gift-card .gift-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #235A52;
  flex-shrink: 0;
  width: 4.5rem;
}

.gift-section p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--color-text);
}

/* --- Testimonials Carousel --- */
.testimonials-section {
  overflow: hidden;
  padding-top: 2rem;
}

.testimonial-carousel {
  position: relative;
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 2rem 50px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 calc((100% - 60px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem;
  background: rgb(247, 246, 243);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.testimonial-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
}

.testimonial-content .testimonial-author {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  order: 1;
}

.testimonial-content .testimonial-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  order: 2;
}

.testimonial-content blockquote {
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.7;
  color: var(--color-text);
  order: 3;
}

.carousel-controls {
  position: static;
  height: 0;
  overflow: visible;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  z-index: 2;
  box-shadow: none;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: white;
}

.carousel-counter {
  display: none;
}

/* --- Quote Block --- */
.quote-block {
  text-align: center;
  padding: var(--spacing-lg) var(--site-gutter);
  background: var(--color-bg-warm);
  color: var(--color-text);
}

.quote-block blockquote {
  border: none;
  padding: 0;
  max-width: var(--content-medium);
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.85;
  font-weight: normal;
  font-style: normal;
}

.quote-block--compact {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.quote-block .quote-author {
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Archive Disclaimer --- */
.archive-disclaimer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.archive-disclaimer a {
  color: var(--color-primary);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5.5rem var(--site-gutter);
  background: var(--color-bg-warm);
}

.cta-section p {
  max-width: none;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* --- Buttons (hierarchy: primary → secondary → outline → text) --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: var(--color-primary);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.btn-text {
  background: transparent;
  border-color: transparent;
  color: #235A52;
  padding: 0.85rem 0;
  font-size: 0.95rem;
}

.btn-text:hover {
  color: #1a4840;
}

.btn-white {
  background: var(--color-text-white);
  color: var(--color-primary);
  border-color: var(--color-text-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-text-white);
}

/* --- Projects Archive Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4/3;
  background: var(--color-bg-sage);
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-text-white);
}

.project-card-overlay h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 0.25rem;
}

.project-card-overlay .project-card-meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Homepage featured projects — archive card style */
#homepage-projects-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

#homepage-projects-grid .project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0 0 0.8rem;
  overflow: hidden;
  aspect-ratio: auto;
}

#homepage-projects-grid .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  color: var(--color-text);
}

#homepage-projects-grid .project-card img {
  position: static;
  inset: auto;
}

/* No-image project cards */
.project-card.no-image {
  background: var(--color-bg-sage);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-card.no-image .project-card-overlay {
  background: none;
  color: var(--color-text);
}

.project-card.no-image .project-card-overlay h3 {
  color: var(--color-primary);
}

.project-card.no-image .project-card-overlay .project-card-meta {
  color: var(--color-text-light);
  opacity: 1;
}

/* --- Project Detail Page --- */
.project-detail {
  margin-top: var(--header-height);
}

.project-hero {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: var(--spacing-lg) var(--site-gutter);
  text-align: center;
}

.project-hero-thumb {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

.project-hero-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
}

.project-hero h1 {
  font-size: 2.2rem;
  font-weight: normal;
  letter-spacing: 0;
}

.project-tagline {
  font-size: 0.98rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.project-meta {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.project-meta span + span::before {
  content: ' · ';
}

.project-categories {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.project-cat-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.project-cat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-right: 0.15rem;
}

.project-stage {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.project-stage .stage-dots-wrap {
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-stage .stage-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

.detail-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 0.75rem;
}

.detail-badge svg {
  width: 10px;
  height: 10px;
}

.detail-badge {
  position: relative;
  cursor: default;
}

.detail-badge::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.detail-badge:hover::after {
  opacity: 1;
}

.project-stage .stage-dots-wrap::after {
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
}

.project-cat {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.project-cat:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.project-body {
  max-width: var(--content-medium);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  font-size: 0.95rem;
  line-height: 1.85;
}

.project-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.project-body ul, .project-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
}

.project-body li {
  margin-bottom: 0.5em;
  text-wrap: pretty;
}

.project-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.project-body a:hover {
  color: var(--color-accent-hover);
}

.project-nav {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--site-gutter);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg);
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

.project-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.project-nav a:hover {
  color: var(--color-primary);
}

.project-nav-prev,
.project-nav-next {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.project-nav-next {
  justify-content: flex-end;
  text-align: right;
}

.project-nav-arrow {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.project-nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-nav-center {
  flex-shrink: 0;
  margin: 0 0.15rem;
}

/* --- Project Videos --- */
.project-videos {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter) var(--spacing-lg);
}
.script-excerpt {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  margin: 2rem -2rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--color-text);
}
.script-excerpt h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.script-excerpt p {
  margin-bottom: 1rem;
}
.script-excerpt .script-speaker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  margin-top: 1.5rem;
}
.script-excerpt .script-stage-direction {
  text-align: left;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .script-excerpt {
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
  }
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.video-grid .video-embed {
  margin-bottom: 0;
}
.video-grid .video-embed video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-grid .video-embed video {
    max-height: 50vh;
  }
}
.video-embed {
  margin-bottom: var(--spacing-md);
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: block;
}
.video-embed video {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.video-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Project Gallery (Masonry) --- */
.project-gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter) var(--spacing-lg);
}

.project-body .project-gallery {
  width: calc(100vw - 2 * var(--site-gutter));
  max-width: var(--max-width);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 0 var(--spacing-lg);
}

.project-body .gallery-section-heading {
  width: calc(100vw - 2 * var(--site-gutter));
  max-width: var(--max-width);
  margin-left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-alt);
  padding: 0.75rem 1rem;
  margin-top: var(--spacing-lg);
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-body .gallery-section-heading + .project-gallery {
  padding-top: var(--spacing-md);
}
.project-body .gallery-section-heading + p {
  padding-top: var(--spacing-md);
}
.project-body .gallery-section-heading + .video-embed {
  padding-top: var(--spacing-md);
}
.project-body .video-embed {
  width: calc(100vw - 2 * var(--site-gutter));
  max-width: var(--max-width);
  margin-left: 50%;
  transform: translateX(-50%);
}
.project-body .social-embeds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: calc(100vw - 2 * var(--site-gutter));
  max-width: var(--max-width);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-lg) 0;
}
@media (max-width: 768px) {
  .project-body .social-embeds-row {
    grid-template-columns: 1fr;
  }
}

.gallery-rule {
  border: none;
  border-top: 1px solid var(--color-border, #ddd);
  margin: var(--spacing-md) 0 var(--spacing-md) 0;
}

.masonry-grid {
  columns: 3;
  column-gap: var(--grid-gap);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
  cursor: pointer;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.masonry-full {
  column-span: all;
  margin-bottom: var(--spacing-md);
}

/* --- Forest Defenders: Centered Brand --- */
.fd-brand-center {
  display: flex;
  justify-content: center;
  gap: var(--grid-gap);
  flex-wrap: wrap;
}

.fd-brand-center .masonry-item {
  max-width: 400px;
  overflow: visible;
}

/* --- Forest Defenders: Campaign Carousels (3-column row) --- */
.fd-campaign-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.fd-campaign-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 30px;
}

.fd-campaign-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.fd-campaign-card {
  flex: 0 0 100%;
  cursor: pointer;
  overflow: hidden;
}

.fd-campaign-card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.fd-campaign-card:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* --- Forest Defenders: Brand Guide 4-Column Full-Width Grid --- */
.fd-brand-guide-grid {
  columns: 4;
  column-gap: var(--grid-gap);
}

.project-body .project-gallery.fd-gallery-full {
  max-width: none;
}

/* --- Forest Defenders: Website Screenshots Crop --- */
.fd-website-crop .masonry-item {
  max-height: 300px;
  position: relative;
}

.fd-website-crop .masonry-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(255,255,255,0.9));
  pointer-events: none;
}

.fd-website-crop .masonry-item img {
  object-position: top;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* --- Library / Antilibrary --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.book-card {
  text-align: center;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--color-bg-sage);
  border-radius: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.book-author {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* --- Collaborate Page --- */
.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: var(--content-medium);
  margin: 0 auto;
}

.offerings-grid--two-col {
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-width);
}

.offering-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.75rem 0;
}

.offering-card {
  padding: 6%;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.offering-card h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offering-card p {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.7;
}

.offering-card .offering-examples {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.engagement-card {
  padding: 6%;
  border: 1px solid var(--color-border);
  border-radius: 0;
  text-align: center;
}

.engagement-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.engagement-card .engagement-term {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.engagement-card p {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* --- Contact Form --- */
.contact-form {
  max-width: var(--content-medium);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group > label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group .required {
  color: var(--color-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(35, 90, 82, 0.3);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.radio-group {
  display: flex;
  gap: 0;
  margin-top: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.7rem 1rem;
  margin: 0;
  background: var(--color-bg);
  transition: background var(--transition);
}

.checkbox-label:hover,
.radio-label:hover {
  background: rgb(247, 246, 243);
}

.checkbox-group .checkbox-label {
  border-right: 1px solid var(--color-border);
}

.checkbox-group .checkbox-label:nth-child(2n) {
  border-right: none;
}

.checkbox-group .checkbox-label:nth-child(n+3) {
  border-top: 1px solid var(--color-border);
}

.checkbox-group .checkbox-label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}

.radio-label {
  flex: 1;
  justify-content: center;
  border-right: 1px solid var(--color-border);
}

.radio-label:last-child {
  border-right: none;
}


.checkbox-label input,
.radio-label input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

/* --- Fascinations Grid --- */
.fascinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.fascination-card {
  position: relative;
  aspect-ratio: 3.5/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-sage);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
}

.fascination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.4s ease;
}

.fascination-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.fascination-card span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-white);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fascination-card:hover span {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Page Content (general markdown) --- */
.page-content {
  margin-top: var(--header-height);
}

.page-content .content-body {
  max-width: var(--content-medium);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg);
  padding: var(--spacing-md) var(--site-gutter);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-social {
  justify-self: end;
}

.footer-logo a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Archive Controls --- */
.archive-controls {
  padding: var(--spacing-md) var(--site-gutter);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: var(--header-height);
  z-index: 998;
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.controls-toggle {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.controls-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.controls-toggle-icon {
  transition: transform var(--transition);
}

.controls-toggle.collapsed .controls-toggle-icon {
  transform: rotate(-90deg);
}

.controls-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.controls-body {
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 1;
  margin-top: 1rem;
}

.controls-body.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

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

.controls-search {
  flex: 1;
}

.controls-search input {
  width: 100%;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.controls-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(35, 90, 82, 0.3);
}

.controls-search input::placeholder {
  color: var(--color-text-light);
  font-style: normal;
}

.controls-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.controls-sort select {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.controls-sort select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(35, 90, 82, 0.3);
}

.view-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
}

.view-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.view-btn + .view-btn {
  border-left: 1px solid var(--color-border);
}

.view-btn.active {
  background: var(--color-green);
  color: var(--color-text-white);
}

.view-btn:hover:not(.active) {
  color: var(--color-green);
}

.filter-group {
  margin-bottom: 0.6rem;
}

.filter-group-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-right: 0.75rem;
  cursor: default;
}

.filter-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.active-filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.active-filter-tag {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  background: var(--color-bg-sage);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}

.active-filter-tag:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.active-filter-tag .remove-x {
  font-size: 0.75rem;
  line-height: 1;
}

.active-filters-clear {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.active-filters-clear:hover {
  color: var(--color-primary);
}

.controls-divider {
  width: 1px;
  height: 1.2rem;
  background: var(--color-border);
  flex-shrink: 0;
}

.results-count {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

/* Archive Dots Legend (inline in controls header) */
.dots-legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.dots-legend-heading {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.dots-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  cursor: default;
}

.dots-legend-item svg {
  flex-shrink: 0;
}

/* CSS tooltips for maturity legend */
.dots-legend-item::after {
  content: attr(title);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.dots-legend-item:hover::after {
  opacity: 1;
}

.dots-legend-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

/* Stage dots (inline) */
.stage-dots {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Stage dots tooltip wrapper */
.stage-dots-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.stage-dots-wrap::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.stage-dots-wrap:hover::after {
  opacity: 1;
}

/* Favorite heart indicator */
.favorite-heart {
  color: var(--color-primary);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--color-border);
  padding-left: 0.4rem;
  margin-left: 0.4rem;
  position: relative;
  cursor: default;
}

.favorite-heart::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.favorite-heart:hover::after {
  opacity: 1;
}

/* Favorites toggle in controls header */
.favorites-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
}

.favorites-toggle:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.favorites-toggle.active {
  background: var(--color-green);
  color: var(--color-text-white);
  border-color: var(--color-green);
}

.favorites-toggle .heart-icon {
  font-size: 0.7rem;
  color: var(--color-green);
}

.favorites-toggle.active .heart-icon {
  color: var(--color-text-white);
}

/* Lead bolt indicator */
.lead-bolt {
  color: var(--color-text);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--color-border);
  padding-left: 0.4rem;
  margin-left: 0.4rem;
  position: relative;
  cursor: default;
}

.lead-bolt::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.lead-bolt:hover::after {
  opacity: 1;
}

/* When bolt and heart appear together, tight pair */
.lead-bolt + .favorite-heart {
  border-left: none;
  margin-left: 0.15rem;
  padding-left: 0;
}

/* Lead toggle in controls header */
.lead-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
}

.lead-toggle:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.lead-toggle.active {
  background: var(--color-green);
  color: var(--color-text-white);
  border-color: var(--color-green);
}

.lead-toggle .lead-toggle-icon {
  font-size: 0.7rem;
  color: var(--color-green);
}

.lead-toggle.active .lead-toggle-icon {
  color: var(--color-text-white);
}

/* Archive Grid Cards */
#projects-grid-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

#projects-grid-section .project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: none;
  padding: 0 0 0.8rem;
  overflow: visible;
  aspect-ratio: auto;
}

#projects-grid-section .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  color: var(--color-text);
}

#projects-grid-section .projects-grid:has(.project-card:hover) .project-card {
  opacity: 0.5;
}

#projects-grid-section .projects-grid:has(.project-card:hover) .project-card:hover {
  opacity: 1;
}

.project-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-bg-sage);
}

.project-card-thumb img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

#projects-grid-section .project-card:hover .project-card-thumb img {
  transform: scale(1.03);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-sage);
}

.project-card-info {
  padding: 0.8rem 1.1rem 0;
  width: 100%;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.project-card-role {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.4rem;
}

.project-card-desc {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: block;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.project-card-year {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

/* List view description */
.collab-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* List view dots (far right) */
.collab-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  width: 60px;
  min-width: 60px;
}

.collab-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  width: 40px;
  min-width: 40px;
  gap: 0.25rem;
}

.collab-icons .lead-bolt,
.collab-icons .favorite-heart {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

/* Timeline View */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: calc(50% - 2rem);
  margin-bottom: 1.5rem;
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
  transform: rotate(45deg);
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: calc(-2rem - 5px);
}

.timeline-item:nth-child(even)::after {
  left: calc(-2rem - 5px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  height: 1px;
  width: calc(2rem - 5px);
  background: var(--color-border-light);
}

.timeline-item:nth-child(odd)::before {
  right: calc(-2rem + 5px);
}

.timeline-item:nth-child(even)::before {
  left: calc(-2rem + 5px);
}

.timeline-marker {
  margin-bottom: 0.8rem;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  line-height: 1;
  display: inline-block;
}

.timeline-year-marker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--color-primary);
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  position: relative;
  clear: both;
}

.timeline-year-marker:first-child {
  padding-top: 0;
}

.timeline-content {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
  overflow: hidden;
}

.timeline-item:nth-child(odd) .timeline-content {
  flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-content {
  flex-direction: row-reverse;
}

.timeline-content:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  color: var(--color-text);
}

.timeline-thumb {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-sage);
  align-self: center;
}

.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-text {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.2rem;
}

.timeline-footer {
  margin-top: 0.4rem;
}

.timeline-item:nth-child(odd) .timeline-footer {
  text-align: right;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Filtered out items */
.project-item.filtered-out {
  display: none !important;
}

.no-results {
  text-align: center;
  padding: var(--spacing-lg) 0;
  color: var(--color-text-light);
  font-style: normal;
}

/* --- Personal Gallery (About page) --- */
.personal-gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter) var(--spacing-lg);
}

.personal-gallery .masonry-grid {
  columns: 4;
  column-gap: var(--grid-gap);
}

.personal-gallery .masonry-item {
  cursor: pointer;
}

.personal-gallery .masonry-item img {
  border-radius: 0;
}

/* --- Scroll Entrance Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .home-pillars {
    gap: 1.5rem;
  }

  .home-pillar {
    padding: 2rem 1.5rem;
  }

  .grid-4, .methods-grid, .growth-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles-carousel .role-card {
    flex: 0 0 calc((100% - 2 * var(--grid-gap)) / 3);
  }

  .featured-carousel .project-card {
    flex: 0 0 calc((100% - 1 * var(--grid-gap)) / 2);
  }

  .fascinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personal-gallery .masonry-grid {
    columns: 3;
  }

  .book-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-slide {
    flex: 0 0 calc((100% - 30px) / 2);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #projects-grid-section .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #homepage-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dots-legend {
    gap: 1rem;
  }

  .masonry-grid {
    columns: 2;
  }

  .fd-brand-guide-grid {
    columns: 3;
  }

  .fd-campaign-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .fd-campaign-carousel {
    padding: 0 40px;
  }

  .project-nav-title {
    display: none;
  }
}

/* =============================================
   Review Dashboard
   ============================================= */

.page-review {
  background: var(--color-bg-alt);
}

.review-controls {
  padding: var(--spacing-sm) var(--site-gutter);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: var(--header-height);
  z-index: 998;
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-controls-header {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-filter-group {
  display: flex;
  gap: 0.35rem;
}

.review-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.review-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.review-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}

.review-controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#review-search {
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
  width: 200px;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.72rem;
}

.review-th {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}

.review-th.sortable {
  cursor: pointer;
}

.review-th.sortable:hover {
  color: var(--color-primary);
}

.review-th.active-sort {
  color: var(--color-primary);
}

.review-row {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.review-row:hover {
  background: var(--color-bg);
}

.review-row[data-tier="ready"] {
  border-left: 3px solid #4caf50;
}

.review-row[data-tier="needs-work"] {
  border-left: 3px solid #ff9800;
}

.review-row[data-tier="bare-bones"] {
  border-left: 3px solid #f44336;
}

.review-row td {
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
}

.review-score-num {
  font-weight: 600;
  font-size: 0.7rem;
  width: 40px;
  text-align: center;
  color: var(--color-text);
}

.review-score-bar-cell {
  width: 100px;
}

.review-score-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.review-score-fill {
  height: 100%;
  border-radius: 3px;
}

.review-score-ready { background: #4caf50; }
.review-score-needs-work { background: #ff9800; }
.review-score-bare-bones { background: #f44336; }

.review-ready .review-score-num { color: #4caf50; }
.review-ready .review-title { color: #4caf50; }
.review-ready-check {
  color: #4caf50;
  font-weight: 700;
  font-size: 0.7rem;
  margin-right: 0.25rem;
}
.review-waiting-badge {
  display: inline-block;
  background: #e0e0e0;
  color: #888;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.review-title-cell {
  max-width: 280px;
}

.review-title {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-primary);
}

.review-lead {
  font-size: 0.6rem;
  margin-left: 0.25rem;
}

.review-fav {
  color: var(--color-primary);
  font-size: 0.6rem;
  margin-left: 0.15rem;
}

.review-stage-cell {
  width: 30px;
  text-align: center;
}

.review-stage-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.review-stage-concept { background: #bbb; }
.review-stage-design { background: #7fb39a; }
.review-stage-build { background: #235A52; }
.review-stage-operate { background: #1b4332; }

.review-role {
  color: var(--color-text-light);
  font-size: 0.7rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-year {
  font-size: 0.7rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.review-missing {
  max-width: 220px;
}

.missing-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.3rem;
  margin: 0.08rem;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  border-radius: 2px;
}

.review-view-link {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-decoration: none;
}

.review-view-link:hover {
  text-decoration: underline;
}

.review-unpublished {
  opacity: 0.5;
}

.review-unpublished .review-title {
  text-decoration: line-through;
}

.review-hidden-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f44336;
}

.review-item.filtered-out {
  display: none !important;
}

@media (max-width: 768px) {
  .review-controls-header {
    flex-direction: column;
    align-items: stretch;
  }
  .review-table {
    font-size: 0.65rem;
  }
  .review-score-bar-cell,
  .review-role,
  .review-missing {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .hero--home {
    min-height: 88vh;
  }

  .hero--home .hero-content {
    max-width: 100%;
  }

  .hero--home h1 {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
  }

  .hero-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .home-intro-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-intro-lead {
    font-size: 0.92rem;
  }

  .cta-section p {
    font-size: 0.92rem;
  }

  .home-pillar h3 {
    font-size: 0.9rem;
  }

  .home-pillar p {
    font-size: 0.88rem;
  }

  :root {
    --header-height: 65px;
    --site-gutter: 6vw;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem 2rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.82rem;
  }

  .has-dropdown .dropdown {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
  }

  .has-dropdown:hover .dropdown {
    display: flex;
  }

  .header-social {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 0.88rem;
  }

  .grid-2, .grid-3, .now-grid, .projects-grid, .offerings-grid, .engagement-grid {
    grid-template-columns: 1fr;
  }

  .roles-carousel .role-card {
    flex: 0 0 100%;
  }

  .featured-carousel .project-card {
    flex: 0 0 100%;
  }

  .skill-tag {
    font-size: 0.55rem;
    padding: 0.3rem 0.65rem;
  }

  .clients-list {
    font-size: 0.72rem;
    line-height: 2.2;
  }

  .footer-nav a {
    font-size: 0.7rem;
  }

  .dots-legend {
    display: none;
  }

  /* Hide favorites and lead toggles on mobile */
  .favorites-toggle,
  .lead-toggle {
    display: none;
  }

  /* Hide favorite hearts and lead bolts on cards/list on mobile */
  .favorite-heart,
  .lead-bolt,
  .collab-icons {
    display: none;
  }

  .controls-header {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .timeline::before {
    left: 1rem;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: calc(100% - 3rem);
    margin-left: 3rem;
    margin-right: 0;
    text-align: left;
  }

  .timeline-item::after,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: calc(-2rem - 5px);
    right: auto;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: calc(-2rem + 5px);
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-footer {
    text-align: left;
  }

  .filter-group-label {
    cursor: pointer;
  }

  .filter-chips {
    display: none;
  }

  .filter-chips.expanded {
    display: inline-flex;
  }

  .archive-controls {
    position: static;
    box-shadow: none;
  }

  .grid-4, .methods-grid, .growth-stages {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    flex: 0 0 100%;
  }

  .testimonial-carousel {
    padding: 0 40px;
  }

  .testimonial-content blockquote {
    font-size: 0.85rem;
  }

  .fascinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid, .values-two-col {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .gift-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gift-card-body {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
  }

  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  /* About page: page-anchors horizontal scroll */
  .page-anchors {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    text-align: left;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-anchors::-webkit-scrollbar {
    display: none;
  }

  /* About page: reduce collaborators/partners text */
  .clients-list {
    font-size: 0.72rem;
    line-height: 2.2;
  }

  /* About page: reduce space below collaborators card before current roles */
  .clients-card {
    padding: 1.5rem 1.5rem;
    margin-bottom: 0;
  }

  #career .section-inner {
    padding-bottom: 0;
  }

  /* About page: accordion icons to right side */
  .accordion-title {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .accordion-title::before {
    flex-shrink: 0;
  }

  /* About page: accordion content left-aligned to divider edge */
  .accordion-content {
    padding-left: 0;
  }

  /* About page: enlarge gallery width to match text/card edges */
  .personal-gallery {
    max-width: none;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
  }

  .personal-gallery .masonry-grid {
    columns: 2;
  }

  /* Mobile nav: fix text visibility on dark background */
  .main-nav a,
  .site-header.scrolled .main-nav a {
    color: var(--color-text-white);
    opacity: 1;
  }

  .main-nav a:hover,
  .site-header.scrolled .main-nav a:hover {
    color: var(--color-text-white);
    opacity: 0.7;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  /* Projects page: controls layout on mobile */
  .controls-top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .controls-search {
    flex: 1 1 100%;
    order: 1;
  }

  .controls-sort {
    flex: 1;
    order: 2;
  }

  .controls-actions {
    order: 3;
    margin-left: auto;
  }

  .controls-header {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  /* Projects page: gallery view 2 columns on mobile */
  #projects-grid-section .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
  }

  /* Projects page: list view mobile redesign — left-aligned stacked layout */
  #projects-list-section {
    overflow-x: hidden;
  }

  .collab-list {
    overflow-x: hidden;
  }

  .collab-item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.9rem 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .collab-item {
    margin: 0;
    overflow: hidden;
  }

  .collab-name {
    width: auto;
    min-width: auto;
    max-width: none;
    white-space: normal;
    font-size: 0.82rem;
  }

  .collab-role {
    width: auto;
    min-width: auto;
    max-width: none;
    white-space: normal;
    font-size: 0.7rem;
  }

  /* Show excerpts in list view on mobile */
  .collab-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.6;
    width: 100%;
  }

  .collab-year {
    text-align: left;
    width: auto;
    min-width: auto;
    font-size: 0.68rem;
    margin-top: 0.15rem;
  }

  /* Show maturity stage dots in list view on mobile */
  .collab-dots {
    display: flex;
    width: auto;
    min-width: auto;
  }

  /* Projects page: timeline view — stack thumbnail on top */
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    flex-direction: column;
  }

  .timeline-thumb {
    width: 100%;
    height: 160px;
    align-self: stretch;
  }

  .timeline-text {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 0.82rem;
  }

  .timeline-desc {
    font-size: 0.82rem;
  }

  .collab-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .quote-block blockquote {
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-social {
    justify-self: center;
  }

  /* === HOMEPAGE === */

  /* 1. Reduce padding above 'my life and work' section to match space below hero button */
  .home-intro {
    padding-top: 3rem;
  }

  /* 2. Stretch 'spaces, stories, and systems' pillars to container edges (flush with divider lines) */
  .home-pillars {
    margin-left: calc(-1 * var(--site-gutter));
    margin-right: calc(-1 * var(--site-gutter));
  }

  .home-pillar {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
  }

  /* 3. Consistent section padding on homepage (optical balance) */
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .cta-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* === FOOTER === */

  /* 4. Wrap footer navigation instead of horizontal scroll */
  .footer-nav {
    overflow-x: visible;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }

  /* Hide Library link from footer on mobile (4th link) */
  .footer-nav a[href="/library/"] {
    display: none;
  }

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

  /* 5. Subnav sticky on mobile — works via body overflow:clip fix */

  /* 6. About page section spacing consistency */
  .page-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* 7. Expand about page gallery — reduce side padding by half to align with logo/nav edges */
  .personal-gallery {
    padding-left: calc(var(--site-gutter) / 2);
    padding-right: calc(var(--site-gutter) / 2);
    padding-bottom: 3.5rem;
  }

  /* === PROJECTS PAGE === */

  /* 8. Redesign filters/search toggle for mobile — enlarge and brand green active state */
  .controls-toggle {
    font-size: 0.72rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
  }

  .controls-toggle.active,
  .controls-toggle:not(.collapsed) {
    background: var(--color-green);
    color: var(--color-text-white);
    border-color: var(--color-green);
  }

  /* Hide controls dividers on mobile */
  .controls-divider {
    display: none;
  }

  /* Controls header: filters button + view toggles on same row, count below */
  .controls-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .controls-header-right {
    flex-wrap: nowrap;
    gap: 0;
    white-space: normal;
    align-items: center;
  }

  /* View toggles same height as filters button */
  .view-btn {
    min-height: 36px;
    min-width: 36px;
  }

  /* Results count: left-aligned on its own row below */
  .results-count {
    width: 100%;
    text-align: left;
    order: 10;
    margin-top: 0.35rem;
    font-size: 0.62rem;
  }

  /* Increase search input font size on mobile */
  .controls-search input {
    font-size: 0.78rem;
    padding: 0.65rem 1rem;
  }

  /* 9. Improve accordion/filter group styling on mobile — more obvious and easy to click */
  .filter-group-label {
    font-size: 0.72rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }

  .filter-group-label::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-light);
  }

  .filter-group-label.expanded::after {
    content: '−';
  }

  .filter-chips.expanded {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }

  /* Reduce filter chip tag sizes to match homepage skill-tag size */
  .filter-chip {
    font-size: 0.55rem;
    min-height: 32px;
    padding: 0.3rem 0.65rem;
  }

  /* 10. List view: white cards, remove dividers, reposition count */
  .collab-item {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  .collab-item a {
    padding: 1rem;
  }

  .collab-item:hover {
    background: var(--color-bg);
  }

  /* 11. Card view: 2 columns that both fit cleanly in view — reduce card sizing */
  #projects-grid-section .projects-grid {
    gap: 12px;
  }

  #projects-grid-section .project-card {
    padding-bottom: 0.5rem;
  }

  .project-card-info {
    padding: 0.5rem 0.75rem 0;
  }

  .project-card-title {
    font-size: 0.72rem;
  }

  .project-card-role {
    font-size: 0.58rem;
    margin-bottom: 0.2rem;
  }

  /* Hide excerpts from cards on mobile */
  .project-card-desc {
    display: none;
  }

  .project-card-year {
    font-size: 0.55rem;
  }

  .project-card-footer {
    gap: 0.4rem;
  }

  /* === INDIVIDUAL PROJECT PAGE === */

  /* 12. Center tags/labels, label above tags */
  .project-categories {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project-cat-group {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .project-cat-label {
    display: block;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.15rem;
  }

  .project-cat-group .project-cat {
    /* let tags wrap centered below label */
  }

  /* Update default paragraph text to match about page intro style */
  .project-body {
    font-size: 0.88rem;
    line-height: 1.9;
    padding: var(--spacing-md) var(--site-gutter);
  }

  /* 13. Widen script sample containers to match card/section width */
  .script-excerpt {
    margin-left: calc(-1 * var(--site-gutter));
    margin-right: calc(-1 * var(--site-gutter));
    padding: 1.5rem var(--site-gutter);
    border-radius: 0;
  }

  /* === CONNECT PAGE === */

  /* 14. Reduce 'I've seen extraordinary things' text container width by 15% */
  .page-hero p {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero .archive-migration-note {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .checkbox-group .checkbox-label:nth-child(2n) {
    border-right: none;
  }

  .checkbox-group .checkbox-label {
    border-right: none;
  }

  .testimonial-slide {
    flex: 0 0 100%;
  }

  .testimonial-carousel {
    padding: 0 35px;
  }

  .roles-carousel .role-card {
    flex: 0 0 100%;
  }

  .featured-carousel .project-card {
    flex: 0 0 100%;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
  }

  .fascinations-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero--home h1 {
    font-size: 2.1rem;
  }

  .hero-label {
    font-size: 0.55rem;
  }

  .masonry-grid {
    columns: 1;
  }

  .fd-brand-guide-grid {
    columns: 2;
  }

  .fd-campaign-card {
    flex: 0 0 100%;
  }

  .fd-campaign-carousel {
    padding: 0 20px;
  }

  .fd-website-crop .masonry-item {
    max-height: 200px;
  }

  .personal-gallery .masonry-grid {
    columns: 2;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .lightbox-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Touch Target Accessibility --- */
@media (max-width: 768px) {
  .filter-chip {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
  }

  .view-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-prev,
  .carousel-next {
    width: 44px;
    height: 44px;
  }

  .mobile-menu-toggle {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  /* iOS input zoom fix — inputs < 16px auto-zoom on focus */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }
}

/* --- Touch device hover improvements --- */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  #homepage-projects-grid .project-card:hover {
    transform: none;
  }

  #projects-grid-section .project-card:hover {
    transform: none;
  }

  .project-card:hover img {
    transform: none;
  }

  #projects-grid-section .project-card:hover .project-card-thumb img {
    transform: none;
  }
}

/* --- Project: Visit Project Button --- */
.project-url {
  margin-top: 1.2rem;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--color-text-white);
  color: var(--color-text-white);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-visit:hover {
  background: var(--color-text-white);
  color: var(--color-primary);
}

/* --- Project: Quote --- */
.project-quote {
  text-align: center;
  padding: var(--spacing-md) var(--site-gutter);
  background: var(--color-bg-warm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-quote blockquote {
  border: none;
  padding: 0;
  max-width: var(--content-medium);
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.85;
  font-weight: normal;
  font-style: normal;
}

.project-quote .quote-author {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Project: Credits --- */
.project-credits {
  max-width: var(--content-medium);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.project-credits h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.credits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.credit-item {
  display: flex;
  flex-direction: column;
}

.credit-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.credit-role {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Review Dashboard: Stats Bar --- */
.review-stats {
  padding: 0.75rem var(--site-gutter);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-ready { color: #4caf50; font-weight: 600; }
.stat-needs-work { color: #ff9800; font-weight: 600; }
.stat-bare-bones { color: #f44336; font-weight: 600; }
