/* Bryson Bonham — Style C+ · Measured Boardroom (locked) */
:root {
  /* Warm navy, cream, MCM accents */
  --bg: #222C38;
  --bg-muted: #2A3542;
  --bg-light: #F5F3EE;
  --bg-panel: #EAE8E4;

  --text: #F5F3EE;
  --text-muted: rgba(245, 243, 238, 0.72);
  --text-subtle: rgba(245, 243, 238, 0.48);

  --body-dark: #222C38;
  --body: #3D3A36;
  --body-muted: #8A857C;

  --accent: #5F7161;
  --accent-hover: #4D5E4F;
  --accent-soft: rgba(95, 113, 97, 0.12);
  --taupe: #7A6B5D;
  --highlight: #B8956B;
  --link-gold: #F0C85A;
  --link-gold-hover: #F8DC7A;

  --border: #D8D4CC;
  --border-strong: #C8C4BC;
  --border-dark: rgba(245, 243, 238, 0.14);
  --line-charcoal: #3A3F46;

  --max-width: 720px;
  --max-wide: 960px;
  --font: 'Libre Franklin', 'Helvetica Neue', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--taupe); }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.125rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-ui);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.nav-logo:hover { color: var(--highlight); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Hero — split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 28rem;
}

.hero-left {
  background: var(--bg);
  color: var(--text);
  padding: 4.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  background: var(--bg-panel);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-strong);
}

.hero-left h1 {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
  line-height: 1.15;
}

/* Headshot */
.headshot-wrap {
  margin-bottom: 1.75rem;
}

.headshot {
  display: block;
  width: 7.5rem;
  height: 9rem;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
}

.about-page .headshot {
  width: 11rem;
  height: 13.125rem;
  border-color: rgba(184, 149, 107, 0.35);
}

.headshot-placeholder {
  width: 7.5rem;
  height: 9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.4;
}

