:root {
    --bg: #F3F3EE;
    --bg-soft: #ECEDE7;
    --surface: #E5E7E0;
    --surface-dark: #343A34;
    --text: #2E332E;
    --text-muted: #70746D;
    --text-faint: #969A91;
    --line: #D2D4CC;
    --line-strong: #B8BBB2;
    --white: #FAFAF7;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;
    --r-pill: 999px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    background: var(--bg);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

.serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

h1,
.h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 5.6vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.025em;
}

h2,
.h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

h3,
.h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.body-lg {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.42;
    letter-spacing: -0.005em;
}

/* ============ LAYOUT ============ */
.wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 120px 0;
}

.section__rule {
    display: grid;
    grid-template-columns: auto minmax(20px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 64px;
}

.section__rule .rule {
    width: 100%;
    height: 1px;
    justify-self: stretch;
    background: var(--line);
    border-radius: 0;
    opacity: 1;
}

.section__rule .eyebrow {
    flex: 0 0 auto;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-transform: none;
    color: var(--text);
}

.section__rule .eyebrow:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--text-faint);
}

/* ============ NAV ============ */
.nav-shell {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 24px;
}

.nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px;
    background: rgba(243, 243, 238, 0.78);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    border: 1px solid rgba(210, 212, 204, 0.7);
    border-radius: var(--r-pill);
    animation: navFade 500ms cubic-bezier(.22, 1, .36, 1) 80ms both;
}

.nav__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    padding: 0 18px;
    margin: 0;
    border-right: 1px solid var(--line);
    color: var(--text);
}

.logo-svg {
    display: block;
    width: 140px;
    height: 25px;
}

.nav__links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: 0;
}

.nav__indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--surface-dark);
    border-radius: var(--r-pill);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        transform .5s cubic-bezier(.45, .05, .55, .95),
        width .5s cubic-bezier(.45, .05, .55, .95),
        opacity .35s ease;
}

.nav__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 13px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-muted);
    border-radius: var(--r-pill);
    transition: color .35s var(--ease);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link.is-active {
    color: var(--bg);
}

.nav__link.is-active:hover {
    color: var(--bg);
}

.nav__toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: 12px;
    border-radius: var(--r-pill);
    align-items: center;
    justify-content: center;
    background: rgba(46, 51, 46, 0.06);
}

.nav__toggle span {
    width: 16px;
    height: 1.5px;
    background: var(--text);
    position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text);
}

.nav__toggle span::before {
    top: -5px;
}

.nav__toggle span::after {
    top: 5px;
}

/* ============ PAGE LOAD SEQUENCE ============ */
@keyframes navFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portraitSettle {
    from {
        opacity: 0;
        transform: scale(1.045);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroCardRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ HERO ============ */
.hero {
    padding: 168px 0 112px;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 44px;
    align-items: start;
}

.hero__main {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

.hero__title {
    max-width: 12.5ch;
    margin-bottom: 0;
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: 0.96;
    animation: heroRise 1000ms cubic-bezier(.22, 1, .36, 1) 160ms both;
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
}

.hero__portrait-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4px;
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    padding-bottom: 58px;
}

.hero__portrait {
    width: min(100%, 470px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    animation: portraitSettle 1200ms cubic-bezier(.22, 1, .36, 1) 340ms both;
}

.hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 46px;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.hero__intro-card {
    position: absolute;
    z-index: 2;
    right: 1%;
    bottom: 0;
    width: min(290px, 62%);
    min-height: 150px;
    display: flex;
    align-items: center;
    padding: 22px 24px;
    background: rgba(243, 243, 238, 0.92);
    border: 1px solid rgba(210, 212, 204, 0.95);
    border-radius: 20px;
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    animation: heroCardRise 800ms cubic-bezier(.22, 1, .36, 1) 720ms both;
}

.hero__intro {
    max-width: 26ch;
}

.hero__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
}

.hero__aside>.eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-transform: none;
    color: var(--text);
    animation: heroRise 700ms cubic-bezier(.22, 1, .36, 1) 580ms both;
}

.hero__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--line);
}

.hero__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: padding-left .25s var(--ease);
    animation: heroRise 700ms cubic-bezier(.22, 1, .36, 1) both;
}

.hero__link:nth-child(1) {
    animation-delay: 700ms;
}

