/* Design system: "Job Site Work Order" — see DESIGN.md once generated.
   Cool paper + navy ink, one committed gold accent, ruled/numbered grid.
   Ink and accent are sampled directly from the Beacon Digital logo
   (images/beacon-logo.png): navy #263446, gold #f8a732. */
:root {
  --color-paper: oklch(97% 0.006 255);
  --color-paper-alt: oklch(94% 0.008 255);
  --color-ink: oklch(32% 0.037 255);
  --color-ink-muted: oklch(46% 0.03 255);
  --color-border: oklch(84% 0.012 255);
  --color-accent: oklch(79% 0.155 71);
  --color-accent-deep: oklch(42% 0.13 60);
  --color-accent-tint: oklch(93% 0.05 71);

  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a,
button {
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Motion: scroll reveal for repeating content, staggered by --reveal-i.
   Gated behind prefers-reduced-motion so it never fires for users who've
   asked to avoid it; without JS or with reduced motion, content is just visible. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
  }

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

  .hero__title,
  .hero__subtitle,
  .hero__actions {
    opacity: 0;
    animation: hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero__title {
    animation-delay: 0.05s;
  }

  .hero__subtitle {
    animation-delay: 0.18s;
  }

  .hero__actions {
    animation-delay: 0.3s;
  }

  @keyframes hero-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.section__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
  padding-bottom: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.section__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--color-accent-deep);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

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

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}

