/* ABrook 2026 / Case-study-template — layout from bm360-case-study-2 */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

.case-study-2026 {
  /* Aligned with ab2025 base palette */
  --paper: #fff;
  --ink: #333;
  --muted: #777;
  --line: #e5e7eb;
  --surface: #f5f5f5;
  --surface-soft: #f0faf8;
  --brand: #1ca190;
  --brand-bright: #23e2c7;
  --brand-wash: #e8f7f4;
  --dark: #333;
  --accent: #e66c36;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Poppins', Arial, Helvetica, sans-serif;
  --mono: 'DM Mono', monospace;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 16px;
  overflow: hidden;
}

.case-study-2026 a {
  color: inherit;
  text-decoration: none;
}

.case-study-2026 img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.case-study-2026 .arrow {
  font-size: 16px;
  margin-left: 7px;
  line-height: 0;
}

.case-study-2026 .case-hero {
  padding: 86px 7vw 90px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7vw;
  align-items: start;
}

.case-study-2026 .section-label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 26px;
}

.case-study-2026 .hero-copy h1 {
  font-size: clamp(52px, 6.6vw, 95px);
  line-height: 0.97;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 0 0 33px;
  font-family: var(--sans);
  color: var(--ink);
}

.case-study-2026 .hero-copy h1 em,
.case-study-2026 h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.case-study-2026 em {
  line-height: 1.2;
}

.case-study-2026 .hero-summary {
  font-size: 20px;
  line-height: 1.4;
  max-width: 510px;
  color: var(--muted);
  margin: 0;
}

.case-study-2026 .hero-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.case-study-2026 .hero-image-wrap img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: var(--surface);
  box-shadow: 0 0 50px -40px;
  border: 8px solid #fff;
}

/* Portrait UI captures — phone-frame crop (top of long scrolls) */
.case-study-2026 .hero-image-wrap img.is-portrait,
.case-study-2026 .screen-image-wrap > img.is-portrait,
.case-study-2026 .workflow-image img.is-portrait {
  width: min(100%, 340px);
  aspect-ratio: 9 / 19.5;
  height: auto;
  max-height: min(70vh, 700px);
  object-fit: cover;
  object-position: top center;
}

/* Landscape product shots — fill the column naturally */
.case-study-2026 .hero-image-wrap img.is-landscape,
.case-study-2026 .screen-image-wrap > img.is-landscape,
.case-study-2026 .workflow-image img.is-landscape {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 820px);
  object-fit: contain;
  object-position: center;
}

/* Ultra-wide diagrams / comparisons */
.case-study-2026 .hero-image-wrap img.is-ultrawide,
.case-study-2026 .screen-image-wrap > img.is-ultrawide,
.case-study-2026 .workflow-image img.is-ultrawide {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(48vh, 420px);
  object-fit: contain;
  object-position: center;
}

.case-study-2026 .image-note {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logged-in only: caption + filename helpers under case-study image slots */
.case-study-2026 .case26-image-admin {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.case-study-2026 .case26-image-admin a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-study-2026 .case26-image-admin a:hover {
  color: var(--ink);
}

.case-study-2026 .case26-image-admin__caption {
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  word-break: break-word;
}

.case-study-2026 .case26-image-admin__sep {
  opacity: 0.45;
}

.case-study-2026 .visual-section .case26-image-admin {
  color: rgba(255, 255, 255, 0.7);
}

.case-study-2026 .visual-section .case26-image-admin a {
  color: var(--brand-bright);
}

.case-study-2026 .visual-section .case26-image-admin a:hover {
  color: #fff;
}

.case-study-2026 .visual-section .case26-image-admin__caption {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.case-study-2026 .note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  flex: none;
}

.case-study-2026 .meta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 7vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 26px 0 30px;
}

.case-study-2026 .meta-band div {
  padding-right: 25px;
}

.case-study-2026 .meta-band div + div {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.case-study-2026 .meta-band span {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 9px;
}

.case-study-2026 .meta-band strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  display: block;
  max-width: 260px;
  font-family: var(--sans);
  color: var(--ink);
}

.case-study-2026 .case-section {
  padding: 125px 7vw;
}

.case-study-2026 .two-col {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 8vw;
}

.case-study-2026 .section-body h2,
.case-study-2026 .section-intro h2,
.case-study-2026 .visual-heading h2,
.case-study-2026 .screen-copy h2,
.case-study-2026 .contribution-section h2,
.case-study-2026 .case-cta h2 {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 0.97;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin: 0 0 32px;
  font-family: var(--sans);
  color: inherit;
}

.case-study-2026 .section-body > p,
.case-study-2026 .section-intro > p,
.case-study-2026 .screen-copy > p,
.case-study-2026 .contribution-section > div > p,
.case-study-2026 .case-cta > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 18px;
}