.hero__link:nth-child(2) {
    animation-delay: 770ms;
}

.hero__link:nth-child(3) {
    animation-delay: 840ms;
}

.hero__link:nth-child(4) {
    animation-delay: 910ms;
}

.hero__link:nth-child(5) {
    animation-delay: 980ms;
}

.hero__link:nth-child(6) {
    animation-delay: 1050ms;
}

.hero__link:hover {
    padding-left: 8px;
}

.hero__link span:first-child {
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.hero__link span:first-child em {
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.hero__link span:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
    transition: transform .3s var(--ease);
}

.hero__link:hover span:last-child {
    transform: translateX(4px);
}

/* ============ EXPERT ============ */
.expert {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 96px;
    align-items: start;
}

.expert__photo {
    position: sticky;
    top: 120px;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
}

.expert__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.expert__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    background: rgba(243, 243, 238, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-pill);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text);
    text-transform: uppercase;
}

.expert__photo-index {
    position: absolute;
    bottom: 18px;
    right: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .85);
    text-transform: uppercase;
}

.expert__info {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 12px;
}

.expert__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.expert__name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
}

.expert__role {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(19px, 1.6vw, 24px);
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.expert__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface);
    border-radius: var(--r-pill);
}

.expert__bio {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 58ch;
}

.expert__bio p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}

.expert__bio p strong {
    color: var(--text);
    font-weight: 500;
}

.expert__bio p:first-child {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.4;
    color: var(--text);
    letter-spacing: -0.005em;
}

.expert__meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.expert__meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expert__meta-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.expert__meta-value em {
    font-style: italic;
    font-size: .6em;
    color: var(--text-muted);
}

.expert__meta-label {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.expert__facts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.expert__facts ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.expert__facts li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    letter-spacing: -0.005em;
}

.expert__facts li::before {
    content: '→';
    font-style: normal;
    color: var(--text-faint);
}

/* ============ CASES ============ */
.cases__intro {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 40px;
}

.cases__intro h2 em {
    font-style: italic;
    color: var(--text-muted);
}

.cases__intro p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 34ch;
}

.cases-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cases-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition:
        background .25s var(--ease),
        color .25s var(--ease),
        border-color .25s var(--ease);
}

.cases-filter__btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.cases-filter__btn.is-active {
    color: var(--bg);
    background: var(--surface-dark);
    border-color: var(--surface-dark);
}

.cases-rail-wrap {
    position: relative;
}

.cases-rail {
    --slide-w: clamp(520px, 58vw, 680px);
    --slide-gap: 32px;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--slide-w);
    gap: var(--slide-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding: 40px calc((100% - var(--slide-w)) / 2) 48px;
    margin: 0;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.cases-rail::-webkit-scrollbar {
    display: none;
}

.cases-rail.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: auto;
}

.cases-rail.is-dragging * {
    user-select: none;
    -webkit-user-select: none;
}

.case-slide {
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 32px 32px 24px;
    background: var(--white);
    border-radius: var(--r-lg);
    min-height: 440px;
    transform-origin: center center;
    transform:
        scale(calc(var(--s, 1) + var(--hover-s, 0) + var(--drag-scale, 0))) translateY(calc(var(--y, 0px) + var(--drag-lift, 0px))) rotate(var(--drag-rotate, 0deg));
    opacity: var(--o, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    cursor: pointer;
    box-shadow:
        0 12px 28px -18px rgba(46, 51, 46, 0.10),
        0 4px 12px -6px rgba(46, 51, 46, 0.05);
    transition:
        transform 500ms cubic-bezier(.22, 1, .36, 1),
        opacity 500ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 400ms cubic-bezier(.22, 1, .36, 1);
}

.case-slide.is-hidden {
    display: none;
}

.case-slide:hover {
    --hover-s: 0.02;
    box-shadow:
        0 24px 48px -22px rgba(46, 51, 46, 0.16),
        0 8px 20px -10px rgba(46, 51, 46, 0.08);
}

.cases-rail.is-dragging .case-slide {
    cursor: grabbing;
    transition:
        transform 120ms linear,
        opacity 120ms linear,
        box-shadow 120ms linear;
}

.cases-rail.is-dragging .case-slide.is-active-drag {
    cursor: grabbing;
    --drag-scale: 0.045;
    --drag-lift: -6px;
    --hover-s: 0;
    box-shadow:
        0 40px 72px -28px rgba(46, 51, 46, 0.24),
        0 16px 32px -14px rgba(46, 51, 46, 0.12);
    transition:
        transform 280ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 280ms cubic-bezier(.22, 1, .36, 1);
}

.case-slide .meta {
    align-self: flex-start;
}

.case-slide__visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    margin: 8px 0 4px;
}

