/* Commercial by Design — Design system & global layout */

/* ========== CSS custom properties ========== */
:root {
  --ink: #0d0d0f;
  --paper: #f5f2ec;
  --navy: #1a3a5c;
  --navy-pale: #dce6f0;
  --gold: #b8962e;
  --gold-pale: #fdf8f0;
  --rule: #ccc8be;
  --muted: #6b6560;
}

/* ========== Reset & base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

a:hover {
  background: var(--gold-pale);
}

/* ========== Typography ========== */
h1, h2, h3, .display {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1, .hero h1 {
  font-size: clamp(2.8125rem, 6.25vw, 4.375rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5625rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

.mono, .label, [class*="meta"] {
  font-family: "DM Mono", "Courier New", monospace;
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mono-400 {
  font-weight: 400;
}

.muted {
  color: var(--muted);
}

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

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 4rem 0;
}

/* Tighten the pull-quote band to match the preview spacing */
.section--pull-quote-tight {
  padding-top: 0;
  padding-bottom: 0;
}

/* Reduce whitespace above the quote band */
.section--pull-quote-tight .pull-quote {
  margin-top: 0.75rem; /* halve again from 1.5rem */
}

/* First section after hero (Core Tension) — less padding so it sits closer to hero and cards */
.hero + .section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Audience cards section (Who this is for) — tighter vertical spacing */
.hero + .section + .section {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Pull quote section — less space above so it sits closer to audience cards */
.hero + .section + .section + .section {
  padding-top: 2rem;
}

.section--tight {
  padding: 1.25rem 0;
}

.section--scale {
  padding-top: 1.25rem; /* tighter under #gaps (the-problem page only uses this) */
  padding-bottom: 1.5rem;
}

.section--scale h2 {
  text-align: center;
}

.section--before-diagram {
  padding-bottom: 1.25rem;
}

.section--how {
  padding-bottom: 1.5rem;
}

.section--who-for {
  padding-top: 1.5rem;
}

/* Problem page — less top space so content sits higher */
#founder {
  padding-top: 2rem;
  padding-bottom: 1.25rem; /* pull #gaps up closer to last paragraph */
}
#gaps {
  padding-top: 0.75rem; /* minimal gap after #founder */
  padding-bottom: 1.25rem; /* pull section--scale up closer to gaps list */
}

hr, .rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ========== Header ========== */
.site-header {
  background: var(--navy);
  color: var(--paper);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header a {
  color: inherit;
  border-bottom: none;
}

.site-header a:hover {
  background: transparent;
  color: var(--gold-pale);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

/* Logo: intrinsic size 1042×240 — larger than nav/heading text so it’s clearly visible */
.logo-img {
  display: block;
  width: 23.9rem;     /* 1042/240 * 5.5rem */
  height: 5.5rem;
  object-fit: contain;
}

/* Header uses logo.svg (white); no filter needed */

/* ========== Main nav ========== */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 2px 0;
}

.nav-toggle span:first-child {
  margin-top: 0;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Mobile full-screen menu */
@media (max-width: 768px) {
  .site-header {
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-header .logo-img {
    max-width: 18rem;
    height: auto;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.25rem;
    color: var(--paper);
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    font-size: 1.25rem;
  }

  .main-nav .nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
  }
}

/* ========== Hero ========== */
.hero {
  padding: 5rem 0 1.5rem;
  text-align: center;
}

.hero .container {
  max-width: 85rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 0;
}

.hero-cta-band {
  padding: 1.25rem 0;
  text-align: center;
}

.hero-cta-band + .section {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.section--audience-cards {
  padding-top: 0.75rem;
}

.hero-cta-band .container {
  max-width: 85rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.hero .cta,
.hero-cta-band .cta {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hero .cta:hover,
.hero-cta-band .cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ========== Cards ========== */
.audience-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1rem 0 2.5rem;
}

@media (max-width: 768px) {
  .audience-cards {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  border: 1px solid var(--rule);
  padding: 2rem;
  background: var(--paper);
}

.audience-card h3 {
  font-size: 1rem;
  font-family: "DM Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.audience-card p {
  margin: 0 0 1rem;
}

.audience-card a {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ========== Pull quote ========== */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.25rem;
  font-family: "Libre Baskerville", serif;
}

.pull-quote p {
  margin: 0 0 0.5rem;
}

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

.pull-quote__attr {
  margin-top: 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-style: normal;
}

/* ========== Outcome / prose blocks ========== */
.outcomes p {
  margin: 0;
}

.outcomes p.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

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

/* Same font as hero subhead (e.g. “Expansion revenue is sporadic”) */
.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

/* Tighter gap for outcomes block and “Who I am” */
.section--outcomes {
  padding: 2rem 0;
}

.section--outcomes .outcomes h2 {
  margin-bottom: 0.75rem;
}

.section--who {
  padding-top: 2rem;
}

/* Match the body font in the “Who I am” section (paragraphs only) */
.section--who p {
  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: 1.25rem !important; /* match .lead */
  color: var(--muted) !important; /* match .lead */
}

main ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

main ul li {
  margin-bottom: 0.5rem;
}

/* ========== Logo strip (credibility) ========== */
.logo-strip-band {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin: 0;
  flex-wrap: wrap;
}

.logo-strip__img {
  height: 3.375rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-strip span {
  font-family: "DM Mono", monospace;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ========== CTA block ========== */
.cta-block {
  text-align: left;
  padding: 2rem 0;
}

.cta-block .container {
  max-width: 72rem;
}

.cta-block .container > h2 {
  text-align: left;
  margin-bottom: 25px;
  padding-left: 0;
}

/* Add extra separation before the second heading on the About page */
.cta-block .container > h2 + h2 {
  margin-top: 10px;
}

.cta-block .container > p {
  margin: 0 0 20px;
}

.cta-block .pull-quote {
  margin: 1rem 0 0.75rem;
  font-style: normal;
  color: var(--muted);
  border-left: none;
  padding-left: 0;
}

.cta-block .pull-quote p {
  text-align: left;
}

.cta-block--left {
  text-align: center;
  padding-top: 1rem;
}

.cta-block--left .cta-block__links {
  justify-content: center;
}

/* Align CTA content with heading above (same container width as section--scale) */
.cta-block--left .container {
  max-width: 72rem;
}

/* Make the “How I work” style headers feel larger in the left CTA block */
.cta-block--left .phase__header {
  font-size: 1.6rem;
}

/* Also bump the closing line size */
.cta-block--left .cta-block__outro {
  font-size: 1.25rem;
}

.cta-block--left .bar-block {
  margin-left: 2rem;
  margin-top: 0.75rem;
}

.bar-block {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.bar-block p {
  margin: 0 0 0.5rem;
}

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

.cta-block__outro {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.cta-block__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.cta-block .cta {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  margin-top: 1rem;
}

.cta-block__links .cta {
  margin-top: 0;
}

/* Link-only CTA band (e.g. The Approach): sit closer to the copy above */
.cta-block:has(.container > .cta-block__links:first-child) {
  padding-top: 0.75rem;
}

.cta-block .cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ========== Problem page — gaps & blocks ========== */
.gap-block {
  margin-bottom: 2.5rem;
}

.gap-block:last-of-type {
  margin-bottom: 0;
}

.gap-block__label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.gap-block p {
  margin: 0;
}

/* Eight gaps — collapsible list (#gaps) */
.gaps-list {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-bottom: none;
}

.gaps-item {
  border-bottom: 1px solid var(--rule);
}

.gaps-item__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.gaps-item__summary::-webkit-details-marker {
  display: none;
}

.gaps-item__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  margin-top: 0.4rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.65;
}

.gaps-item[open] .gaps-item__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.gaps-item__summary:focus {
  outline: none;
}

.gaps-item__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gaps-item .system-diagram__num {
  flex: 0 0 1.75rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.gaps-item__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.gaps-item__body {
  padding: 0 1.25rem 1.25rem;
  padding-left: calc(1.25rem + 1.75rem + 1rem);
}

.gaps-item__body .system-diagram__desc {
  margin: 0;
}

.scale-blocks {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .scale-blocks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scale-blocks .scale-block {
  border: 1px solid #ccc8be;
  padding: 2rem;
  background-color: #f5f2ec;
}

.scale-block__label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.scale-blocks .scale-block p {
  margin: 0;
}

.decision-frame {
  margin: 4rem 0;
  padding: 2.5rem;
  border: 1px solid var(--rule);
  background: var(--navy-pale);
}

.decision-frame p {
  margin: 0 0 1rem;
}

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

/* ========== Service — system diagram ========== */
.system-header {
  text-align: left;
  margin-bottom: 1rem;
}

.system-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--rule);
  border-bottom: none;
}

@media (max-width: 900px) {
  .system-diagram {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .system-diagram {
    grid-template-columns: 1fr;
  }
  .system-diagram__col:nth-child(3n + 1),
  .system-diagram__col:nth-child(2n + 1) {
    border-left: none;
  }
  .system-diagram__col:first-child {
    border-left: 1px solid var(--rule);
  }
  .system-diagram__col {
    border-right: none;
  }
  .system-diagram__col:last-child {
    border-right: 1px solid var(--rule);
  }
}

.system-diagram__col {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.system-diagram__col:nth-child(3n + 1) {
  border-left: 1px solid var(--rule);
}

.system-diagram__col:nth-child(3n) {
  border-right: none;
}

@media (max-width: 900px) {
  .system-diagram__col:nth-child(3n + 1) {
    border-left: none;
  }
  .system-diagram__col:nth-child(2n + 1) {
    border-left: 1px solid var(--rule);
  }
  .system-diagram__col:nth-child(3n) {
    border-right: 1px solid var(--rule);
  }
  .system-diagram__col:nth-child(2n) {
    border-right: none;
  }
}

.system-diagram__num {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.system-diagram__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.system-diagram__artifact {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.system-diagram__desc {
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.system-foundation {
  background: var(--navy);
  color: var(--paper);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
}

.system-foundation__label {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 11.5rem; /* fixed width so both foundation blocks' gold bars align */
}

.system-foundation__label .label {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold-pale);
}

.system-foundation__body {
  flex: 1;
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
}

.system-foundation__artifact {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold-pale);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.system-foundation .desc {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.system-foundation .desc p {
  margin: 0 0 0.5rem;
}

.system-foundation .desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .system-foundation {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .system-foundation__label {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
  }

  .system-foundation__label .label {
    font-size: 0.875rem;
    display: block;
  }

  .system-foundation__body {
    padding: 1.25rem 1.5rem;
    border-left: none;
    border-top: 3px solid var(--gold);
  }

  .system-foundation__artifact {
    padding-top: 0;
  }
}

/* ========== How I Work — phases ========== */
.phases {
  margin: 2rem 0;
}

.phase {
  margin-bottom: 2.5rem;
}

.phase:last-child {
  margin-bottom: 0;
}

.phase__header {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.phase__header .num {
  font-family: "DM Mono", monospace;
  font-weight: 400;
  color: var(--gold);
  margin-right: 0.5rem;
}

.phase p {
  margin: 0 0 0.75rem;
}

.phase__output {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

.phase__output .label {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* ========== Case studies grid ========== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: transparent;
  border: none;
  margin: 2rem 0;
}

.case-card {
  background: var(--paper);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--rule);
}

.case-card__logo {
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
}

.case-card__logo-img {
  display: block;
  max-height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.case-card__meta {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-card__tag {
  font-family: "DM Mono", monospace;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: var(--navy-pale);
  color: var(--navy);
}

.case-card .rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1rem 0;
}

.case-card__outcome .label {
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.case-card__outcome .value {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.4;
}

.case-card .pull-quote {
  margin: 1rem 0;
  font-size: 1rem;
}

.case-card__link {
  margin-top: auto;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding-top: 0.5rem;
  border-bottom: none; /* remove global link underline from case study CTA */
  display: inline-block; /* prevent global hover background from spanning full width */
}

/* Prevent the global `a:hover` background from forming a full-width hover box here */
.case-card__link:hover {
  background: transparent !important;
}

.case-card--placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.case-card--placeholder .label {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold);
}

.case-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .case-caption {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.case-caption .brand {
  font-style: italic;
  color: var(--gold);
}

/* ========== Contact CTAs ========== */
.hero--contact {
  padding-bottom: 1.5rem;
}

.hero--contact + .section {
  padding-top: 1rem;
}

.section--contact-intro {
  text-align: center;
}

.section--contact-intro .contact-ctas {
  justify-content: center;
}

.contact-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-ctas .cta {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.contact-ctas .cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ========== Scroll fade-in ========== */
/* Keep content visible without relying on JS: .fade-in used to use opacity:0 until
   IntersectionObserver added .visible, which looked like an empty page if JS failed. */
.fade-in,
.fade-in.visible {
  opacity: 1;
  transform: none;
}