.about-intro {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.about-page .about-intro {
  grid-template-columns: 11rem 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.about-intro .headshot-wrap { margin-bottom: 0; }

/* About page — full navy canvas */
.about-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-page .page-about {
  flex: 1;
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 4.5rem;
}

.about-intro-block {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

.about-intro-copy {
  min-width: 0;
}

.about-intro-block .about-headshot {
  float: none;
  margin: 0;
}

.about-intro-block .about-headshot .headshot {
  margin-right: 0;
}

.about-headshot {
  float: left;
  margin: 0 0.25rem 1rem 0;
  padding: 0;
  border: 0;
  shape-outside: margin-box;
}

.about-headshot .headshot {
  display: block;
  margin-right: 1.75rem;
}

.about-prose {
  max-width: none;
}

.page-about h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.page-about h2 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.875rem;
  color: var(--text);
}

.page-about h2:first-of-type {
  margin-top: 1.75rem;
}

.about-prose p {
  margin: 0 0 1.125rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.about-prose p.lead {
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
}

.about-prose a:not(.btn):link,
.about-prose a:not(.btn):visited {
  color: var(--link-gold);
  font-weight: 500;
}

.about-prose a:not(.btn):hover,
.about-prose a:not(.btn):focus-visible {
  color: var(--link-gold-hover);
}

.about-cv {
  margin-top: 0.5rem;
    padding-top: 2.75rem;
  border-top: 1px solid var(--border-dark);
}

.about-section {
  margin-top: 3.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 243, 238, 0.08);
  clear: both;
}

.about-section-label,
.about-cv h2 {
  font-family: var(--font-ui);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.72;
  margin: 0 0 0.5rem;
}

.cv-list-detailed {
  gap: 2.25rem;
}

.cv-list-detailed li {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(245, 243, 238, 0.08);
}

.cv-list-detailed li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cv-desc {
  grid-column: 1 / -1;
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
}

.credentials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}

.credentials-list a:link,
.credentials-list a:visited {
  color: var(--link-gold);
  font-weight: 500;
}

.credentials-list a:hover,
.credentials-list a:focus-visible {
  color: var(--link-gold-hover);
}

.prose p {
  margin: 0 0 1.125rem;
  color: var(--body);
  line-height: 1.7;
}

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

.role-block {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.role-block:last-child { border-bottom: none; }

.role-block h3 {
  font-family: var(--font-ui);
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-dark);
}

.role-block .meta {
  font-size: 0.8125rem;
  color: var(--body-muted);
  margin: 0 0 1rem;
}

.role-block ul {
  margin: 1rem 0 0;
  padding-left: 1.125rem;
  color: var(--body);
  font-size: 0.9375rem;
}

.role-block li { margin-bottom: 0.35rem; }

.credentials-line {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-page .about-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-intro-block {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-headshot .headshot {
    width: 8.5rem;
    height: auto;
    margin-right: 1rem;
  }
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.cv-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cv-role {
  grid-column: 1;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.cv-org {
  grid-column: 1;
  color: var(--text);
  opacity: 0.72;
  font-size: 0.8125rem;
}

.cv-dates {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--text);
  opacity: 0.5;
  font-size: 0.8125rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cv-edu,
.cv-creds {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

.about-page .page .cta-row,
.about-page .cta-row {
  margin-top: 2.5rem;
  clear: both;
}

@media (max-width: 640px) {
  .cv-list li {
    grid-template-columns: 1fr;
  }

  .cv-dates {
    grid-column: 1;
    grid-row: auto;
  }
}

.eyebrow {
  color: var(--highlight);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.pillars {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.tagline-primary {
  font-size: 1.0625rem;
  color: var(--text);
  max-width: 24rem;
  margin: 1rem 0 0.5rem;
  font-weight: 400;
  line-height: 1.55;
}

.tagline-secondary {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 24rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(245, 243, 238, 0.32);
}

.btn-primary:hover {
  background: rgba(245, 243, 238, 0.06);
  border-color: rgba(245, 243, 238, 0.5);
  color: var(--text);
}

.btn-secondary {
  font-family: var(--font-ui);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-brass {
  font-family: var(--font-ui);
  background: var(--highlight);
  color: var(--bg);
  border: 1px solid var(--highlight);
  border-radius: var(--radius-sm);
}

.btn-brass:hover {
  background: #c9a47d;
  border-color: #c9a47d;
  color: var(--bg);
}

/* Hero prose (right column — rigor, text-heavy) */
.hero-prose-panel {
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}

.hero-prose-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-prose-lead .em-sage {
  color: var(--accent);
  font-weight: 600;
}

.prose-blocks {
  display: flex;
  flex-direction: column;
}

.prose-block {
  padding: 1.125rem 0;
}

.prose-block:first-child {
  padding-top: 0;
}

.prose-block:last-child {
  padding-bottom: 0;
}

.prose-block + .prose-block {
  border-top: 1px solid var(--border);
}

.prose-block-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.prose-block p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--body);
  margin: 0;
}

.prose-block strong {
  color: var(--body-dark);
  font-weight: 600;
}

.hero-prose-panel p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--body);
  margin: 0;
}

/* Sections */
.section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 4.5rem 1.75rem;
}

.section-muted {
  background: var(--bg-panel);
  max-width: none;
  padding-left: calc((100vw - var(--max-wide)) / 2 + 1.75rem);
  padding-right: calc((100vw - var(--max-wide)) / 2 + 1.75rem);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.section h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--body-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.text-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.375rem;
}

.card h3 {
  font-family: var(--font-ui);
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card p { margin: 0; color: var(--body); font-size: 0.9375rem; line-height: 1.6; }

.card-featured {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.card-featured h2 {
  font-family: var(--font-ui);
  margin: 0.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-featured h2 a { color: var(--body-dark); }
.card-featured h2 a:hover { color: var(--accent); }

/* Page layout */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.75rem 4.5rem;
}

.page:not(.page-about) h1 {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--body-dark);
}

.page:not(.page-about) h2 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  color: var(--body-dark);
}

.page:not(.page-about) p {
  color: var(--body);
  margin: 0 0 1rem;
}

/* Timeline */
.timeline-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

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

.timeline-item h3 {
  font-family: var(--font-ui);
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-dark);
}

.meta {
  font-size: 0.8125rem;
  color: var(--body-muted);
  margin: 0 0 0.75rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--body);
}

.timeline-item li { margin-bottom: 0.4rem; font-size: 0.9375rem; }

.plain-list {
  padding-left: 1.25rem;
  color: var(--body);
}

.plain-list li { margin-bottom: 0.4rem; }

/* Writing page */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
}

