/* ===== fonts: same files and aliases as the homepage ===== */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-cyrillic-variable.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== tokens ===== */
:root {
  color-scheme: dark;
  --scene: #060606;
  --text: #e9e9e7;
  --muted: #b5b5b2;
  --dim: #85857f;
  --line: #ffffff1f;
  --wine: #3b0603;
  --wine-deep: #2a0402;
  --wine-edge: #8a8a8a;
  --display: "Archivo", "Inter Display", Arial, sans-serif;
  --body: "Golos Text", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--scene); scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: hidden; scrollbar-gutter: stable; }
body { margin: 0; background: var(--scene); color: var(--text); font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; isolation: isolate; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .08; mix-blend-mode: screen; background-size: 128px 128px; background-image: var(--grain-texture, none); animation: grain-drift 100ms steps(10, end) infinite; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--wine); color: #fff; }
:focus-visible { outline: 2px dotted var(--text); outline-offset: 6px; }
.edge { width: calc(100% - 80px); max-width: 1600px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 60; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--scene); transform: translateY(-160%); }
.skip:focus { transform: none; }
.label { display: block; margin-bottom: 22px; font: 600 14px/1 var(--display); letter-spacing: -.02em; color: var(--dim); }

/* ambient light that drifts toward the pointer */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(620px circle at var(--ax, 72%) var(--ay, 30%), #7a1a1426, transparent 70%); }

/* the homepage's ink-underline link */
.link-ink { position: relative; display: inline-block; }
.link-ink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.2em; border-bottom: 1px dotted currentColor; opacity: 0; transform: scaleX(.65); transform-origin: left; transition: opacity .25s ease, transform .7s var(--ease); }
a:is(:hover, :focus-visible) .link-ink::after, button:is(:hover, :focus-visible) .link-ink::after { opacity: 1; transform: scaleX(1); }
.text-link { display: inline-block; margin-top: 30px; font: 650 16px/1.2 var(--display); letter-spacing: -.03em; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid #ffffff3d; border-radius: 999px; font: 650 15px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:is(:hover, :focus-visible) .arrow { transform: translate(3px, -3px); }
.btn-light { background: var(--text); border-color: var(--text); color: #0a0a0a; }
.btn-light:is(:hover, :focus-visible) { background: #fff; border-color: #fff; }
.btn-ghost:is(:hover, :focus-visible) { background: #ffffff14; border-color: #ffffff66; }

/* ===== cover: type only, no picture ===== */
.cover { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; min-height: 700px; height: 100svh; max-height: 1180px; background: var(--scene); }
.cover-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cover-glow i { position: absolute; border-radius: 50%; will-change: transform; }
.cover-glow i:nth-child(1) { right: -14vw; top: -20vw; width: 62vw; height: 62vw; background: radial-gradient(circle, #6a0e0870, transparent 66%); animation: glow-a 26s ease-in-out infinite alternate; }
.cover-glow i:nth-child(2) { left: -12vw; bottom: -22vw; width: 46vw; height: 46vw; background: radial-gradient(circle, #ffffff12, transparent 66%); animation: glow-b 32s ease-in-out infinite alternate; }
.topbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding-top: 28px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 18px/1 var(--display); letter-spacing: -.055em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font: 650 16px/1 var(--display); letter-spacing: -.04em; }
.nav-links a[aria-current] .link-ink::after { opacity: 1; transform: none; }
.cover-layout { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 10px; }
.eyebrow { margin-bottom: clamp(14px, 2.4vh, 28px); font: 600 clamp(13px, 1.1vw, 16px)/1.2 var(--display); letter-spacing: -.02em; color: var(--muted); }
.js .eyebrow { animation: rise .9s var(--ease) .1s backwards; }
.mega { font: 750 min(13.4vw, 22vh)/.86 var(--display); letter-spacing: -.065em; }
.mega .row { display: block; white-space: nowrap; will-change: transform; transform: translate3d(calc(var(--hs, 0) * var(--dx, 0vw)), 0, 0); }
.mega .r1 { --dx: -9vw; }
.mega .r2 { --dx: 7vw; }
.mega .r3 { --dx: -4vw; }
.mega .wd { display: inline-block; }
.mega .ch { display: inline-block; transform: translate3d(0, calc(var(--k, 0) * -.075em), 0) rotate(calc(var(--r, 0) * var(--k, 0) * 5deg)); transition: transform .3s var(--ease), color .3s ease; }
.js .mega .ch { animation: ch-in 1.1s var(--ease) calc(var(--i) * 36ms + .15s) backwards; }
.mega .is-out .ch { color: rgb(233 233 231 / var(--k, 0)); -webkit-text-stroke: .014em var(--text); }
.mega .dot .ch { color: #9e2038; }
.scroll-hint { position: absolute; right: 0; bottom: 6px; font: 650 16px/1.2 var(--display); letter-spacing: -.03em; }
.marquee { flex: none; position: relative; overflow: hidden; padding-block: 12px 18px; border-top: 1px solid #ffffff14; }
.marquee-track { display: flex; align-items: center; width: max-content; font: 750 clamp(34px, 5vw, 84px)/1 var(--display); letter-spacing: -.05em; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { margin-right: .5em; color: transparent; -webkit-text-stroke: 1px #ffffff5c; }
.marquee i { margin-right: .5em; font-style: normal; font-size: .45em; color: #9e2038; }

/* the shared pointer light */
.offer::before, .case-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), #ffffff16, transparent 62%); }
.offer:hover::before, .case-open:hover::after { opacity: 1; }

/* ===== about ===== */
.about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .6fr); gap: clamp(40px, 7vw, 120px); align-items: end; padding-block: clamp(90px, 11vw, 170px) clamp(60px, 8vw, 120px); }
.statement, .closing-line { font: 700 clamp(28px, 3.7vw, 60px)/1.05 var(--display); letter-spacing: -.05em; }
.w { color: var(--dim); transition: color .15s linear; }
.w.is-lit { color: var(--text); }
.about-meta { padding-bottom: 8px; font: 600 clamp(18px, 1.6vw, 24px)/1.2 var(--display); letter-spacing: -.04em; color: var(--muted); }
.about-meta .text-link { margin-top: 22px; color: var(--text); }
.mm { display: inline-flex; align-items: baseline; }
.mm .arr, .viz-metric .arr { flex: none; width: .5em; height: .27em; align-self: center; margin: 0 .16em; color: #8f8f8c; }
.mm small, .viz-metric small { margin-left: .2em; font: 650 .36em/1 var(--display); letter-spacing: -.02em; color: var(--muted); }


/* ===== shared section heads ===== */
.cases-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; padding-bottom: clamp(40px, 5vw, 72px); }
.big-h2 { font: 700 clamp(64px, 10vw, 168px)/.86 var(--display); letter-spacing: -.065em; }
.big-h2.is-sub { font-size: clamp(48px, 7.4vw, 122px); line-height: .9; }
.big-h2 sup { margin-left: .12em; font: 650 .2em/1 var(--display); letter-spacing: -.03em; color: var(--dim); vertical-align: top; position: relative; top: .5em; }
.head-note { max-width: 32ch; margin-bottom: 8px; font: 400 clamp(16px, 1.45vw, 19px)/1.32 var(--body); letter-spacing: -.01em; color: #c4c4c0; }

/* ===== cases ===== */
.cases { padding-block: clamp(30px, 4vw, 60px) clamp(80px, 9vw, 140px); }
.filters-bar { position: sticky; top: 14px; z-index: 20; display: flex; justify-content: flex-start; pointer-events: none; }
.filters { pointer-events: auto; display: flex; gap: 4px; max-width: 100%; padding: 5px; overflow-x: auto; scrollbar-width: none; border: 1px solid #ffffff1c; border-radius: 999px; background: #0c0c0ccc; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 40px #00000066; }
.filters::-webkit-scrollbar { display: none; }
.filters button { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--display); letter-spacing: -.02em; color: #cfcfcb; transition: background-color .25s ease, color .25s ease; }
.filters button:hover { background: #ffffff14; }
.filters button[aria-pressed="true"] { background: var(--text); color: #0a0a0a; }
.fc { font: 600 11px/1 var(--display); color: var(--dim); font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] .fc { color: #55554f; }
.result-count { margin: 22px 0 18px; font: 500 13px/1 var(--body); color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.source-note { max-width: 70ch; margin-top: 34px; font: 400 13px/1.45 var(--body); color: var(--dim); }

.case { position: relative; min-width: 0; border-radius: 36px; background: #0a0a0a; box-shadow: 0 0 0 1px #ffffff14; transition: box-shadow .25s ease, opacity .8s var(--ease), transform .8s var(--ease); }
.case[hidden] { display: none; }
.js .case:not(.is-in) { opacity: 0; transform: translateY(30px); }
.js .case { transition-delay: 0s, 0s, calc(var(--d, 0) * 70ms); }
.case:is(:hover, :focus-within) { box-shadow: 0 0 0 3px var(--wine), 0 0 0 4px var(--wine-edge); }
.case-open { position: relative; display: flex; flex-direction: column; gap: 22px; height: 100%; padding: 14px 14px 26px; border-radius: inherit; }
.case-open:focus-visible { outline-offset: 7px; }
.case-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 0 12px; }
.case-title { font: 700 clamp(24px, 2.1vw, 32px)/1.05 var(--display); letter-spacing: -.05em; }
.case-title span { border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .2s ease, box-shadow .2s ease; }
.case-open:is(:hover, :focus-visible) .case-title span { background: var(--wine); color: #fff; box-shadow: 5px 0 var(--wine), -5px 0 var(--wine); }
.case-desc { max-width: 38ch; font: 400 15px/1.4 var(--body); letter-spacing: -.005em; color: #bdbdb9; }
.case-more { margin-top: auto; padding-top: 8px; font: 650 14px/1.2 var(--display); letter-spacing: -.02em; }
.more-arrow { display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.case-open:is(:hover, :focus-visible) .more-arrow { transform: translate(3px, -3px); }

/* the visual: one poster system, numbers drawn from the case itself */
.viz { --hx: 85%; --hy: 0%; position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; gap: 14px; aspect-ratio: 1.12; min-height: 330px; padding: 20px 22px 22px; overflow: hidden; border-radius: 24px; background: linear-gradient(165deg, #1b1b1b, #0d0d0d); box-shadow: inset 0 1px 0 #ffffff12; }
.viz.no-img { aspect-ratio: auto; min-height: 290px; }
.viz-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 80%); transition: transform .9s var(--ease); }
.case-open:hover .viz-img { transform: scale(1.05); }
.viz.no-img::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(#ffffff2e 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 62%); mask-image: linear-gradient(180deg, #000, transparent 62%); }
.viz::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 75% at var(--hx) var(--hy), #5d0c0780, transparent 64%), linear-gradient(180deg, #0d0d0d00 32%, #0d0d0df2 84%); }
.case-open:hover .viz::before { opacity: .72; transform: scale(1.05); }
.viz-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.viz-cat { padding: 8px 12px; border: 1px solid #ffffff2e; border-radius: 999px; background: #0a0a0a8c; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px/1 var(--body); color: #e4e4e1; }
.viz-n { font: 600 13px/1 var(--display); letter-spacing: -.02em; color: #cfcfcb; mix-blend-mode: normal; text-shadow: 0 1px 8px #000000a0; font-variant-numeric: tabular-nums; }
.viz-main { position: relative; z-index: 1; margin-top: auto; }
.viz-metric { font: 750 clamp(40px, 15cqw, 88px)/.95 var(--display); letter-spacing: -.07em; }
.viz-sub { margin-top: 10px; font: 400 14px/1.3 var(--body); color: var(--muted); }
.viz-chart { position: relative; z-index: 1; margin-top: 12px; min-height: 58px; }
.chart-note { font: 400 12.5px/1.35 var(--body); color: var(--muted); }
.dots + .chart-note, .weeks + .chart-note { margin-top: 12px; }

.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font: 500 12px/1 var(--body); color: var(--muted); }
.bar-track { position: relative; height: 8px; border-radius: 99px; background: #ffffff14; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; }
.b-before { background: #6a6a68; transform: scaleX(0); transform-origin: 0 50%; }
.b-after { background: linear-gradient(90deg, #f4f4f1, #d2d2cf); box-shadow: 0 0 14px #ffffff55; opacity: 0; }
.bar-val { font: 650 12.5px/1 var(--display); letter-spacing: -.01em; color: var(--text); text-align: right; white-space: nowrap; }
.viz.is-in .b-before { transform: none; transition: transform 1s var(--ease); }
.viz.is-in .b-after { animation: bar-morph 1.35s cubic-bezier(.65, 0, .2, 1) .8s both; }

.dots { display: grid; grid-template-columns: repeat(var(--cols, 10), minmax(0, 1fr)); gap: 7px; width: min(100%, calc(var(--cols) * var(--max, 30px) + (var(--cols) - 1) * 7px)); }
.dots i { aspect-ratio: 1; border-radius: 50%; background: #ffffff14; }
.viz.is-in .dots i.on { animation: dot-on .55s calc(var(--i) * 18ms + .3s) both; }
.viz.is-in .dots i.on.soft { animation-name: dot-soft; }

.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.weeks i { height: 30px; border-radius: 10px; background: #ffffff14; }
.viz.is-in .weeks i.on { animation: week-on .6s calc(var(--i, 0) * 120ms + .3s) both; background: var(--text); }
.weeks i.cut { background: repeating-linear-gradient(135deg, #ffffff22 0 4px, transparent 4px 9px); border: 1px dashed #ffffff40; }
.viz.is-in .weeks i.cut { animation: week-cut .8s 1s both; }


/* the closing card of the grid */
.case-cta { grid-column: span var(--span, 1); overflow: hidden; background: radial-gradient(80% 70% at 90% 0%, #6a0e0870, transparent 70%), linear-gradient(160deg, #4a0a07, var(--wine-deep) 70%); box-shadow: 0 0 0 1px #ffffff26; }
.case-cta .case-open { justify-content: space-between; gap: 26px; padding: 28px; }
.cta-chip { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; padding: 10px 15px 10px 13px; border: 1px solid #ffffff2b; border-radius: 999px; background: #0a0a0a66; font: 600 13px/1 var(--display); letter-spacing: -.02em; }
.cta-copy { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.case-cta .case-title { font-size: clamp(34px, 3.3vw, 52px); line-height: .98; }
.case-cta .case-desc { color: #dccdc9; }
.case-cta .btn { align-self: flex-start; }
.case-cta:is(:hover, :focus-within) .btn-light { background: #fff; }
.case-cta.is-wide .case-open { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: end; column-gap: 40px; min-height: 280px; }
.case-cta.is-wide .cta-chip { grid-column: 1; grid-row: 1; }
.case-cta.is-wide .cta-copy { grid-column: 1; grid-row: 2; align-self: end; }
.case-cta.is-wide .btn { grid-column: 2; grid-row: 3; justify-self: end; }
.flag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f4f4f1; box-shadow: 0 0 0 0 #f4f4f180; animation: flag-pulse 1.9s ease-out infinite; }

/* ===== offers ===== */
.offers { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 12vw, 190px) clamp(60px, 8vw, 110px); }
.offers::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 82% 30%, #7a1a1433, transparent 70%), radial-gradient(50% 36% at 8% 78%, #ffffff0d, transparent 70%); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 600px; padding: clamp(24px, 2.4vw, 36px); overflow: hidden; border: 1px solid #ffffff1f; border-radius: 40px; background: linear-gradient(145deg, #ffffff0d, #00000030), #0f0f0fd9; -webkit-backdrop-filter: blur(22px) saturate(.8); backdrop-filter: blur(22px) saturate(.8); }
.offer.is-main { background: linear-gradient(145deg, #ffffff14, #00000040), var(--wine); border-color: #ffffff2b; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-chips span { padding: 9px 14px; border: 1px solid #ffffff26; border-radius: 999px; background: #ffffff0d; font: 500 13px/1 var(--body); color: #dcdcd9; }
.offer h3 { font: 700 clamp(26px, 2.5vw, 38px)/1.02 var(--display); letter-spacing: -.055em; max-width: 14ch; }
.offer-price { font: 750 clamp(46px, 4.7vw, 76px)/.9 var(--display); letter-spacing: -.075em; }
.offer-text { max-width: 44ch; font: 400 16px/1.45 var(--body); color: #cdcdca; }
.offer.is-main .offer-text { color: #e0d0cc; }
.offer-list { display: grid; margin-top: auto; border-top: 1px solid #ffffff1f; }
.offer-list li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid #ffffff1f; font: 400 15px/1.35 var(--body); color: #dcdcd9; }
.offer-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--text); opacity: .7; }
.offer .btn { align-self: flex-start; margin-top: 6px; }

/* ===== closing + contacts (homepage patterns) ===== */
.closing { padding-block: clamp(70px, 9vw, 150px) clamp(50px, 6vw, 90px); }
.closing-line { max-width: 17ch; font-size: clamp(38px, 6.4vw, 112px); line-height: .98; }
.contacts { position: relative; z-index: 5; padding-bottom: 88px; }
.contact-links { display: block; }
.contact-row { display: grid; grid-template-columns: minmax(120px, .28fr) 1fr auto; align-items: baseline; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.contact-links a:last-child { border-bottom: 1px solid var(--line); }
.contact-kind { font: 500 clamp(14px, 1.2vw, 17px)/1.2 var(--display); letter-spacing: -.02em; color: #9a9a97; }
.contact-value { min-width: 0; font: 600 clamp(22px, 2.9vw, 44px)/1.05 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.contact-arrow { font: 500 clamp(20px, 2.2vw, 32px)/1 var(--display); color: #9a9a97; transition: transform .35s var(--ease), color .35s ease; }
.contact-row:is(:hover, :focus-visible) .contact-arrow { color: var(--text); transform: translate(4px, -4px); }
.contact-row:is(:hover, :focus-visible) .link-ink::after { opacity: 1; transform: none; }

/* ===== floating call-to-action ===== */
.float-cta { position: fixed; z-index: 30; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 15px 20px 15px 18px; border: 1px solid #ffffff2b; border-radius: 999px; background: #0a0a0ad9; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px #00000080; font: 650 14px/1 var(--display); letter-spacing: -.02em; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .35s ease, transform .5s var(--ease), background-color .25s ease; }
.float-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--wine); }

/* ===== case dialog ===== */
.dlg { width: min(1060px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #ffffff22; border-radius: 36px; background: #0b0b0bf5; color: var(--text); box-shadow: 0 40px 120px #000000b3; }
.dlg::backdrop { background: #060606b8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dlg[open] { animation: dlg-in .5s var(--ease) both; }
.dlg[open]::backdrop { animation: fade-in .4s ease both; }
.dlg.is-closing { animation: dlg-out .26s ease both; }
.dlg.is-closing::backdrop { animation: fade-out .26s ease both; }
.dlg-panel { display: flex; flex-direction: column; max-height: calc(100svh - 34px); }
.dlg-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 3vw, 40px); }
.dlg-count { font: 600 14px/1 var(--display); color: var(--dim); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dlg-count b { color: var(--text); font-weight: 650; }
.dlg-nav { display: flex; gap: 8px; }
.dlg-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff26; border-radius: 50%; transition: background-color .2s ease; }
.dlg-nav button:hover { background: #ffffff1a; }
.dlg-nav svg { width: 17px; height: 17px; }
.dlg-body { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; padding: 4px clamp(20px, 3vw, 40px) 34px; overflow: auto; overscroll-behavior: contain; }
.dlg-body.is-swap { animation: swap .42s var(--ease) both; }
.d-left { position: sticky; top: 0; display: grid; gap: 16px; min-width: 0; }
.d-left .viz { aspect-ratio: auto; min-height: 340px; }
.d-shot img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px #ffffff1f; }
.d-shot figcaption { margin-top: 10px; font: 400 12.5px/1.3 var(--body); color: var(--dim); }
.d-right { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.d-cat { font: 600 14px/1 var(--display); letter-spacing: -.02em; color: var(--dim); }
.d-title { font: 700 clamp(32px, 4vw, 58px)/1 var(--display); letter-spacing: -.055em; }
.d-block { padding-top: 20px; border-top: 1px solid #ffffff1f; }
.d-block h4 { margin-bottom: 10px; font: 600 14px/1 var(--display); letter-spacing: -.02em; color: var(--dim); }
.d-block p { max-width: 52ch; font: 400 16.5px/1.5 var(--body); color: #cdcdca; }
.d-block.is-after p { color: var(--text); }
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d-tags li { padding: 8px 13px; border: 1px solid #ffffff26; border-radius: 999px; font: 500 13px/1 var(--body); color: #cfcfcb; }
.dlg-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px clamp(20px, 3vw, 40px); border-top: 1px solid #ffffff1a; background: linear-gradient(145deg, #4a0a07, var(--wine-deep)); }
.dlg-cta p { max-width: 46ch; font: 400 15px/1.4 var(--body); color: #e0d0cc; }
.dlg-cta b { color: #fff; font-weight: 600; }
.dlg-actions { display: flex; flex: none; gap: 10px; }
.dialog-open { overflow: hidden; }

/* ===== motion ===== */
@keyframes grain-drift { 0%, 100% { background-position: 0 0; } 10% { background-position: -5% -10%; } 20% { background-position: -15% 5%; } 30% { background-position: 7% -25%; } 40% { background-position: -5% 25%; } 50% { background-position: -15% 10%; } 60% { background-position: 15% 0%; } 70% { background-position: 0% 15%; } 80% { background-position: 3% 10%; } 90% { background-position: 10% 3%; } }
@keyframes ch-in { from { opacity: 0; transform: translateY(.5em) rotate(7deg); filter: blur(10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes glow-a { to { transform: translate3d(-8vw, 6vw, 0) scale(1.12); } }
@keyframes glow-b { to { transform: translate3d(10vw, -5vw, 0) scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bar-morph { 0% { width: var(--from); opacity: 1; } 100% { width: var(--w); opacity: 1; } }
@keyframes dot-on { 0% { background: #ffffff14; transform: scale(.4); } 55% { transform: scale(1.25); } 100% { background: var(--text); box-shadow: 0 0 10px #ffffff44; transform: none; } }
@keyframes dot-soft { 0% { background: #ffffff14; transform: scale(.4); } 55% { transform: scale(1.2); } 100% { background: #ffffff66; transform: none; } }
@keyframes week-on { from { opacity: .2; transform: scaleY(.4); } to { opacity: 1; transform: none; } }
@keyframes week-cut { from { opacity: .25; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: 0; transform: scale(.5); } 8% { opacity: 1; transform: scale(1); } 40% { opacity: .9; } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes flag-pulse { 0% { box-shadow: 0 0 0 0 #f4f4f18c; } 70% { box-shadow: 0 0 0 9px #f4f4f100; } 100% { box-shadow: 0 0 0 0 #f4f4f100; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes swap { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
.case[data-reveal] { transition: box-shadow .25s ease, opacity .9s var(--ease), transform .9s var(--ease); }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .edge { width: calc(100% - 56px); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer { min-height: 0; }
  .offer h3 { max-width: none; }
}
@media (max-width: 860px) {
  .dlg-body { grid-template-columns: 1fr; }
  .d-left { position: static; }
  .cases-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .edge { width: calc(100% - 40px); }
  .cover { min-height: 620px; max-height: none; }
  .topbar { padding-top: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .brand { font-size: 16px; }
  .mega { font-size: min(17.6vw, 19vh); line-height: .9; }
  .mega .r1 { --dx: -5vw; }
  .mega .r2 { --dx: 4vw; }
  .mega .r3 { --dx: -3vw; }
  .eyebrow { font-size: 12px; }
  .scroll-hint { font-size: 14px; }
  .marquee-track { font-size: 34px; }
  .about { padding-block: 70px 40px; }
  .statement, .closing-line { font-size: clamp(27px, 7.6vw, 38px); }
  .big-h2 { font-size: clamp(60px, 19vw, 96px); }
  .big-h2.is-sub { font-size: clamp(44px, 13.6vw, 72px); }
  .filters-bar { top: 10px; margin-inline: -20px; padding-inline: 20px; }
  .filters { border-radius: 24px; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-cta { grid-column: 1 / -1; }
  .case { border-radius: 30px; }
  .viz { aspect-ratio: auto; min-height: 310px; }
  .offers { padding-block: 80px 50px; }
  .offer { border-radius: 32px; }
  .contact-row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; }
  .contact-kind { grid-column: 1 / -1; }
  .contact-value { font-size: clamp(20px, 6vw, 28px); }
  .contacts { padding-bottom: 130px; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .dlg { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: 30px 30px 0 0; }
  .dlg-panel { max-height: 94svh; overflow-y: auto; overscroll-behavior: contain; }
  .dlg-bar { position: sticky; top: 0; z-index: 2; background: #0b0b0bf5; }
  .dlg-body { overflow: visible; }
  .dlg-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .dlg-actions { flex-direction: column; }
  .dlg-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .case:not(.is-in), .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .b-before { transform: none; }
  .b-after { opacity: 1; }
    .viz .dots i.on { background: var(--text); }
  .viz .dots i.on.soft { background: #ffffff66; }
  .viz .weeks i.on { background: var(--text); }
  .mega .row, .mega .ch { transform: none; }
  .mega .is-out .ch { color: transparent; }
}
@media (forced-colors: active) {
  .mega .is-out .ch { color: CanvasText; }
  .viz, .offer, .dlg, .filters { background: Canvas; border: 1px solid CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
