:root {
  --bg: #f6f4ef;
  --bg-alt: #ede9e0;
  --surface: #ffffff;
  --ink: #1b2028;
  --ink-muted: #525965;
  --border: #ddd7ca;
  --accent: #184e59;
  --accent-soft: rgba(24, 78, 89, 0.09);
  --warm: #b9770e;
  --warm-soft: rgba(185, 119, 14, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(27, 32, 40, 0.07);
  --max-w: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bio-editorial {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.4rem, var(--max-w));
  margin-inline: auto;
}

/* HEADER */
.bio-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.bio-header-inner {
  width: min(100% - 2.4rem, var(--max-w));
  margin-inline: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bio-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.bio-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
}

.bio-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.bio-nav a:hover {
  color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #123c45;
}

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

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

.btn-link {
  padding: 0;
  border-radius: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* HERO */
.bio-hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 0.55rem;
  font-family: 'Fraunces', serif;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-role {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--warm);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

.value-box {
  margin: 0 0 1.65rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero-portrait {
  margin: 0;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
}

.hero-portrait figcaption {
  padding: 0.75rem 0.35rem 0.25rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* QUOTE */
.quote-band {
  background: var(--accent);
  color: #ffffff;
  padding: 3rem 0;
}

.quote-band blockquote {
  margin: 0;
  max-width: 46ch;
  margin-inline: auto;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.38;
  font-weight: 500;
}

/* SECTIONS */
.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 2.3rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* TRAJECTORY & GALLERY */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.story-prose p {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  color: var(--ink);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.method-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--warm);
  font-weight: 500;
}

.method-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.05rem;
}

.method-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

.photo-tile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.photo-tile.wide {
  grid-column: span 2;
}

.photo-tile img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-tile.portrait img {
  object-position: center 22%;
}

.photo-tile figcaption {
  padding: 0.5rem 0.25rem 0.15rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* AREAS & FEATURED PROJECTS */
.area-block {
  margin-bottom: 2.6rem;
}

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

.area-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.area-header h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.38rem;
}

.area-header p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
  max-width: 62ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
}

.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.code-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm);
  background: var(--warm-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.project-body h4 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.project-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  flex: 1;
}

/* BOOKS */
.collection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.book-card[hidden] {
  display: none;
}

.book-cover-wrap {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

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

.book-collection {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.32;
}

.book-author {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.book-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
}

.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

/* INTEGRATED CATALOG OVERRIDES FOR LIGHT EDITORIAL THEME */
.catalog-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.catalog-search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-width: min(100%, 340px);
}

.catalog-search-box input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  width: 100%;
  outline: none;
}

.catalog-panel .catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.catalog-panel .catalog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.catalog-panel .catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.catalog-panel .catalog-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.catalog-panel .catalog-card-code {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.catalog-panel .catalog-card-title,
.catalog-panel .catalog-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}

.catalog-panel .catalog-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.catalog-panel .catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.catalog-panel .catalog-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.catalog-panel .catalog-page-nav,
.catalog-panel .catalog-page-number {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.78rem;
  border-radius: 8px;
  cursor: pointer;
}

.catalog-panel .catalog-page-number.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* CONTACT */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  margin: 0 0 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.contact-box p {
  margin: 0 0 0.9rem;
  color: var(--ink-muted);
}

.contact-bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-bullets li + li {
  margin-top: 0.35rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* FOOTER */
.bio-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .bio-nav {
    display: none;
  }

  .hero-grid,
  .story-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .bio-hero {
    padding: 2.6rem 0 2.4rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .method-steps,
  .photo-mosaic {
    grid-template-columns: 1fr;
  }

  .photo-tile.wide {
    grid-column: span 1;
  }

  .contact-box {
    padding: 1.5rem;
  }

  .hero-actions .btn,
  .contact-buttons .btn {
    width: 100%;
  }
}
