/* Shared finish for Webflow-era case pages. This file is linked only by legacy case templates. */

body.brawus-v2 {
  --lc-bg: #090c11;
  --lc-panel: #11161e;
  --lc-text: #f1f1ed;
  --lc-copy: #c1c7d0;
  --lc-muted: #929ba8;
  --lc-line: rgba(235, 239, 247, 0.14);
  --lc-accent: #7288f2;
  --lc-shell: min(92vw, 1560px);
  --lc-radius: 26px;
  --lc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.brawus-v2 .page-wrapper,
body.brawus-v2 .page-wrapper .section {
  color: var(--lc-copy);
  background: var(--lc-bg);
}

body.brawus-v2 .page-wrapper h1,
body.brawus-v2 .page-wrapper h2,
body.brawus-v2 .page-wrapper h3,
body.brawus-v2 .page-wrapper strong,
body.brawus-v2 .page-wrapper .bold {
  color: var(--lc-text) !important;
}

body.brawus-v2 .page-wrapper p,
body.brawus-v2 .page-wrapper li,
body.brawus-v2 .page-wrapper .color-neutral-600,
body.brawus-v2 .page-wrapper .color-neutral-700,
body.brawus-v2 .page-wrapper .color-neutral-800 {
  color: var(--lc-copy) !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(118px, 12vw, 176px) 0 clamp(84px, 8vw, 132px) !important;
  border-bottom: 1px solid var(--lc-line);
  background:
    radial-gradient(circle at 80% 12%, rgba(90, 111, 210, 0.14), transparent 30%),
    var(--lc-bg) !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .container-default,
body.brawus-v2 .page-wrapper > .section:not(.hero) .container-default {
  width: var(--lc-shell) !important;
  max-width: 1560px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .mg-bottom-50px {
  margin-top: 0 !important;
  margin-bottom: clamp(46px, 5vw, 76px) !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .project-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.28fr) minmax(270px, 0.72fr) !important;
  gap: clamp(44px, 7vw, 112px) !important;
  align-items: end !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .display-1 {
  max-width: 13ch;
  margin: 0 !important;
  color: var(--lc-text) !important;
  font-family: "Mont", Arial, sans-serif !important;
  font-size: clamp(50px, 5.35vw, 88px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.062em !important;
  line-height: 0.96 !important;
  text-wrap: balance;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 :is(.inner-container._180px, .inner-container._150px---tablet, .inner-container._125px---mbl, .inner-container._100px---mbp) {
  width: auto !important;
  max-width: none !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .mg-bottom-32px {
  margin-bottom: clamp(24px, 3vw, 40px) !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .mg-bottom-32px .image-wrapper {
  width: max-content;
  max-width: min(210px, 48vw);
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #f5f4ef;
  box-shadow: 0 12px 30px rgba(0, 4, 12, 0.2);
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .mg-bottom-32px .image-wrapper img {
  width: auto !important;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .project-details-wrapper {
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
  padding: 4px 0 4px clamp(24px, 3vw, 46px) !important;
  border-left: 1px solid var(--lc-line) !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .project-details-grid {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  gap: 28px !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .project-details-grid .text-300 {
  color: var(--lc-text) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 .project-details-grid .color-neutral-600 {
  margin-top: 7px;
  color: var(--lc-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.72 / 1;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius) !important;
  background: var(--lc-panel);
  box-shadow: 0 34px 90px rgba(2, 5, 10, 0.38);
}

body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  content: "";
  pointer-events: none;
}

body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 800ms var(--lc-ease);
}

body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px:hover img {
  transform: scale(1.012);
}

body.brawus-v2 .page-wrapper > .section:not(.hero) {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(88px, 9vw, 146px) 0 !important;
  border-bottom: 1px solid var(--lc-line);
  background: var(--lc-bg) !important;
}

body.brawus-v2 .page-wrapper > .section:not(.hero):nth-of-type(even) {
  background: #0d1218 !important;
}

body.brawus-v2 .page-wrapper :is(.inner-container._904px, .inner-container._800px, .inner-container._700px---tablet, .inner-container._600px---mbl) {
  width: 100% !important;
  max-width: 1120px !important;
}

body.brawus-v2 .page-wrapper .rich-text-v2 {
  color: var(--lc-copy);
}

body.brawus-v2 .page-wrapper .rich-text-v2 h2,
body.brawus-v2 .page-wrapper .display-2 {
  max-width: 16ch;
  margin: 0 0 24px !important;
  color: var(--lc-text) !important;
  font-family: "Mont", Arial, sans-serif !important;
  font-size: clamp(38px, 4.2vw, 68px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
  text-wrap: balance;
}

body.brawus-v2 .page-wrapper .rich-text-v2 p {
  max-width: 72ch;
  margin: 0 !important;
  color: var(--lc-copy) !important;
  font-size: clamp(16px, 1.2vw, 20px) !important;
  line-height: 1.72 !important;
  text-wrap: pretty;
}

body.brawus-v2 .page-wrapper .rich-text-v2 figure {
  width: 100%;
  max-width: none !important;
  margin: clamp(36px, 5vw, 70px) 0 0 !important;
}

body.brawus-v2 .page-wrapper .rich-text-v2 figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius) !important;
  background: var(--lc-panel);
}

body.brawus-v2 .page-wrapper :is(.mg-bottom-76px, .mg-bottom-100px) {
  margin-bottom: clamp(54px, 6vw, 92px) !important;
}

body.brawus-v2 .page-wrapper .card.project-execution {
  padding: clamp(34px, 5vw, 72px) !important;
  border: 1px solid var(--lc-line) !important;
  border-radius: var(--lc-radius) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(103, 123, 226, 0.15), transparent 34%),
    var(--lc-panel) !important;
  box-shadow: none !important;
}

body.brawus-v2 .page-wrapper .project-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.brawus-v2 .page-wrapper .card.project-results {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 52px) !important;
  border: 1px solid var(--lc-line) !important;
  border-radius: var(--lc-radius) !important;
  background: var(--lc-panel) !important;
  box-shadow: none !important;
}

body.brawus-v2 .page-wrapper .card.project-results .display-1 {
  color: var(--lc-text) !important;
  font-size: clamp(68px, 7vw, 112px) !important;
  font-weight: 480 !important;
  letter-spacing: -0.07em;
  line-height: 0.84 !important;
  font-variant-numeric: tabular-nums;
}

body.brawus-v2 .page-wrapper .card.project-results h3 {
  margin: 34px 0 0 !important;
  color: var(--lc-copy) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em;
  line-height: 1.4 !important;
}

body.brawus-v2 .page-wrapper .footer-wrapper:empty {
  display: none !important;
}

body.brawus-v2 .page-wrapper + .content-section.bg-color-light {
  padding: clamp(72px, 8vw, 118px) 0 !important;
  border-bottom: 1px solid var(--lc-line);
  background: #0d1218 !important;
}

body.brawus-v2 .page-wrapper + .content-section .works-slider {
  width: 100%;
}

body.brawus-v2 .page-wrapper + .content-section .swiper-slide {
  padding-inline: 10px;
}

body.brawus-v2 .page-wrapper + .content-section .image-box {
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: var(--lc-panel);
}

body.brawus-v2 .page-wrapper + .content-section .image-box img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  transition: transform 700ms var(--lc-ease);
}

body.brawus-v2 .page-wrapper + .content-section .image-box:hover img {
  transform: scale(1.012);
}

body.brawus-v2 .fancy-short-banner-five {
  padding: clamp(64px, 8vw, 124px) 0;
  background: var(--lc-bg);
}

body.brawus-v2 .fancy-short-banner-five .container {
  width: var(--lc-shell) !important;
  max-width: 1560px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.brawus-v2 .fancy-short-banner-five .bg-wrapper {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: clamp(38px, 6vw, 84px) !important;
  color: var(--lc-text) !important;
  border: 1px solid var(--lc-line) !important;
  border-radius: var(--lc-radius) !important;
  background:
    radial-gradient(circle at 78% 28%, rgba(104, 126, 232, 0.2), transparent 34%),
    linear-gradient(130deg, #111720, #161e2a) !important;
  box-shadow: none !important;
}

body.brawus-v2 .fancy-short-banner-five .row {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: end;
}

body.brawus-v2 .fancy-short-banner-five :is(.col-lg-6, .text-lg-start, .text-lg-end) {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  text-align: left !important;
}

body.brawus-v2 .fancy-short-banner-five .text-lg-end {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

body.brawus-v2 .fancy-short-banner-five h3 {
  max-width: 14ch;
  margin: 0 !important;
  color: var(--lc-text) !important;
  font-size: clamp(38px, 4.4vw, 70px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.055em;
  line-height: 0.98 !important;
  text-wrap: balance;
}

body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three,
body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three:visited {
  min-width: 210px;
  min-height: 58px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 30px !important;
  color: #10141a !important;
  -webkit-text-fill-color: #10141a;
  border: 1px solid var(--lc-text) !important;
  border-radius: 999px !important;
  background: var(--lc-text) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms var(--lc-ease);
}

body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three:hover,
body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three:focus-visible {
  color: #10141a !important;
  -webkit-text-fill-color: #10141a;
  border-color: #dce1eb !important;
  background: #dce1eb !important;
  transform: translateY(-2px);
}

body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three:focus-visible {
  outline: 2px solid #9aabff;
  outline-offset: 5px;
}

body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three:active {
  transform: translateY(1px) scale(0.99);
}

body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three.is-disabled {
  color: var(--lc-copy) !important;
  -webkit-text-fill-color: var(--lc-copy);
  border-color: var(--lc-line) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  cursor: not-allowed;
  opacity: 0.76;
  transform: none !important;
}

@media (max-width: 900px) {
  body.brawus-v2 .page-wrapper > .section.hero.v5 .project-main-grid,
  body.brawus-v2 .fancy-short-banner-five .row {
    grid-template-columns: 1fr !important;
  }

  body.brawus-v2 .page-wrapper > .section.hero.v5 .project-details-wrapper {
    padding: 26px 0 0 !important;
    border-top: 1px solid var(--lc-line);
    border-left: 0 !important;
  }

  body.brawus-v2 .fancy-short-banner-five .text-lg-end {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.brawus-v2 {
    --lc-shell: calc(100vw - 32px);
    --lc-radius: 20px;
  }

  body.brawus-v2 .page-wrapper > .section.hero.v5 {
    padding: 86px 0 72px !important;
  }

  body.brawus-v2 .page-wrapper > .section.hero.v5 .display-1 {
    font-size: clamp(40px, 11.8vw, 52px) !important;
  }

  body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px {
    aspect-ratio: 1.34 / 1;
  }

  body.brawus-v2 .page-wrapper > .section:not(.hero) {
    padding: 78px 0 !important;
  }

  body.brawus-v2 .page-wrapper .rich-text-v2 h2,
  body.brawus-v2 .page-wrapper .display-2 {
    font-size: clamp(36px, 10.5vw, 46px) !important;
  }

  body.brawus-v2 .page-wrapper .project-results-grid {
    grid-template-columns: 1fr !important;
  }

  body.brawus-v2 .page-wrapper .card.project-results {
    min-height: 190px;
  }

  body.brawus-v2 .fancy-short-banner-five .bg-wrapper {
    min-height: 360px;
    padding: 32px 24px !important;
  }

  body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three {
    width: 100%;
  }
}

/*
 * Color authority for the Webflow-era cases. The shared editorial runtime
 * deliberately darkens generic media; case studies need their real product
 * palette and readable long-form copy instead.
 */
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter :is(p, li) {
  color: var(--lc-copy) !important;
  opacity: 1 !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-hero__media > img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-hero__media:hover > img.ed-real-media {
  filter: saturate(.96) contrast(1.025) brightness(.98) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .page-wrapper > .section.hero.v5 .mg-bottom-32px img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .page-wrapper > .section.hero.v5 .mg-bottom-32px:hover img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter figure:hover img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .page-wrapper + .content-section img.ed-real-media,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .page-wrapper + .content-section figure:hover img.ed-real-media {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 640px) {
  html.brawus-v2-html body#body.brawus-v2.ed-case-mode .fancy-short-banner-five .text-lg-end {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px img,
  body.brawus-v2 .page-wrapper + .content-section .image-box img,
  body.brawus-v2 .fancy-short-banner-five .theme-btn.style-three {
    transition: none;
  }

  body.brawus-v2 .page-wrapper > .section.hero.v5 > .container-default > .image-wrapper.border-radius-38px:hover img,
  body.brawus-v2 .page-wrapper + .content-section .image-box:hover img {
    transform: none;
  }
}

/*
 * Legacy case closing action.
 * Keep it visually identical to the rectangular submit control in the shared
 * contact form and neutralise the old two-sided `.theme-btn` wipe animation.
 */
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions {
  border-top: 0 !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:visited {
  width: min(100%, 330px) !important;
  min-height: 68px !important;
  justify-content: space-between !important;
  gap: 40px !important;
  padding: 0 22px 0 26px !important;
  overflow: hidden !important;
  color: #0b0d10 !important;
  -webkit-text-fill-color: #0b0d10 !important;
  border: 1px solid #f2f0ea !important;
  border-radius: 14px !important;
  background: #f2f0ea !important;
  box-shadow: none !important;
  font-family: "Tilda Sans", "Mont", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three::before {
  display: none !important;
  content: none !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three::after {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto;
  content: "↗" !important;
  color: #0b0d10 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: none !important;
  transition: transform 180ms ease !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:hover,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:focus-visible {
  color: #0b0d10 !important;
  -webkit-text-fill-color: #0b0d10 !important;
  border-color: #e2dfd7 !important;
  background: #e2dfd7 !important;
  transform: translateY(-2px);
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:hover::after,
html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:focus-visible::after {
  transform: translate(2px, -2px) !important;
}

html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three:active {
  transform: translateY(1px) scale(.99);
}

@media (max-width: 640px) {
  html.brawus-v2-html body#body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn.style-three {
    width: 100% !important;
    min-height: 62px !important;
  }
}