.post-tag {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--taupe);
  background: rgba(122, 107, 93, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--body-muted);
  width: 100%;
}

.note {
  font-size: 0.8125rem;
  color: var(--body-muted);
  margin-top: 1.5rem;
}

.page .cta-row {
  justify-content: flex-start;
  margin-top: 2rem;
}

.page .btn-secondary {
  color: var(--body);
  border-color: var(--border-strong);
}

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

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

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

/* About page overrides (navy canvas — beats generic .page cream styles) */
.about-page .page-about,
.about-page .page-about .about-prose {
  color: var(--text);
}

.about-page .page-about .about-prose p,
.about-page .page-about .about-prose .cv-desc,
.about-page .page-about .about-prose .credentials-list,
.about-page .page-about .about-prose .credentials-list li,
.about-page .page-about .about-prose .cv-org,
.about-page .page-about .about-prose .cv-dates,
.about-page .page-about .about-prose .about-section-label {
  color: var(--text);
}

.about-page .page-about .about-prose .cv-role,
.about-page .page-about .about-prose p.lead,
.about-page .page-about .about-prose h1,
.about-page .page-about .about-prose h2 {
  color: var(--text);
}
.about-page .page .btn-primary,
.about-page .page-about .btn-primary {
  background: transparent;
  border-color: rgba(245, 243, 238, 0.32);
  color: var(--text);
}

.about-page .page .btn-primary:hover,
.about-page .page-about .btn-primary:hover {
  background: rgba(245, 243, 238, 0.06);
  border-color: rgba(245, 243, 238, 0.5);
}

.about-page .page .btn-secondary,
.about-page .page-about .btn-secondary {
  color: var(--text-muted);
  border-color: var(--border-dark);
}

.about-page .page .btn-secondary:hover,
.about-page .page-about .btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.about-page .page .btn-brass,
.about-page .page-about .btn-brass {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
}

.about-page .page .btn-brass:hover,
.about-page .page-about .btn-brass:hover {
  background: #c9a47d;
  border-color: #c9a47d;
  color: var(--bg);
}

.about-page .page h1,
.about-page .page-about h1 {
  color: var(--text);
}

.about-page .page h2,
.about-page .page-about h2 {
  color: var(--text);
}

.about-page .about-prose a:not(.btn):link,
.about-page .about-prose a:not(.btn):visited,
.about-page .credentials-list a:link,
.about-page .credentials-list a:visited {
  color: var(--link-gold);
  font-weight: 500;
}

.about-page .about-prose a:not(.btn):hover,
.about-page .about-prose a:not(.btn):focus-visible,
.about-page .credentials-list a:hover,
.about-page .credentials-list a:focus-visible {
  color: var(--link-gold-hover);
}

.about-page .site-footer {
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 2rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.site-footer p { margin: 0; }

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

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--highlight); }

/* Home — art banner + attention feed */
.home-banner {
  background: #222C38;
  line-height: 0;
}

.home-banner img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center 58%;
}

.home-main {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
}