.case__box {
    min-height: 200px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px 24px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    position: relative;
}

.case__box--before {
    background: var(--bg);
    color: var(--text-muted);
}

.case__box--after {
    background: var(--surface-dark);
    color: var(--bg);
}

.case__box--lime {
    background: #D3DA83;
    color: var(--text);
}

.case__box--cream {
    background: #DCCDBC;
    color: var(--text);
}

.case__box--blue {
    background: #B8CCE2;
    color: var(--text);
}

.case__box--white {
    background: #FFFFFF;
}

.case__box--image {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case__box--image img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.case__label {
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: .55;
}

.case__box--after .case__label {
    opacity: .7;
}

.case__arrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    color: var(--text-faint);
    line-height: 1;
    align-self: center;
}

.case-slide__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 60ch;
}

.case-slide__result {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    width: 100%;
    text-align: left;
}

.case-slide__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--surface-dark);
    border: 1px solid var(--surface-dark);
    border-radius: var(--r-pill);
    white-space: nowrap;
    pointer-events: auto;
    transition:
        background .3s var(--ease),
        color .3s var(--ease),
        border-color .3s var(--ease),
        transform .12s var(--ease);
}

.case-slide__cta--soon {
    color: var(--text-faint);
    background: transparent;
    border: 1px dashed var(--line-strong);
    pointer-events: none;
    cursor: default;
}

.cases-rail.has-centered .case-slide:not(.is-centered) .case-slide__cta:not(.case-slide__cta--soon) {
    pointer-events: none;
}

.case-slide.is-centered .case-slide__cta:not(.case-slide__cta--soon):hover {
    background: var(--bg);
    color: var(--surface-dark);
}

.case-slide.is-centered .case-slide__cta:not(.case-slide__cta--soon):active {
    transform: scale(0.97);
}

.cases__rail-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    padding-top: 28px;
}

.cases__counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    text-transform: uppercase;
    min-width: 64px;
    text-align: right;
}

.cases__rail-arrows {
    display: flex;
    gap: 12px;
}

.cases__arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--text);
    background: transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.cases__arrow:hover {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: var(--bg);
}

/* ============ RESULT ============ */
.result {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 96px;
    align-items: start;
}

.result__intro h2 {
    max-width: 12ch;
    margin-bottom: 24px;
}

.result__intro h2 em {
    font-style: italic;
    color: var(--text-muted);
}

.result__intro p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 34ch;
}

.result__list {
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.result__item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.result__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    padding-top: 4px;
}

.result__item-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result__item-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.result__item-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 52ch;
}

/* ============ REVIEWS — STACKED CARD CAROUSEL ============ */
#reviews {
    /* карточки-«веер» и drag не должны расширять страницу за пределы экрана */
    overflow-x: clip;
}

.reviews-stack-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 110px;
    padding: 40px 0 0;
}

.reviews-stack {
    position: relative;
    width: min(100%, 720px);
    height: 460px;
    opacity: 0;
    transition: opacity 500ms ease;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.reviews-stack.is-ready {
    opacity: 1;
}

.reviews-stack.is-dragging {
    cursor: grabbing;
}

.reviews-stack:focus-visible {
    outline: 2px solid var(--line-strong);
    outline-offset: 20px;
    border-radius: 40px;
}

.reviews-stack.no-anim .review-card {
    transition: none !important;
}

.review-card {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 48px 52px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    transform-origin: center center;
    box-shadow:
        0 12px 28px -18px rgba(46, 51, 46, 0.10),
        0 4px 12px -6px rgba(46, 51, 46, 0.05);
    will-change: transform, filter;
    transition:
        transform 780ms cubic-bezier(.22, 1, .36, 1),
        filter 500ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 560ms cubic-bezier(.22, 1, .36, 1);
    backface-visibility: hidden;
    cursor: pointer;
}

.review-card.is-front {
    cursor: grab;
}

.review-card.is-front:active {
    cursor: grabbing;
}

.review-card.is-being-dragged {
    transition: none !important;
    cursor: grabbing;
    box-shadow:
        0 36px 72px -28px rgba(46, 51, 46, 0.26),
        0 14px 28px -14px rgba(46, 51, 46, 0.12);
}

.review-card__quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 1.85vw, 26px);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 34ch;
}

