/*
 * Brawus editorial templates
 * Structural presentation layer for legacy service, case and article content
 */

:root {
    --ed-ink: #0a0a0a;
    --ed-ink-soft: #141414;
    --ed-bone: #f0eee8;
    --ed-paper: #f7f5ef;
    --ed-muted: #a9a8a3;
    --ed-blue: #6478ff;
    --ed-rule-dark: rgba(255, 255, 255, .18);
    --ed-rule-light: rgba(10, 10, 10, .18);
    --ed-shell: min(100% - 48px, 1840px);
    --ed-gutter: clamp(24px, 4vw, 76px);
    --ed-section: clamp(88px, 9vw, 160px);
    --ed-display: clamp(4rem, 9.4vw, 10.8rem);
    --ed-title: clamp(3.2rem, 6.6vw, 8rem);
}

.brawus-v2 {
    background: var(--ed-ink);
}

.br-page-content {
    overflow: clip;
}

.brawus-v2:not(.page-home) .br-header {
    position: fixed !important;
    z-index: 1200;
    top: 20px;
    right: 0;
    left: 0;
    width: 100%;
    min-height: 66px;
    color: var(--ed-paper) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.brawus-v2:not(.page-home) .br-header-shell {
    width: min(calc(100% - clamp(24px, 6vw, 76px)), 1840px);
    min-height: 66px;
    padding: 0 18px;
    background: rgba(12, 12, 12, .76) !important;
    border: 1px solid rgba(242, 242, 238, .15) !important;
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    pointer-events: auto;
}

.brawus-v2:not(.page-home) .br-brand img {
    width: 132px;
    filter: grayscale(1) brightness(0) invert(1) !important;
}

.brawus-v2:not(.page-home) .br-nav .navigation > li > a {
    min-height: 64px;
    font-size: 12px !important;
}

.brawus-v2:not(.page-home) .br-nav .navigation > li > a,
.brawus-v2:not(.page-home) .br-calc-link {
    color: rgba(255, 255, 255, .72) !important;
}

.brawus-v2:not(.page-home) .br-nav .navigation > li:hover > a,
.brawus-v2:not(.page-home) .br-nav .navigation > li.is-active > a,
.brawus-v2:not(.page-home) .br-calc-link:hover {
    color: #fff !important;
}

.brawus-v2:not(.page-home) .br-header .br-primary-action {
    min-height: 48px;
    padding: 0 20px !important;
    color: #0a0a0a !important;
    background: var(--ed-paper) !important;
    border: 1px solid var(--ed-paper) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.brawus-v2:not(.page-home) .br-header .br-primary-action:hover,
.brawus-v2:not(.page-home) .br-header .br-primary-action:focus-visible {
    color: var(--ed-paper) !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, .6) !important;
    transform: translateY(-1px) !important;
}

.brawus-v2:not(.page-home) .br-header .br-primary-action::before {
    display: none;
}

/* Shared route hero — a genuine new composition, not a reskinned old banner */
.ed-template-hero {
    position: relative;
    min-height: max(640px, 100svh);
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    color: var(--ed-paper);
    background: #070707;
    border-bottom: 1px solid var(--ed-rule-dark);
}

.ed-template-hero__media,
.ed-template-hero__shade {
    position: absolute;
    inset: 0;
}

.ed-template-hero__media {
    z-index: -3;
    clip-path: inset(0 0 0 34%);
    background: #171717;
}

.ed-template-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .36) 43%, rgba(5, 5, 5, .08) 78%),
        linear-gradient(0deg, rgba(5, 5, 5, .64) 0%, transparent 45%);
    pointer-events: none;
}

.ed-template-hero__media img,
.ed-template-hero__media video {
    width: 100%;
    height: 114%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) contrast(1.13) brightness(.66);
    transform: scale(1.035);
}

.ed-template-hero__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, .92) 32%, rgba(8, 8, 8, .18) 73%, rgba(8, 8, 8, .44) 100%),
        radial-gradient(circle at 72% 32%, transparent 0, rgba(0, 0, 0, .22) 66%);
}

.ed-template-hero__layout {
    width: var(--ed-shell);
    margin-inline: auto;
    min-height: inherit;
    padding: clamp(190px, 22vh, 268px) 0 clamp(88px, 10vh, 126px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: end;
    gap: clamp(40px, 7vw, 140px);
}

.ed-template-hero__copy {
    max-width: 1380px;
}

.ed-template-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(26px, 4vh, 52px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .66);
}

.ed-template-hero__eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.ed-template-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--ed-paper);
    font-size: clamp(4.15rem, 8.15vw, 9.8rem);
    font-weight: 400;
    line-height: .89;
    letter-spacing: -.068em;
    text-wrap: balance;
}

.ed-template-hero__copy > p {
    max-width: 660px;
    margin: clamp(34px, 5vh, 64px) 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(1.08rem, 1.45vw, 1.54rem);
    line-height: 1.55;
    letter-spacing: -.02em;
}

.ed-template-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: clamp(38px, 6vh, 70px);
}

.ed-outline-action,
.ed-text-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-height: 68px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: color .35s ease, background .35s ease, border-color .35s ease;
}

.ed-outline-action:hover,
.ed-outline-action:focus-visible {
    color: #070707 !important;
    background: var(--ed-paper);
    border-color: var(--ed-paper);
}

.ed-text-action {
    min-height: auto;
    padding: 12px 0;
    border-width: 0 0 1px;
    border-color: rgba(255, 255, 255, .4);
}

.ed-text-action:hover,
.ed-text-action:focus-visible {
    border-color: #fff;
}