.home-feed {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-feed-header {
  margin-bottom: 2.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-feed-header h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
  line-height: 1.25;
  color: var(--body-dark);
}

.home-entry {
  padding: 2.75rem 0 3.25rem;
  margin: 0;
  border-bottom: 2px solid var(--border-strong);
}

.home-entry + .home-entry {
  margin-top: 0;
  padding-top: 2.75rem;
}

.home-divider {
  display: none;
}

.home-entry:first-of-type {
  padding-top: 0;
}

.home-entry:last-of-type {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.home-entry-header {
  margin-bottom: 1.5rem;
}

.home-entry-title a {
  color: inherit;
  text-decoration: none;
}

.home-entry-title a:hover {
  color: var(--accent);
}

.home-feed-intro {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--body-muted);
  line-height: 1.6;
}

.posts-index-list,
.archive-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.posts-index-item,
.archive-index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.archive-index-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.posts-index-item time,
.archive-index-item time {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.posts-index-body h2,
.archive-index-body h2 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}

.posts-index-body h2 a,
.archive-index-body h2 a {
  color: var(--body-dark);
}

.posts-index-body h2 a:hover,
.archive-index-body h2 a:hover {
  color: var(--accent);
}

.entry-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  background: rgba(122, 107, 93, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.posts-index-body p,
.archive-index-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--body-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .posts-index-item,
  .archive-index-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.home-entry-title {
  font-family: var(--font-ui);
  font-size: clamp(1.625rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--body-dark);
}

.home-entry-prose p {
  margin: 0 0 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}

.home-entry .attention-list {
  margin-top: 0;
}

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

.home-main-inner h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.625rem 0 0.375rem;
  line-height: 1.15;
  color: var(--body-dark);
}

.attention-header {
  margin-bottom: 0.25rem;
}

.attention-date {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.attention-note {
  margin-top: 0.875rem !important;
  font-size: 0.9375rem !important;
  color: var(--body-muted) !important;
}

.attention-links {
  margin: 0.75rem 0 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
}

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

.attention-more {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.attention-more-title {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--body-dark);
}

.attention-radar {
  margin: 0;
  padding-left: 1.125rem;
  display: grid;
  gap: 0.75rem;
}

.attention-radar li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

.eyebrow-light::before {
  background: var(--highlight);
}

.attention-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.attention-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--line-charcoal);
  position: relative;
}

.attention-list li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 1.25rem;
  background: var(--highlight);
}

.attention-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.attention-list p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
}

.attention-list--compact {
  gap: 0.875rem;
}

.attention-list--compact li p {
  font-size: 0.9375rem;
}

.home-aside {
  margin-top: 2.5rem;
  padding: 1.25rem 1.375rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--highlight);
}

.home-aside-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.375rem;
}

.home-aside p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

.post-figure {
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.post-figure a {
  display: block;
  max-width: 42rem;
}

/* Aspect-ratio frame prevents browser stretch at any viewport width */
.post-figure-media {
  display: block;
  width: 100%;
  max-width: 42rem;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(34, 44, 56, 0.08);
  background: #1a1f26;
}

.post-figure-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 42rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(34, 44, 56, 0.08);
}

.post-figure--portrait img {
  max-width: 28rem;
}

.post-figure--portrait .post-figure-media {
  max-width: 28rem;
}

.post-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--body-muted);
  line-height: 1.5;
}

/* External publication reference (thumbtack / repost card) */
.pub-ref-card {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 42rem;
  margin: 0 0 1.25rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  box-shadow: 0 2px 12px rgba(34, 44, 56, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-ref-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(34, 44, 56, 0.1);
  color: inherit;
}

.pub-ref-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pub-ref-thumb--graphic {
  object-fit: contain;
  object-position: center;
  background: #F5F3EE;
  aspect-ratio: 16 / 9;
}

.pub-ref-thumb--placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 0.75rem;
  overflow: hidden;
  background: linear-gradient(155deg, #222C38 0%, #2A3542 55%, #1e2833 100%);
  border-color: rgba(184, 149, 107, 0.35);
  object-fit: unset;
}

.pub-ref-thumb--placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #B8956B;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pub-ref-thumb-label {
  font-family: var(--font-ui);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.55);
}

.pub-ref-thumb-title {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #F5F3EE;
}

.pub-ref-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.pub-ref-source {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.pub-ref-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--body-dark);
}

.pub-ref-meta {
  font-size: 0.8125rem;
  color: var(--body-muted);
  line-height: 1.45;
}