/* Длинные отзывы (полнотекстные благодарности на визитках экспертов) */
.reviews-stack--long .review-card__quote {
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    font-size: clamp(17px, 1.5vw, 20px);
    padding-right: 10px;
}

.reviews-stack--long .review-card__quote::-webkit-scrollbar {
    width: 6px;
}

.reviews-stack--long .review-card__quote::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-stack--long .review-card__quote::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 3px;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75);
    pointer-events: none;
}

.review-card__name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    display: block;
}

.review-card__role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    display: block;
    margin-top: 4px;
}

.reviews-stack__controls {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 32px;
}

.stack-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--text);
    background: transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}

.stack-arrow:hover {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: var(--bg);
}

.stack-arrow:disabled {
    opacity: 0.28;
    pointer-events: none;
}

.stack-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 64px;
    text-align: center;
}

.stack-counter em {
    font-style: normal;
    color: var(--text-faint);
}

/* ============ FAQ ============ */
.faq {
    border-top: 1px solid var(--line);
    max-width: 900px;
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    list-style: none;
    display: grid;
    grid-template-columns: 60px 1fr 24px;
    gap: 24px;
    align-items: baseline;
    padding: 32px 0;
    cursor: pointer;
    transition: color .25s var(--ease);
    font-family: 'Playfair Display', serif;
    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:hover {
    color: var(--text-muted);
}

.faq__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.faq__toggle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
    text-align: right;
    transition: transform .35s var(--ease), color .25s var(--ease);
}

.faq__item[open] .faq__toggle {
    transform: rotate(45deg);
    color: var(--text);
}

.faq__answer {
    padding: 0 24px 32px 84px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 68ch;
}

.faq__answer p+p {
    margin-top: 14px;
}

.faq__bullets {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__bullets li {
    position: relative;
    padding-left: 22px;
    line-height: 1.6;
}

.faq__bullets li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--text-faint);
}

/* ============ ARTICLES ============ */
.articles__intro {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 64px;
}

.articles__intro h2 em {
    font-style: italic;
    color: var(--text-muted);
}

.articles__intro p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 34ch;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 36px 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.article-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.article-card__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.article-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.article-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 1.65vw, 24px);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.018em;
    color: var(--text);
}

.article-card__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.article-card__cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--bg);
    background: var(--surface-dark);
    border: 1px solid var(--surface-dark);
    border-radius: var(--r-pill);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.article-card__cta:hover {
    background: var(--bg);
    color: var(--surface-dark);
}

/* ============ FOOTER ============ */
.footer {
    padding: 0 0 40px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-top: 64px;
}

.footer__brand {
    display: block;
    width: fit-content;
    margin: 0 0 22px 0;
    padding: 0;
    color: var(--text);
    line-height: 0;
}

.footer__brand .logo-svg {
    height: 32px;
}

.footer__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 34ch;
}