.ed-template-hero__rail {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-bottom: 18px;
    border-left: 1px solid var(--ed-rule-dark);
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.ed-template-hero__rail i {
    width: 1px;
    min-height: 84px;
    background: rgba(255, 255, 255, .36);
}

.ed-template-hero__scroll {
    position: absolute;
    right: var(--ed-gutter);
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ed-page-content-anchor {
    height: 0;
    scroll-margin-top: 90px;
}

/* Retire only the obsolete opening banners after the new hero exists */
.has-ed-template-hero #mainVideoSection,
.has-ed-template-hero .page-title,
.has-ed-template-hero .banner-section,
.has-ed-template-hero .banner-style-two,
.has-ed-template-hero > .br-page-content > .desktop-spacer,
.has-ed-template-hero > .br-page-content > .mobiledev-gap-after-hero {
    display: none !important;
}

.has-ed-template-hero > .br-page-content > br:first-of-type,
.has-ed-template-hero > .br-page-content > br:first-of-type + br,
.has-ed-template-hero > .br-page-content > br:first-of-type + br + br {
    display: none;
}

/* Re-compose legacy content as alternating editorial chapters */
.has-ed-template-hero .ed-route-chapter {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: var(--ed-section) var(--ed-gutter) !important;
    border-radius: 0 !important;
    overflow: clip;
}

.has-ed-template-hero .ed-route-chapter::before {
    content: attr(data-ed-index);
    position: absolute;
    top: 34px;
    left: var(--ed-gutter);
    color: currentColor;
    opacity: .42;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
}

.has-ed-template-hero .ed-route-chapter.ed-tone-ink {
    color: var(--ed-paper) !important;
    background: var(--ed-ink) !important;
    border-top: 1px solid var(--ed-rule-dark);
}

.has-ed-template-hero .ed-route-chapter.ed-tone-bone {
    color: var(--ed-ink) !important;
    background: var(--ed-bone) !important;
    border-top: 1px solid var(--ed-rule-light);
}

.has-ed-template-hero .ed-route-chapter .auto-container,
.has-ed-template-hero .ed-route-chapter > .container,
.has-ed-template-hero .ed-route-chapter > .fixik-container,
.has-ed-template-hero .ed-route-chapter > .content_block,
.has-ed-template-hero .ed-route-chapter > [class*="container"] {
    width: min(100%, 1680px) !important;
    max-width: 1680px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

.has-ed-template-hero .ed-route-chapter .row {
    align-items: center;
    margin-inline: 0 !important;
    gap: clamp(44px, 6vw, 118px);
}

.has-ed-template-hero .ed-route-chapter .row > [class*="col-"] {
    flex: 1 1 420px;
    max-width: none;
    padding-inline: 0;
}

.has-ed-template-hero .ed-route-chapter h1,
.has-ed-template-hero .ed-route-chapter h2,
.has-ed-template-hero .ed-route-chapter .sec-title h2,
.has-ed-template-hero .ed-route-chapter .title {
    max-width: 12ch;
    margin: 0 0 clamp(28px, 4vw, 58px);
    color: currentColor !important;
    font-size: clamp(2.75rem, 4.1vw, 5.5rem) !important;
    font-weight: 400 !important;
    line-height: .94 !important;
    letter-spacing: -.06em !important;
    text-wrap: balance;
}

.has-ed-template-hero .ed-route-chapter h3 {
    color: currentColor !important;
    font-size: clamp(1.4rem, 2.2vw, 2.6rem) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
}

.has-ed-template-hero .ed-route-chapter p,
.has-ed-template-hero .ed-route-chapter li,
.has-ed-template-hero .ed-route-chapter .text,
.has-ed-template-hero .ed-route-chapter .text p {
    color: currentColor !important;
    opacity: .76;
    font-size: clamp(1rem, 1.32vw, 1.34rem) !important;
    line-height: 1.65 !important;
    letter-spacing: -.014em;
}

.has-ed-template-hero .ed-route-chapter .sec-title > p,
.has-ed-template-hero .ed-route-chapter .sec-title > span {
    margin-bottom: 28px;
    color: currentColor !important;
    opacity: .54;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.has-ed-template-hero .ed-route-chapter ul:not(.slick-dots):not(.owl-dots) {
    padding: 0;
    border-top: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 20%, transparent);
}

.has-ed-template-hero .ed-route-chapter li:not(.slick-dot):not(.owl-dot) {
    margin: 0 !important;
    padding: 18px 0 18px 34px !important;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.has-ed-template-hero .ed-route-chapter li::before {
    color: currentColor !important;
    opacity: .65;
}

.has-ed-template-hero .ed-route-chapter figure,
.has-ed-template-hero .ed-route-chapter .image-box,
.has-ed-template-hero .ed-route-chapter [class*="image-wrapper"] {
    border-radius: 0 !important;
    overflow: hidden;
}

.has-ed-template-hero .ed-route-chapter figure img,
.has-ed-template-hero .ed-route-chapter .image-box img,
.has-ed-template-hero .ed-route-chapter [class*="image-wrapper"] img {
    width: 100%;
    filter: grayscale(1) contrast(1.06);
    transition: filter .55s ease, transform .8s cubic-bezier(.2,.75,.2,1);
}

.has-ed-template-hero .ed-route-chapter figure:hover img,
.has-ed-template-hero .ed-route-chapter .image-box:hover img {
    filter: grayscale(.15) contrast(1.02);
    transform: scale(1.02);
}

.has-ed-template-hero .ed-route-chapter .theme-btn,
.has-ed-template-hero .ed-route-chapter .btn-box a,
.has-ed-template-hero .ed-route-chapter button[type="submit"] {
    min-height: 64px;
    padding: 0 26px !important;
    border: 1px solid currentColor !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: currentColor !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 62px;
}

.has-ed-template-hero .ed-route-chapter .theme-btn:hover,
.has-ed-template-hero .ed-route-chapter .btn-box a:hover {
    color: var(--ed-ink) !important;
    background: var(--ed-paper) !important;
}

.has-ed-template-hero .ed-route-chapter.ed-tone-bone .theme-btn:hover,
.has-ed-template-hero .ed-route-chapter.ed-tone-bone .btn-box a:hover {
    color: var(--ed-paper) !important;
    background: var(--ed-ink) !important;
}

.has-ed-template-hero .ed-route-chapter .pattern-layer,
.has-ed-template-hero .ed-route-chapter .pattern-box,
.has-ed-template-hero .ed-route-chapter [class*="pattern-"] {
    opacity: .1 !important;
    filter: grayscale(1);
}

.has-ed-template-hero .ed-route-chapter .service-block-one .inner-box,
.has-ed-template-hero .ed-route-chapter .single-item,
.has-ed-template-hero .ed-route-chapter .content-box,
.has-ed-template-hero .ed-route-chapter .inner-box {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Actual client case redesign */
.ed-case-mode {
    background: var(--ed-ink);
}

.ed-case-hero {
    position: relative;
    min-height: max(760px, 100svh);
    display: grid;
    grid-template-columns: minmax(360px, 41%) minmax(0, 59%);
    background: var(--ed-ink);
    border-bottom: 1px solid var(--ed-rule-dark);
    overflow: hidden;
}

.ed-case-hero__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: clamp(182px, 19vh, 238px) var(--ed-gutter) clamp(66px, 8vh, 96px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--ed-paper);
    background: var(--ed-ink);
    border-right: 1px solid var(--ed-rule-dark);
}

.ed-case-hero__kicker,
.ed-case-hero__number {
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ed-case-hero__title {
    max-width: 8ch;
    margin: auto 0 clamp(38px, 5vh, 68px);
    color: var(--ed-paper) !important;
    font-size: clamp(4rem, 7.25vw, 9.6rem) !important;
    font-weight: 400 !important;
    line-height: .87 !important;
    letter-spacing: -.07em !important;
}

.ed-case-hero__meta {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--ed-rule-dark);
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    line-height: 1.5;
}

.ed-case-hero__media {
    position: relative;
    min-width: 0;
    background: var(--ed-bone);
    overflow: hidden;
}

.ed-case-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.26), transparent 24%), linear-gradient(0deg, rgba(0,0,0,.18), transparent 35%);
    pointer-events: none;
}

.ed-case-hero__media img,
.ed-case-hero__media video {
    width: 100%;
    height: 112%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) contrast(1.08);
}

