:root {
  --bg: #f5f1ea;
  --paper: #fffdf9;
  --ink: #1f261f;
  --muted: #5b625d;
  --accent: #7d5f49;
  --accent-deep: #4f362a;
  --line: rgba(31, 38, 31, 0.12);
  --mint: #dde7dc;
  --gold: #e9d9b3;
  --bg-glow-1: rgba(167, 131, 101, 0.12);
  --bg-glow-2: rgba(134, 157, 124, 0.16);
  --header-bg: rgba(247, 243, 236, 0.8);
}

body[data-theme='warm'] {
  --bg: #f5f1ea;
  --paper: #fffdf9;
  --ink: #1f261f;
  --muted: #5b625d;
  --accent: #7d5f49;
  --accent-deep: #4f362a;
  --line: rgba(31, 38, 31, 0.12);
  --mint: #dde7dc;
  --gold: #e9d9b3;
  --bg-glow-1: rgba(167, 131, 101, 0.12);
  --bg-glow-2: rgba(134, 157, 124, 0.16);
  --header-bg: rgba(247, 243, 236, 0.8);
}

body[data-theme='blue'] {
  --bg: #edf3f8;
  --paper: #f8fbff;
  --ink: #1f2d3a;
  --muted: #52657a;
  --accent: #3f6f9f;
  --accent-deep: #244866;
  --line: rgba(31, 45, 58, 0.12);
  --mint: #dfeaf3;
  --gold: #d9e6f2;
  --bg-glow-1: rgba(103, 144, 185, 0.18);
  --bg-glow-2: rgba(75, 117, 161, 0.12);
  --header-bg: rgba(240, 246, 252, 0.82);
}

body[data-theme='green'] {
  --bg: #f7f8f3;
  --paper: #fdfdfb;
  --ink: #233429;
  --muted: #53675b;
  --accent: #647d5b;
  --accent-deep: #334d3a;
  --line: rgba(35, 52, 41, 0.1);
  --mint: #e8efe2;
  --gold: #eadab0;
  --bg-glow-1: rgba(120, 146, 107, 0.11);
  --bg-glow-2: rgba(151, 165, 111, 0.09);
  --header-bg: rgba(247, 248, 244, 0.88);
}