.case-study-2026 .goals-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9vw;
  background: var(--surface);
}

.case-study-2026 .section-intro > h2 {
  font-size: clamp(43px, 4.8vw, 66px);
}

.case-study-2026 .section-intro > p:last-child {
  font-size: 15px;
  max-width: 410px;
}

.case-study-2026 .goal-list {
  border-top: 1px solid var(--line);
}

.case-study-2026 .goal {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.case-study-2026 .goal > span,
.case-study-2026 .work-item > span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand);
}

.case-study-2026 .goal h3,
.case-study-2026 .work-item h3,
.case-study-2026 .evidence-grid h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-family: var(--sans);
  color: var(--ink);
}

.case-study-2026 .goal p,
.case-study-2026 .work-item p,
.case-study-2026 .evidence-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 450px;
}

.case-study-2026 .visual-section {
  padding: 108px 7vw 115px;
  background: var(--dark);
  color: #fff;
}

.case-study-2026 .visual-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.case-study-2026 .visual-heading .section-label {
  color: rgba(255, 255, 255, 0.65);
}

.case-study-2026 .visual-heading h2 {
  font-size: clamp(48px, 6vw, 84px);
  margin: 0 0 48px;
  margin-left: auto;
  color: #fff;
}

.case-study-2026 .workflow-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.case-study-2026 .workflow-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: #404040;
}

.case-study-2026 .visual-section .image-note {
  color: rgba(255, 255, 255, 0.65);
}

.case-study-2026 .what-section {
  padding-bottom: 135px;
}

.case-study-2026 .work-list {
  border-top: 1px solid var(--line);
}

.case-study-2026 .work-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.case-study-2026 .screen-section {
  padding: 110px 7vw;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: center;
  background: var(--surface-soft);
}

.case-study-2026 .screen-copy h2 {
  font-size: clamp(44px, 5.2vw, 72px);
}

.case-study-2026 .screen-copy > p {
  max-width: 420px;
}

.case-study-2026 .inline-link {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 12px;
}

.case-study-2026 .inline-link:hover {
  color: var(--brand);
}

.case-study-2026 .screen-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.case-study-2026 .screen-image-wrap > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  background: var(--surface);
}

.case-study-2026 .screen-image-wrap > .image-note {
  margin-bottom: 8px;
  align-self: stretch;
}

.case-study-2026 .evidence-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 9vw;
}

.case-study-2026 .evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.case-study-2026 .evidence-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.case-study-2026 .evidence-grid strong {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand);
}

.case-study-2026 .evidence-grid h3 {
  margin-top: 42px;
}

.case-study-2026 .contribution-section {
  background: var(--brand-wash);
  /* Keep content aligned where it sat beside the old contribution mark */
  padding: 106px 15vw 113px;
  padding-left: calc(15vw + 130px + 6vw);
}

.case-study-2026 .contribution-section h2 {
  font-size: clamp(47px, 5.5vw, 76px);
}

.case-study-2026 .contribution-section > div > p {
  max-width: 620px;
  color: #555;
}

.case-study-2026 .learning-section {
  padding-top: 120px;
  padding-bottom: 125px;
}

.case-study-2026 .case-cta {
  background: var(--brand);
  color: #fff;
  padding: 110px 7vw 117px;
  text-align: center;
}

.case-study-2026 .case-cta .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.case-study-2026 .case-cta h2 {
  font-size: clamp(57px, 7vw, 100px);
  margin-bottom: 25px;
  color: #fff;
}

.case-study-2026 .case-cta > p:not(.section-label) {
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
  max-width: 430px;
}

.case-study-2026 .button {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ink);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}

