@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --red: #ff140d;
  --paper: #c8cbcc;
  --canvas: #e0e2e1;
  --ink: #090909;
  --gold: #c89b2d;
  --chalk: #f3f1ec;
  --line-l: rgba(9, 9, 9, .28);
  --line-d: rgba(243, 241, 236, .22);
  --pad: clamp(20px, 3.2vw, 60px);
  --f: "Inter", Arial, Helvetica, sans-serif;
  --f-lead: "Inter Display", "Inter", Arial, Helvetica, sans-serif;
  --display: clamp(66px, 5.729vw, 110px);
  --chapter: clamp(70px, 6.25vw, 120px);
  --section: clamp(52px, 4.6875vw, 90px);
  --item: clamp(36px, 2.9167vw, 56px);
  --lead: clamp(31px, 2.5vw, 48px);
  --bodyl: clamp(18px, 1.25vw, 24px);
  --body: clamp(14px, .8333vw, 16px);
  --meta: clamp(13px, .8333vw, 16px);
  --ui: clamp(12px, .7292vw, 14px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; color: var(--chalk); background: var(--ink); font-family: var(--f); font-size: var(--body); font-weight: 400; line-height: 1.02; letter-spacing: .03em; font-optical-sizing: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
p, h1, h2, h3, blockquote, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin-top: 0; }
h1, h2, h3 { font-family: var(--f); font-weight: 700; }
h2 { max-width: 1080px; margin-bottom: 2.2rem; font-size: var(--chapter); line-height: .76; letter-spacing: -.03em; }
.eyebrow { margin: 0 0 24px; color: var(--red); font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.large-copy { max-width: 1040px; font: 300 var(--lead)/1 var(--f-lead); letter-spacing: 0; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--red); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar { position: fixed; z-index: 30; inset: 0 0 auto; height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 calc(var(--pad) + 34px) 0 var(--pad); border-bottom: 1px solid var(--line-d); background: rgba(9, 9, 9, .9); backdrop-filter: blur(7px); }
.topbar a { text-decoration: none; }
.topbar__mark { display: flex; align-items: center; gap: 14px; font: 600 var(--ui)/1.1 var(--f); text-transform: uppercase; }
.topbar__square { width: 28px; height: 28px; flex: 0 0 auto; background: var(--red); }
.topbar__nav { display: flex; gap: 36px; font: 600 var(--ui)/1.1 var(--f); text-transform: uppercase; }
.topbar__nav a:hover { color: var(--red); }
.route { position: fixed; z-index: 40; top: 0; right: 0; width: 34px; height: 100vh; display: flex; flex-direction: column; align-items: center; color: var(--ink); background: var(--red); }
.route__word, .route__count { writing-mode: vertical-rl; font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.route__word { margin-top: 18px; }
.route__count { margin: auto 0 18px; }
.route__track { position: relative; width: 2px; height: 30vh; margin: 24px 0; background: rgba(9,9,9,.24); }
.route__bar { position: absolute; inset: 0; background: var(--ink); transform: scaleY(var(--progress, 0)); transform-origin: top; }
main, footer { margin-right: 34px; }

.hero { height: 100svh; min-height: 0; display: grid; grid-template-columns: minmax(0, 53.2fr) minmax(390px, 46.8fr); overflow: hidden; padding-top: 59px; color: var(--ink); background: var(--red); }
.hero__copy { height: calc(100svh - 59px); min-height: 0; display: flex; min-width: 0; flex-direction: column; padding: clamp(30px, 4vh, 60px) var(--pad) 22px; }
.hero h1 { margin: 0; font-size: clamp(58px, min(5.729vw, 10.5vh), 110px); font-weight: 700; line-height: .86; letter-spacing: -.03em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero__lead { max-width: 790px; margin: clamp(28px, 3.2vh, 50px) 0 clamp(20px, 2.4vh, 32px); font: 300 clamp(28px, min(2.5vw, 4.2vh), 48px)/1 var(--f-lead); letter-spacing: 0; }
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: auto 0 clamp(12px, 1.5vh, 22px); padding-top: 14px; border-top: 1px solid var(--line-l); }
.project-meta dt { font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.project-meta dd { max-width: 240px; margin: 0; font-size: var(--body); line-height: 1.02; }
.hero__visual { height: calc(100svh - 59px); min-height: 0; display: flex; min-width: 0; flex-direction: column; margin: 0; border-left: 1px solid var(--line-l); background: var(--ink); }
.hero__visual img { width: 100%; min-height: 0; flex: 1; object-fit: cover; }
.hero__visual figcaption, .spread-feature figcaption, .prototype-photo figcaption, .gallery-result__card figcaption { margin: 0; padding: 13px 16px; font: 600 var(--ui)/1.1 var(--f); letter-spacing: 0; text-transform: uppercase; }
.hero__visual figcaption { color: rgba(243,241,236,.68); background: var(--ink); border-top: 1px solid var(--line-d); }

.brief { padding: clamp(110px, 10vw, 170px) var(--pad) clamp(80px, 6vw, 110px); color: var(--ink); background: var(--canvas); }
.brief__head { max-width: 1500px; }
.brief__days { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(64px, 7vw, 110px); background: transparent; }
.brief__days article { min-height: 340px; padding: clamp(40px, 3.4vw, 66px); border: 0; background: var(--canvas); }
.brief__days article:first-child { background: var(--paper); }
.brief__days span { color: var(--red); font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.brief__days h3 { margin: clamp(50px, 4vw, 72px) 0 22px; font-size: var(--section); line-height: 1; letter-spacing: -.06em; text-transform: uppercase; }
.brief__days p { max-width: 540px; margin-bottom: 0; font-size: clamp(16px, 1.05vw, 20px); font-weight: 300; line-height: 1.08; letter-spacing: 0; }

.opening { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 2fr); gap: 7vw; padding: clamp(100px, 10vw, 160px) var(--pad) 0; background: var(--ink); }
.opening__aside { font-size: var(--body); line-height: 1.02; }
.opening__body h2, .opening__body .large-copy { color: var(--chalk); }
.opening__body > p:last-child { max-width: 720px; margin: 3rem 0 0 auto; color: rgba(243,241,236,.66); font-size: var(--bodyl); font-weight: 300; line-height: 1; letter-spacing: 0; }
.opening em { color: var(--red); font-style: normal; }
.opening__source { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .55fr) minmax(360px, 1.25fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; margin: clamp(88px, 7vw, 132px) calc(var(--pad) * -1) 0; padding: 30px var(--pad) 34px; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); color: rgba(243,241,236,.52); font: 600 var(--ui)/1.1 var(--f); letter-spacing: 0; }
.opening__source strong { color: rgba(243,241,236,.78); font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.opening__source span { display: block; max-width: 680px; }
.opening__source a { color: rgba(243,241,236,.66); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.opening__source a:hover { color: var(--chalk); }

.analysis { min-height: 100svh; display: grid; grid-template-columns: minmax(330px, 40.5%) minmax(460px, 59.5%); background: var(--ink); }
.analysis__copy { position: relative; z-index: 2; padding: clamp(70px, 6.7vw, 128px) var(--pad); border-right: 1px solid var(--line-d); }
.analysis__copy h2 { max-width: 680px; }
.analysis__note { min-height: 4.2em; max-width: 560px; margin-bottom: 50px; color: rgba(243,241,236,.66); font-size: clamp(17px, 1.05vw, 20px); font-weight: 300; line-height: 1.08; letter-spacing: 0; }
.analysis__tabs { border-top: 1px solid var(--line-d); }
.analysis-tab { width: 100%; display: grid; grid-template-columns: 46px 1fr; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line-d); color: rgba(243,241,236,.66); background: none; font: 300 var(--body)/1.02 var(--f); letter-spacing: .03em; text-align: left; cursor: pointer; transition: color .15s ease, padding-left .15s ease; }
.analysis-tab span { font: 700 var(--ui)/1.1 var(--f); }
.analysis-tab.is-active, .analysis-tab.is-active:hover { color: var(--red); padding-left: 12px; }
.analysis-tab:not(.is-active):hover { color: var(--chalk); padding-left: 12px; }
.analysis__viewport { position: relative; display: grid; min-height: 100svh; place-items: center; overflow: hidden; padding: clamp(70px, 7vw, 110px); background: var(--paper); }
.analysis__paper { position: relative; width: min(595px, 90%); aspect-ratio: 595/842; overflow: hidden; background: var(--ink); box-shadow: 0 25px 70px rgba(0,0,0,.3); transform: rotate(-3deg); }
.analysis__counter { position: absolute; right: 20px; bottom: 16px; color: var(--ink); font: 600 var(--ui)/1.1 var(--f); border: 0; padding: 0; background: transparent; cursor: default; }
.analysis__counter-action { display: none; }
.analysis-document { position: absolute; inset: 0; overflow: hidden; color: #fff; background: #000; container-type: inline-size; transition: opacity .16s ease, transform .28s ease; }
.analysis-document.is-changing { opacity: 0; transform: scale(.985); }
.analysis-document__body { position: absolute; top: 2.38%; left: 3.15%; width: 92.96%; height: 95.86%; overflow: hidden; font-family: var(--f); font-size: 1.68cqw; line-height: 1.2; letter-spacing: 0; }
.analysis-document__body p { margin: 0 0 1.18em; }
.analysis-document .mark-action, .analysis-document .mark-descriptor { color: var(--red); }
.analysis-document .mark-action, .analysis-document .mark-key { font-weight: 700; }
.analysis-document .mark-key { text-decoration: underline var(--red) .12em; text-underline-offset: .12em; }
.analysis-document--extract .analysis-document__body { top: 5.1%; left: 8.04%; width: 72%; height: 89%; font-size: 2.02cqw; }
.analysis-document--extract .analysis-document__body p { margin: 0; }
.analysis-document__gap { height: 1.2em; }
.analysis-document__cult { position: absolute; right: 3.4%; bottom: 4.5%; margin: 0; color: var(--red); font-size: 15.13cqw; line-height: 1; letter-spacing: -.04em; }

.thesis { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(100px, 9vw, 170px) var(--pad); color: var(--ink); background: var(--red); }
.thesis .eyebrow { color: var(--ink); }
.thesis h2 { max-width: 1400px; }
.thesis__lead { max-width: 910px; margin: 30px 0 0 auto; font: 300 var(--lead)/1 var(--f-lead); letter-spacing: 0; }
.thesis__equation { width: 100%; display: grid; grid-template-columns: max-content 1fr max-content 1fr max-content; align-items: center; margin-top: clamp(75px, 8vw, 140px); font-size: var(--section); font-weight: 700; line-height: 1; letter-spacing: -.06em; text-transform: uppercase; }
.thesis__equation span { white-space: nowrap; }
.thesis__equation b { position: relative; display: block; justify-self: center; width: clamp(70px, 6vw, 116px); height: 2px; background: var(--ink); font-size: 0; line-height: 0; transform: none; }
.thesis__equation b::after { content: ""; position: absolute; top: 50%; right: 0; width: 14px; height: 14px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); transform-origin: center; }

.route-map { padding: clamp(110px, 8vw, 160px) var(--pad); color: var(--ink); background: var(--canvas); }
.route-map header { max-width: 1400px; margin-bottom: clamp(70px, 7vw, 120px); }
.route-map ol { display: grid; row-gap: clamp(10px, 1.2vw, 22px); margin: 0; padding: 0; list-style: none; border: 0; }
.route-map li { display: grid; grid-template-columns: 58px minmax(270px, .75fr) minmax(320px, 1fr); gap: 28px; align-items: start; padding: clamp(24px, 2vw, 38px) 0; border: 0; }
.route-map li > span { align-self: start; padding-top: .55em; color: var(--red); font: 700 var(--ui)/1.1 var(--f); }
.route-map h3 { margin: 0; font-size: var(--item); line-height: 1; letter-spacing: -.05em; }
.route-map li p { max-width: 620px; margin: 0; font-size: clamp(16px, 1.05vw, 20px); font-weight: 300; line-height: 1.08; letter-spacing: 0; }

.spread-feature { min-height: 0; display: grid; grid-template-columns: minmax(0, 55%) minmax(420px, 45%); align-items: start; color: var(--chalk); background: var(--ink); border-bottom: 0; }
.spread-feature figure { min-width: 0; margin: 0; align-self: start; border-right: 1px solid var(--line-d); border-bottom: 0; }
.spread-feature figure img { width: 100%; height: min(850px, 44.3vw); object-fit: cover; }
.spread-feature figcaption { color: var(--chalk); background: var(--ink); border-top: 1px solid var(--line-d); }
.spread-feature > div { display: flex; min-width: 0; flex-direction: column; justify-content: flex-start; padding: clamp(82px, 6.4vw, 122px) clamp(72px, 4.5vw, 88px) 110px clamp(50px, 3.4vw, 66px); }
.spread-feature > div .eyebrow { margin-bottom: clamp(28px, 2vw, 38px); }
.spread-feature h2 { max-width: 610px; margin-bottom: clamp(34px, 2.5vw, 48px); font-size: var(--chapter); line-height: .76; letter-spacing: -.03em; }
.spread-feature > div > p:last-child { max-width: 560px; margin-bottom: 0; color: rgba(243,241,236,.66); font-size: var(--bodyl); font-weight: 300; line-height: 1; letter-spacing: 0; }

.palette { --vs-x: clamp(32px, 5.1042vw, 98px); --vs-row-pad: clamp(18px, 1.25vw, 24px); --vs-gap: clamp(18px, 1.5625vw, 30px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; color: var(--ink); background: var(--canvas); }
.palette > header { grid-column: 1 / -1; height: clamp(360px, 26.0417vw, 500px); min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 1.5625vw, 30px); margin: 0; padding: clamp(64px, 4.7917vw, 92px) var(--vs-x) clamp(40px, 2.9167vw, 56px); overflow: hidden; }
.palette > header .eyebrow { margin: 0; color: var(--red); }
.palette > header h2 { width: min(1500px, 100%); max-width: 1500px; margin: 0; font-size: var(--display); line-height: .86; letter-spacing: -.03em; }
.palette > header h2 span { display: inline; }
.palette > header h2 span:not(:last-child)::after { content: " "; }
.palette > header h2 span:nth-child(3) { display: block; }
.palette__row, .palette__gold > div { width: 100%; height: clamp(300px, 22vw, 420px); min-height: clamp(300px, 22vw, 420px); display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: clamp(22px, 2vw, 36px); align-items: start; padding: clamp(32px, 3vw, 58px); overflow: hidden; border: 0; color: var(--ink); }
.palette__row--gray { grid-column: 1; background: var(--paper); }
.palette__row--red { grid-column: 2; background: var(--red); }
.palette__gold { grid-column: 3; display: block; width: 100%; height: auto; margin: 0; color: var(--ink); background: var(--gold); border: 0; }
.palette__gold > div { background: var(--gold); }
.palette__row > span, .palette__gold > div > span { margin: 0; font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.palette__row h3, .palette__gold h3 { margin: 0; padding: 0; font-size: var(--item); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.palette__row p, .palette__gold > div > p { align-self: end; max-width: 460px; margin: 0; padding: 0; font-size: clamp(16px, 1.05vw, 20px); font-weight: 300; line-height: 1.08; letter-spacing: 0; }
.palette__row--type { grid-column: 1 / -1; width: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(48px, 5vw, 96px); row-gap: clamp(42px, 3vw, 58px); align-items: start; padding: clamp(46px, 3.3vw, 64px) var(--vs-x) clamp(54px, 3.8vw, 74px); overflow: visible; color: var(--ink); background: var(--canvas); border: 0; }
.palette__row--type::before { content: "ТИПОГРАФИКА"; grid-column: 1 / -1; grid-row: 1; color: var(--red); font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.palette__row--type > span { display: none; }
.palette__row--type h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: var(--item); line-height: 1; letter-spacing: -.05em; text-transform: none; }
.palette__row--type .palette__type-copy { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: clamp(22px, 1.6vw, 30px); min-width: 0; width: 100%; }
.palette__row--type .palette__type-copy p { align-self: flex-start; width: min(720px, 100%); max-width: none; margin: 0; padding: 0; font-size: clamp(16px, 1.05vw, 20px); font-weight: 300; line-height: 1.08; letter-spacing: 0; }
.palette__row--type .palette__typeface-ref { align-self: flex-start; width: min(720px, 100%); margin: 0; color: rgba(9,9,9,.62); font-size: var(--body); font-weight: 400; line-height: 1.02; letter-spacing: .03em; text-decoration: none; }
.palette + .slogan { padding-top: clamp(110px, 7vw, 140px); }

.slogan { padding: clamp(90px, 6vw, 115px) 0 0; background: var(--ink); }
.slogan header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; padding: 0 var(--pad) 38px; }
.slogan h2 { margin: 0; font-size: var(--section); line-height: 1; letter-spacing: -.06em; }
.slogan .eyebrow { margin-bottom: .6rem; }
.slogan__meta { display: flex; gap: clamp(36px, 5vw, 90px); padding-right: 7vw; }
.slogan__meta dl { margin: 0; }
.slogan__meta dt { margin-bottom: 5px; font: 700 var(--meta)/1.1 var(--f); text-transform: uppercase; }
.slogan__meta dd { margin: 0; font-size: var(--body); }
.slogan__scroller { width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-color: var(--red) #242424; cursor: grab; background: #fe0000; }
.slogan__scroller.is-dragging { cursor: grabbing; user-select: none; }
.slogan-strip-image { display: block; width: 2937px; height: 261px; max-width: none; flex: 0 0 auto; }

.prototype { padding: clamp(92px, 6vw, 116px) 0 0; color: var(--ink); background: var(--canvas); }
.prototype__layout { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 0; row-gap: 0; align-items: start; }
.prototype__intro, .prototype__lead { display: contents; }
.prototype__intro .eyebrow { grid-column: 1 / 4; grid-row: 1; margin-bottom: 24px; padding-left: var(--pad); }
.prototype__intro h2 { grid-column: 1 / 4; grid-row: 2; max-width: 620px; margin: 0 0 clamp(42px, 3.2vw, 62px); padding: 0 clamp(28px, 3vw, 56px) 0 var(--pad); font-size: var(--chapter); line-height: .82; }
.prototype__intro h2 span { display: block; white-space: nowrap; }
.prototype__lead p { margin: 0; }
.prototype__lead p:first-child { grid-column: 1 / 4; grid-row: 3; max-width: 610px; padding: 0 clamp(28px, 3vw, 56px) 0 var(--pad); font: 300 var(--lead)/1.02 var(--f-lead); letter-spacing: 0; }
.prototype__lead p:last-child { grid-column: 4 / 7; grid-row: 3; align-self: start; max-width: 540px; margin: 0; padding: 0 var(--pad); font-size: var(--bodyl); font-weight: 300; line-height: 1; letter-spacing: 0; }
.prototype-photo { grid-row: 4; width: 100%; margin: clamp(66px, 5vw, 96px) 0 0; border: 0; border-top: 1px solid var(--line-l); border-right: 1px solid var(--line-l); background: var(--canvas); }
.prototype-photo--tools { grid-column: 1 / 3; }
.prototype-photo--worktable { grid-column: 3 / 5; }
.prototype-photo--route { grid-column: 5 / 7; border-right: 0; }
.prototype-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.prototype-photo figcaption { min-height: 48px; display: flex; align-items: center; margin: 0; padding: 13px 16px; color: var(--ink); background: var(--canvas); border-top: 1px solid var(--line-l); border-bottom: 0; }

.gallery-result { position: relative; overflow: hidden; color: var(--chalk); background: var(--ink); }
.gallery-result__header { position: absolute; z-index: 3; inset: 0 0 auto; display: grid; grid-template-columns: 44.73% 55.27%; pointer-events: none; }
.gallery-result__title { padding: clamp(42px, 2.8vw, 60px) 0 0 var(--pad); }
.gallery-result__title .eyebrow { margin: 0 0 clamp(14px, 1.1vw, 22px); }
.gallery-result__title h2 { max-width: 900px; margin: 0; font-size: var(--section); line-height: .88; letter-spacing: -.04em; }
.gallery-result__title h2 span { display: block; }
.gallery-result__copy { width: min(520px, 72%); margin: 0; padding: clamp(88px, 6.2vw, 132px) 0 0 clamp(34px, 2.8vw, 60px); color: rgba(243,241,236,.66); font-size: var(--bodyl); font-weight: 300; line-height: 1.1; letter-spacing: 0; }
.gallery-result__grid { display: grid; grid-template-columns: 44.73% 55.27%; gap: 0; width: 100%; }
.gallery-result__card { min-width: 0; display: flex; flex-direction: column; margin: 0; background: var(--ink); }
.gallery-result__media { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); }
.gallery-result__card--gold .gallery-result__media, .gallery-result__card--oni .gallery-result__media { height: clamp(760px, 56vw, 1200px); }
.gallery-result__card--accordion .gallery-result__media, .gallery-result__card--pamela .gallery-result__media { height: clamp(520px, 31vw, 666px); }
.gallery-result__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.gallery-result__card--accordion .gallery-result__media img, .gallery-result__card--pamela .gallery-result__media img { object-fit: contain; }
.gallery-result__card figcaption { min-height: 48px; display: flex; align-items: center; padding: 14px 17px; color: var(--chalk); background: var(--ink); border: 1px solid var(--line-d); font: 600 var(--ui)/1.1 var(--f); letter-spacing: 0; text-transform: uppercase; }
.gallery-result__card:nth-child(2n) figcaption { border-left: 0; }
.gallery-result__card:nth-child(n+3) figcaption { border-top: 0; }

.ending { min-height: 1035px; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 85px; row-gap: 34px; align-content: start; padding: clamp(150px, 9.8vw, 188px) var(--pad) 120px; color: var(--ink); background: var(--red); }
.ending__label { margin: 0; font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.ending blockquote { max-width: 1300px; margin: 0; font-size: var(--chapter); font-weight: 700; line-height: .86; letter-spacing: -.03em; }
.ending__copy { grid-column: 2; max-width: 596px; margin: 0 0 0 clamp(180px, 29.8vw, 572px); font-size: var(--bodyl); line-height: 1; letter-spacing: 0; }

footer { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.25fr) auto; gap: clamp(40px, 6vw, 120px); align-items: start; padding: 42px var(--pad) 48px; border-top: 1px solid var(--line-d); background: var(--ink); font: 600 var(--ui)/1.1 var(--f); letter-spacing: 0; }
.footer__brand, .footer__workshop { display: flex; flex-direction: column; }
.footer__brand strong, .footer__workshop strong { font: 700 var(--meta)/1.1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.footer__brand span, .footer__curator { display: block; margin-top: clamp(9px, .65vw, 12px); color: rgba(243,241,236,.66); font-family: var(--f); font-size: var(--ui); font-weight: 600; line-height: 1.1; letter-spacing: 0; text-transform: none; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer__links a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Desktop: exact gallery composition from the approved Figma layout. */
@media (min-width: 901px) {
  .gallery-result { position: relative; overflow: hidden; container-type: inline-size; }
  .gallery-result__header { position: absolute; z-index: 20; inset: 0 auto auto 0; width: 100%; height: 87.1875cqw; display: block; pointer-events: none; }
  .gallery-result__title { position: absolute; left: 3.125cqw; top: 2.8125cqw; width: 46.875cqw; padding: 0; }
  .gallery-result__title .eyebrow { margin: 0 0 1.354167cqw; font-size: .833333cqw; line-height: 1.25; letter-spacing: .04em; }
  .gallery-result__title h2 { width: 46.875cqw; max-width: none; margin: 0; font-size: 4.6875cqw; line-height: .88; letter-spacing: -.04em; }
  .gallery-result__copy { position: absolute; left: 52.766927cqw; top: 6.927083cqw; width: 27.083333cqw; max-width: none; margin: 0; padding: 0; color: #b8b8b2; font-size: 1.25cqw; font-weight: 400; line-height: 1.1; letter-spacing: 0; }
  .gallery-result__grid { position: relative; width: 100%; height: 87.1875cqw; display: block; overflow: hidden; background: var(--ink); }
  .gallery-result__card { display: contents; margin: 0; }
  .gallery-result__media { position: absolute; display: block; overflow: hidden; border: 0; background: transparent; }
  .gallery-result__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
  .gallery-result__card--gold .gallery-result__media { z-index: 3; left: -3.240827cqw; top: -2.23cqw; width: 56.481654cqw; height: 70.602061cqw; }
  .gallery-result__card--gold .gallery-result__media img { transform: scale(.959, .992); transform-origin: center; }
  .gallery-result__card--oni .gallery-result__media { z-index: 1; left: 49.584cqw; top: -3.476995cqw; width: 56.481654cqw; height: 70.602061cqw; }
  .gallery-result__card--accordion .gallery-result__media { z-index: 2; left: 0; top: 36.789729cqw; width: 50cqw; height: 62.5cqw; }
  .gallery-result__card--pamela .gallery-result__media { z-index: 4; left: 52.766927cqw; top: 40.961631cqw; width: 43.324951cqw; height: 54.156189cqw; }
  .gallery-result__card figcaption { position: absolute; z-index: 10; width: 50cqw; height: 2.239583cqw; min-height: 0; display: flex; align-items: center; margin: 0; padding: .729167cqw .885417cqw; overflow: hidden; box-sizing: border-box; border: 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); color: var(--chalk); background: var(--ink); font: 600 .729167cqw/1.1 var(--f); letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
  .gallery-result__card--gold figcaption { left: 0; top: 50.260417cqw; }
  .gallery-result__card--oni figcaption { left: 50cqw; top: 50.260417cqw; }
  .gallery-result__card--accordion figcaption { left: 0; top: 84.947917cqw; }
  .gallery-result__card--pamela figcaption { left: 50cqw; top: 84.947917cqw; }
  .gallery-result__card:nth-child(2n) figcaption { border-left: 1px solid var(--line-d); }
  .gallery-result__card:nth-child(n+3) figcaption { border-top: 1px solid var(--line-d); }
}

/* Mobile: one resolved layer, no patch-on-patch overrides. */
@media (max-width: 900px) {
  :root { --display: clamp(54px, 12vw, 84px); --chapter: clamp(52px, 11vw, 82px); --section: clamp(42px, 9vw, 66px); --item: clamp(34px, 8vw, 50px); --lead: clamp(27px, 5vw, 38px); --bodyl: 18px; --body: 15px; --meta: 13px; --ui: 12px; }
  html, body { width: 100%; max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
  body, main, main > section, footer, .hero, .hero__copy { min-width: 0; max-width: 100%; }
  p, h1, h2, h3, dd, figcaption { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .route { display: none; }
  main, footer { margin-right: 0; }
  .topbar { padding-right: var(--pad); }
  .topbar__nav { display: none; }

  .hero, .opening { grid-template-columns: 1fr; }
  .hero { width: 100%; height: auto; min-height: 100svh; overflow: hidden; }
  .hero__copy { width: 100%; height: auto; min-height: calc(100svh - 59px); padding: 52px 20px 30px; }
  .hero h1 { width: calc(100% - 10px); max-width: calc(100% - 10px); margin: 0; font-size: clamp(46px, 12.3vw, 54px); line-height: .83; letter-spacing: -.042em; }
  .hero h1 span { width: 100%; white-space: nowrap; }
  .hero__lead { max-width: 330px; margin: 54px 0 44px; font: 300 20px/1.08 var(--f-lead); letter-spacing: 0; }
  .project-meta { max-width: 100%; gap: 12px; }
  .project-meta dd { overflow-wrap: normal; word-break: normal; font-size: 13px; line-height: 1.08; letter-spacing: 0; }
  .hero__visual { height: auto; min-height: auto; border-left: 0; }

  .brief__days { grid-template-columns: 1fr; }
  .brief__days article { min-height: 0; }

  .opening__source { grid-column: 1; grid-template-columns: 1fr; gap: 10px; margin: 64px calc(var(--pad) * -1) 0; padding: 24px var(--pad) 28px; font-size: 11px; line-height: 1.2; }
  .opening__source strong { font-size: 12px; }

  .analysis { min-height: 0; display: flex; flex-direction: column; padding: 28px 20px 36px; background: var(--ink); }
  .analysis__copy { display: flex; flex-direction: column; padding: 0; border-right: 0; }
  .analysis__copy .eyebrow { order: 1; margin: 0 0 14px; font-size: 11px; line-height: 1.1; letter-spacing: .04em; }
  .analysis__copy h2 { order: 2; max-width: 340px; margin: 0 0 10px; font-size: 50px; line-height: .88; letter-spacing: -.03em; }
  .analysis__tabs { order: 3; width: calc(100vw - 40px); display: flex; overflow-x: auto; overflow-y: hidden; margin: 0; border: 0; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .analysis__tabs::-webkit-scrollbar { display: none; }
  .analysis-tab { flex: 0 0 auto; width: auto; display: block; padding: 14px; border: 0; color: var(--line-d); font: 400 12px/1.1 var(--f); letter-spacing: .01em; white-space: nowrap; }
  .analysis-tab:first-child { padding-left: 0; padding-right: 14px; }
  .analysis-tab span { display: none; }
  .analysis-tab.is-active, .analysis-tab.is-active:hover { color: var(--red); padding-left: 14px; font-weight: 600; }
  .analysis-tab:first-child.is-active, .analysis-tab:first-child.is-active:hover { padding-left: 0; }
  .analysis-tab:not(.is-active):hover { color: var(--chalk); padding-left: 14px; }
  .analysis__note { order: 4; min-height: 0; max-width: none; margin: 0; padding: 18px 0 28px; color: rgba(243,241,236,.66); font-size: 17px; font-weight: 400; line-height: 1.18; letter-spacing: 0; }
  .analysis__viewport { position: relative; display: block; min-height: 0; overflow: visible; padding: 0; background: var(--ink); }
  .analysis__paper { position: relative; width: 100%; height: 234px; aspect-ratio: auto; overflow: hidden; margin: 0; padding: 14px 16px 13px; border-top: 1px solid var(--line-d); background: var(--ink); box-shadow: none; transform: none; }
  .analysis__paper::after { content: ""; position: absolute; right: 0; bottom: 0; width: 74%; height: 90px; pointer-events: none; background: linear-gradient(90deg, rgba(9,9,9,0), rgba(9,9,9,.86) 72%, var(--ink)); }
  .analysis-document, .analysis-document--extract { position: relative; inset: auto; width: 100%; height: 195px; overflow: hidden; color: rgba(243,241,236,.66); background: var(--ink); container-type: normal; }
  .analysis-document.is-changing { transform: none; }
  .analysis-document__body, .analysis-document--extract .analysis-document__body { position: static; width: 100%; height: auto; overflow: visible; color: rgba(243,241,236,.66); font-family: var(--f); font-size: 13px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
  .analysis-document__body p { margin: 0 0 1em; }
  .analysis-document__body p:first-child { font-size: 12px; font-weight: 600; line-height: 1.3; }
  .analysis-document__gap { height: 1em; }
  .analysis-document__cult { display: none; }
  .analysis__counter { position: static; display: inline-flex; align-items: center; align-self: flex-start; margin: 14px 0 0; color: var(--chalk); font: 600 12px/14px var(--f); letter-spacing: .015em; text-align: left; cursor: pointer; }
  .analysis__counter > #analysis-index, .analysis__counter-total { display: none; }
  .analysis__counter-action { display: inline; }
  .analysis.is-expanded .analysis__paper { height: auto; max-height: none; overflow: visible; }
  .analysis.is-expanded .analysis__paper::after { display: none; }
  .analysis.is-expanded .analysis-document, .analysis.is-expanded .analysis-document--extract { height: auto; max-height: none; overflow: visible; }
  .analysis.is-expanded .analysis-document__body, .analysis.is-expanded .analysis-document--extract .analysis-document__body { height: auto; overflow: visible; }

  .thesis { min-height: 0; justify-content: flex-start; padding: 72px 20px 88px; }
  .thesis .eyebrow { margin-bottom: 18px; }
  .thesis h2 { max-width: 340px; margin: 0 0 38px; font-size: 48px; line-height: .88; letter-spacing: -.035em; }
  .thesis__lead { max-width: 360px; margin: 0; font: 300 22px/1.08 var(--f-lead); letter-spacing: 0; }
  .thesis__equation { grid-template-columns: 1fr; justify-items: center; margin-top: 72px; gap: 30px; font-size: 46px; text-align: center; }
  .thesis__equation span { width: 100%; text-align: center; }
  .thesis__equation b { width: 54px; height: 2px; transform: rotate(90deg); transform-origin: center; }

  .route-map ol { row-gap: 8px; }
  .route-map li { grid-template-columns: 40px 1fr; padding: 24px 0; }
  .route-map li p { grid-column: 2; }
  .route-map li > span { padding-top: .45em; }

  .spread-feature { min-height: 0; display: flex; flex-direction: column; }
  .spread-feature > div { order: 1; padding: 64px 20px 48px; }
  .spread-feature > div .eyebrow { margin-bottom: 20px; }
  .spread-feature h2 { max-width: 340px; margin: 0 0 30px; font-size: 48px; line-height: .88; letter-spacing: -.035em; }
  .spread-feature > div > p:last-child { max-width: 360px; font-size: 20px; line-height: 1.12; }
  .spread-feature figure { order: 2; width: 100%; margin: 0; border-right: 0; border-top: 1px solid var(--line-d); }
  .spread-feature figure img { width: 100%; height: 64vw; object-fit: cover; object-position: center; }

  .palette { --vs-x: var(--pad); --vs-row-pad: 24px; --vs-gap: 18px; display: flex; flex-direction: column; }
  .palette > header { order: 1; height: auto; min-height: 360px; padding: 72px var(--vs-x) 64px; }
  .palette > header h2 { font-size: var(--display); }
  .palette > header h2 span, .palette > header h2 span:nth-child(3) { display: block; }
  .palette > header h2 span:not(:last-child)::after { content: none; }
  .palette__row--gray { order: 2; }
  .palette__row--red { order: 3; }
  .palette__gold { order: 4; }
  .palette__row, .palette__gold > div { height: auto; min-height: 190px; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px 18px; padding: 24px var(--vs-x); overflow: visible; }
  .palette__row h3, .palette__gold h3 { grid-column: 2; font-size: var(--section); }
  .palette__row p, .palette__gold > div > p { grid-column: 2; align-self: start; font-size: 20px; line-height: 1.05; }
  .palette__gold { height: auto; }
  .palette__row--type { order: 5; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 24px; padding: 54px var(--vs-x) 64px; overflow: visible; }
  .palette__row--type::before { grid-column: 1; grid-row: 1; }
  .palette__row--type h3 { grid-column: 1; grid-row: 2; font-size: var(--section); }
  .palette__row--type .palette__type-copy { grid-column: 1; grid-row: 3; width: 100%; height: auto; gap: 22px; }
  .palette__row--type .palette__type-copy p { align-self: flex-start; width: 100%; max-width: none; font-size: 20px; line-height: 1.05; }
  .palette__row--type .palette__typeface-ref { width: 100%; font-size: 15px; }

  .slogan { padding-top: 110px; }
  .slogan header { grid-template-columns: 1fr; }
  .slogan__meta { padding-right: 0; }

  .prototype { padding: 64px 0 0; }
  .prototype__layout { display: block; }
  .prototype__intro, .prototype__lead { display: block; padding-left: 20px; padding-right: 20px; }
  .prototype__intro .eyebrow, .prototype__intro h2, .prototype__lead p:first-child, .prototype__lead p:last-child { padding-left: 0; padding-right: 0; }
  .prototype__intro .eyebrow { margin-bottom: 18px; }
  .prototype__intro h2 { max-width: 340px; margin: 0 0 36px; font-size: 48px; line-height: .9; letter-spacing: -.035em; }
  .prototype__intro h2 span { white-space: normal; }
  .prototype__lead p:first-child, .prototype__lead p:last-child { margin-left: 0; margin-right: 0; }
  .prototype__lead p:first-child { max-width: 360px; font: 300 24px/1.06 var(--f-lead); letter-spacing: 0; }
  .prototype__lead p:last-child { max-width: 360px; margin-top: 28px; padding-bottom: 48px; font-size: 17px; line-height: 1.16; }
  .prototype-photo, .prototype-photo:first-of-type { width: 100%; margin-top: 0; border-right: 0; border-bottom: 0; }
  .prototype-photo:first-of-type { margin-top: 0; }
  .prototype-photo img { height: 68vw; aspect-ratio: auto; object-fit: cover; object-position: center; }

  .gallery-result { width: 100%; max-width: 100%; overflow: hidden; }
  .gallery-result__header { position: static; width: 100%; display: block; box-sizing: border-box; padding: 56px 20px 32px; pointer-events: auto; }
  .gallery-result__title { padding: 0; }
  .gallery-result__title .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .gallery-result__title h2 { max-width: 340px; font-size: 50px; line-height: .88; letter-spacing: -.03em; }
  .gallery-result__copy { width: auto; max-width: none; margin: 0; padding: 28px 0 0; font-size: 17px; line-height: 1.18; }
  .gallery-result__grid { display: block; width: 100%; max-width: 100%; }
  .gallery-result__card { width: 100%; max-width: 100%; display: flex; flex-direction: column; margin: 0; border: 0; }
  .gallery-result__media, .gallery-result__card--gold .gallery-result__media, .gallery-result__card--oni .gallery-result__media, .gallery-result__card--pamela .gallery-result__media { position: static; width: 100%; max-width: 100%; height: 58vw; min-height: 0; display: block; overflow: hidden; background: var(--ink); }
  .gallery-result__card--accordion .gallery-result__media { position: static; width: 100%; max-width: 100%; height: 46vw; min-height: 0; display: block; overflow: hidden; background: var(--ink); }
  .gallery-result__media img, .gallery-result__card--gold .gallery-result__media img, .gallery-result__card--oni .gallery-result__media img, .gallery-result__card--accordion .gallery-result__media img, .gallery-result__card--pamela .gallery-result__media img { width: 100%; max-width: none; height: 100%; display: block; object-fit: cover; object-position: center; transform: none; }
  .gallery-result__card figcaption, .gallery-result__card:nth-child(2n) figcaption, .gallery-result__card:nth-child(n+3) figcaption { position: static; width: 100%; min-height: 48px; display: flex; align-items: center; margin: 0; padding: 13px 16px; box-sizing: border-box; border: 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); color: var(--chalk); background: var(--ink); font: 600 var(--ui)/1.1 var(--f); letter-spacing: 0; text-transform: uppercase; white-space: normal; }

  .ending { min-height: 760px; grid-template-columns: 1fr; gap: 28px; }
  .ending blockquote, .ending__copy { grid-column: 1; }
  .ending__copy { margin-left: 0; }

  footer { grid-template-columns: 1fr; gap: 28px; }
  .footer__links { justify-content: flex-start; }
  .footer__brand span, .footer__curator { margin-top: 10px; }
}
