/* ========================================
   Pamela Lang - Portfolio
   Clean, modern, gallery-focused
   ======================================== */

:root {
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --text: #e8e4df;
  --text-muted: #8a8580;
  --accent: #c9a87c;
  --accent-hover: #dbb990;
  --border: #2a2a2a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: #0f0f0f;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: #e8e4df;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* Nav links: default to MOBILE dropdown (fail-open architecture).
   Desktop layout is opt-in via min-width media query at end of file. */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  color: rgba(232, 228, 223, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

/* Hamburger button: VISIBLE by default. Hidden on desktop via min-width query.
   Hardened against forced-colors mode with explicit stroke + forced-color-adjust. */
.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  margin: -0.5rem -0.75rem;
  min-width: 48px;
  min-height: 48px;
  color: #e8e4df;
  -webkit-tap-highlight-color: transparent;
  forced-color-adjust: none;
}
.nav-hamburger svg { display: block; width: 24px; height: 24px; stroke: #e8e4df; forced-color-adjust: none; }
.nav-hamburger svg line { stroke: #e8e4df; }
.nav-hamburger .nav-icon-close { display: none; }
.nav-hamburger.open .nav-icon-menu { display: none; }
.nav-hamburger.open .nav-icon-close { display: block; }

.nav-links a:hover,
.nav-links a.active {
  color: #e8e4df;
}

/* ---- Hero ---- */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 2;
}

.hero-home {
  min-height: auto;
  padding-top: 10rem;
  padding-bottom: 3rem;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.hero-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.hero-btn-outline {
  background: transparent;
  color: var(--accent);
}

.hero-btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Page Header (inner pages) ---- */

.page-header {
  padding: 8rem 2.5rem 4rem;
  text-align: center;
  background-color: #0f0f0f;
}
.page-header .section-title { color: #e8e4df; }
.page-header .section-subtitle { color: #8a8580; }

/* ---- Dark Page Header (shared: blog index + blog posts) ---- */
.dark-page-header {
  background: #0f0f0f;
  padding: 7rem 2rem 6rem;
  text-align: center;
}
.dark-page-header > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.dark-page-header-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.dark-page-header-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a87c;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.dark-page-header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: #f4ecd8;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.dark-page-header-title em,
.dark-page-header-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: #c9a87c;
}
.dark-page-header-lead {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #8a8580;
  margin: 0 auto 2rem;
  max-width: 520px;
  text-align: center;
}
.dark-page-header-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #c9a87c;
  text-align: center;
  margin: 0 0 1.25rem;
}
.dark-page-header-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a87c;
  text-decoration: none;
  border: 1px solid rgba(201, 168, 124, 0.4);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dark-page-header-cta:hover {
  background: #c9a87c;
  color: #0f0f0f;
  border-color: #c9a87c;
}
.dark-page-header .blog-tags { justify-content: center; }
/* Blog post pages have a Listen pill + tags row at the bottom of the hero;
   tighten the bottom padding so the tags don't sit in a 6rem void above
   the audio band. Scoped to the blog-post header host id only -- about,
   resume, contact, etc. keep the original 6rem. */
#blog-post-header-host { padding-bottom: 3rem; }
@media (max-width: 600px) {
  .dark-page-header { padding: 5rem 1.5rem 4rem; }
  #blog-post-header-host { padding-bottom: 2.5rem; }
}

/* ---- Section Titles ---- */

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ---- Work / Gallery ---- */

.work {
  padding: 4rem 2.5rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Gallery grid - masonry-like with CSS columns */
.gallery {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay .item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.overlay .item-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.overlay .item-tools {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-style: italic;
}

.empty-state.hidden {
  display: none;
}

/* ---- Lightbox ---- */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 600px;
}

.lightbox-caption .item-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption .item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- About ---- */

.about {
  padding: 10rem 2.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Triple Threat Cards */
.triple-threat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.threat-card {
  position: relative;
  padding: 2rem 2rem 2rem 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border, #e8d9c4);
  border-top: 2px solid var(--accent, #c9a87c);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.threat-card:hover {
  border-color: var(--accent);
}

.threat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.threat-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.threat-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.threat-card p:last-child {
  margin-bottom: 0;
}

/* Highlight text - editorial pull-quote style */
.highlight {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.0625em;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-block {
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.about-block-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-block p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.capability {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.capability:hover {
  border-color: var(--accent);
}

.capability-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.capability-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Hero */
.about-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-hero-photo {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.about-hero-name {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.about-hero-role {
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-hero-bio {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Stats Row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4rem;
  overflow: hidden;
}

.about-stat {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.about-stat:last-child {
  border-right: none;
}

.about-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Section title (used for "What I Bring") */
.about-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* About Philosophy Section */
.about-philosophy {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.about-philosophy-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-philosophy-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.about-principle {
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--accent);
}

.about-principle p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.about-principle strong {
  color: var(--text);
  font-weight: 500;
}

.about-philosophy-subtitle {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.25rem;
  margin-top: 3.5rem;
}

.about-philosophy-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-philosophy-body:last-child {
  margin-bottom: 0;
}

/* ---- Team ---- */

.team {
  padding: 10rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.team-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.team-group {
  margin-bottom: 3.5rem;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-label {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.team-card {
  width: calc(25% - 1.5rem);
  border: 1px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
}

.team-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

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

.team-nameplate {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  text-align: center;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.team-role {
  display: block;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.team-info {
  padding: 0;
  text-align: left;
  display: grid;
  min-height: 240px;
}

.team-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 1rem 1.25rem 1.25rem;
  grid-row: 1;
  grid-column: 1;
}

.team-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.team-extended-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Team Hover Effects (Core 6) ---- */

.team-card {
  position: relative;
}

.team-hover {
  grid-row: 1;
  grid-column: 1;
  background: rgba(15, 15, 15, 0.98);
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
  border-top: 2px solid var(--accent);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card:hover .team-hover {
  opacity: 1;
}

.hover-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hover-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hover-stat:last-child {
  border-bottom: none;
}

.hover-stat-value {
  color: var(--text);
  font-weight: 500;
}

.hover-achievement {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}

.hover-deliverable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hover-deliverable-icon {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hover-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hover-before, .hover-after {
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.625rem;
  border-radius: 4px;
}

.hover-before {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
}

.hover-after {
  background: rgba(201, 168, 124, 0.1);
  color: var(--text);
  border: 1px solid rgba(201, 168, 124, 0.2);
}

.hover-research-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
}

.hover-research-label {
  color: var(--text-muted);
}

.hover-research-value {
  color: var(--text);
  font-weight: 500;
}

.hover-research-verdict {
  margin-top: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(201, 168, 124, 0.1);
  border-left: 2px solid var(--accent);
  font-size: 0.8125rem;
  color: var(--text);
  font-style: italic;
}

.hover-step {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hover-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.hover-step-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.125rem 0;
}

.team-closing {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.team-closing p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.team-cta {
  margin-top: 2rem;
}

.team-cta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.team-cta a:hover {
  border-bottom-color: var(--accent);
}

/* ---- Contact ---- */

.contact-page {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2.5rem;
  background: #0f0f0f;
}
.contact-page .section-title { color: #e8e4df; }
.contact-page .contact-lead { color: #8a8580; max-width: 480px; }

.contact-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact {
  padding: 6rem 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.875rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.contact-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Blog Listing ---- */

.blog-wip-note {
  padding: 0 2.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.blog-wip-inner {
  background: var(--bg-elevated);
  border-top: 4px solid var(--accent);
  padding: 2.5rem 2.75rem;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.blog-wip-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.blog-wip-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.blog-wip-subhead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

.blog-wip-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
  margin: 0 0 1.5rem !important;
}

.blog-wip-inner p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 1.15rem;
}

.blog-wip-inner p:last-child {
  margin-bottom: 0;
}

.blog-wip-steps {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 1.25rem;
}
.blog-wip-steps li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.blog-wip-steps li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent, #c9a87c);
  font-weight: 600;
}
.blog-wip-link {
  color: var(--accent, #c9a87c);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-wip-close {
  color: var(--text) !important;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem !important;
  line-height: 1.55 !important;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.5rem !important;
}

@media (max-width: 768px) {
  .blog-wip-note {
    padding: 0 1.25rem 3rem;
  }
  .blog-wip-inner {
    padding: 1.75rem 1.5rem;
  }
  .blog-wip-title {
    font-size: 1.3rem;
  }
}

.blog-listing {
  padding: 0 2.5rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-card-meta time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.blog-card-link {
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(201, 168, 124, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

/* ---- Blog Post (single) ---- */

.blog-post {
  padding: 8rem 2.5rem 6rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Blog Post CTA - quiet call-to-action at bottom of every post */
.blog-post-cta {
  max-width: 720px;
  margin: 0 auto 6rem;
  padding: 0 2.5rem;
}

.blog-post-cta p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  margin: 0;
}

.blog-post-cta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
}

.blog-post-cta-link:hover {
  color: var(--text);
}

.blog-post-loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 4rem 0;
}

.blog-post-header {
  margin-bottom: 3rem;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: var(--accent-hover);
}

.blog-post-date {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.blog-post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.blog-post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.blog-post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

.blog-post-body p {
  margin-bottom: 1.25rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.blog-post-body ul.blog-phase-list {
  list-style: none;
  padding-left: 0.25rem;
  margin: 1.25rem 0 1.5rem;
}
.blog-post-body ul.blog-phase-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.blog-post-body ul.blog-phase-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.7;
}

.blog-post-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.blog-post-body code {
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9375rem;
}

.blog-post-body pre {
  background: var(--bg-elevated);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-post-body a:hover {
  border-bottom-color: var(--accent);
}

.blog-post-body strong {
  font-weight: 500;
  color: var(--text);
}

/* Blog post formatting elements */
.blog-post-body .pull-quote {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: #f4ecd8;
  background: #1a1a1a;
  text-align: left;
  padding: 2.25rem 2.5rem 2.25rem 2.25rem;
  margin: 3rem 0;
  border: none;
  border-left: 5px solid #d4b074;
  border-radius: 4px;
  line-height: 1.65;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.blog-post-body .pull-quote::before {
  content: "\201C";
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-size: 3rem;
  line-height: 0.8;
  color: #d4b074;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: -0.4rem;
}

.blog-post-body .pull-quote.pull-quote-gold {
  background: #e8c170;
  color: #1a1a1a;
  border-left: 5px solid #1a1a1a;
}

.blog-post-body .pull-quote.pull-quote-gold::before,
.blog-post-body .pull-quote.pull-quote-gold::after {
  color: #1a1a1a;
}

/* Short variant: centered, larger type, no floating quote glyphs.
   For one-line punch beats like "Nothing. Absolute silence." where the
   default left-aligned quote glyphs look stranded in empty space. */
.blog-post-body .pull-quote.pull-quote-short {
  text-align: center;
  font-size: 1.6rem;
  padding: 1.75rem 2rem;
  line-height: 1.4;
}
.blog-post-body .pull-quote.pull-quote-short::before,
.blog-post-body .pull-quote.pull-quote-short::after {
  display: none;
}

.blog-post-body .pull-quote::after {
  content: "\201D";
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-size: 2rem;
  line-height: 0;
  color: #d4b074;
  margin-left: 0.2rem;
  vertical-align: -0.5rem;
}

.blog-post-body .callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}

.blog-post-body .callout-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-post-body .callout p {
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.blog-post-body .callout p:last-child {
  margin-bottom: 0;
}

.blog-post-body .section-divider {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  opacity: 0.75;
}

.blog-post-body .blog-img {
  width: 100%;
  border-radius: 6px;
  margin: 2rem 0;
}

/* Small clickable photo grid (thumbnails open full size via the lightbox) */
.blog-post-body .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 2rem 0;
}
.blog-post-body .photo-grid .blog-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin: 0;
  border-radius: 6px;
  cursor: zoom-in;
}
@media (max-width: 600px) {
  .blog-post-body .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .blog-post-body .photo-grid .blog-img {
    height: 110px;
  }
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-post-body table thead th {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4ecd8;
  background: #1a1a1a;
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 2px solid #1a1a1a;
  vertical-align: bottom;
}

.blog-post-body table tbody td {
  padding: 1.1rem 1.2rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid #d4d4d4;
  color: #2a2a2a;
}

.blog-post-body table tbody tr:nth-child(even) td {
  background: #f4f4f4;
}

.blog-post-body table tbody tr:last-child td {
  border-bottom: none;
  background: #1a1a1a;
  color: #f4ecd8;
  font-weight: 500;
}

.blog-post-body table tbody td:first-child {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  white-space: nowrap;
  border-left: 4px solid transparent;
}

.blog-post-body table tbody tr:last-child td:first-child,
.blog-post-body table tbody tr:last-child td:first-child strong {
  color: #d4b074;
  border-left-color: #d4b074;
}

.blog-post-body table tbody tr:last-child td strong {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .blog-post-body table { font-size: 0.88rem; }
  .blog-post-body table thead th,
  .blog-post-body table tbody td { padding: 0.75rem 0.8rem; }
  .blog-post-body table tbody td:first-child { font-size: 0.95rem; white-space: normal; }
}

.blog-post-body .fail-stamp {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c0392b;
  border: 5px solid #c0392b;
  padding: 0.5rem 1.4rem;
  transform: rotate(-7deg);
  text-transform: uppercase;
  margin: 1.2rem 0;
  background: rgba(192, 57, 43, 0.06);
  box-shadow: 0 1px 0 rgba(192, 57, 43, 0.2);
}

.blog-post-body .img-caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* ---- Footer ---- */

.footer {
  padding: 2rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
}

/* ---- Homepage Sections ---- */

.hero-credential {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.home-section {
  padding: 5rem 2.5rem;
}

.home-section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.home-section-alt {
  background: #242424;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  padding: 5rem 2.5rem;
}

.home-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.home-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.home-body:last-child {
  margin-bottom: 0;
}

.home-emphasis {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.1875rem;
}

.home-section-wide {
  max-width: 1100px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 0 2.5rem;
}

.pain-card {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 2px solid var(--accent);
  background: #181818;
}

.pain-card-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.pain-intro {
  margin-bottom: 2rem;
}

.pain-intro-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.pain-intro-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.pain-card-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.how-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.how-intro {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
}

.how-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 0 1.5rem;
}

.how-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}

.how-step-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 20px;
  line-height: 1;
  opacity: 0.6;
}

.how-step-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.how-step-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.home-divider {
  text-align: center;
  margin: 2.25rem 0;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.5em;
  opacity: 0.4;
}

.why-read-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.why-read-link:hover {
  opacity: 1;
}

.how-tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.125rem;
  margin-top: 3rem;
  margin-bottom: 0;
}

.home-featured-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.home-featured-card {
  display: block;
  padding: 2rem 2.5rem;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}

.home-featured-card:hover {
  background: #222;
  border-color: var(--accent);
}

.home-featured-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.home-featured-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.home-featured-link {
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.home-cta-section {
  padding: 6rem 2.5rem;
  text-align: center;
}

.home-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .gallery {
    columns: 2;
  }

  .team-card {
    width: calc(33.333% - 1.5rem);
  }

  .team-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    min-height: 50vh;
    padding: 5rem 1.5rem 3rem;
  }

  .work {
    padding: 5rem 1.5rem 4rem;
  }

  .page-header {
    padding-top: 5rem;
  }

  .blog-listing {
    padding: 0 1.5rem 4rem;
  }

  .blog-post {
    padding: 5rem 1.5rem 4rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .contact-page {
    padding-top: 5rem;
  }

  .gallery {
    columns: 2;
    column-gap: 0.75rem;
  }

  .gallery-item {
    margin-bottom: 0.75rem;
  }

  .team {
    padding: 5rem 1.5rem 4rem;
  }

  .team-card {
    width: calc(50% - 0.5rem);
  }

  .team-grid {
    gap: 1rem;
  }

  .about {
    padding: 5rem 1.5rem 4rem;
  }

  .triple-threat {
    gap: 1rem;
  }

  .threat-card {
    padding: 1.5rem;
  }

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

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-hero-photo {
    max-width: 220px;
    margin: 0 auto;
  }

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

  .about-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .about-stat:last-child {
    border-bottom: none;
  }

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

  .contact {
    padding: 4rem 1.5rem;
  }

  .home-section,
  .home-section-alt {
    padding: 3.5rem 1.5rem;
  }

  .home-cta-section {
    padding: 4rem 1.5rem;
  }

  .how-steps {
    flex-direction: column;
    align-items: center;
  }

  .how-step {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .how-step-arrow {
    transform: rotate(90deg);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    columns: 1;
  }

  .team-card {
    width: 100%;
    max-width: 400px;
  }

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


/* ── Page Audio Player ─────────────────────────────────────────────────────── */

/* AUDIO PLAYER STRIP */
.page-audio-band {
  padding: 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}
#blog-audio-band { padding-top: 0; }
.page-audio {
  width: 100%;
  background: #f5f1ea;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 48px;
  box-sizing: border-box;
}
.pa-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 95, 90, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
}
.pa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--accent, #c9a87c);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent, #c9a87c);
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.pa-btn:hover { background: var(--accent, #c9a87c); color: #fff; }
.pa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.pa-icon-play::before { content: '\25B6'; margin-left: 2px; }
.pa-icon-pause::before { content: '\2759\2759'; letter-spacing: -2px; }
.page-audio.is-playing .pa-icon-play { display: none; }
.page-audio:not(.is-playing) .pa-icon-pause { display: none; }
.pa-text { display: none; }
.pa-progress {
  flex: 1;
  height: 18px;
  cursor: pointer;
  position: relative;
  touch-action: none;
  min-width: 0;
}
.pa-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0d8ce;
  transform: translateY(-50%);
  border-radius: 1px;
}
.pa-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent, #c9a87c);
  transform: translateY(-50%);
  transition: width 0.1s linear;
  border-radius: 1px;
  pointer-events: none;
}
.pa-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #c9a87c);
}
.pa-time-current,
.pa-time-total {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(100, 95, 90, 0.7);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pa-skip-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pa-rewind,
.pa-forward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(100, 95, 90, 0.65);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  flex-shrink: 0;
}
.pa-rewind:hover,
.pa-forward:hover { color: var(--accent, #c9a87c); }
.pa-speed-wrap {
  position: relative;
  flex-shrink: 0;
}
.pa-speed {
  background: none;
  border: 1px solid rgba(100, 95, 90, 0.3);
  border-radius: 999px;
  color: rgba(100, 95, 90, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  cursor: pointer;
  padding: 3px 10px;
  transition: color 0.15s, border-color 0.15s;
  min-width: 44px;
  text-align: center;
}
.pa-speed:hover,
.pa-speed-wrap.is-open .pa-speed {
  color: var(--accent, #c9a87c);
  border-color: var(--accent, #c9a87c);
}
.pa-speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid rgba(184, 147, 90, 0.5);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(26, 26, 46, 0.14), 0 2px 6px rgba(26, 26, 46, 0.06);
  padding: 4px;
  min-width: 84px;
  z-index: 100;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.pa-speed-wrap.is-open .pa-speed-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* Tiny pointer triangle hanging off the bottom-right of the popover so it
   visually attaches to the speed button below it. */
.pa-speed-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: #fffdf9;
  border-right: 1px solid rgba(184, 147, 90, 0.5);
  border-bottom: 1px solid rgba(184, 147, 90, 0.5);
  transform: rotate(45deg);
}
.pa-speed-opt {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(60, 55, 50, 0.78);
  padding: 7px 14px;
  text-align: right;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.02em;
  position: relative;
}
.pa-speed-opt:hover {
  background: rgba(184, 147, 90, 0.1);
  color: var(--accent, #c9a87c);
}
.pa-speed-opt.is-active {
  color: var(--accent, #c9a87c);
  background: rgba(184, 147, 90, 0.16);
  font-weight: 700;
}
.pa-speed-opt.is-active::before {
  content: '\2713';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
}
.pa-volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pa-volume-icon {
  color: rgba(100, 95, 90, 0.65);
  display: inline-flex;
  align-items: center;
}
.pa-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 2px;
  background: #e0d8ce;
  outline: none;
  cursor: pointer;
  border-radius: 1px;
  margin: 0;
}
.pa-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #c9a87c);
  cursor: pointer;
  border: none;
}
.pa-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #c9a87c);
  cursor: pointer;
  border: none;
}
.page-audio audio { display: none; }

/* Mobile audio band: tightened so the bar fits within the viewport.
   Without these rules the volume slider overflows past the viewport on phones,
   which on mobile Chrome stretches the fixed nav across the full document width
   and pushes the right-aligned hamburger button off-screen. */
@media (max-width: 700px) {
  .page-audio { padding: 14px 20px; gap: 12px; }
  .pa-label { display: none; }
  .pa-skip-group { gap: 8px; }
}

.blog-post-body ul.blog-phase-list li strong {
  text-transform: uppercase;
}

/* Desktop layout: inline nav links, no hamburger.
   Inverted-defaults architecture means this is the OPT-IN block, not the default. */
@media (min-width: 769px) {
  .nav-hamburger { display: none; }
  .nav-links {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 2rem;
    border-bottom: none;
  }
}

/* TTS-only narration helper: visible to the audio parser, hidden visually.
   Use for hidden punctuation that shapes ElevenLabs pacing, or for spelled-out
   words next to a tts-skip span (e.g. abbreviation pronunciation overrides). */
.tts-narration { display: none; }

/* Visual emphasis without breaking TTS. Write the word in normal case in the
   HTML so ElevenLabs reads it cleanly, then this class renders it ALL CAPS
   visually. Prior fix: Gemini TTS skipped uppercase imperatives entirely,
   and ElevenLabs garbles them. */
.caps-emphasis {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Audio-sync paragraph highlight */
.blog-post-body p.audio-active,
.blog-post-body h2.audio-active,
.blog-post-body h3.audio-active,
.blog-post-body h4.audio-active,
.blog-post-body blockquote.audio-active {
  border-left: 4px solid var(--accent);
  background: rgba(184, 134, 11, 0.05);
  padding-left: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Audio-sync highlight on non-blog pages (about, resume, index).
   Bold left border + soft background tint, matching blog-post style so the
   active paragraph is unmistakable as the audio plays. */
h1.audio-active,
h2.audio-active,
h3.audio-active,
h4.audio-active,
p.audio-active,
summary.audio-active,
li.audio-active {
  border-left: 4px solid var(--accent);
  background: rgba(184, 134, 11, 0.05);
  padding-left: 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.dark-page-header h1.audio-active,
.dark-page-header p.audio-active,
.about-dark-hero h1.audio-active,
.about-dark-hero p.audio-active {
  background: rgba(201, 168, 124, 0.12);
}

/* ─── Audio discoverability: per-post listen pill + first-load pulse ─── */
/* Added 2026-05-02. Currently scoped to 30-days-325-sessions post only via build-posts.js. */

.listen-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 1.5rem;
  padding: 0.65rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #f4ecd8;
  background: rgba(201, 168, 124, 0.12);
  border: 1.5px solid #c9a87c;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.listen-pill:hover {
  background: rgba(201, 168, 124, 0.22);
  box-shadow: 0 2px 12px rgba(201, 168, 124, 0.25);
}
.listen-pill:active {
  transform: translateY(1px);
}
.listen-pill .pill-icon {
  font-size: 0.85em;
  color: #c9a87c;
  line-height: 1;
}
.listen-pill .pill-icon-pause { display: none; }
.listen-pill.is-playing .pill-icon-play { display: none; }
.listen-pill.is-playing .pill-icon-pause { display: inline; }

@keyframes audio-band-first-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0); }
  20%  { box-shadow: 0 0 0 6px rgba(201, 168, 124, 0.45); }
  60%  { box-shadow: 0 0 0 12px rgba(201, 168, 124, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0); }
}
body.audio-pulse-on-load .page-audio-band {
  animation: audio-band-first-pulse 1.8s ease-in-out 0.7s 1;
}

/* Image caption (used inside <figure class="blog-figure">) */
.blog-post-body .blog-figure { margin: 1.5em 0; }
.blog-post-body .blog-figure img { margin: 0; }
.blog-post-body .blog-caption {
  font-style: italic;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* Generic figure rule: any unclassed <figure> in blog body renders constrained and centered */
.blog-post-body figure {
  margin: 2.25rem auto;
  max-width: 100%;
  text-align: center;
}
.blog-post-body figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
}
.blog-post-body figure figcaption {
  font-style: italic;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}