.ed-case-hero__badge {
    position: absolute;
    z-index: 2;
    top: clamp(138px, 16vh, 196px);
    right: var(--ed-gutter);
    max-width: 180px;
    max-height: 78px;
    object-fit: contain !important;
    object-position: right center !important;
    filter: grayscale(1) brightness(4) !important;
}

.ed-case-hero__scroll {
    position: absolute;
    z-index: 3;
    right: var(--ed-gutter);
    bottom: 36px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.46);
    color: #fff !important;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ed-case-mode .page-wrapper > .section.hero,
.ed-case-mode .page-wrapper > .hero.v5 {
    display: none !important;
}

.ed-case-mode .page-wrapper,
.ed-case-mode .page-wrapper > div,
.ed-case-mode .page-wrapper > section,
.ed-case-mode .content-section,
.ed-case-mode .fancy-short-banner-five {
    background: transparent !important;
}

.ed-case-mode .ed-case-chapter {
    position: relative;
    margin: 0 !important;
    padding: var(--ed-section) var(--ed-gutter) !important;
    background: var(--ed-bone) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ed-rule-light) !important;
    border-radius: 0 !important;
}

.ed-case-mode .ed-case-chapter:nth-of-type(even) {
    color: var(--ed-paper);
    background: var(--ed-ink) !important;
    border-color: var(--ed-rule-dark) !important;
}