.footer__col h4 {
    margin-bottom: 20px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col a {
    font-size: 14px;
    color: var(--text);
    transition: color .25s var(--ease);
}

.footer__col a:hover {
    color: var(--text-muted);
}

.footer__contacts li {
    font-size: 14px;
    color: var(--text);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 60px;
    margin-top: 80px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    text-transform: uppercase;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav,
    .hero__title,
    .hero__portrait,
    .hero__intro-card,
    .hero__aside>.eyebrow,
    .hero__link {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .review-card,
    .case-slide {
        transition: transform 1ms linear, filter 1ms linear, opacity 1ms linear, box-shadow 1ms linear !important;
    }

    .case-slide:hover {
        --hover-s: 0;
    }

    .cases-rail.is-dragging .case-slide.is-active-drag {
        --drag-scale: 0;
        --drag-lift: 0px;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
    .expert {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .expert__photo {
        position: static;
        max-width: 520px;
    }

    .result {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero__layout {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
        column-gap: 48px;
        row-gap: 40px;
    }

    .hero__title {
        max-width: 13ch;
        font-size: clamp(40px, 5vw, 68px);
    }

    .articles__intro {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases__intro {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }
}

@media (max-width: 980px) {
    .nav {
        padding: 6px;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: inline-flex;
    }

    .nav__brand {
        padding: 0 16px;
    }

    .nav__toggle {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 860px) {
    .wrap {
        padding: 0 24px;
    }

    .hero {
        padding: 132px 0 80px;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        row-gap: 46px;
    }

    .hero__main {
        grid-column: 1;
        grid-row: 1;
    }

    .hero__title {
        max-width: 100%;
        margin-bottom: 0;
        font-size: clamp(26px, 7.6vw, 48px);
    }

    .hero__portrait-wrap {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 54px;
    }

    .hero__portrait {
        width: min(100%, 330px);
    }

    .hero__content {
        grid-column: 1;
        grid-row: 3;
        gap: 40px;
    }

    .hero__intro-card {
        right: 2%;
        bottom: 0;
        width: min(250px, 74%);
        min-height: 128px;
        padding: 20px;
        border-radius: 18px;
    }

    .hero__intro {
        max-width: 24ch;
        font-size: 18px;
    }

    .section {
        padding: 80px 0;
    }

    .section__rule {
        margin-bottom: 48px;
    }

    .expert__meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px 0;
    }

    .cases-rail {
        --slide-w: min(520px, 86vw);
        --slide-gap: 20px;
        padding: 32px calc((100% - var(--slide-w)) / 2) 40px;
    }

    .cases__rail-controls {
        gap: 20px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .cases__arrow {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .cases__counter {
        min-width: 56px;
        font-size: 11px;
    }

    .case-slide {
        padding: 24px 20px 18px;
        min-height: auto;
        gap: 18px;
    }

    .case-slide__visual {
        max-width: 340px;
        margin: 4px auto 0;
        width: 100%;
    }

    .case__box--image img {
        max-height: 150px;
    }

    .case-slide__result {
        gap: 10px;
    }

    .case-slide__cta {
        height: 34px;
        padding: 0 16px;
        font-size: 11px;
    }

    .result__item {
        grid-template-columns: 44px 1fr;
        gap: 20px;
        padding: 24px 0;
    }

    .faq__item summary {
        grid-template-columns: 40px 1fr 20px;
        gap: 14px;
        padding: 24px 0;
    }

    .faq__answer {
        padding: 0 20px 24px 54px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 32px 24px 28px;
    }

    .article-card__cta {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 0 0 32px;
        margin-top: 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
        padding-top: 48px;
    }

    .footer__bottom {
        padding-top: 32px;
        margin-top: 48px;
    }

    .reviews-stack {
        height: 480px;
        width: min(100%, 620px);
    }

    .review-card {
        padding: 36px 32px 30px;
        gap: 24px;
    }

    .review-card__quote {
        font-size: clamp(18px, 4.6vw, 22px);
        max-width: 100%;
    }

    .review-card__avatar {
        width: 44px;
        height: 44px;
    }

    .reviews-stack-wrap {
        gap: 72px;
        padding-top: 20px;
    }

    .reviews-stack__controls {
        gap: 24px;
    }

    .stack-arrow {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .stack-counter {
        font-size: 12px;
        min-width: 56px;
    }

    .cases-filter {
        margin-bottom: 4px;
    }

    .cases-filter__btn {
        height: 32px;
        padding: 0 14px;
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding: 0 16px;
    }

    .nav__brand {
        padding: 0 14px;
    }

    .nav__toggle {
        margin-left: 12px;
    }

    .wrap {
        padding: 0 20px;
    }

    .hero__portrait {
        width: min(100%, 290px);
    }

    .hero__intro-card {
        width: min(236px, 76%);
        min-height: 118px;
        padding: 18px;
    }

    .expert__meta-grid {
        grid-template-columns: 1fr;
    }

    .case__box {
        font-size: 18px;
        padding: 24px 16px;
        min-height: 150px;
    }

    .case__box--image img {
        max-height: 120px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reviews-stack {
        height: 520px;
        width: 100%;
    }

    .review-card {
        padding: 30px 24px 26px;
        border-radius: 18px;
    }

    .review-card__quote {
        font-size: 17px;
    }

    .review-card__name {
        font-size: 14px;
    }
}