/* Skip link */

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 14px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  left: 0;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.nav.is-scrolled {
  box-shadow: 0 8px 24px -16px rgb(38 52 70 / 0.35);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px max(24px, env(safe-area-inset-right)) 18px max(24px, env(safe-area-inset-left));
  padding-top: max(18px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav__cta {
  background: var(--color-accent);
  color: var(--color-ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav__hamburger::before {
  content: '';
  position: absolute;
  inset: -4px;
}

.nav__hamburger:active {
  background: var(--color-paper-alt);
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .nav__hamburger span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__drawer {
  display: none;
  flex-direction: column;
}

.nav__drawer a:not(.nav__cta) {
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.nav__drawer a:not(.nav__cta):active {
  background: var(--color-paper-alt);
}

.nav__drawer li:has(> .nav__cta) {
  align-self: center;
}

.nav__drawer .nav__cta {
  display: inline-flex;
  width: fit-content;
  padding: 14px 22px;
  margin: 16px 24px 4px;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__drawer {
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border-top: 1px solid transparent;
  }
  .nav__drawer.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    padding-bottom: 12px;
    border-top-color: var(--color-border);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .nav__drawer {
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                padding-bottom 0.3s ease,
                border-color 0.3s ease,
                visibility 0s linear 0.35s;
  }
  .nav__drawer.is-open {
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease 0.05s,
                padding-bottom 0.3s ease,
                border-color 0.15s ease,
                visibility 0s linear 0s;
  }
}

/* While the drawer is open: lock background scroll and dim/blur the page
   content behind it so touch input reads as belonging to the menu, not
   the page underneath. */
body.nav-open {
  overflow: hidden;
}

main {
  filter: blur(0px);
}

body.nav-open main {
  filter: blur(6px);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  main {
    transition: filter 0.3s ease;
  }
}

/* Hero */

.hero {
  padding: 120px 24px 88px;
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero__title-break {
  display: none;
}

@media (min-width: 701px) {
  .hero__title-break {
    display: initial;
  }
}

.hero__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 24px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.hero__subtitle {
  font-size: 19px;
  color: var(--color-ink-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Shared section layout */

section {
  padding: 80px 24px;
  scroll-margin-top: 96px;
}

.audience__inner,
.work__inner,
.process__inner,
.why__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.audience {
  background: var(--color-paper-alt);
}

.audience__inner {
  background: var(--color-paper);
  border-radius: 24px;
  padding: 56px 48px;
}

/* Audience: two centered columns divided by a rule, not boxed cards */

.audience__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.audience__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  border-left: 1px solid var(--color-border);
}

.audience__item:first-child {
  border-left: none;
}

.audience__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
}

.audience__item-icon svg {
  width: 34px;
  height: 34px;
}

.audience__item h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.audience__item p {
  color: var(--color-ink-muted);
  font-size: 15px;
  max-width: 38ch;
}

/* Work */

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.work__card-image {
  display: block;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--color-paper-alt);
}

.work__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (prefers-reduced-motion: no-preference) {
  .work__card-image img {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .work__card-image:hover img {
    transform: scale(1.03);
  }
}

.work__card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.work__card p {
  color: var(--color-ink-muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.work__card-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-deep);
  margin-bottom: 0;
}

.work__card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
}

.work__card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 6px;
  margin: -13px -6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.work__card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .work__card-link-arrow {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .work__card-link:hover .work__card-link-arrow {
    transform: translate(3px, -3px);
  }
}

/* Process */

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.process__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
}

.process__step-icon svg {
  width: 26px;
  height: 26px;
}

.process__step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.process__step p {
  color: var(--color-ink-muted);
  font-size: 15px;
}

/* Why: columns divided by neutral rules, not boxed cards */

.why__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why__item {
  padding: 0 28px;
  border-left: 1px solid var(--color-border);
}

.why__item:first-child {
  border-left: none;
  padding-left: 0;
}

.why__item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why__item p {
  color: var(--color-ink-muted);
  font-size: 15px;
}

@media (max-width: 700px) {
  .hero {
    padding: 88px 24px 64px;
  }
  section {
    padding: 56px 24px;
  }
  .why__item {
    border-left: none;
    padding: 24px 0 0;
    border-top: 1px solid var(--color-border);
  }
  .why__item:first-child {
    border-top: none;
    padding-top: 0;
  }
  .audience__inner {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .audience__item {
    border-left: none;
    padding: 32px 0 0;
    border-top: 1px solid var(--color-border);
  }
  .audience__item:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* CTA */

.cta {
  background: var(--color-ink);
  color: var(--color-paper);
  text-align: center;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 14px;
}

.cta p {
  color: oklch(80% 0.015 75);
  margin-bottom: 28px;
  font-size: 16px;
}

.cta .btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
}

.cta .btn--secondary {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Services */

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

/* Three cards, flagship in the middle: Website Build and Automate flank
   Local SEO/Grow (the recurring-revenue service). Top-aligned so opening
   a card's details grows it downward in place, never shifting the other
   two; the feature card's fixed negative margin gives it a slight raised
   prominence instead, independent of any card's expanded state. */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
  padding-top: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-paper);
}

.service-card--support {
  padding: 26px;
}

.service-card--feature {
  padding: 36px;
  margin-top: -16px;
  background: var(--color-accent-tint);
  border-color: color-mix(in oklch, var(--color-accent) 40%, var(--color-border));
  box-shadow: 0 20px 40px -28px var(--color-accent-deep);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
}

.service-card--support .service-card__icon {
  width: 48px;
  height: 48px;
}

.service-card--feature .service-card__icon {
  width: 60px;
  height: 60px;
  background: var(--color-paper);
}

.service-card--support .service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card--feature .service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  margin-bottom: 8px;
}

.service-card--support .service-card__title {
  font-size: 19px;
}

.service-card--feature .service-card__title {
  font-size: 23px;
}

.service-card__hook {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}

.service-card__quote {
  white-space: nowrap;
}

.service-card__details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.service-card--feature .service-card__details {
  border-top-color: color-mix(in oklch, var(--color-accent) 35%, var(--color-border));
}

.service-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.service-card__toggle::-webkit-details-marker {
  display: none;
}

.service-card__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  font-size: 16px;
  color: var(--color-ink-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .service-card__chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.service-card__details[open] .service-card__chevron {
  transform: rotate(45deg);
}

.service-card__body {
  padding-top: 20px;
}

.service-card__body p {
  color: var(--color-ink-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.service-card__list {
  margin-bottom: 16px;
}

.service-card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-ink-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-card__proof {
  padding: 18px;
  background: var(--color-paper);
  border-radius: var(--radius);
}

.service-card--feature .service-card__proof {
  background: var(--color-paper-alt);
}

.service-card__proof p {
  font-size: 13px;
  margin-bottom: 10px;
}

.service-card__proof-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.service-card__proof-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .service-card--support,
  .service-card--feature {
    padding: 28px;
    margin-top: 0;
  }

  .service-card--support .service-card__icon,
  .service-card--feature .service-card__icon {
    width: 52px;
    height: 52px;
  }

  .service-card--support .service-card__icon svg,
  .service-card--feature .service-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card--support .service-card__title,
  .service-card--feature .service-card__title {
    font-size: 20px;
  }
}

/* Bundle (Beacon Complete) */

.bundle {
  background: var(--color-paper-alt);
}

.bundle__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.bundle__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  color: var(--color-accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bundle h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 14px;
}

.bundle p {
  color: var(--color-ink-muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto 20px;
}

.bundle__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}

.bundle__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Book a call */

.book-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.book-hero__title {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 16px;
  text-wrap: balance;
}

.book-hero__subtitle {
  font-size: 17px;
  color: var(--color-ink-muted);
  max-width: 52ch;
  margin: 0 auto;
}

.book-form {
  background: var(--color-paper-alt);
}

.book-form__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-paper);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}

.book-form__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  border-right: 1px solid var(--color-border);
  padding-right: 40px;
}

.book-form__photo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent-tint);
}

.book-form__intro p {
  font-size: 15px;
  color: var(--color-ink-muted);
}

.book-form__intro strong {
  color: var(--color-ink);
}

.book-form__calendly {
  min-width: 320px;
  height: 650px;
}

@media (max-width: 700px) {
  .book-form__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .book-form__intro {
    flex-direction: row;
    text-align: left;
    border-right: none;
    padding-right: 0;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
  }
  .book-form__photo {
    width: 64px;
    height: 64px;
  }
}

.form__honeypot {
  display: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form__field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.form__required {
  margin-left: 3px;
  color: var(--color-accent);
}

.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  padding: 10px 2px;
  transition: border-color 0.15s ease;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent-deep);
}