.pub-ref-cta {
  margin-top: 0.375rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.pub-ref-card:hover .pub-ref-cta {
  color: var(--accent-hover);
}

@media (max-width: 540px) {
  .pub-ref-card {
    grid-template-columns: 1fr;
  }

  .pub-ref-thumb {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}

.post-article p {
  margin: 0 0 1.125rem;
  line-height: 1.7;
  color: var(--body);
}

.post-article p:last-of-type {
  margin-bottom: 0;
}

.post-cta-row {
  margin-top: 2rem;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.home-main .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.home-main .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.home-main .btn-secondary {
  color: var(--body);
  border-color: var(--border-strong);
}

.home-main .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

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

/* Posts archive — earlier posts by year */
.posts-archive-reveal {
  margin: 0 0 2.5rem;
  padding-top: 0.5rem;
  text-align: center;
}

.posts-archive-toggle {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.25rem;
}

.posts-archive {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.posts-archive-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 1rem;
}

.archive-years {
  display: grid;
  gap: 0.5rem;
}

.archive-year {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  overflow: hidden;
}

.archive-year-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  text-align: left;
  transition: background 0.2s;
}

.archive-year-btn:hover {
  background: var(--accent-soft);
}

.archive-year-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.archive-year-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-dark);
  letter-spacing: -0.01em;
}

.archive-year-meta {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--body-muted);
}

.archive-year-btn[aria-expanded="true"] .archive-year-label {
  color: var(--accent);
}

.archive-year-panel {
  border-top: 1px solid var(--border);
  padding: 0 1.125rem 0.5rem;
}

.archive-year-panel .home-entry {
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 0;
  padding: 2.25rem 0 2.75rem;
}

.archive-year-panel .home-entry:first-child {
  padding-top: 1.5rem;
}

.archive-year-panel .home-entry:last-child {
  border-bottom: none;
  padding-bottom: 2rem;
}

.archive-year-panel .home-divider {
  margin: 0 0 2.5rem;
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left, .hero-right { padding: 3rem 1.75rem; }
  .hero-right {
    border-left: none;
    border-top: 1px solid var(--border-strong);
  }
  .home-banner img { height: 11.5rem; object-position: center 58%; }
  .nav { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Reading page (Style C+ · cream body, scannable cards)
   -------------------------------------------------------------------------- */

.reading-page {
  background: var(--bg-light);
}

.page-reading {
  max-width: var(--max-wide);
}

.reading-header {
  max-width: var(--max-width);
  margin-bottom: 0.5rem;
}

.reading-header h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
  color: var(--body-dark);
}

.reading-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.reading-section-title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.625rem;
  color: var(--body-dark);
}

.reading-section-intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  color: var(--body-muted);
  line-height: 1.65;
}

.reading-section-intro code {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  background: var(--bg-panel);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--body);
}

/* Lane tags: Design · Measure · Decide */
.lane-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
}

.lane-tag--design {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(95, 113, 97, 0.25);
}

.lane-tag--measure {
  color: #4A5E6D;
  background: rgba(74, 94, 109, 0.1);
  border: 1px solid rgba(74, 94, 109, 0.2);
}

.lane-tag--decide {
  color: var(--taupe);
  background: rgba(122, 107, 93, 0.12);
  border: 1px solid rgba(122, 107, 93, 0.22);
}

.lane-tag--general {
  color: var(--body-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

/* Source cards */
.source-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.source-card-grid--compact .source-card {
  padding: 1.25rem 1.125rem;
}

.source-card {
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.25rem;
}

.source-card--featured {
  border-left: 3px solid var(--highlight);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-panel) 100%);
}

.source-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.source-card-head h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.source-card-head h3 a {
  color: var(--body-dark);
}

.source-card-head h3 a:hover {
  color: var(--accent);
}

.source-card-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--taupe);
  margin: 0 0 0.625rem;
  letter-spacing: 0.02em;
}

.source-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

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

.source-card-links {
  font-family: var(--font-ui);
  font-size: 0.8125rem !important;
  color: var(--body-muted) !important;
}

.source-card-links a {
  color: var(--accent);
}

.source-note {
  font-style: italic;
  color: var(--body-muted);
}

/* Paper list */
.paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.paper-item {
  padding: 1.25rem 1.375rem;
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.paper-item-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.paper-item-head h3 {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 12rem;
  line-height: 1.4;
}

.paper-item-head h3 a {
  color: var(--body-dark);
}

.paper-item-head h3 a:hover {
  color: var(--accent);
}

.paper-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--taupe);
  margin: 0 0 0.5rem;
}

.paper-item > p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body-muted);
}

/* Feed section */
.reading-section--feed {
  background: var(--bg-panel);
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  border-top: none;
}

.reading-feed {
  max-width: var(--max-wide);
}