.ed-case-mode .ed-case-chapter > [class*="container"],
.ed-case-mode .ed-case-chapter .container-default,
.ed-case-mode .ed-case-chapter .container {
    width: min(100%, 1660px) !important;
    max-width: 1660px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

.ed-case-mode .ed-case-chapter h2,
.ed-case-mode .ed-case-chapter .display-2 {
    max-width: 11ch;
    margin-bottom: clamp(30px, 5vw, 66px) !important;
    color: currentColor !important;
    font-size: clamp(3.2rem, 6.4vw, 8.6rem) !important;
    font-weight: 400 !important;
    line-height: .9 !important;
    letter-spacing: -.065em !important;
}

.ed-case-mode .ed-case-chapter h3,
.ed-case-mode .ed-case-chapter p,
.ed-case-mode .ed-case-chapter li,
.ed-case-mode .ed-case-chapter .color-neutral-600,
.ed-case-mode .ed-case-chapter .color-neutral-800 {
    color: currentColor !important;
}

.ed-case-mode .ed-case-chapter p,
.ed-case-mode .ed-case-chapter li {
    max-width: 940px;
    opacity: .74;
    font-size: clamp(1rem, 1.35vw, 1.4rem) !important;
    line-height: 1.65 !important;
}

.ed-case-mode .ed-case-chapter .card,
.ed-case-mode .ed-case-chapter .project-execution,
.ed-case-mode .ed-case-chapter .project-results {
    padding: clamp(32px, 5vw, 76px) !important;
    color: currentColor !important;
    background: transparent !important;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ed-case-mode .ed-case-chapter .project-results .display-1 {
    color: currentColor !important;
    font-size: clamp(4.4rem, 8vw, 9rem) !important;
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.07em;
}

.ed-case-mode .ed-case-chapter figure,
.ed-case-mode .ed-case-chapter .image-wrapper,
.ed-case-mode .ed-case-chapter .image-box {
    border-radius: 0 !important;
    overflow: hidden;
}

.ed-case-mode .ed-case-chapter img:not(.ed-cursor-hint) {
    filter: grayscale(1) contrast(1.05);
    transition: filter .55s ease;
}

.ed-case-mode .ed-case-chapter img:hover {
    filter: grayscale(0) contrast(1);
}

.ed-case-mode .content-section.ed-case-chapter {
    padding-inline: 0 !important;
}

.ed-case-mode .works-slider .swiper-slide {
    min-height: min(82vh, 920px);
}

.ed-case-mode .works-slider img {
    width: 100%;
    height: min(82vh, 920px);
    object-fit: cover;
}

.ed-case-index {
    position: sticky;
    z-index: 8;
    top: 88px;
    display: flex;
    gap: 0;
    color: var(--ed-paper);
    background: rgba(10, 10, 10, .93);
    border-bottom: 1px solid var(--ed-rule-dark);
    backdrop-filter: blur(18px);
    overflow-x: auto;
    scrollbar-width: none;
}

.ed-case-index::-webkit-scrollbar { display: none; }

.ed-case-index a {
    flex: 0 0 auto;
    padding: 18px 24px;
    border-right: 1px solid var(--ed-rule-dark);
    color: rgba(255, 255, 255, .55) !important;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ed-case-index a:hover,
.ed-case-index a:focus-visible {
    color: #fff !important;
}

/* Magazine-style real article template */
.ed-article-mode {
    background: var(--ed-paper);
}

.ed-article-mode .fixik-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ed-article-mode .block-news {
    width: 100%;
    max-width: none;
    padding: 0;
}

.ed-article-mode .block-news > .m-section {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ed-article-mode .block-news nav[aria-label="fixik-breadcrumb"] {
    display: none;
}

.ed-article-mode .brief-description {
    position: relative;
    min-height: max(720px, 92svh);
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "date image"
        "title image"
        "meta image";
    margin: 0;
    padding: 0;
    color: var(--ed-paper);
    background: var(--ed-ink);
    border-bottom: 1px solid var(--ed-rule-dark);
}

.ed-article-mode .brief-description__image {
    grid-area: image;
    min-height: 720px;
    margin: 0;
    overflow: hidden;
}

.ed-article-mode .brief-description__image img {
    width: 100%;
    height: 108%;
    max-height: none;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(.78);
}

.ed-article-mode .brief-description__date {
    grid-area: date;
    align-self: start;
    margin: 0;
    padding: clamp(160px, 19vh, 220px) var(--ed-gutter) 20px;
    color: rgba(255,255,255,.52);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ed-article-mode .brief-description__date::before {
    content: "Медиа  /  ";
}

.ed-article-mode .brief-description__name-arcticle {
    grid-area: title;
    align-self: center;
    max-width: 8.7ch;
    margin: 0;
    padding: 20px var(--ed-gutter);
    color: var(--ed-paper) !important;
    font-size: clamp(3.7rem, 6.4vw, 8rem) !important;
    font-weight: 400 !important;
    line-height: .9 !important;
    letter-spacing: -.065em !important;
    text-wrap: balance;
}

.ed-article-mode .brief-description__author {
    grid-area: meta;
    align-self: end;
    margin: 0 var(--ed-gutter) clamp(58px, 7vh, 84px);
    padding-top: 22px;
    border-top: 1px solid var(--ed-rule-dark);
    color: var(--ed-paper);
}

.ed-article-mode .brief-description__author img {
    filter: grayscale(1);
}

.ed-article-mode .brief-description__tags-share--articles {
    position: absolute;
    z-index: 3;
    right: var(--ed-gutter);
    bottom: 36px;
    width: min(52%, 760px);
    margin: 0;
}

.ed-article-mode .brief-description__tags-link {
    color: #fff !important;
    background: rgba(0,0,0,.36) !important;
    border: 1px solid rgba(255,255,255,.36) !important;
    border-radius: 0 !important;
}

.ed-article-mode .main__text {
    width: min(100% - 48px, 1520px);
    margin: 0 auto;
    padding: clamp(96px, 12vw, 190px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: clamp(54px, 8vw, 150px);
    align-items: start;
}

.ed-article-mode .main__text .dn-layout {
    display: contents;
}

.ed-article-mode .main__text .text {
    grid-column: 1;
    max-width: 960px;
}

.ed-article-mode .main__text .text__content {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 130px;
}

.ed-article-mode .main__text .text__item {
    padding: 0 0 clamp(74px, 9vw, 132px);
}

.ed-article-mode .main__text .paragraph,
.ed-article-mode .main__text p,
.ed-article-mode .main__text li {
    color: #2d2c29 !important;
    font-size: clamp(1.08rem, 1.36vw, 1.42rem) !important;
    line-height: 1.76 !important;
    letter-spacing: -.015em;
}

.ed-article-mode .main__text h2,
.ed-article-mode .fixik-subtitle {
    max-width: 11ch;
    margin: 0 0 clamp(32px, 4vw, 54px);
    color: var(--ed-ink) !important;
    font-size: clamp(2.8rem, 5.2vw, 6.6rem) !important;
    font-weight: 400 !important;
    line-height: .93 !important;
    letter-spacing: -.058em !important;
}

.ed-article-mode .main__text .item-page {
    margin-top: clamp(42px, 6vw, 82px);
    overflow: hidden;
}

.ed-article-mode .main__text .item-page img {
    width: 100%;
    filter: grayscale(1) contrast(1.04);
    transition: filter .55s ease;
}

.ed-article-mode .main__text .item-page:hover img {
    filter: grayscale(0);
}

.ed-article-mode .l-header {
    margin-bottom: 20px;
    color: #77746e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ed-article-mode .l-item a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid var(--ed-rule-light);
    color: #67645f !important;
    font-size: 13px;
    line-height: 1.4;
}

.ed-article-mode .l-item a:hover {
    color: #080808 !important;
}

/* Responsive */
@media (max-width: 1100px) {
    :root { --ed-shell: min(100% - 36px, 1840px); }

    .ed-template-hero__media { clip-path: inset(0 0 0 18%); }
    .ed-template-hero__layout { grid-template-columns: 1fr 68px; }
    .ed-template-hero h1 { font-size: clamp(4rem, 10vw, 7.4rem); }

    .ed-case-hero { grid-template-columns: 46% 54%; }
    .ed-case-hero__copy { padding-inline: 28px; }

    .ed-article-mode .brief-description { grid-template-columns: 48% 52%; }
    .ed-article-mode .brief-description__tags-share--articles { display: none; }
}

@media (min-width: 768px) and (max-height: 850px) {
    .ed-template-hero__layout {
        padding-top: 112px;
        padding-bottom: 42px;
    }

    .ed-template-hero__eyebrow {
        margin-bottom: 22px;
    }

    .ed-template-hero h1 {
        font-size: clamp(3.8rem, 7vw, 7rem);
    }

    .ed-template-hero__copy > p {
        margin-top: 24px;
        font-size: clamp(1rem, 1.25vw, 1.28rem);
    }

    .ed-template-hero__actions {
        margin-top: 28px;
    }

    .ed-outline-action {
        min-height: 58px;
    }
}

@media (max-width: 767px) {
    :root {
        --ed-shell: calc(100% - 30px);
        --ed-gutter: 20px;
        --ed-section: 88px;
    }

    .ed-template-hero {
        min-height: 820px;
        align-items: end;
    }

    .ed-template-hero__media {
        inset: 0 0 42%;
        clip-path: none;
    }

    .ed-template-hero__media::after {
        background: linear-gradient(0deg, #080808 0%, rgba(8,8,8,.3) 52%, rgba(8,8,8,.08));
    }

    .ed-template-hero__shade {
        background: linear-gradient(0deg, #080808 0%, #080808 45%, rgba(8,8,8,.06) 78%);
    }

    .ed-template-hero__layout {
        min-height: inherit;
        grid-template-columns: 1fr;
        padding: 390px 0 58px;
    }

    .ed-template-hero h1 {
        max-width: 10ch;
        font-size: clamp(3.55rem, 16vw, 5.9rem);
        line-height: .9;
    }

    .ed-template-hero__copy > p {
        margin-top: 28px;
        font-size: 1rem;
    }

    .ed-template-hero__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 34px;
    }

    .ed-outline-action { width: 100%; }
    .ed-text-action { align-self: flex-start; }
    .ed-template-hero__rail,
    .ed-template-hero__scroll { display: none; }

    .has-ed-template-hero .ed-route-chapter .row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 46px;
    }

    .has-ed-template-hero .ed-route-chapter h2,
    .has-ed-template-hero .ed-route-chapter .sec-title h2 {
        font-size: clamp(2.8rem, 13vw, 4.4rem) !important;
    }

    .ed-case-hero {
        min-height: 900px;
        grid-template-columns: 1fr;
        grid-template-rows: 48% 52%;
    }

    .ed-case-hero__copy {
        grid-row: 2;
        padding: 48px 20px 42px;
        border-top: 1px solid var(--ed-rule-dark);
        border-right: 0;
    }

    .ed-case-hero__media { grid-row: 1; }
    .ed-case-hero__title { margin: 30px 0; font-size: clamp(3.6rem, 15vw, 5.8rem) !important; }
    .ed-case-hero__badge { top: 110px; right: 20px; max-width: 112px; }
    .ed-case-hero__scroll { display: none; }
    .ed-case-index { top: 74px; }

    .ed-case-mode .ed-case-chapter h2,
    .ed-case-mode .ed-case-chapter .display-2 {
        font-size: clamp(3rem, 13.5vw, 5rem) !important;
    }

    .ed-article-mode .brief-description {
        min-height: 890px;
        grid-template-columns: 1fr;
        grid-template-rows: 48% auto 1fr auto;
        grid-template-areas: "image" "date" "title" "meta";
    }

    .ed-article-mode .brief-description__image { min-height: 0; }
    .ed-article-mode .brief-description__date { padding: 36px 20px 12px; }
    .ed-article-mode .brief-description__name-arcticle {
        max-width: 10ch;
        padding: 16px 20px 30px;
        font-size: clamp(3.25rem, 14vw, 5.3rem) !important;
    }
    .ed-article-mode .brief-description__author { margin: 0 20px 38px; }

    .ed-article-mode .main__text {
        width: calc(100% - 40px);
        display: block;
        padding: 88px 0;
    }

    .ed-article-mode .main__text .text__content { display: none; }
    .ed-article-mode .main__text h2,
    .ed-article-mode .fixik-subtitle { font-size: clamp(2.8rem, 12vw, 4.8rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .ed-template-hero__media img,
    .ed-template-hero__media video,
    .ed-case-hero__media img,
    .ed-article-mode .brief-description__image img {
        height: 100%;
        transform: none !important;
    }
}

/* Reusable verified client quote for case pages. */
body.brawus-v2.is-case-page .case-client-quote,
body.brawus-v2.is-case-page .case-client-quote * {
    box-sizing: border-box;
}

body.brawus-v2.is-case-page .case-client-quote {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: clamp(88px, 10vw, 164px) clamp(20px, 4.5vw, 82px);
    color: #0b0e12;
    background: #efeee8;
}

body.brawus-v2.is-case-page .case-client-quote__shell {
    width: min(100%, 1560px);
    display: grid;
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1.66fr);
    gap: clamp(42px, 8vw, 142px);
    margin: 0 auto;
}

body.brawus-v2.is-case-page .case-client-quote__label {
    margin: 8px 0 0;
    color: #646a72;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.brawus-v2.is-case-page .case-client-quote blockquote {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}

body.brawus-v2.is-case-page .case-client-quote blockquote::before {
    position: absolute;
    top: -0.36em;
    left: -0.42em;
    content: "“";
    color: #6179e8;
    font-family: Georgia, serif;
    font-size: clamp(72px, 8vw, 132px);
    line-height: 1;
    opacity: 0.2;
}

body.brawus-v2.is-case-page .case-client-quote blockquote > p {
    position: relative;
    max-width: 26ch;
    margin: 0;
    color: #0b0e12 !important;
    font-size: clamp(34px, 4.4vw, 72px);
    font-weight: 480;
    letter-spacing: -0.055em;
    line-height: 1.02;
    text-wrap: balance;
}

body.brawus-v2.is-case-page .case-client-quote blockquote footer {
    display: grid;
    gap: 5px;
    margin-top: clamp(36px, 5vw, 72px);
    padding-top: 20px;
    border-top: 1px solid rgba(11, 14, 18, 0.18);
}

body.brawus-v2.is-case-page .case-client-quote blockquote footer strong {
    color: #0b0e12;
    font-size: 15px;
    font-weight: 650;
}

body.brawus-v2.is-case-page .case-client-quote blockquote footer span {
    color: #646a72;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 760px) {
    body.brawus-v2.is-case-page .case-client-quote {
        padding: 82px 20px 92px;
    }

    body.brawus-v2.is-case-page .case-client-quote__shell {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    body.brawus-v2.is-case-page .case-client-quote blockquote > p {
        max-width: 19ch;
        font-size: clamp(31px, 9.4vw, 42px);
    }
}

/* Shared case architecture v2
   The legacy case files keep their unique content and links; this layer gives
   every runtime-upgraded case the same geometry as the RealMobile template. */
body.ed-case-mode {
    --ec-bg: #090c11;
    --ec-surface: #11161e;
    --ec-surface-soft: #171d27;
    --ec-text: #f1f1ed;
    --ec-muted: #a4acb8;
    --ec-line: rgba(237, 240, 246, .14);
    --ec-accent: #7187f4;
    --ec-shell: min(92vw, 1640px);
    --ec-radius: 28px;
    --ec-ease: cubic-bezier(.16, 1, .3, 1);
    background: var(--ec-bg) !important;
}

body.ed-case-mode .br-page-content {
    overflow: clip;
    background: var(--ec-bg) !important;
}

body.ed-case-mode .ed-case-hero,
body.ed-case-mode .ed-case-hero *,
body.ed-case-mode .ed-case-chapter,
body.ed-case-mode .ed-case-chapter * {
    box-sizing: border-box;
}

body.ed-case-mode .ed-case-hero {
    width: var(--ec-shell);
    min-height: min(960px, 100dvh);
    margin-inline: auto;
    padding: clamp(126px, 14vh, 168px) 0 clamp(42px, 6vh, 74px);
    display: grid;
    grid-template-columns: minmax(400px, .76fr) minmax(540px, 1.24fr);
    align-items: end;
    gap: clamp(34px, 4.5vw, 78px);
    border: 0;
    overflow: visible;
    background:
        radial-gradient(circle at 70% 16%, rgba(88, 105, 194, .13), transparent 31%),
        var(--ec-bg);
}

body.ed-case-mode .ed-case-hero__copy {
    min-width: 0;
    padding: 0 0 clamp(8px, 2vh, 24px);
    display: block;
    color: var(--ec-text);
    border: 0;
    background: transparent;
}

body.ed-case-mode .ed-case-hero__kicker {
    margin: 0 0 clamp(30px, 5vh, 58px);
    color: var(--ec-accent);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .14em;
    line-height: 1.3;
}

body.ed-case-mode .ed-case-hero__title {
    max-width: 720px;
    margin: 0;
    color: var(--ec-text) !important;
    font-size: clamp(56px, 5.1vw, 84px) !important;
    font-weight: 500 !important;
    letter-spacing: -.072em !important;
    line-height: .91 !important;
    overflow-wrap: normal;
    text-wrap: balance;
}

body.ed-case-mode .ed-case-hero--long-title .ed-case-hero__title {
    font-size: clamp(48px, 4.45vw, 72px) !important;
    line-height: .94 !important;
}

body.ed-case-mode .ed-case-hero--long-word .ed-case-hero__title {
    font-size: clamp(44px, 4vw, 66px) !important;
    letter-spacing: -.06em !important;
}

body.ed-case-mode .ed-case-hero__meta {
    margin-top: clamp(26px, 4vh, 44px);
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    border-top: 1px solid var(--ec-line);
    color: var(--ec-muted);
}

body.ed-case-mode .ed-case-hero__meta p {
    min-width: 0;
    margin: 0;
    color: inherit !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-wrap: pretty;
}

body.ed-case-mode .ed-case-hero__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(233, 238, 250, .17);
    border-radius: var(--ec-radius);
    background: #e9edf6;
    box-shadow: 0 34px 90px rgba(4, 8, 16, .42);
}

body.ed-case-mode .ed-case-hero__media::after {
    border-radius: inherit;
    background: linear-gradient(0deg, rgba(4, 8, 16, .15), transparent 38%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

body.ed-case-mode .ed-case-hero__media img,
body.ed-case-mode .ed-case-hero__media video {
    width: 100%;
    height: auto;
    aspect-ratio: 1.56 / 1;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(1.025);
    transform: none;
    transition: transform 900ms var(--ec-ease), filter 500ms ease;
}

body.ed-case-mode .ed-case-hero__media:hover > .ed-parallax-media {
    filter: saturate(1) contrast(1.015);
    transform: scale(1.018) !important;
}

body.ed-case-mode .ed-case-hero__badge {
    top: 24px;
    right: 24px;
    width: auto;
    max-width: clamp(108px, 12vw, 178px);
    height: auto;
    max-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    object-fit: contain !important;
    filter: grayscale(1) brightness(2.9) !important;
    background: rgba(9, 12, 17, .72);
    backdrop-filter: blur(12px);
}

body.ed-case-mode .ed-case-hero__scroll {
    right: 24px;
    bottom: 22px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(9, 12, 17, .66);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .1em;
    transition: background-color 220ms ease, transform 220ms var(--ec-ease);
}

body.ed-case-mode .ed-case-hero__scroll:hover,
body.ed-case-mode .ed-case-hero__scroll:focus-visible {
    background: rgba(9, 12, 17, .9);
    transform: translateY(-2px);
}

body.ed-case-mode .ed-case-index {
    display: none !important;
}

body.ed-case-mode .br-page-content > br {
    display: none;
}

body.ed-case-mode .page-wrapper,
body.ed-case-mode .page-wrapper > div,
body.ed-case-mode .page-wrapper > section,
body.ed-case-mode .content-section,
body.ed-case-mode .fancy-short-banner-five {
    width: 100% !important;
    max-width: none !important;
}

body.ed-case-mode .ed-case-chapter {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: var(--ec-text);
    border: 0 !important;
    border-top: 1px solid var(--ec-line) !important;
    border-radius: 0 !important;
    background: var(--ec-bg) !important;
}

body.ed-case-mode .ed-case-chapter--story {
    padding: clamp(92px, 10vw, 164px) 4vw clamp(110px, 12vw, 190px) !important;
    background:
        radial-gradient(circle at 16% 34%, rgba(85, 104, 192, .1), transparent 28%),
        var(--ec-bg) !important;
}

body.ed-case-mode .ed-case-chapter > [class*="container"],
body.ed-case-mode .ed-case-chapter .container-default,
body.ed-case-mode .ed-case-chapter .container {
    width: var(--ec-shell) !important;
    max-width: 1640px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body.ed-case-mode .ed-case-chapter--story .inner-container._904px,
body.ed-case-mode .ed-case-chapter--story .inner-container._800px,
body.ed-case-mode .ed-case-chapter--story .inner-container._700px---tablet,
body.ed-case-mode .ed-case-chapter--story .inner-container._600px---mbl {
    width: 100% !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
}

body.ed-case-mode .ed-case-chapter--story .rich-text-v2 {
    max-width: 1040px;
}

body.ed-case-mode .ed-case-chapter--story .rich-text-v2 + .rich-text-v2 {
    margin-top: clamp(72px, 8vw, 124px);
}

body.ed-case-mode .ed-case-chapter h2,
body.ed-case-mode .ed-case-chapter .display-2 {
    max-width: 14ch;
    margin: 0 0 clamp(30px, 4vw, 54px) !important;
    color: var(--ec-text) !important;
    font-size: clamp(44px, 5vw, 76px) !important;
    font-weight: 500 !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
    text-wrap: balance;
}

body.ed-case-mode .ed-case-chapter h3,
body.ed-case-mode .ed-case-chapter p,
body.ed-case-mode .ed-case-chapter li,
body.ed-case-mode .ed-case-chapter .color-neutral-600,
body.ed-case-mode .ed-case-chapter .color-neutral-800 {
    color: currentColor !important;
}

body.ed-case-mode .ed-case-chapter p,
body.ed-case-mode .ed-case-chapter li {
    max-width: 900px;
    margin-top: 0;
    color: var(--ec-muted) !important;
    opacity: 1;
    font-size: clamp(16px, 1.3vw, 21px) !important;
    line-height: 1.65 !important;
    text-wrap: pretty;
}

body.ed-case-mode .ed-case-chapter .mg-bottom-76px,
body.ed-case-mode .ed-case-chapter .mg-bottom-100px {
    margin-bottom: clamp(72px, 8vw, 124px) !important;
}

body.ed-case-mode .ed-case-chapter .card,
body.ed-case-mode .ed-case-chapter .project-execution,
body.ed-case-mode .ed-case-chapter .project-results {
    color: var(--ec-text) !important;
    border: 1px solid var(--ec-line) !important;
    border-radius: var(--ec-radius) !important;
    background: var(--ec-surface) !important;
    box-shadow: none !important;
}

body.ed-case-mode .ed-case-chapter .project-execution {
    max-width: 1040px;
    padding: clamp(34px, 5vw, 72px) !important;
}

body.ed-case-mode .ed-case-chapter .text-center > h2,
body.ed-case-mode .ed-case-chapter h2.text-center {
    max-width: 16ch;
    margin-inline: auto !important;
    text-align: center !important;
}

body.ed-case-mode .ed-case-chapter .project-results-grid {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.ed-case-mode .ed-case-chapter .project-results {
    min-width: 0;
    min-height: 260px;
    padding: clamp(30px, 4vw, 58px) !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: space-between;
    text-align: left !important;
}

body.ed-case-mode .ed-case-chapter .project-results .display-1 {
    margin-bottom: 44px;
    color: var(--ec-text) !important;
    font-size: clamp(68px, 7vw, 112px) !important;
    font-weight: 480;
    line-height: .8;
    letter-spacing: -.075em;
}

body.ed-case-mode .ed-case-chapter .project-results h3 {
    max-width: 22ch;
    color: var(--ec-muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    letter-spacing: .04em !important;
}

body.ed-case-mode .ed-case-chapter figure,
body.ed-case-mode .ed-case-chapter .image-wrapper,
body.ed-case-mode .ed-case-chapter .image-box {
    border-radius: 24px !important;
    overflow: hidden;
}

body.ed-case-mode .ed-case-chapter--story .rich-text-v2 figure {
    width: min(100%, 1170px) !important;
    max-width: 1170px !important;
    margin: clamp(46px, 6vw, 86px) 0 0 !important;
}

body.ed-case-mode .ed-case-chapter img:not(.ed-cursor-hint) {
    display: block;
    max-width: 100%;
    filter: saturate(.88) contrast(1.02);
    transition: transform 800ms var(--ec-ease), filter 500ms ease;
}

body.ed-case-mode .ed-case-chapter img:hover {
    filter: saturate(1) contrast(1);
}

body.ed-case-mode .ed-case-chapter--gallery {
    padding: 0 0 clamp(92px, 9vw, 148px) !important;
    overflow: hidden;
    background: var(--ec-bg) !important;
}

body.ed-case-mode .ed-case-chapter--gallery .works-slider {
    width: var(--ec-shell) !important;
    max-width: 1640px !important;
    margin-inline: auto !important;
    overflow: visible;
}

body.ed-case-mode .ed-case-chapter--gallery .swiper-wrapper {
    align-items: stretch;
}

body.ed-case-mode .ed-case-chapter--gallery .swiper-slide {
    width: min(74vw, 1170px) !important;
    min-height: 0;
    padding: 0 !important;
}

body.ed-case-mode .ed-case-chapter--gallery figure,
body.ed-case-mode .ed-case-chapter--gallery a {
    width: 100%;
    height: 100%;
    display: block;
}

body.ed-case-mode .ed-case-chapter--gallery img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1170 / 700;
    object-fit: cover;
    border-radius: 24px !important;
}

body.ed-case-mode .ed-case-chapter--actions {
    padding: 0 4vw clamp(92px, 10vw, 154px) !important;
    background: var(--ec-bg) !important;
}

body.ed-case-mode .ed-case-chapter--actions .bg-wrapper {
    min-height: 330px;
    padding: clamp(38px, 6vw, 86px) !important;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--ec-line) !important;
    border-radius: var(--ec-radius) !important;
    background:
        radial-gradient(circle at 86% 6%, rgba(113, 135, 244, .22), transparent 28rem),
        var(--ec-surface) !important;
}

body.ed-case-mode .ed-case-chapter--actions .row {
    width: 100%;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    align-items: end !important;
    gap: 34px;
}

body.ed-case-mode .ed-case-chapter--actions [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
}

body.ed-case-mode .ed-case-chapter--actions [class*="col-"]:last-child {
    display: flex;
    justify-content: flex-end;
}

body.ed-case-mode .ed-case-chapter--actions h3 {
    max-width: 12ch;
    margin: 0 !important;
    color: var(--ec-text) !important;
    font-size: clamp(40px, 5vw, 76px) !important;
    font-weight: 500 !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
}

body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn {
    min-height: 58px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 30px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: #10141a !important;
    background: var(--ec-text) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap;
    transition: background-color 220ms ease, transform 220ms var(--ec-ease);
}

body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn:hover,
body.brawus-v2.ed-case-mode .ed-case-chapter--actions .theme-btn:focus-visible {
    background: #dfe3ec !important;
    transform: translateY(-2px);
}

body.ed-case-mode .br-page-content > .editorial-open-form,
body.ed-case-mode .editorial-open-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 1px solid var(--ec-line);
}

body.ed-case-mode :is(a, button):focus-visible {
    outline: 2px solid #98a8ff;
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    body.ed-case-mode {
        --ec-shell: min(92vw, 1080px);
    }

    body.ed-case-mode .ed-case-hero {
        grid-template-columns: minmax(380px, .95fr) minmax(440px, 1.05fr);
        gap: 30px;
    }

    body.ed-case-mode .ed-case-hero__title {
        font-size: clamp(48px, 5vw, 64px) !important;
    }

    body.ed-case-mode .ed-case-hero--long-word .ed-case-hero__title {
        font-size: clamp(42px, 4.4vw, 56px) !important;
    }
}

@media (max-width: 980px) {
    body.ed-case-mode .ed-case-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 30px;
        padding-top: 132px;
    }

    body.ed-case-mode .ed-case-hero__copy {
        max-width: 760px;
    }

    body.ed-case-mode .ed-case-hero__media img,
    body.ed-case-mode .ed-case-hero__media video {
        aspect-ratio: 1.66 / 1;
    }
}

@media (max-width: 767px) {
    body.ed-case-mode {
        --ec-shell: calc(100vw - 32px);
        --ec-radius: 22px;
    }

    body.ed-case-mode .ed-case-hero {
        grid-template-rows: none;
        gap: 24px;
        padding: 92px 0 22px;
    }

    body.ed-case-mode .ed-case-hero__copy {
        grid-row: auto;
        padding: 0;
        border: 0;
    }

    body.ed-case-mode .ed-case-hero__kicker {
        margin-bottom: 26px;
        font-size: 10px;
    }

    body.ed-case-mode .ed-case-hero__title,
    body.ed-case-mode .ed-case-hero--long-title .ed-case-hero__title {
        max-width: 360px;
        font-size: clamp(39px, 11.2vw, 47px) !important;
        line-height: .94 !important;
        letter-spacing: -.064em !important;
        text-wrap: pretty;
    }

    body.ed-case-mode .ed-case-hero--long-word .ed-case-hero__title {
        font-size: clamp(34px, 9.7vw, 41px) !important;
        overflow-wrap: anywhere;
    }

    body.ed-case-mode .ed-case-hero__meta {
        margin-top: 24px;
        padding-top: 18px;
        gap: 12px;
    }

    body.ed-case-mode .ed-case-hero__meta p {
        font-size: 12px !important;
    }

    body.ed-case-mode .ed-case-hero__media {
        grid-row: auto;
        border-radius: 18px;
    }

    body.ed-case-mode .ed-case-hero__media img,
    body.ed-case-mode .ed-case-hero__media video {
        min-height: 0;
        aspect-ratio: 1.64 / 1;
    }

    body.ed-case-mode .ed-case-hero__badge {
        top: 12px;
        right: 12px;
        max-width: 92px;
        max-height: 50px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    body.ed-case-mode .ed-case-hero__scroll {
        display: none;
    }

    body.ed-case-mode .ed-case-chapter--story {
        padding: 76px 16px 92px !important;
    }

    body.ed-case-mode .ed-case-chapter h2,
    body.ed-case-mode .ed-case-chapter .display-2 {
        max-width: 14ch;
        margin-bottom: 24px !important;
        font-size: clamp(36px, 10.8vw, 44px) !important;
        line-height: 1 !important;
    }

    body.ed-case-mode .ed-case-chapter p,
    body.ed-case-mode .ed-case-chapter li {
        font-size: 16px !important;
        line-height: 1.58 !important;
    }

    body.ed-case-mode .ed-case-chapter--story .rich-text-v2 + .rich-text-v2 {
        margin-top: 66px;
    }

    body.ed-case-mode .ed-case-chapter .mg-bottom-76px,
    body.ed-case-mode .ed-case-chapter .mg-bottom-100px {
        margin-bottom: 70px !important;
    }

    body.ed-case-mode .ed-case-chapter .project-execution {
        padding: 28px !important;
        border-radius: 18px !important;
    }

    body.ed-case-mode .ed-case-chapter .project-results-grid {
        grid-template-columns: 1fr !important;
    }

    body.ed-case-mode .ed-case-chapter .project-results {
        min-height: 210px;
        padding: 28px !important;
        border-radius: 18px !important;
    }

    body.ed-case-mode .ed-case-chapter .project-results .display-1 {
        margin-bottom: 34px;
        font-size: 72px !important;
    }

    body.ed-case-mode .ed-case-chapter--story .rich-text-v2 figure {
        margin-top: 38px !important;
        border-radius: 18px !important;
    }

    body.ed-case-mode .ed-case-chapter--gallery {
        padding-bottom: 82px !important;
    }

    body.ed-case-mode .ed-case-chapter--gallery .swiper-slide {
        width: calc(100vw - 32px) !important;
    }

    body.ed-case-mode .ed-case-chapter--gallery img {
        border-radius: 18px !important;
    }

    body.ed-case-mode .ed-case-chapter--actions {
        padding: 0 16px 88px !important;
    }

    body.ed-case-mode .ed-case-chapter--actions .bg-wrapper {
        min-height: 310px;
        padding: 28px !important;
        border-radius: 20px !important;
    }

    body.ed-case-mode .ed-case-chapter--actions .row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.ed-case-mode .ed-case-chapter--actions [class*="col-"]:last-child {
        justify-content: flex-start;
    }

    body.ed-case-mode .ed-case-chapter--actions h3 {
        font-size: clamp(36px, 10vw, 44px) !important;
    }

    body.ed-case-mode .ed-case-chapter--actions .theme-btn {
        width: 100%;
        min-height: 54px;
        padding-inline: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ed-case-mode .ed-case-hero__media img,
    body.ed-case-mode .ed-case-chapter img,
    body.ed-case-mode .ed-case-chapter--actions .theme-btn {
        transition: none !important;
        transform: none !important;
    }
}