/* Soften surrounding Automad chrome on this template */
body.case-study-2026-page {
  background: #fff;
}

body.case-study-2026-page #breadcrumbs {
  display: none;
}

body.case-study-2026-page .slide-content-inner > .case-study-2026 {
  margin-top: 0;
}

@media (max-width: 850px) {
  .case-study-2026 .case-hero {
    padding: 62px 5vw 65px;
    display: block;
  }

  .case-study-2026 .hero-copy h1 {
    font-size: 56px;
  }

  .case-study-2026 .hero-summary {
    font-size: 18px;
    margin-bottom: 42px;
  }

  .case-study-2026 .meta-band {
    margin: 0 5vw;
    display: block;
    padding: 0;
  }

  .case-study-2026 .meta-band div {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .case-study-2026 .meta-band div + div {
    border-left: 0;
    padding-left: 0;
  }

  .case-study-2026 .meta-band div:last-child {
    border-bottom: 0;
  }

  .case-study-2026 .case-section {
    padding: 82px 5vw;
  }

  .case-study-2026 .two-col,
  .case-study-2026 .goals-section,
  .case-study-2026 .evidence-section {
    display: block;
  }

  .case-study-2026 .two-col > .section-label {
    margin-bottom: 32px;
  }

  .case-study-2026 .section-body h2,
  .case-study-2026 .section-intro h2,
  .case-study-2026 .screen-copy h2 {
    font-size: 48px;
  }

  .case-study-2026 .goals-section {
    padding-top: 80px;
    padding-bottom: 82px;
  }

  .case-study-2026 .goal-list {
    margin-top: 45px;
  }

  .case-study-2026 .visual-section {
    padding: 78px 5vw 84px;
  }

  .case-study-2026 .visual-heading {
    display: block;
  }

  .case-study-2026 .visual-heading h2 {
    margin: 0 0 38px;
    font-size: 53px;
  }

  .case-study-2026 .what-section {
    padding-bottom: 85px;
  }

  .case-study-2026 .screen-section {
    padding: 78px 5vw 85px;
    display: block;
  }

  .case-study-2026 .screen-copy {
    margin-bottom: 46px;
  }

  .case-study-2026 .screen-copy h2 {
    font-size: 49px;
  }

  .case-study-2026 .evidence-section {
    padding-bottom: 84px;
  }

  .case-study-2026 .evidence-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
  }

  .case-study-2026 .evidence-grid > div {
    padding: 22px 0;
  }

  .case-study-2026 .evidence-grid h3 {
    margin-top: 18px;
  }

  .case-study-2026 .contribution-section {
    padding: 78px 5vw 85px;
  }

  .case-study-2026 .contribution-section h2 {
    font-size: 50px;
  }

  .case-study-2026 .learning-section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .case-study-2026 .case-cta {
    padding: 83px 5vw 88px;
  }

  .case-study-2026 .case-cta h2 {
    font-size: 62px;
  }
}

/* Project Screens lightgallery (snippets/lightgallery.php) */
.case-study-2026 .case26-screens {
  padding: 70px 7vw 110px;
}

.case-study-2026 .case26-screens .screens {
  padding: 0;
}

.case-study-2026 .case26-screens .screens .heading-container {
  margin-bottom: 16px;
}

.case-study-2026 .case26-screens .screens-note {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.case-study-2026 .case26-screens .screens-note .inline-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-study-2026 .case26-screens .screens-note .inline-link:hover {
  color: var(--ink);
}

.case-study-2026 .case26-screens .screens #lightgallery {
  margin: 0 -30px;
}

.case-study-2026 .case26-screens .screens #lightgallery li img {
  border-radius: 0;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 430px) {
  .case-study-2026 .hero-copy h1 {
    font-size: 50px;
  }

  .case-study-2026 .section-body h2,
  .case-study-2026 .section-intro h2,
  .case-study-2026 .screen-copy h2 {
    font-size: 43px;
  }

  .case-study-2026 .visual-heading h2 {
    font-size: 48px;
  }

  .case-study-2026 .case-cta h2 {
    font-size: 54px;
  }

  .case-study-2026 .case26-screens {
    padding: 50px 5vw 80px;
  }

  .case-study-2026 .case26-screens .screens #lightgallery {
    margin: 0 -15px;
  }
}