.form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.form__submit {
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

@media (max-width: 700px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  .book-form__inner {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .form__submit {
    display: block;
    margin-inline: auto;
  }
}

/* Case study */

.case-hero__inner,
.case-stats__inner,
.case-content__inner,
.case-results__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 6px;
  margin: -13px -6px 27px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.case-hero__breadcrumb:hover {
  color: var(--color-ink);
}

.case-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  text-wrap: balance;
}

.case-hero__meta {
  color: var(--color-ink-muted);
  font-size: 16px;
  margin-bottom: 8px;
}

.case-hero__meta strong {
  color: var(--color-ink);
}

.case-hero__image {
  display: block;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-paper-alt);
}

.case-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

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

.case-stats {
  background: var(--color-paper-alt);
}

.case-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.case-stats__item {
  padding: 0 28px;
  border-left: 1px solid var(--color-border);
  text-align: center;
}

.case-stats__item:first-child {
  border-left: none;
}

.case-stats__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--color-ink);
  line-height: 1.1;
  margin-bottom: 10px;
}

.case-stats__label {
  color: var(--color-ink-muted);
  font-size: 14px;
  max-width: 32ch;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .case-stats__row {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
  .case-stats__item {
    padding: 0 14px;
  }
  /* :first-child alone only clears the border for a single row. With 4
     stats wrapping into two rows, the third stat starts a new row but
     isn't the first child, so it kept a stray left border. Targeting the
     whole left column (odd positions) clears it regardless of row count. */
  .case-stats__item:nth-child(odd) {
    border-left: none;
  }
  .case-stats__value {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .case-stats__label {
    font-size: 12.5px;
    max-width: none;
  }
}

.case-stats__note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  font-size: 14px;
  text-align: center;
}

.case-content__inner {
  max-width: 720px;
}

.case-content h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.case-content p {
  color: var(--color-ink-muted);
  font-size: 16px;
  max-width: 65ch;
  margin-bottom: 16px;
}

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

.case-content__list {
  margin: 0 0 16px;
  padding-left: 0;
}

.case-content__list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-ink-muted);
  font-size: 16px;
  max-width: 65ch;
  margin-bottom: 10px;
}

.case-content__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.case-results {
  background: var(--color-paper-alt);
}

.case-results__inner {
  max-width: 720px;
}

.case-results h2 {
  font-size: 26px;
  margin-bottom: 32px;
}

.case-results__group {
  margin-bottom: 32px;
}

.case-results__group:last-child {
  margin-bottom: 0;
}

.case-results__group h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.case-results__group p {
  color: var(--color-ink-muted);
  font-size: 16px;
  max-width: 65ch;
  margin-bottom: 16px;
}

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

.case-quote__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.case-quote__inner blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.case-quote__inner cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-muted);
}

/* Footer */

.footer {
  padding: 32px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: var(--color-ink-muted);
}