.feed-loading,
.feed-empty {
  font-size: 0.9375rem;
  color: var(--body-muted);
  margin: 0;
}

.feed-updated {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--body-muted);
  margin: 0 0 1.25rem;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.feed-item {
  padding: 1.125rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--line-charcoal);
}

.feed-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.375rem;
}

.feed-item-source {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--taupe);
}

.feed-item-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--body-muted);
  margin-left: auto;
}

.feed-item-title {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.feed-item-title a {
  color: var(--body-dark);
}

.feed-item-title a:hover {
  color: var(--accent);
}

.feed-item-summary {
  margin: 0.5rem 0 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  color: var(--body-muted) !important;
}

.reading-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.reading-page .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.reading-page .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

@media (max-width: 768px) {
  .reading-section--feed {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .feed-item-date {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Selected Work (Executive Case Study Library) ── */

.page-work,
.page-work-detail {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.75rem 4rem;
}

.work-header {
  max-width: var(--max-width);
  margin-bottom: 2.5rem;
}

.work-header h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.875rem, 3.5vw, 2.375rem);
  font-weight: 600;
  color: var(--body-dark);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.work-tagline {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--body-muted);
  max-width: 38rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.work-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.375rem 1.5rem;
  border-left: 3px solid var(--line-charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card-domain {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0;
}

.work-card-title {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.work-card-title a {
  color: var(--body-dark);
}

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

.work-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--body-muted);
  margin: 0;
}

.work-card-summary {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0.25rem 0 0;
  flex: 1;
}

.work-card-message {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--accent);
  margin: 0.5rem 0 0;
  font-style: normal;
}

.work-card-link {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.work-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.work-page .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.work-page .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Work detail */
.work-breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--body-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.work-breadcrumb a {
  color: var(--accent);
}

.work-breadcrumb span:last-child {
  color: var(--body);
}

.work-detail-header {
  max-width: var(--max-width);
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.work-detail-header h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--body-dark);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.work-detail-meta {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--taupe);
  margin: 0 0 1rem;
}

.work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work-metric {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.work-metric-value {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-dark);
}

.work-metric-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.work-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.work-detail-page .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.work-detail-page .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.work-section {
  max-width: var(--max-width);
  margin-bottom: 2rem;
}

.work-section h2 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--body-dark);
  margin: 0 0 0.75rem;
}

.work-section p {
  margin: 0;
  line-height: 1.7;
}

.work-outcomes-list,
.work-lessons-list {
  margin: 0;
  padding-left: 1.25rem;
}

.work-outcomes-list li,
.work-lessons-list li {
  margin-bottom: 0.625rem;
  line-height: 1.65;
}

.work-section-diagram {
  max-width: var(--max-wide);
}

.work-diagram-intro {
  font-size: 0.9375rem;
  color: var(--body-muted);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.work-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  overflow-x: auto;
}

.work-diagram-stage {
  flex: 1 1 10rem;
  min-width: 9rem;
  padding: 0.75rem 0.875rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.work-diagram-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.625rem;
}

.work-diagram-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--body);
}

.work-diagram-list li {
  margin-bottom: 0.375rem;
}

.work-diagram-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.5rem;
  color: var(--taupe);
  padding: 0 0.125rem;
}

.work-diagram-arrow span {
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--taupe);
}

.work-detail-footer-nav {
  max-width: var(--max-width);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .page-work,
  .page-work-detail {
    padding: 2rem 1rem 3rem;
  }

  .work-diagram {
    flex-direction: column;
    padding: 1rem;
  }

  .work-diagram-arrow {
    flex: 0 0 auto;
    padding: 0.25rem 0;
    transform: rotate(90deg);
  }

  .work-diagram-stage {
    min-width: 100%;
  }
}

/* ── Work hub (portfolio modal) ── */

.page-work-hub {
  max-width: 68rem;
}

.work-hub-section {
  margin-bottom: 3rem;
}

.work-hub-section-header {
  max-width: var(--max-width);
  margin-bottom: 1.25rem;
}

.work-hub-section-header h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--body-dark);
  margin: 0 0 0.5rem;
}