body[data-theme='neutral'] {
  --bg: #f0f1f2;
  --paper: #fbfbfa;
  --ink: #1d242b;
  --muted: #5d6771;
  --accent: #6d7d8a;
  --accent-deep: #404d57;
  --line: rgba(26, 31, 35, 0.12);
  --mint: #dfe5e7;
  --gold: #e5ded1;
  --bg-glow-1: rgba(142, 150, 155, 0.16);
  --bg-glow-2: rgba(103, 114, 121, 0.12);
  --header-bg: rgba(244, 245, 246, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

body[data-font='fraunces'] {
  font-family: "Fraunces", serif;
}

body[data-font='fraunces'] h1,
body[data-font='fraunces'] h2,
body[data-font='fraunces'] h3,
body[data-font='fraunces'] .brand,
body[data-font='fraunces'] .section-kicker,
body[data-font='fraunces'] .work-label,
body[data-font='fraunces'] .eyebrow,
body[data-font='fraunces'] .main-nav,
body[data-font='fraunces'] .main-nav a,
body[data-font='fraunces'] .theme-picker,
body[data-font='fraunces'] .btn,
body[data-font='fraunces'] .case-card a {
  font-family: "Fraunces", serif;
}

body[data-font='cormorant'] {
  font-family: "Cormorant Garamond", serif;
}

body[data-font='cormorant'] h1,
body[data-font='cormorant'] h2,
body[data-font='cormorant'] h3,
body[data-font='cormorant'] .brand,
body[data-font='cormorant'] .section-kicker,
body[data-font='cormorant'] .work-label,
body[data-font='cormorant'] .eyebrow,
body[data-font='cormorant'] .main-nav,
body[data-font='cormorant'] .main-nav a,
body[data-font='cormorant'] .theme-picker,
body[data-font='cormorant'] .btn,
body[data-font='cormorant'] .case-card a {
  font-family: "Cormorant Garamond", serif;
}

body[data-font='lora'] {
  font-family: "Lora", serif;
}

body[data-font='lora'] h1,
body[data-font='lora'] h2,
body[data-font='lora'] h3,
body[data-font='lora'] .brand,
body[data-font='lora'] .section-kicker,
body[data-font='lora'] .work-label,
body[data-font='lora'] .eyebrow,
body[data-font='lora'] .main-nav,
body[data-font='lora'] .main-nav a,
body[data-font='lora'] .theme-picker,
body[data-font='lora'] .btn,
body[data-font='lora'] .case-card a {
  font-family: "Lora", serif;
}

body[data-font='libre-baskerville'] {
  font-family: "Libre Baskerville", serif;
}

body[data-font='libre-baskerville'] h1,
body[data-font='libre-baskerville'] h2,
body[data-font='libre-baskerville'] h3,
body[data-font='libre-baskerville'] .brand,
body[data-font='libre-baskerville'] .section-kicker,
body[data-font='libre-baskerville'] .work-label,
body[data-font='libre-baskerville'] .eyebrow,
body[data-font='libre-baskerville'] .main-nav,
body[data-font='libre-baskerville'] .main-nav a,
body[data-font='libre-baskerville'] .theme-picker,
body[data-font='libre-baskerville'] .btn,
body[data-font='libre-baskerville'] .case-card a {
  font-family: "Libre Baskerville", serif;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, var(--bg-glow-2), transparent 28%),
    radial-gradient(circle at 82% 18%, var(--bg-glow-1), transparent 22%),
    linear-gradient(180deg, #f8f5f0 0%, var(--bg) 100%);
  z-index: -1;
}

.site-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.header-note {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-note:hover,
.header-note:focus-visible {
  color: var(--ink);
  background: transparent;
  transform: none;
}

.header-note-popover {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  width: min(28rem, 80vw);
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(31, 38, 31, 0.08);
  padding: 0.9rem 1rem;
  z-index: 10;
}

.header-note-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-note-wrap {
  margin-top: 0.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

main,
.contact,
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero layout and width */
.hero {
  padding-top: 4rem;
  padding-bottom: 1.75rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-deep);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  max-width: 30ch;
  margin-bottom: 1.5rem;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  max-width: 24ch;
}

.hero-copy {
  max-width: 200ch;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.hero-copy-rich {
  max-width: 200ch;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.hero-copy-rich ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.hero-copy-rich li {
  margin-bottom: 0.3rem;
}

.hero-copy-rich br + ul,
.hero-copy-rich ul + br {
  margin-top: 0.5rem;
}

.work-intro-block {
  margin-bottom: 1rem;
}

.work-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-signal {
  max-width: 200h;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
  border-radius: 10px;
}

.case-study-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 38, 31, 0.04);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.72);
}

.btn-text {
  color: var(--ink);
}

.testimonials-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
  margin-bottom: 1.4rem;
}

.testimonials-toggle {
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

#testimonials {
  margin-top: 1.4rem;
}

.section {
  padding: 1.75rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-intro {
  max-width: 64ch;
  color: var(--muted);
}

.ai-work-header {
  margin-bottom: 1.5rem;
}

.ai-activity-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.7);
  padding: 1.2rem 1rem 1rem;
}

.ai-phase-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.5rem 0 1.5rem;
}

.ai-phase-item {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.ai-phase-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 12vw, 148px);
  height: clamp(112px, 12vw, 148px);
  border-radius: 50%;
  border: 1px solid rgba(31, 38, 31, 0.2);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  padding: 0.75rem;
}

.ai-phase-purple .ai-phase-node,
.ai-phase-dot.ai-phase-purple {
  background: rgba(177, 139, 214, 0.28);
}

.ai-phase-green .ai-phase-node,
.ai-phase-dot.ai-phase-green {
  background: rgba(135, 182, 149, 0.28);
}

.ai-phase-blue .ai-phase-node,
.ai-phase-dot.ai-phase-blue {
  background: rgba(98, 164, 216, 0.28);
}

.ai-phase-orange .ai-phase-node,
.ai-phase-dot.ai-phase-orange {
  background: rgba(225, 161, 92, 0.28);
}

