/* Brand-service narrative and case study. Kept page-scoped to coexist with legacy service styles. */
body.brand-service {
  --brand-ink: #292d27;
  --brand-paper: #f0ede5;
  --brand-paper-deep: #e3dfd4;
  --brand-sage: #a4c1b6;
  --brand-ochre: #9e855d;
  --brand-blush: #dca29f;
  --brand-earth: #ebe5db;
  --brand-stone: #dcd6cb;
  --brand-rule: rgba(41, 45, 39, .24);
  background: var(--brand-paper) !important;
  color: var(--brand-ink) !important;
}

body.brand-service .brand-story,
body.brand-service .brand-example {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

body.brand-service .brand-story {
  padding: clamp(76px, 10vw, 142px) clamp(24px, 8vw, 120px) clamp(82px, 11vw, 150px);
  background: var(--brand-paper) !important;
  color: var(--brand-ink) !important;
}

body.brand-service .brand-story-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  column-gap: clamp(36px, 8vw, 120px);
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
}

body.brand-service .brand-kicker {
  margin: 0 0 22px;
  color: #687365 !important;
  font: 600 10px/1.5 "IBM Plex Mono", monospace !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

body.brand-service .brand-story-intro .brand-kicker {
  grid-column: 1 / -1;
}

body.brand-service .brand-story-intro h2 {
  max-width: 8.5ch;
  margin: 0;
  color: var(--brand-ink) !important;
  font-size: clamp(3.3rem, 7.6vw, 7.6rem) !important;
  line-height: .91 !important;
  letter-spacing: -.085em !important;
  font-weight: 700 !important;
}

body.brand-service .brand-story-intro h2 em {
  color: #53685b !important;
  -webkit-text-fill-color: #53685b !important;
  font-style: normal;
}

body.brand-service .brand-story-lead {
  max-width: 540px;
  margin: 0 0 5px;
  color: #555950 !important;
  font-size: clamp(17px, 1.65vw, 21px) !important;
  line-height: 1.65 !important;
}

body.brand-service .brand-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
  margin: clamp(70px, 10vw, 132px) auto 0;
  border-top: 1px solid var(--brand-rule);
}

body.brand-service .brand-process-step {
  padding: 25px clamp(18px, 3vw, 42px) 0 0;
}

body.brand-service .brand-process-step + .brand-process-step {
  padding-left: clamp(18px, 3vw, 42px);
  border-left: 1px solid var(--brand-rule);
}

body.brand-service .brand-step-no {
  display: block;
  color: #788779 !important;
  font: 600 10px/1.4 "IBM Plex Mono", monospace !important;
  letter-spacing: .1em;
}