.work-hub-section-header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--body-muted);
  line-height: 1.6;
  max-width: 40rem;
}

.work-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 64rem) {
  .work-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-hub-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.work-hub-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(34, 44, 56, 0.08);
}

.work-hub-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work-hub-thumb {
  flex: 0 0 38%;
  max-width: 38%;
  min-width: 10.5rem;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}

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

.work-hub-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg-muted) 100%);
}

.work-hub-thumb-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.work-hub-card-body {
  padding: 0.875rem 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

@media (max-width: 40rem) {
  .work-hub-card {
    flex-direction: column;
  }

  .work-hub-thumb {
    flex: none;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

.work-hub-card-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0;
}

.work-hub-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.work-hub-status {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.work-hub-status--ready {
  background: rgba(95, 113, 97, 0.14);
  color: var(--accent);
}

.work-hub-status--draft {
  background: rgba(184, 149, 107, 0.16);
  color: var(--taupe);
}

.work-hub-status--staged {
  background: var(--bg-panel);
  color: var(--body-muted);
}

.work-hub-status--in-review {
  background: rgba(34, 44, 56, 0.08);
  color: var(--navy);
}

.work-review-banner {
  max-width: var(--max-wide);
  margin: 0 0 2rem;
  padding: 0.875rem 1.125rem;
  background: rgba(184, 149, 107, 0.12);
  border: 1px solid rgba(184, 149, 107, 0.35);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.work-review-banner p {
  margin: 0;
}

.work-hub-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.work-hub-jump-link {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--body-dark);
  background: var(--bg-light);
}

.work-hub-jump-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-hub-section-count {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--body-muted);
  margin: 0.35rem 0 0;
}

.work-hub-footnote {
  font-size: 0.875rem;
  color: var(--body-muted);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.work-modal-metrics {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--taupe);
  margin: 0 0 0.5rem;
}

.work-modal-metrics[hidden] {
  display: none;
}

.work-modal-narrative {
  margin: 0 0 0.75rem;
}

.work-modal-narrative[hidden] {
  display: none;
}

.work-modal-prose {
  display: flex;
  flex-direction: column;
}

.work-modal-prose[hidden] {
  display: none;
}

.work-modal-prose p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--body);
  margin: 0;
  padding: 0.625rem 0;
}

.work-modal-prose p:first-child {
  padding-top: 0;
}

.work-modal-prose p:last-child {
  padding-bottom: 0;
}

.work-modal-prose p + p {
  border-top: 1px solid var(--border);
}

.work-modal-prose strong {
  color: var(--body-dark);
  font-weight: 600;
}

.work-modal-narrative-labeled[hidden] {
  display: none;
}

.work-modal-narrative-block {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
}

.work-modal-narrative-block:first-child {
  border-top: none;
  padding-top: 0;
}

.work-modal-narrative-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.3rem;
}

.work-modal-narrative-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

.work-modal-summary[hidden] {
  display: none;
}

.work-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.work-modal-links[hidden] {
  display: none;
}

.work-modal-link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
}

.work-hub-card-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-dark);
  margin: 0;
  line-height: 1.35;
}

.work-hub-card-summary {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--body-muted);
  margin: 0;
  flex: 1;
}

/* Modal shell */
body.work-modal-open {
  overflow: hidden;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.work-modal[hidden] {
  display: none;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 44, 56, 0.72);
}

.work-modal-dialog {
  position: relative;
  width: min(84rem, 100%);
  max-height: min(94vh, 56rem);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(34, 44, 56, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.work-modal-dialog--slides {
  height: min(94vh, 56rem);
}

.work-modal-close {
  position: absolute;
  top: 0.625rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--body-dark);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.work-modal-close:hover {
  background: var(--border);
}

.work-modal-inner {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.work-modal-dialog--slides .work-modal-inner {
  flex-direction: row;
  align-items: stretch;
  height: 100%;
}

.work-modal-dialog--code .work-modal-inner {
  flex-direction: column;
}

.work-modal-slides {
  flex: 0 0 68%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.work-modal-slides-head {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  padding: 0.625rem 0.875rem 0.125rem;
}

.work-modal-slides-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
}

.work-modal-slides-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.375rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-muted);
}

.work-modal-slides-scroll::-webkit-scrollbar {
  width: 8px;
}

.work-modal-slides-scroll::-webkit-scrollbar-track {
  background: var(--bg-muted);
  border-radius: 4px;
}

.work-modal-slides-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
  border: 2px solid var(--bg-muted);
}