.ai-phase-gold .ai-phase-node,
.ai-phase-dot.ai-phase-gold {
  background: rgba(217, 191, 116, 0.32);
}

.ai-phase-connector {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(31, 38, 31, 0.18);
  display: block;
  min-width: 0.8rem;
}

.ai-phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.ai-phase-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.82);
  padding: 0.8rem 0.8rem 0.7rem;
}

.ai-phase-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.ai-phase-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ai-phase-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ai-phase-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
  list-style: disc;
}

.ai-phase-card li {
  line-height: 1.45;
  font-size: 0.82rem;
}

.profile-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.profile-signal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 253, 250, 0.92);
}

.profile-signal-label {
  margin: 0 0 0.4rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-signal-card h3 {
  margin-bottom: 0.5rem;
}

.strengths-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.92);
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.strengths-title {
  margin: 0 0 0.65rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.strength-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.strength-chip {
  display: inline-block;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(31, 38, 31, 0.1);
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 18px rgba(31, 38, 31, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card-thumb {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 38, 31, 0.16);
  box-shadow: 0 12px 24px rgba(31, 38, 31, 0.04);
}

.case-card-featured {
  grid-column: span 2;
}


.case-card h3 {
  line-height: 1.18;
  min-height: 2.5em;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.case-challenge {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.case-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.case-card li {
  line-height: 1.5;
}

.case-card a {
  margin-top: auto;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.case-card a:hover {
  border-bottom-color: var(--accent-deep);
}

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

.working-style-subhead {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.working-style-testimonials-wrap {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.working-style-testimonial-head {
  margin-top: 0;
  margin-bottom: 1rem;
}

.leadership-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.working-notes {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.9);
  padding: 1rem;
  margin-top: 1rem;
}

.working-notes ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.leadership-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.9);
  border-radius: 12px;
  padding: 1rem;
}

.writing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

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

.testimonial-quote {
  margin: 0;
  font-size: 1.02rem;
}

.testimonial-attribution {
  margin: 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery-item {
  margin: 0;
}

.case-gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.9);
  overflow: hidden;
  cursor: zoom-in;
}

.case-gallery-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.case-gallery-item figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(31, 42, 47, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #f6f4ef;
  font-size: 0.9rem;
  text-align: center;
}

#lightbox-counter {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-arrow {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(31, 42, 47, 0.64);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 253, 250, 0.9);
  max-width: 80ch;
}

.contact {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 980px) {
  .leadership-grid-4,
  .profile-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .writing-list,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .case-card-featured {
    grid-column: auto;
  }

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

.edit-mode-active [data-edit] {
  cursor: text;
  border-radius: 4px;
}

.edit-mode-active [data-edit]:hover,
.edit-mode-active [data-edit]:focus {
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
}

.edit-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(31, 42, 47, 0.18);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
}

.edit-toolbar button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.edit-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.edit-toolbar .edit-toolbar-toggle {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.edit-toolbar .edit-toolbar-status {
  color: var(--muted);
  max-width: 22ch;
}

@media (max-width: 760px) {
  .ai-phase-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .ai-phase-item {
    width: 100%;
    justify-content: center;
  }

  .ai-phase-connector {
    display: none;
  }

  .ai-phase-grid {
    grid-template-columns: 1fr;
  }

  .profile-signal-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
    text-align: left;
    min-height: auto;
  }

  .header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 0;
    width: 100%;
  }

  .brand {
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header-note-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-note {
    width: auto;
    max-width: none;
    font-size: 0.63rem;
    line-height: 1.2;
    padding: 0.34rem 0.5rem;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
  }

  .header-note-popover {
    left: auto;
    right: 0;
    transform: none;
    width: min(22rem, calc(100vw - 2rem));
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
  }

  .main-nav a {
    position: relative;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    white-space: nowrap;
    line-height: 1.2;
    border-left: 1px solid rgba(31, 38, 31, 0.12);
  }

  .main-nav a:first-child {
    border-left: none;
    padding-left: 0;
  }

  .main-nav a:last-child {
    padding-right: 0;
  }

  .btn.btn-ghost#resume-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
  }

  .hero {
    padding-top: 2.4rem;
  }
}