body.brand-service .brand-process-step h3 {
  max-width: 14ch;
  margin: 25px 0 13px;
  color: var(--brand-ink) !important;
  font-size: clamp(1.55rem, 2.35vw, 2.6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.055em !important;
}

body.brand-service .brand-process-step p {
  max-width: 38ch;
  margin: 0;
  color: #62645c !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

body.brand-service .brand-example {
  display: grid;
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  padding: clamp(72px, 9vw, 126px) clamp(24px, 8vw, 120px);
  background: #d7d1c5 !important;
  color: var(--brand-ink) !important;
}

body.brand-service .brand-example-copy {
  max-width: 470px;
  justify-self: end;
}

body.brand-service .brand-example-copy .brand-kicker {
  margin-bottom: 25px;
}

body.brand-service .brand-example-copy h2 {
  margin: 0;
  color: var(--brand-ink) !important;
  font-size: clamp(3.2rem, 6vw, 6.1rem) !important;
  line-height: .92 !important;
  letter-spacing: -.085em !important;
}

body.brand-service .brand-example-client {
  margin: 17px 0 32px !important;
  color: #73766b !important;
  font: 600 10px/1.6 "IBM Plex Mono", monospace !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

body.brand-service .brand-example-copy > p:not(.brand-kicker):not(.brand-example-client) {
  max-width: 43ch;
  margin: 0 0 18px;
  color: #555950 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

body.brand-service .brand-case-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  padding: 0 0 9px;
  border-bottom: 1px solid #65695f;
  color: var(--brand-ink) !important;
  font: 600 11px/1.5 "IBM Plex Mono", monospace !important;
  letter-spacing: .015em;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

body.brand-service .brand-case-link:hover,
body.brand-service .brand-case-link:focus-visible {
  gap: 25px;
  color: #687f70 !important;
}

body.brand-service .brand-case-link span {
  color: inherit !important;
}

body.brand-service .brand-identity-board {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(180px, .72fr);
  min-height: 370px;
  width: 100%;
  max-width: 820px;
  justify-self: start;
}

body.brand-service .brand-logo-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(24px, 4.5vw, 60px);
  background: #272922 !important;
  color: var(--brand-paper) !important;
}

body.brand-service .brand-visual-label {
  display: block;
  color: rgba(243, 239, 231, .64) !important;
  font: 500 9px/1.5 "IBM Plex Mono", monospace !important;
  letter-spacing: .12em;
}

body.brand-service .brand-logo-panel > img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: auto 0;
  object-fit: contain;
}

body.brand-service .brand-palette {
  display: flex;
  gap: 8px;
  margin-top: 34px;
  padding-bottom: 13px;
}

body.brand-service .brand-swatch {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

body.brand-service .brand-swatch i {
  display: block;
  height: clamp(34px, 4vw, 48px);
  background: var(--swatch);
}

body.brand-service .brand-swatch span {
  position: static !important;
  display: block !important;
  margin-top: 8px;
  color: rgba(243, 239, 231, .85) !important;
  font: 500 8px/1.4 "IBM Plex Mono", monospace !important;
  letter-spacing: .03em;
  white-space: nowrap;
}

body.brand-service .brand-swatch:nth-child(1) { --swatch: #ebe5db; }
body.brand-service .brand-swatch:nth-child(2) { --swatch: #9e855d; }
body.brand-service .brand-swatch:nth-child(3) { --swatch: #dcd6cb; }
body.brand-service .brand-swatch:nth-child(4) { --swatch: #a4c1b6; }
body.brand-service .brand-swatch:nth-child(5) { --swatch: #dca29f; }

body.brand-service .brand-type-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(23px, 3.5vw, 42px) clamp(18px, 2.7vw, 34px);
  background: var(--brand-paper-deep) !important;
  color: var(--brand-ink) !important;
}

body.brand-service .brand-type-panel .brand-visual-label {
  color: #77776e !important;
}

body.brand-service .brand-type-sample {
  margin-block: 32px;
  color: #786442 !important;
  font: clamp(28px, 2.7vw, 42px)/.98 "Special Elite", Georgia, serif !important;
  letter-spacing: -.055em;
}

body.brand-service .brand-type-caption {
  margin: 0;
  color: #686a61 !important;
  font: 500 9px/1.7 "IBM Plex Mono", monospace !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.brand-service .sp-page.service-brief .brand-endcap {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(74px, 9vw, 120px) 24px;
  background: var(--brand-ink) !important;
  color: var(--brand-paper) !important;
  text-align: center;
}

body.brand-service .brand-endcap .brand-kicker {
  color: var(--brand-sage) !important;
}

body.brand-service .brand-endcap h2 {
  max-width: 13ch;
  margin: 0 auto 34px;
  color: var(--brand-paper) !important;
  font-size: clamp(2.8rem, 6.8vw, 6.8rem) !important;
  line-height: .94 !important;
  letter-spacing: -.08em !important;
}

body.brand-service .brand-endcap .sp-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  background: var(--brand-sage) !important;
  color: var(--brand-ink) !important;
}

body.brand-service .brand-footer,
body.brand-service .brand-footer .footer {
  background: #252821 !important;
  color: var(--brand-paper) !important;
}

body.brand-service .brand-footer .jf-tagline,
body.brand-service .brand-footer .jf-link {
  color: var(--brand-paper) !important;
}

body.brand-service .brand-footer .jf-link:hover {
  color: var(--brand-sage) !important;
}

@media (max-width: 900px) {
  body.brand-service .brand-example {
    grid-template-columns: 1fr;
  }

  body.brand-service .brand-example-copy {
    justify-self: start;
    max-width: 680px;
  }

  body.brand-service .brand-identity-board {
    max-width: none;
  }
}

@media (max-width: 700px) {
  body.brand-service .brand-story-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  body.brand-service .brand-story-intro .brand-kicker {
    grid-column: auto;
  }

  body.brand-service .brand-story-intro h2 {
    max-width: 9ch;
  }

  body.brand-service .brand-process {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  body.brand-service .brand-process-step,
  body.brand-service .brand-process-step + .brand-process-step {
    padding: 24px 0 27px;
    border-left: 0;
    border-bottom: 1px solid var(--brand-rule);
  }

  body.brand-service .brand-process-step h3 {
    margin-top: 18px;
  }

  body.brand-service .brand-identity-board {
    grid-template-columns: 1fr;
  }

  body.brand-service .brand-logo-panel {
    min-height: 310px;
  }

  body.brand-service .brand-logo-panel > img {
    max-width: 430px;
    margin-block: 45px;
  }

  body.brand-service .brand-type-panel {
    min-height: 270px;
  }

  body.brand-service .brand-type-sample {
    font-size: clamp(42px, 12vw, 68px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brand-service .brand-case-link {
    transition: none;
  }
}