.work-modal-slides-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Fade hint when slide stack overflows */
.work-modal-slides-scroll::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  margin-top: -2rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-modal-slides-scroll.is-scrollable::after {
  opacity: 1;
}

.work-modal-slide {
  margin: 0;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 2px 12px rgba(34, 44, 56, 0.08);
}

.work-modal-slide img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.work-modal-content {
  flex: 1 1 32%;
  min-width: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
}

.work-modal-dialog--slides .work-modal-content {
  max-width: 32%;
}

.work-modal-dialog--code .work-modal-content {
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.work-modal-eyebrow {
  margin-bottom: 0.15rem;
}

.work-modal-title {
  font-family: var(--font-ui);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--body-dark);
  margin: 0.2rem 0 0.5rem;
  line-height: 1.25;
  padding-right: 2rem;
}

.work-modal-summary {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.work-modal-bullets {
  margin: 0 0 0.875rem;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.work-modal-bullets[hidden] {
  display: none;
}

.work-modal-bullets li {
  margin-bottom: 0.3rem;
}

.work-modal-disclaimer {
  font-size: 0.8125rem;
  color: var(--body-muted);
  font-style: italic;
  margin: 0 0 0.75rem;
}

.work-modal-disclaimer[hidden] {
  display: none;
}

.work-modal-github--content {
  display: inline-flex;
}

@media (max-width: 768px) {
  .work-modal-dialog--slides .work-modal-inner {
    flex-direction: column;
  }

  .work-modal-dialog--slides .work-modal-content {
    max-width: none;
  }

  .work-modal-slides {
    flex: 0 0 auto;
    max-height: 56vh;
    min-height: 0;
    padding-top: 2.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .work-modal-dialog--slides {
    height: min(94vh, 56rem);
  }

}

/* ── Work preview · demo modal ── */

.work-preview-page .work-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.work-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.work-thumb:hover,
.work-thumb:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(34, 44, 56, 0.08);
  outline: none;
}

.work-thumb-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  overflow: hidden;
}

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

.work-thumb-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.125rem 1.125rem;
}

.work-thumb-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-thumb-title {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--body-dark);
}

.work-thumb-sub {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body-muted);
}

.work-empty {
  color: var(--body-muted);
  font-size: 0.9375rem;
}

body.work-demo-modal-open {
  overflow: hidden;
}

.work-demo-modal[hidden] {
  display: none !important;
}

.work-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.work-demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 44, 56, 0.72);
}

.work-demo-modal-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2.5rem);
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(34, 44, 56, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-demo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--body-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.work-demo-modal-close:hover {
  background: var(--border);
}

.work-demo-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  min-height: 0;
  max-height: calc(100vh - 2.5rem);
}

.work-demo-modal-slides {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
}

.work-demo-modal-slide-stack {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-demo-slide {
  margin: 0;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(245, 243, 238, 0.12);
}

.work-demo-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-demo-modal-repo {
  padding: 0.875rem 1rem 1rem;
  border-top: 1px solid rgba(245, 243, 238, 0.12);
  background: var(--bg-dark);
}

.work-demo-github-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.work-demo-modal-copy {
  padding: 1.5rem 1.5rem 1.75rem;
  overflow-y: auto;
}

.work-demo-modal-copy h2 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--body-dark);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.25;
}

.work-demo-modal-framing {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--accent);
  margin: 0 0 1rem;
}

.work-demo-modal-copy > p:not(.work-demo-modal-framing):not(.eyebrow) {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 1.25rem;
}

.work-demo-modal-subhead {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 0.625rem;
}

.work-demo-modal-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

.work-demo-modal-list li {
  margin-bottom: 0.45rem;
}

@media (max-width: 860px) {
  .work-demo-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .work-demo-modal-slides {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 42vh;
  }

  .work-demo-modal-copy {
    max-height: none;
  }
}
