/* candy.make.up — editorial, agency-style.
   One serif for titles, a plain grotesk for everything else, photographs first. */

:root {
  --paper: #fcfbf9;
  --ink: #141414;
  --grey: #8b8680;
  --line: #e7e3dd;
  --red: #a8213a;
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 2.2vw, 32px);
  --gap: 8px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14px/1.5 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--grey); }
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s ease; }
.u:hover, a:hover > .u { background-size: 100% 1px; }

/* images fade in once decoded */
.ph { background: #efece7; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.js .ph img { opacity: 0; }
.ph img.is-loaded { opacity: 1; }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 20;
  height: var(--head); padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--paper);
}
.mark { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.01em; line-height: 1; justify-self: start; }
.mark i { font-style: normal; color: var(--red); }
.head__nav { display: flex; gap: 28px; }
.head__nav a { padding: 6px 0; }
.head__book { justify-self: end; }
.head__menu { display: none; justify-self: end; }

.menu {
  position: fixed; inset: 0; z-index: 30; background: var(--paper);
  display: flex; flex-direction: column; padding: 0 var(--pad) 28px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { height: var(--head); display: flex; align-items: center; justify-content: space-between; }
.menu nav { margin-top: 8vh; display: grid; gap: 4px; }
.menu nav a { font-family: var(--serif); font-size: 44px; line-height: 1.1; }
.menu__foot { margin-top: auto; display: grid; gap: 6px; }

/* ---------- home: artist intro ---------- */
.intro {
  --fh: max(560px, calc(100svh - var(--head) - var(--pad)));
  display: grid; grid-template-columns: min(48vw, calc(var(--fh) * .8)) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--pad) var(--pad);
}
.intro__img { height: var(--fh); }
.intro__img img { object-position: 50% 62%; }
.intro__text { display: flex; flex-direction: column; min-width: 0; padding-top: clamp(4px, 1.4vh, 16px); }
.intro__name { margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6.6vw, 116px); line-height: .92; letter-spacing: -.025em; }
.intro__bio { margin-top: auto; max-width: 560px; padding-top: 36px; font-family: var(--serif); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.38; }
.intro__bio p { margin: 0 0 12px; }
.intro__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 28px 0 0; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.intro__facts dt { margin-bottom: 4px; }
.intro__facts dd { margin: 0; }
.intro__facts dd a { color: inherit; }
.intro__links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 28px; padding-top: 22px; }
.intro__links .cap { display: flex; gap: 22px; }
.intro__book { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px); line-height: 1; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.intro__book span { display: inline-block; transition: transform .4s ease; }
.intro__book:hover span { transform: translateX(6px); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 140px) var(--pad) 0; scroll-margin-top: var(--head); }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.sec__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -.01em; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.filters button { color: var(--grey); transition: color .25s; }
.filters button sup { font-size: 9px; margin-left: 2px; }
.filters button:hover, .filters button.is-on { color: var(--ink); }
.filters button.is-on { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* work grid — dense, tight gutters, small captions */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); grid-auto-flow: dense; }
.work { display: flex; flex-direction: column; min-width: 0; }
.work .ph { aspect-ratio: 4 / 5; }
.work .ph img { transition: opacity .8s ease, transform 1.2s cubic-bezier(.2,.7,.1,1); }
.work:hover .ph img { transform: scale(1.025); }
.work--big { grid-column: span 2; grid-row: span 2; }
.work--big .ph { aspect-ratio: auto; flex: 1; }
.work__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; line-height: 18px; }
.work__cap em { font-family: var(--serif); font-size: 18px; }
.work .ph { position: relative; }
.work__count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 6px;
  background: rgba(252, 251, 249, .92); color: var(--ink); font-size: 11px; line-height: 1; letter-spacing: .02em;
}
.work__count svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.work__open {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 12px 24px; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42));
  opacity: 0; transition: opacity .35s ease;
}
.bars { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 3px; opacity: 0; transition: opacity .35s ease; }
.bars i { flex: 1; height: 2px; background: rgba(255,255,255,.4); transition: background .2s; }
.bars i.on { background: #fff; }
.work:hover .work__open, .work:hover .bars, .block:hover .bars, .work:focus-visible .work__open { opacity: 1; }
.work__cap .cap { white-space: nowrap; transition: color .25s; }
.work:hover .work__cap .cap { color: var(--ink); }
.work:hover .work__cap em { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@media (hover: none) { .h-hover { display: none; } }
@media (hover: hover) { .h-tap { display: none; } }

/* portfolio blocks on the home page */
.blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.block { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.block .ph { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.block .ph img { transition: opacity .8s ease, transform 1.2s cubic-bezier(.2,.7,.1,1); }
.block:hover .ph img { transform: scale(1.025); }
.block__title { margin: 22px 0 6px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.6vw, 44px); line-height: 1; letter-spacing: -.01em; }
.block__meta { margin: 0 0 22px; }
.block__btn { margin-top: auto; display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .3s, color .3s, box-shadow .3s; }
.block:hover .block__btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.block__type { position: relative; width: 100%; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 28px); background: var(--ink); color: var(--paper); }
.block__type ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.block__type li { counter-increment: p; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--serif); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.15; }
.block__type li::before { content: "0" counter(p); display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.block__type .cap { color: rgba(255,255,255,.6); }
.block__type b { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }

/* section page */
.works-body { padding: 0 var(--pad); }
.grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work--soon .block__type { aspect-ratio: 4 / 5; }
.others { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: clamp(48px, 6vw, 90px) var(--pad); }

/* ===================== price magazine ===================== */
.mag { --paper2: #fbf8f3; --mred: #b3213b; padding-top: clamp(8px, 2vw, 24px); }
.mag__book { width: min(1180px, 100%); margin: 0 auto; min-height: 200px; filter: drop-shadow(0 28px 40px rgba(40, 30, 20, .16)); }
.mag__ui { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 26px; }
.mag__btn { padding: 10px 4px; border-bottom: 1px solid transparent; transition: border-color .3s, opacity .3s; }
.mag__btn:hover { border-color: var(--ink); }
.mag__btn[disabled] { opacity: .25; pointer-events: none; }
.mag__count { min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }
.mag__tip { text-align: center; margin: 10px 0 0; }

.page { background: var(--paper2); color: var(--ink); overflow: hidden; container-type: inline-size; }
.page .m-in { position: absolute; inset: 0; padding: 7cqw 8cqw 11cqw; display: flex; flex-direction: column; }
/* gutter shading so the spread reads as a bound magazine */
.m-left .m-in::after, .m-right .m-in::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9cqw; pointer-events: none; z-index: 3; }
.m-left .m-in::after { right: 0; background: linear-gradient(270deg, rgba(60, 45, 30, .16), rgba(60, 45, 30, 0)); }
.m-right .m-in::after { left: 0; background: linear-gradient(90deg, rgba(60, 45, 30, .16), rgba(60, 45, 30, 0)); }

.m-folio { display: flex; justify-content: space-between; margin-bottom: 5cqw; font-size: max(9px, 1.9cqw); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.m-num { position: absolute; bottom: 4.5cqw; font-size: max(9px, 2cqw); letter-spacing: .1em; color: var(--grey); font-variant-numeric: tabular-nums; z-index: 4; }
.m-num--left { left: 8cqw; }
.m-num--right { right: 8cqw; }
.m-kicker { margin: 0 0 2cqw; font-size: max(9px, 2.1cqw); letter-spacing: .16em; text-transform: uppercase; color: var(--mred); }
.m-kicker--gap { margin-top: 7cqw; }
.m-h { margin: 0 0 4cqw; font-family: var(--serif); font-weight: 300; font-size: 9.6cqw; line-height: .92; letter-spacing: -.02em; }
.m-body { margin: 0 0 3cqw; font-family: var(--serif); font-size: max(11px, 3.4cqw); line-height: 1.38; }
.m-drop { float: left; margin: .5cqw 1.6cqw 0 0; font-family: var(--serif); font-weight: 300; font-size: 11.5cqw; line-height: .8; color: var(--mred); }

.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { position: relative; padding: 2.2cqw 0 2cqw; border-top: 1px solid rgba(20, 20, 20, .1); }
.m-list li:last-child { border-bottom: 1px solid rgba(20, 20, 20, .1); }
.m-row { display: flex; align-items: baseline; gap: 2cqw; }
.m-name { font-family: var(--serif); font-size: max(13px, 4.5cqw); line-height: 1.1; }
.m-row i { flex: 1; min-width: 4cqw; border-bottom: 1px dotted #a9a198; transform: translateY(-1.1cqw) scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(.15s + var(--i) * .12s); }
.m-cost { position: relative; font-family: var(--serif); font-weight: 300; font-size: max(15px, 5.4cqw); line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.m-cost small { margin-left: .8cqw; font-size: .5em; color: var(--grey); }
.m-cost--ask { font-style: italic; font-size: max(12px, 3.8cqw); color: var(--grey); }
.m-meta { margin-top: 1cqw; font-size: max(9px, 2.5cqw); color: var(--grey); }
.m-foot { margin: auto 0 0; padding: 3cqw 0 0 7cqw; font-size: max(9px, 2.3cqw); color: var(--grey); }

/* hand-drawn editor marks */
.m-mark { position: relative; display: inline-block; }
.m-ring { position: absolute; left: -9%; top: -38%; width: 118%; height: 176%; overflow: visible; pointer-events: none; }
.m-squig { position: absolute; left: -4%; bottom: -1.6cqw; width: 108%; height: 2.4cqw; overflow: visible; pointer-events: none; }
.m-arrow { width: 9cqw; height: 4.5cqw; margin-left: 1cqw; vertical-align: middle; overflow: visible; }
.m-ring path, .m-squig path, .m-arrow path { fill: none; stroke: var(--mred); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .3, 1) .7s; }
.m-hand { font-family: "Caveat", cursive; font-weight: 500; color: var(--mred); font-size: max(14px, 4.6cqw); line-height: 1; opacity: 0; transform: rotate(-5deg) translateY(6px); transition: opacity .6s ease 1.3s, transform .6s ease 1.3s; }
.m-hand--row { position: absolute; right: 0; bottom: 1.2cqw; display: inline-flex; align-items: center; gap: 1cqw; }
.m-hand--row .m-arrow { margin: 0; }
.m-hand--brows { align-self: flex-end; margin-top: 4cqw; transform: rotate(-4deg); }
.m-hand--edu { align-self: flex-end; margin-top: 5cqw; }
.m-hand--wait { font-size: max(16px, 5.6cqw); }
.m-sign { align-self: flex-end; font-size: max(18px, 7cqw); margin-top: 1cqw; }
.page.is-shown .m-row i { transform: translateY(-1.1cqw) scaleX(1); }
.page.is-shown .m-ring path, .page.is-shown .m-squig path, .page.is-shown .m-arrow path { stroke-dashoffset: 0; }
.page.is-shown .m-hand { opacity: 1; transform: rotate(-5deg); }

/* photo pages */
.m-photo .m-in { padding: 0; background: #ddd6cd; }
.m-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2, .7, .1, 1); }
.page.is-shown.m-photo img { transform: scale(1); }
.m-photo .m-in::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.4)); pointer-events: none; }
.m-photo .m-num { color: rgba(255,255,255,.8); }
.m-cap { position: absolute; z-index: 4; bottom: 4.5cqw; font-size: max(9px, 2cqw); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.m-left .m-cap { right: 10cqw; }
.m-right .m-cap { left: 10cqw; }
.m-opener { position: absolute; z-index: 2; left: 8cqw; right: 8cqw; top: 7cqw; color: #fff; display: flex; align-items: flex-start; gap: 3cqw; }
.m-opener b { font-family: var(--serif); font-weight: 300; font-size: 22cqw; line-height: .8; }
.m-opener span { padding-top: 2cqw; font-family: var(--serif); font-style: italic; font-size: 6.4cqw; line-height: 1; }

/* bride article */
.m-quote { margin: 1cqw 0 4cqw; padding: 3cqw 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: max(13px, 5cqw); line-height: 1.15; }
.m-ask { margin-top: auto; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1cqw 3cqw; padding-top: 3cqw; border-top: 1px solid rgba(20,20,20,.1); }
.m-ask span { font-size: max(9px, 2.1cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.m-ask b { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: max(14px, 5.4cqw); }
.m-ask a { grid-column: 1 / -1; font-size: max(9px, 2.2cqw); letter-spacing: .12em; text-transform: uppercase; }

/* where */
.m-addr { margin: 0 0 1.5cqw; font-family: var(--serif); font-size: max(16px, 6.4cqw); line-height: 1.05; }
.m-steps { list-style: none; margin: 4cqw 0 0; padding: 0; }
.m-steps li { display: flex; align-items: baseline; gap: 3cqw; padding: 1.8cqw 0; border-top: 1px solid rgba(20,20,20,.1); font-family: var(--serif); font-size: max(12px, 4cqw); }
.m-steps b { font-weight: 300; font-size: 1.6em; line-height: .8; color: var(--mred); }
.m-steps a, .m-addr a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* barcode */
.m-bar { position: absolute; z-index: 2; right: 6cqw; bottom: 5cqw; width: 17cqw; height: auto; padding: 1.2cqw 1.4cqw .6cqw; background: #fff; fill: var(--ink); }
.m-bar text { font: 5px var(--sans); letter-spacing: .5px; }
.m-bar--light { background: transparent; fill: var(--paper); }

/* back cover */
.m-back { background: var(--ink); color: var(--paper); }
.m-back .m-in { padding: 9cqw 8cqw; }
.m-back__mark { font-family: var(--serif); font-size: max(14px, 5cqw); }
.m-back__big { margin-top: auto; font-family: var(--serif); font-weight: 300; font-size: 17cqw; line-height: .88; letter-spacing: -.02em; }
.m-back__links { list-style: none; margin: 6cqw 0 0; padding: 0; }
.m-back__links a { display: block; padding: 2.4cqw 0; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--serif); font-size: max(13px, 4.4cqw); }
.m-back__links a:hover { font-style: italic; }
.m-back__addr { margin: 4cqw 0 0; padding-right: 24cqw; font-size: max(9px, 2.2cqw); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.m-back .m-bar { right: 8cqw; bottom: 9cqw; padding: 0; }

/* booking page over the studio photo */
.m-book .m-in > * { position: relative; z-index: 2; }
.m-book .m-in > .m-gloss { position: absolute; z-index: 6; }
.m-book .m-in > .m-num, .m-book .m-in > .m-bar { position: absolute; z-index: 3; }
.m-book__img { position: absolute !important; inset: 0; z-index: 0 !important; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: contrast(1.05) saturate(1.08); transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.1,1); }
.page.is-shown .m-book__img { transform: scale(1); }
.m-book .m-in::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,8,8,.55) 0%, rgba(10,8,8,.08) 24%, rgba(10,8,8,.35) 42%, rgba(10,8,8,.84) 64%, rgba(10,8,8,.93) 100%); }
.m-back__mark span { font-size: .55em; letter-spacing: .04em; opacity: .75; }
.m-book .m-back__links a { border-top-color: rgba(255,255,255,.28); }

/* studio snapshot on the "where" page */
.m-snap { margin: auto 0 2.5cqw; padding-top: 3cqw; display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqw; }
.m-inset { width: 31cqw; flex: none; padding: 1.4cqw 1.4cqw 4.2cqw; background: #fff; box-shadow: 0 1.4cqw 3.4cqw rgba(40,30,20,.22); transform: rotate(-2.5deg); transform-origin: 30% 90%; }
.m-inset img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; filter: contrast(1.04) saturate(1.06); }
.m-inset figcaption { margin-top: 1.4cqw; font-family: "Caveat", cursive; font-size: 3.4cqw; white-space: nowrap; color: var(--grey); text-align: center; }
.m-snap .m-hand--wait { margin: 0 0 2cqw; text-align: right; line-height: 1.05; font-size: max(15px, 5cqw); }

/* glossy varnish: moving specular highlight + a glint when a spread lands */
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 35%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 20%; }
.page { --px: calc(var(--gx) * 2); --py: var(--gy); }
.page.m-right, .page.m-back { --px: calc((var(--gx) - 50%) * 2); }
.stf__wrapper.--portrait .page { --px: var(--gx); }
.m-gloss {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 42% at var(--px) var(--py), rgba(255,255,255,.4), rgba(255,255,255,0) 70%),
    linear-gradient(118deg, rgba(255,255,255,0) calc(var(--px) - 34%), rgba(255,255,255,.2) calc(var(--px) - 8%), rgba(255,255,255,0) calc(var(--px) + 22%));
  mix-blend-mode: soft-light;
}
.m-text .m-gloss { opacity: .6; }
.m-photo .m-gloss, .m-back .m-gloss { mix-blend-mode: screen; opacity: .32; }
.m-gloss::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 60%;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.75) 50%, rgba(255,255,255,0));
  transform: translateX(0) skewX(-12deg); opacity: 0;
}
.page.is-glint .m-gloss::after { animation: glint 1.3s cubic-bezier(.3,.6,.2,1) .2s; }
@keyframes glint { 0% { opacity: .9; transform: translateX(0) skewX(-12deg); } 100% { opacity: 0; transform: translateX(330%) skewX(-12deg); } }
.page .m-in { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(255,255,255,.35); }
.m-photo img { filter: contrast(1.06) saturate(1.1); }
@media (hover: none) {
  .mag__book { animation: drift 8s ease-in-out infinite alternate; }
  @keyframes drift { from { --gx: 12%; --gy: 8%; } to { --gx: 88%; --gy: 45%; } }
}
@media (prefers-reduced-motion: reduce) { .mag__book { animation: none; } .page.is-glint .m-gloss::after { animation: none; } }

/* fallback without the flip library: a horizontal strip of pages */
.mag:not(.is-ready) .mag__book { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; filter: none; padding-bottom: 12px; }
.mag:not(.is-ready) .page { position: relative; flex: none; width: min(520px, 86vw); aspect-ratio: 3 / 4; scroll-snap-align: start; }
.mag:not(.is-ready) .page .m-row i { transform: translateY(-1.1cqw); }
.mag:not(.is-ready) .m-ring path, .mag:not(.is-ready) .m-squig path, .mag:not(.is-ready) .m-arrow path { stroke-dashoffset: 0; }
.mag:not(.is-ready) .m-hand { opacity: 1; }
.mag:not(.is-ready) .mag__ui { display: none; }

.note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; }

/* studio / location */
.place { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.place__img { grid-column: span 4; aspect-ratio: 3 / 4; }
.place__img--low { margin-top: 12vh; }
.place__text { grid-column: 9 / span 4; align-self: end; display: grid; gap: 12px; }
.place__text p { margin: 0; }
.place__addr { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; letter-spacing: -.01em; }
.place__addr a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.place__addr a:hover { border-color: var(--ink); }
.place__note { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin-top: 8px !important; }
.place__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 10px; border-top: 1px solid var(--line); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-bottom: clamp(60px, 8vw, 120px); }
.contact__big { grid-column: 1 / span 8; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.2vw, 100px); line-height: 1; letter-spacing: -.02em; }
.contact__big a { display: inline-block; border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__big a:hover { border-color: var(--ink); }
.contact__list { grid-column: 9 / span 4; align-self: end; display: grid; gap: 14px; }
.contact__list div { display: grid; gap: 2px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--pad) 22px; border-top: 1px solid var(--line); }

/* ---------- album ---------- */
.ahead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: clamp(20px, 3vw, 40px) var(--pad) clamp(28px, 4vw, 56px); }
.ahead__crumbs { grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 56px); display: flex; gap: 10px; }
.ahead__title { grid-column: 1 / span 6; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 96px); line-height: .96; letter-spacing: -.02em; }
.ahead__sub { display: block; margin-top: 12px; font-style: italic; font-size: .36em; letter-spacing: 0; line-height: 1.2; }
.ahead__credits { grid-column: 7 / span 2; align-self: end; display: grid; gap: 6px; }
.ahead__credits div { display: grid; }
.ahead__credits span:not(.muted) { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.ahead__lead { grid-column: 9 / span 4; align-self: end; margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.ahead__lead q { display: block; margin-top: 12px; font-style: italic; }

.spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--pad); }
.spread figure { cursor: zoom-in; }
.spread .ph { aspect-ratio: 4 / 5; }
.spread figure.solo { grid-column: 1 / -1; width: calc(50% - var(--gap) / 2); margin: 0 auto; }

.anext { padding: clamp(60px, 8vw, 120px) var(--pad) clamp(40px, 6vw, 90px); }
.anext a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.anext .ph { grid-column: 1 / span 2; aspect-ratio: 4 / 5; }
.anext span { grid-column: 3 / -1; }
.anext b { display: block; margin-top: 6px; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 80px); line-height: 1; letter-spacing: -.02em; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: grid; grid-template-rows: var(--head) minmax(0, 1fr) 48px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 var(--pad); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__prev, .lb__next { position: absolute; top: 0; bottom: 0; width: 50%; }
.lb__prev { left: 0; cursor: w-resize; }
.lb__next { right: 0; cursor: e-resize; }
.lb__foot { display: flex; align-items: center; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro__img { height: auto; aspect-ratio: 4 / 5; align-self: start; }
}

@media (max-width: 760px) {
  :root { --head: 56px; }
  .head { grid-template-columns: 1fr auto; }
  .head__nav, .head__book { display: none; }
  .head__menu { display: block; }

  .intro { display: block; padding-bottom: 0; }
  .intro__img { width: 100%; margin-bottom: 26px; }
  .intro__name { font-size: 54px; }
  .intro__bio { padding-top: 24px; }
  .intro__facts { grid-template-columns: 1fr; gap: 10px; }
  .intro__facts div { display: flex; justify-content: space-between; gap: 12px; }
  .intro__links { flex-direction: column; align-items: flex-start; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 6px; }
  .blocks { gap: 36px 10px; }
  .block__title { font-size: 26px; margin-top: 14px; }
  .block__meta { margin-bottom: 14px; font-size: 10px; }
  .block__btn { height: 38px; padding: 0 18px; }
  .block__type { padding: 14px; }
  .block__type li { font-size: 15px; padding: 8px 0; }
  .grid--projects { grid-template-columns: 1fr; }
  .work__cap { flex-direction: column; gap: 0; }
  .work__cap .cap { font-size: 10px; }

  .contact, .ahead, .anext a { display: block; }
  .place { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .place__img { grid-column: span 1; }
  .place__img--low { margin-top: 40px; }
  .place__text { grid-column: 1 / -1; margin-top: 24px; }
  .mag__ui { gap: 16px; }
  .mag__count { min-width: 110px; }
  .contact__list { margin-top: 32px; }

  .ahead__credits, .ahead__lead { margin-top: 22px; }
  .spread { grid-template-columns: 1fr; gap: 6px; }
  .spread figure.solo { width: 100%; }
  .anext .ph { width: 34%; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   LUXE LAYER — fashion-house typography, quieter chrome, slow reveals.
   Sits on top of the base styles above.
   ========================================================================== */
:root {
  --paper: #faf8f5;
  --ink: #0e0d0c;
  --grey: #8c867f;
  --line: #e6e1da;
  --display: "Prata", "Cormorant", "Times New Roman", serif;
  --track: .2em;
  --head: 76px;
  --slow: cubic-bezier(.7, 0, .2, 1);
}
body { font-size: 13.5px; }
.cap { font-size: 10.5px; letter-spacing: var(--track); }
.muted { color: var(--grey); }

/* header: wordmark centred like a fashion house, nav split left / right */
.head { grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid transparent; transition: border-color .5s; }
.head.is-scrolled { border-bottom-color: var(--line); }
.head__nav { justify-self: start; gap: 34px; }
.head__right { justify-self: end; display: flex; align-items: center; gap: 34px; }
.head__book { padding: 11px 20px; border: 1px solid var(--ink); transition: background .35s, color .35s; }
.head__book:hover { background: var(--ink); color: var(--paper); }
.mark { justify-self: center; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .52em; text-transform: uppercase; margin-right: -.52em; white-space: nowrap; }
.mark i { color: inherit; }
.menu__top { display: grid; grid-template-columns: 1fr auto 1fr; }
.menu__top button { justify-self: end; }
.menu nav a { font-family: var(--display); font-size: 40px; line-height: 1.25; }

/* display type: Didone, like a magazine masthead */
.intro__name, .sec__title, .block__title, .ahead__title, .anext b, .contact__big, .place__addr, .m-h, .m-back__big {
  font-family: var(--display); font-weight: 400;
}
.intro__name { margin-top: 18px; font-size: clamp(44px, 5.2vw, 92px); line-height: 1.02; letter-spacing: -.015em; }
.intro__name .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.sec__title { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.01em; }
.sec__head { padding-bottom: 18px; margin-bottom: 28px; border-bottom-color: var(--ink); }
.block__title { font-size: clamp(24px, 2vw, 34px); margin: 24px 0 8px; letter-spacing: -.005em; }
.ahead__title { font-size: clamp(40px, 5vw, 80px); line-height: 1.02; }
.ahead__sub { font-family: var(--serif); }
.anext b { font-size: clamp(32px, 4vw, 64px); }
.contact__big { font-size: clamp(34px, 5vw, 80px); line-height: 1.12; }
.place__addr { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; }
.m-h { font-size: 8.6cqw; line-height: 1.02; letter-spacing: -.01em; }
.m-back__big { font-size: 14cqw; line-height: .95; }

/* hero: portrait bleeds to the edge, quieter text column */
.intro { padding-left: 0; }
.intro__text { padding-right: clamp(0px, 2vw, 24px); }
.intro__bio { font-size: clamp(17px, 1.35vw, 21px); }
.intro__facts { border-top-color: var(--ink); }
.intro__book { font-family: var(--sans); font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; padding: 16px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); transition: background .35s, color .35s; }
.intro__book:hover { background: transparent; color: var(--ink); }
.intro__book span { margin-left: 8px; }

/* buttons: sharp, tracked caps */
.block__btn { border-radius: 0; height: 44px; padding: 0 30px; letter-spacing: var(--track); }
.block:hover .block__btn { box-shadow: inset 0 0 0 1px var(--ink); }

/* lookbook numbering */
.look { display: inline-block; width: 100%; margin-bottom: 4px; font-family: var(--sans); font-style: normal; font-size: 9.5px; letter-spacing: var(--track); text-transform: uppercase; color: var(--grey); text-decoration: none; }
.block__look { margin-top: 18px; }
.block__look + .block__title { margin-top: 6px; }
.work__cap { margin-top: 10px; }
.work__cap em { font-family: var(--serif); font-size: 19px; }

/* giant wordmark closing every page */
.foot__mark { padding: clamp(60px, 8vw, 120px) var(--pad) 10px; overflow: hidden; text-align: center; }
.foot__mark > span { display: inline-block; white-space: nowrap; font-family: var(--display); font-size: 11vw; line-height: .9; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.foot { border-top-color: var(--ink); }


@media (max-width: 1024px) {
  .head__nav { display: none; }
  .head { grid-template-columns: 1fr auto 1fr; }
  .head__right { display: none; }
  .head__menu { display: block; grid-column: 3; justify-self: end; }
  .mark { grid-column: 2; }
}
@media (max-width: 760px) {
  :root { --head: 60px; }
  .mark { font-size: 11px; letter-spacing: .42em; margin-right: -.42em; }
  .intro { padding-left: var(--pad); }
  .intro__name { font-size: 46px; }
  .intro__book { display: inline-block; }
  .block__title { font-size: 22px; }
  .block__btn { height: 38px; padding: 0 18px; }
}

/* Prata draws "1" almost like "l": set figures in the address in Cormorant lining numerals */
.fig { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.08em; font-weight: 400; }

/* ==========================================================================
   CONCEPT LAYER — «день и вечер»
   By day the site is warm paper. For the price magazine and the closing
   contacts the whole page dims to a warm evening black — like moving from a
   day look to an evening one. No section borders: the light itself changes.
   Each section enters in its own way:
     hero      — the portrait opens like an aperture, the name rises letter by letter
     work      — a contact sheet being exposed: frames wipe open one after another
     price     — evening falls, the title pulls into focus, the magazine is lifted
                 from the table under a pool of light
     studio    — the letters turn over like a departures board, the prints develop,
                 a dotted route walks from the metro
     contacts  — the two lines arrive from opposite sides, links roll on hover
     footer    — the wordmark assembles from scattered letters
   Hidden states only apply under .mo (set by app.js), so nothing is lost
   without JavaScript or with reduced motion.
   ========================================================================== */
@property --paper { syntax: "<color>"; inherits: true; initial-value: #faf8f5; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #0e0d0c; }
@property --grey { syntax: "<color>"; inherits: true; initial-value: #8c867f; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e6e1da; }
@property --ph { syntax: "<color>"; inherits: true; initial-value: #efece7; }
:root {
  --ph: #efece7;
  --lift: 1.5s;   /* when the curtain rises */
  --enter: 1.75s; /* when the hero starts */
  transition: --paper 1.2s ease, --ink 1.2s ease, --grey 1.2s ease, --line 1.2s ease, --ph 1.2s ease;
}
:root.is-seen { --lift: .05s; --enter: .5s; }
:root.is-night { --paper: #0f0d0c; --ink: #efe9e1; --grey: #8d847a; --line: #2a2622; --ph: #1b1815; }
.ph { background: var(--ph); }
/* the magazine keeps its own paper whatever the hour */
.mag__book { --paper: #fcfbf9; --ink: #141414; --grey: #8b8680; --line: #e7e3dd; --ph: #efece7; }

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes riseSoft { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-7vw); } to { opacity: 1; transform: none; } }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wipeR { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeL { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoomOut { from { transform: scale(1.18); } to { transform: none; } }
@keyframes settleImg { from { transform: scale(1.28); } to { transform: none; } }

/* ---- curtain: opening ritual, then a quick wipe between pages ---- */
.veil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #0f0d0c; color: #efe9e1; pointer-events: none; visibility: hidden; }
.js .veil { visibility: visible; animation: veilLift 1.1s var(--slow) var(--lift) both; }
@keyframes veilLift { from { transform: none; visibility: visible; } to { transform: translateY(-100%); visibility: hidden; } }
.veil__in { display: grid; justify-items: center; gap: 18px; }
.veil__mark { display: block; overflow: hidden; white-space: nowrap; font-size: clamp(13px, 1.25vw, 17px); letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase; }
.veil__mark .wd, .veil__mark .ch { display: inline-block; }
.veil__mark .ch { animation: rise .9s var(--slow) calc(.1s + var(--i) * .045s) both; }
.veil__line { width: min(260px, 50vw); height: 1px; background: currentColor; opacity: .45; transform-origin: 0 50%; animation: drawX 1.1s var(--slow) .3s both; }
.veil__sub { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .6; animation: fadeIn .8s ease .75s both; }
.is-seen .veil__mark .ch, .is-seen .veil__line, .is-seen .veil__sub { animation: none; }
.js.is-leaving .veil { visibility: visible; animation: veilDrop .65s var(--slow) both; }
.is-leaving .veil__mark .ch, .is-leaving .veil__line, .is-leaving .veil__sub { animation: none; }
@keyframes veilDrop { from { transform: translateY(100%); } to { transform: none; } }

/* ---- header: tucks away while reading down, returns on the way up ---- */
.head { transition: border-color .5s, transform .8s var(--slow); }
.head.is-hidden { transform: translateY(-100%); }

/* ---- section heads: folio numbers, the rule draws itself ---- */
.sec__no { margin-left: .6em; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; vertical-align: top; position: relative; top: .5em; color: var(--grey); }
.sec__head { position: relative; border-bottom-color: transparent; }
.sec__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.mo .sec__head:not(.is-in)::after { transform: scaleX(0); }
.mo .sec__head.is-in::after { animation: drawX 1.6s var(--slow) backwards; }
.mo .sec__head:not(.is-in) > .cap { opacity: 0; }
.mo .sec__head.is-in > .cap { animation: fadeIn 1s ease .7s backwards; }

/* ---- hero: aperture + letters ---- */
.intro__img img { height: 110%; }
.intro__name .wd, .intro__name .ch { display: inline-block; }
.js .intro__img { animation: aperture 1.8s var(--slow) var(--enter) both; }
.js .intro__img img { animation: settleImg 3s var(--slow) var(--enter) both; }
@keyframes aperture { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.js .intro__name .ch { animation: rise 1.15s var(--slow) calc(var(--enter) + .35s + var(--i) * .04s) both; }
.js .intro__text > .cap { animation: fadeIn 1s ease calc(var(--enter) + .2s) both; }
.js .intro__bio { animation: fadeUp 1.2s var(--slow) calc(var(--enter) + 1.05s) both; }
.js .intro__facts { animation: fadeIn 1s ease calc(var(--enter) + 1.25s) both; }
.js .intro__links { animation: fadeUp 1.2s var(--slow) calc(var(--enter) + 1.4s) both; }
.intro__facts { position: relative; border-top-color: transparent; }
.intro__facts::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.js .intro__facts::before { animation: drawX 1.6s var(--slow) calc(var(--enter) + 1.1s) both; }

/* ---- work: a contact sheet being exposed ---- */
.mo #work .sec__head:not(.is-in) .sec__title { clip-path: inset(-30% 100% -30% 0); }
.mo #work .sec__head.is-in .sec__title { animation: wipeTitle 1.3s var(--slow) backwards; }
@keyframes wipeTitle { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -10% -30% 0); } }
.mo #blocks:not(.is-in) .block .ph, .mo #blocks:not(.is-in) .block__type { clip-path: inset(0 100% 0 0); }
.mo #blocks.is-in .block .ph, .mo #blocks.is-in .block__type { animation: wipeR 1.4s var(--slow) calc(var(--i) * .16s) backwards; }
.mo #blocks:not(.is-in) .block .ph img { transform: scale(1.18); }
.mo #blocks.is-in .block .ph img { animation: zoomOut 2.2s var(--slow) calc(var(--i) * .16s) backwards; }
.mo #blocks:not(.is-in) .block > :not(.ph):not(.block__type) { opacity: 0; }
.mo #blocks.is-in .block > :not(.ph):not(.block__type) { animation: fadeUp 1s var(--slow) calc(.6s + var(--i) * .16s) backwards; }
.blocks { align-items: start; }
/* the projects card stays a dark card whatever the hour */
.block__type { background: #141210; color: #efe9e1; transition: box-shadow 1.2s ease; }
.is-night .block__type { box-shadow: inset 0 0 0 1px var(--line); }

/* ---- price: evening, focus pull, the magazine lifted under a pool of light ---- */
.mo #services .sec__head:not(.is-in) .sec__title { opacity: 0; }
.mo #services .sec__head.is-in .sec__title { animation: focusIn 1.9s var(--slow) backwards; }
@keyframes focusIn { from { opacity: 0; filter: blur(16px); letter-spacing: .45em; } 55% { opacity: 1; } to { opacity: 1; filter: blur(0); letter-spacing: -.01em; } }
.mag__stage { position: relative; isolation: isolate; transform-origin: 50% 100%; }
.mag__stage::before {
  content: ""; position: absolute; left: -14%; right: -14%; top: -16%; bottom: -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 48% at 50% 46%, rgba(255, 226, 190, .24), rgba(255, 226, 190, .07) 48%, rgba(255, 228, 196, 0) 72%);
  opacity: 0; transition: opacity 1.6s ease;
}
.is-night .mag__stage::before { opacity: 1; }
.mag__book { transition: filter 1.2s ease; }
.is-night .mag__book { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.mo .mag:not(.is-in) .mag__ui, .mo .mag:not(.is-in) .mag__tip { opacity: 0; }
.mo .mag.is-in .mag__ui, .mo .mag.is-in .mag__tip { animation: fadeIn 1.2s ease .9s backwards; }

/* ---- studio: departures board, developing prints, a route from the metro ---- */
#studio .sec__title .wd { display: inline-block; perspective: 520px; }
#studio .sec__title .ch { display: inline-block; transform-origin: 50% 60%; backface-visibility: hidden; }
.mo #studio .sec__head:not(.is-in) .sec__title .ch { opacity: 0; }
.mo #studio .sec__head.is-in .sec__title .ch { animation: flipIn 1.1s var(--slow) calc(var(--i) * .08s) backwards; }
@keyframes flipIn { from { opacity: 0; transform: rotateX(-100deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.mo .place__img:not(.is-in) img { filter: grayscale(1) brightness(1.75) contrast(.55); }
.mo .place__img.is-in img { animation: develop 3s ease backwards; }
.mo .place__img--low.is-in img { animation-delay: .4s; }
@keyframes develop {
  0% { filter: grayscale(1) brightness(1.75) contrast(.55) blur(3px); }
  55% { filter: grayscale(.45) brightness(1.12) contrast(.9) blur(0); }
  100% { filter: grayscale(0) brightness(1) contrast(1) blur(0); }
}
.mo .place__text:not(.is-in) > * { opacity: 0; }
.mo .place__text.is-in > * { animation: fadeUp 1s var(--slow) backwards; }
.mo .place__text.is-in > :nth-child(2) { animation-delay: .5s; }
.mo .place__text.is-in > :nth-child(3) { animation-delay: .6s; }
.mo .place__text.is-in > :nth-child(4) { animation-delay: .7s; }
.mo .place__text.is-in > :nth-child(5) { animation-delay: .8s; }
.mo .place__text.is-in > :nth-child(6) { animation-delay: .9s; }
.route { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 10px; color: var(--grey); }
.route__line { position: relative; height: 7px; }
.route__line::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px); opacity: .7; }
.route__line::after { content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.route__line i { position: absolute; z-index: 1; left: calc(100% - 6px); top: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.mo .place__text:not(.is-in) .route__line { clip-path: inset(-4px 100% -4px 0); }
.mo .place__text.is-in .route__line { animation: wipeRoute 1.6s var(--slow) .25s backwards; }
.mo .place__text.is-in .route__line i { animation: walk 2.6s cubic-bezier(.45, 0, .3, 1) 1.4s backwards; }
@keyframes wipeRoute { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px 0 -4px 0); } }
@keyframes walk { from { left: 0; } to { left: calc(100% - 6px); } }

/* ---- contacts: lines from opposite sides, rolling links ---- */
.mo #contact .sec__head:not(.is-in) .sec__title { opacity: 0; }
.mo #contact .sec__head.is-in .sec__title { animation: slideIn 1.5s var(--slow) backwards; }
.mo .contact__list:not(.is-in) > div { opacity: 0; }
.mo .contact__list.is-in > div { animation: fadeLeft 1.1s var(--slow) backwards; }
.mo .contact__list.is-in > div:nth-child(2) { animation-delay: .1s; }
.mo .contact__list.is-in > div:nth-child(3) { animation-delay: .2s; }
.mo .contact__list.is-in > div:nth-child(4) { animation-delay: .3s; }
.contact__big { line-height: 1.16; }
.contact__big a { border-bottom: 0; }
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .85s var(--slow); }
.roll::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; transition: transform .85s var(--slow); }
a:hover > .roll > span, a:hover > .roll::after { transform: translateY(-100%); }

/* ---- footer: the wordmark assembles ---- */
.foot__mark .wd, .foot__mark .ch { display: inline-block; }

/* ---- section page and album ---- */
.ahead__title .wd, .ahead__title .ch { display: inline-block; }
.ahead__title .wd { white-space: nowrap; }
.mo .ahead:not(.is-in) .ahead__title .ch, .mo .ahead:not(.is-in) .ahead__sub { opacity: 0; }
.mo .ahead.is-in .ahead__title .ch { animation: riseSoft 1.1s var(--slow) calc(var(--i) * .035s) backwards; }
.mo .ahead.is-in .ahead__sub { animation: fadeIn 1s ease .6s backwards; }
.mo .ahead:not(.is-in) > .ahead__lead, .mo .ahead:not(.is-in) > .ahead__credits { opacity: 0; }
.mo .ahead.is-in > .ahead__lead, .mo .ahead.is-in > .ahead__credits { animation: fadeIn 1.2s ease .5s backwards; }
.mo .work:not(.is-in) .ph, .mo .work:not(.is-in) .block__type { clip-path: inset(0 100% 0 0); }
.mo .work.is-in .ph, .mo .work.is-in .block__type { animation: wipeR 1.3s var(--slow) calc(var(--i) * .12s) backwards; }
.mo .work:not(.is-in) .ph img { transform: scale(1.15); }
.mo .work.is-in .ph img { animation: zoomOut 2s var(--slow) calc(var(--i) * .12s) backwards; }
.mo .work:not(.is-in) .work__cap { opacity: 0; }
.mo .work.is-in .work__cap { animation: fadeIn 1s ease calc(.5s + var(--i) * .12s) backwards; }
/* album: the spread opens from the gutter outwards */
.mo .spread figure:nth-child(odd):not(.is-in) .ph { clip-path: inset(0 0 0 100%); }
.mo .spread figure:nth-child(even):not(.is-in) .ph { clip-path: inset(0 100% 0 0); }
.mo .spread figure:nth-child(odd).is-in .ph { animation: wipeL 1.5s var(--slow) backwards; }
.mo .spread figure:nth-child(even).is-in .ph { animation: wipeR 1.5s var(--slow) backwards; }
.mo .spread figure:not(.is-in) .ph img { transform: scale(1.12); }
.mo .spread figure.is-in .ph img { animation: zoomOut 2.2s var(--slow) backwards; }
.mo .anext:not(.is-in) b { opacity: 0; }
.mo .anext.is-in b { animation: slideIn 1.5s var(--slow) backwards; }
.mo .others:not(.is-in) { opacity: 0; }
.mo .others.is-in { animation: fadeIn 1s ease backwards; }


@media (max-width: 760px) {
  .veil__mark { letter-spacing: .5em; margin-right: -.5em; }
  .sec__no { font-size: 9px; }
  .route { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .js .veil { display: none; }
  .js .intro__img, .js .intro__img img, .js .intro__name .ch, .js .intro__text > *, .js .intro__facts::before { animation: none; }
}

/* Lenis smooth scroll (from lenis.css) */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* «Запишитесь» stays one word on one line */
.m-back__big { white-space: nowrap; font-size: 12.4cqw; }

/* ==========================================================================
   PHONE LAYER — composed for the phone section by section, not squeezed:
   intro      one cover screen: photo with the name on it, facts, booking
   work       all four sections at a glance, 2×2 tiles titled on the photo
   price      the magazine keeps its full spread (two 2:3 pages)
   studio     both photos side by side, the address, two clear buttons
   contacts   big tappable buttons and a tidy list
   A booking bar floats in after the intro and hides in the evening sections.
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.m-only, .intro__toggle, .mbook { display: none; }
/* moving lines must never widen the page (phones would zoom the layout out) */
.contact, .place, #work { overflow-x: clip; }
body { overflow-x: clip; }

/* menu (all sizes): numbered, items rise when it opens */
.menu nav a { display: flex; align-items: baseline; gap: 14px; overflow: hidden; transform: translateY(24px); opacity: 0; transition: transform .8s var(--slow), opacity .6s ease; }
.menu.is-open nav a { transform: none; opacity: 1; transition-delay: calc(.08s + var(--i) * .06s); }
.menu__no { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; color: var(--grey); min-width: 20px; }
.menu__foot { gap: 18px; }
.menu__book { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 22px; background: var(--ink); color: var(--paper); }
.menu__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* floating booking bar */
.mbook {
  position: fixed; z-index: 25; left: var(--pad); right: var(--pad); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; height: 52px; padding: 0 22px;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transform: translateY(calc(100% + 30px)); transition: transform .7s var(--slow);
}
.mbook.is-on { transform: none; }

/* ---------- phones and tablets: the intro is one cover screen ---------- */
@media (max-width: 1024px) {
  .m-only { display: block; }
  .d-only { display: none; }
  .mbook { display: flex; }

  .intro { display: grid; grid-template-columns: 100%; gap: 0; padding: 0; }
  .intro__text { display: contents; }
  .intro__img { grid-area: 1 / 1; position: relative; width: 100%; height: max(430px, calc(100svh - var(--head) - 168px)); aspect-ratio: auto; margin: 0; }
  .intro__img img { object-position: 50% 28%; }
  .intro__img::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 48%, rgba(0,0,0,.66) 100%);
  }
  .intro__role { grid-area: 1 / 1; align-self: start; z-index: 2; margin: 16px var(--pad) 0; color: rgba(255, 255, 255, .9); }
  .intro__name { grid-area: 1 / 1; align-self: end; z-index: 2; margin: 0 var(--pad) 18px; color: #fff; font-size: 9vw; line-height: .98; }
  .intro__facts { order: 1; margin: 0 var(--pad); padding: 14px 0 13px; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .intro__facts::before { display: none; }
  .intro__facts div { display: block; }
  .intro__facts .d-only { display: none; }
  .intro__facts dt { margin-bottom: 3px; }
  .intro__facts dd { font-size: 13px; line-height: 1.25; text-align: left; }
  .intro__links { order: 2; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 8px; margin: 0 var(--pad); padding-top: 14px; }
  .intro__book { flex: 1; width: auto; height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
  .intro__price { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 1px solid var(--ink); }
  .intro__extra { display: none !important; }
  .intro__bio { order: 3; margin: 0 var(--pad); padding-top: 26px; max-width: 640px; font-size: 18px; line-height: 1.42; }
  .intro__bio p { margin-bottom: 10px; }
  .intro__more { display: none; }
  .intro__bio.is-open .intro__more { display: block; animation: fadeIn .6s ease; }
  .intro__toggle { order: 4; display: inline-flex; justify-self: start; gap: 10px; margin: 0 var(--pad); padding: 6px 0; border-bottom: 1px solid var(--ink); }
  .js .intro__toggle { animation: fadeIn 1s ease calc(var(--enter) + 1.5s) both; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --pad: 18px; }
  .cap { font-size: 10px; letter-spacing: .14em; }
  .head { padding: 0 var(--pad); }
  .intro__role { font-size: 9px; letter-spacing: .12em; }
  .intro__name { font-size: 13vw; }

  .sec { padding-top: 60px; }
  .sec__head { margin-bottom: 18px; padding-bottom: 12px; }
  .sec__title { font-size: 36px; }

  /* work: all four sections at a glance — tiles titled on the photograph */
  .blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .blocks .block { display: grid; grid-template-columns: 100%; align-items: stretch; }
  .blocks .block > * { grid-area: 1 / 1; }
  .blocks .block .ph, .blocks .block__type { aspect-ratio: 3 / 4.15; }
  .blocks .block .ph::after { content: ""; position: absolute; inset: 38% 0 0; z-index: 1; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.64)); pointer-events: none; }
  .blocks .block__look { align-self: start; justify-self: start; z-index: 2; width: auto; margin: 10px 12px 0; color: rgba(255, 255, 255, .85); }
  .blocks .block__title { align-self: end; z-index: 2; margin: 0 12px 30px; color: #fff; font-size: 21px; line-height: 1.04; }
  .blocks .block__meta { align-self: end; z-index: 2; margin: 0 12px 12px; color: rgba(255, 255, 255, .78); font-size: 9px; }
  .blocks .block__btn { display: none; }
  .blocks .block__type ol, .blocks .block__type .cap { display: none; }
  .blocks .bars { display: none; }

  /* price: keep the spread — pages are narrow containers, see the @container rules below */
  .mag__ui { margin-top: 18px; gap: 10px; }
  .mag__btn { padding: 14px 6px; }
  .mag__count { min-width: 104px; }
  .mag__tip { font-size: 9px; }

  /* studio: both photos at once, the address, two clear actions */
  .place { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .place__img, .place__img--low { grid-column: span 1; margin-top: 0; aspect-ratio: 3 / 4; }
  .place__text { grid-column: 1 / -1; margin-top: 24px; gap: 10px; }
  .place__addr { font-size: 30px; }
  .place__note { font-size: 17px; margin-top: 2px !important; }
  .place__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 0; }
  .place__links a { display: flex; align-items: center; justify-content: center; height: 50px; padding: 0 8px; border: 1px solid var(--ink); background: none; text-align: center; white-space: nowrap; font-size: 9.5px; letter-spacing: .1em; }
  .place__links a:first-child { background: var(--ink); color: var(--paper); }

  /* contacts: big buttons, then a tidy list */
  .contact { display: block; padding-bottom: 20px; }
  .contact__big { display: grid; gap: 8px; }
  .contact__big br { display: none; }
  .contact__big a {
    display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px;
    border: 1px solid var(--ink); font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  }
  .contact__big a::after { content: "→"; }
  .contact__big a:first-child { background: var(--ink); color: var(--paper); }
  .contact__big .roll { overflow: visible; }
  .contact__big .roll::after { display: none; }
  .contact__list { margin-top: 26px; gap: 0; }
  .contact__list div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
  .contact__list div > :last-child { text-align: right; }
  .contact__list a { padding: 2px 0; }
  .foot__mark { padding-top: 40px; }
  .foot { display: grid; gap: 8px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }

  /* section page */
  .ahead { padding-top: 18px; padding-bottom: 26px; }
  .ahead__crumbs { margin-bottom: 22px; }
  .ahead__title { font-size: 46px; }
  .ahead__sub { font-size: 16px; margin-top: 10px; }
  .ahead__lead { font-size: 18px; }
  .works-body { padding: 0 var(--pad); }
  .grid { gap: 26px 8px; }
  .work__cap em { font-size: 17px; }
  .others { gap: 12px 22px; padding: 44px var(--pad) 36px; }

  /* album: credits on one line, photographs edge to edge */
  .ahead__credits { display: flex; gap: 28px; }
  .spread { padding: 0; gap: 4px; }
  .anext { padding: 56px var(--pad) 40px; }
  .anext b { font-size: 38px; }

  /* lightbox: the photograph fills the width */
  .lb { grid-template-rows: 56px minmax(0, 1fr) 56px; }
  .lb__stage { padding: 0; }
  .lb__stage img { width: 100%; max-height: 100%; }
}
@media (max-width: 380px) {
  .blocks .block__title { font-size: 19px; }
  .intro__facts dd { font-size: 12px; }
  .intro__price { padding: 0 18px; }
}

/* the magazine on a phone: narrow pages (~170–190px) get their own type scale */
@container (max-width: 260px) {
  .page .m-in { padding: 7cqw 6.5cqw 10cqw; }
  .m-folio { display: none; }
  .m-num { bottom: 4cqw; font-size: 4.4cqw; }
  .m-num--left { left: 6.5cqw; }
  .m-num--right { right: 6.5cqw; }
  .m-kicker { margin-bottom: 2cqw; font-size: 4.6cqw; letter-spacing: .12em; }
  .m-h { margin-bottom: 4cqw; font-size: 11.5cqw; }
  .m-body, .m-hand--row, .m-desc { display: none; }
  .page .m-dur::before { content: none; }
  .m-foot, .m-snap { display: none; }
  .m-left .m-cap { left: 14cqw; right: 6.5cqw; text-align: right; }
  .m-right .m-cap { left: 6.5cqw; right: 14cqw; }
  .m-list .m-meta:not(:has(.m-dur)) { display: none; }
  .m-list li { padding: 2.6cqw 0 2.3cqw; }
  .m-row { gap: 1.6cqw; }
  .m-name { font-size: 6.6cqw; line-height: 1.12; }
  .m-cost { font-size: 7.6cqw; }
  .m-cost--ask { font-size: 5.6cqw; }
  .m-meta { margin-top: .6cqw; font-size: 4.8cqw; line-height: 1.25; }
  .m-foot { padding: 3cqw 0 0 8cqw; font-size: 4.4cqw; line-height: 1.3; }
  .m-hand { font-size: 7cqw; }
  .m-hand--brows, .m-hand--edu { margin-top: 4cqw; }
  .m-quote { margin: 1cqw 0 4cqw; padding: 3cqw 0; font-size: 7.2cqw; }
  .m-ask { gap: 1cqw 3cqw; padding-top: 3cqw; }
  .m-ask span { font-size: 4.2cqw; }
  .m-ask b { font-size: 8cqw; }
  .m-ask a { font-size: 4.4cqw; }
  .m-addr { font-size: 8.4cqw; }
  .m-steps { margin-top: 3cqw; }
  .m-steps li { gap: 2.4cqw; padding: 2cqw 0; font-size: 5.8cqw; line-height: 1.2; }
  .m-snap { padding-top: 3cqw; }
  .m-inset { width: 40cqw; }
  .m-inset figcaption { font-size: 4.6cqw; }
  .m-snap .m-hand--wait { font-size: 6.4cqw; }
  .m-cap { bottom: 4cqw; font-size: 4.2cqw; letter-spacing: .08em; }
  .m-opener b { font-size: 24cqw; }
  .m-opener span { font-size: 7.4cqw; }
  .m-back .m-in { padding: 8cqw 6.5cqw; }
  .m-back__mark { font-size: 6cqw; }
  .m-back__mark span { display: none; }
  .m-back__big { font-size: 13cqw; }
  .m-back__links { margin-top: 5cqw; }
  .m-back__links a { padding: 2.6cqw 0; font-size: 6.4cqw; }
  .m-back__addr { margin-top: 3cqw; padding-right: 30cqw; font-size: 4.2cqw; letter-spacing: .06em; }
  .m-back .m-bar { right: 6.5cqw; bottom: 9cqw; width: 22cqw; }
}

/* tablets: two columns for the blocks */
@media (min-width: 761px) and (max-width: 1024px) {
  .mbook { left: auto; width: 340px; }
  .blocks { row-gap: 56px; }
  .place__img { grid-column: span 5; }
  .place__img--low { grid-column: span 5; }
  .place__text { grid-column: 3 / span 8; margin-top: 40px; }
  .contact__big { grid-column: 1 / -1; }
  .contact__list { grid-column: 1 / span 6; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu nav a { transform: none; opacity: 1; transition: none; }
}

/* price rows: description · duration (on a phone page only the duration stays) */
.m-dur::before { content: " · "; }

/* studio (desktop): the text column keeps its distance from the photographs */
@media (min-width: 1025px) {
  .place__text { padding-left: clamp(28px, 3.6vw, 64px); }
}

/* ==========================================================================
   MOVING BETWEEN WORKS
   wtabs   sticky section tabs on section and album pages (follows the header)
   wnext   "next section" at the end of a section page
   more    album footer: previous / next work and every other work of the section
   ========================================================================== */
.wtabs { position: sticky; top: var(--head); z-index: 15; background: var(--paper); border-bottom: 1px solid var(--line); transition: top .8s var(--slow); }
.head.is-hidden ~ .wtabs { top: 0; }
.wtabs__in { display: flex; align-items: stretch; gap: clamp(20px, 3vw, 48px); height: 50px; padding: 0 var(--pad); }
.wtabs__a, .wtabs__home { position: relative; display: flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: var(--track); text-transform: uppercase; color: var(--grey); white-space: nowrap; transition: color .3s; }
.wtabs__a sup { font-size: 8.5px; letter-spacing: .04em; top: -.6em; }
.wtabs__a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--slow); }
.wtabs__a:hover, .wtabs__a.is-on, .wtabs__home:hover { color: var(--ink); }
.wtabs__a:hover::after { transform: scaleX(.35); }
.wtabs__a.is-on::after { transform: none; }
.wtabs__short { display: none; }
.wtabs__home { margin-left: auto; }
.wtabs__home::before { content: "←"; margin-right: 6px; }
.ahead { padding-top: clamp(36px, 5vw, 72px); }
#works { transition: opacity .24s ease; }
#works.is-swap { opacity: 0; }

/* next section */
.wnext { padding: clamp(64px, 8vw, 120px) var(--pad) clamp(40px, 5vw, 72px); }
.wnext a { display: grid; justify-items: start; gap: 10px; padding-top: 22px; border-top: 1px solid var(--ink); }
.wnext b { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.01em; transition: transform .8s var(--slow); }
.wnext a:hover b { transform: translateX(14px); }
.mo .wnext:not(.is-in) b { opacity: 0; }
.mo .wnext.is-in b { animation: slideIn 1.5s var(--slow) backwards; }

/* album footer */
.more { padding: clamp(64px, 8vw, 120px) var(--pad) clamp(40px, 5vw, 72px); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-bottom: clamp(48px, 6vw, 88px); }
.pn__a { display: flex; align-items: center; gap: 18px; padding-top: 18px; border-top: 1px solid var(--ink); }
.pn__next { flex-direction: row-reverse; text-align: right; }
.pn__a .ph { flex: none; width: clamp(64px, 7vw, 104px); aspect-ratio: 4 / 5; }
.pn__t { display: grid; gap: 6px; min-width: 0; }
.pn__t b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.05; }
.pn__a .ph img { transition: transform 1.2s cubic-bezier(.2, .7, .1, 1), opacity .8s; }
.pn__a:hover .ph img { transform: scale(1.06); }
.more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.more__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
.more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 11vw, 170px), 1fr)); gap: 22px var(--gap); }
.mt { display: grid; gap: 8px; align-content: start; }
.mt .ph { aspect-ratio: 4 / 5; }
.mt .ph img { transition: transform 1.2s cubic-bezier(.2, .7, .1, 1), opacity .8s; }
.mt:hover .ph img { transform: scale(1.05); }
.mt__t { font-family: var(--serif); font-size: 16px; line-height: 1.15; }
.mt:hover .mt__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mt__dark { display: flex; align-items: flex-end; padding: clamp(10px, 1.4vw, 18px); background: #141210; color: rgba(239, 233, 225, .82); }
.mo .more:not(.is-in) { opacity: 0; }
.mo .more.is-in { animation: fadeUp 1.1s var(--slow) backwards; }

@media (max-width: 760px) {
  .wtabs__in { justify-content: space-between; gap: 0; height: 46px; }
  .wtabs__a { font-size: 10px; letter-spacing: .12em; }
  .wtabs__full, .wtabs__home { display: none; }
  .wtabs__short { display: inline; }
  .ahead { padding-top: 26px; }
  .wnext b { font-size: 42px; }
  .pn { gap: 14px; padding-bottom: 44px; }
  .pn__a { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pn__next { flex-direction: column; align-items: flex-end; }
  .pn__a .ph { width: 100%; aspect-ratio: 4 / 5; }
  .pn__t b { font-size: 21px; }
  .more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 6px; }
  .mt__t { font-size: 13.5px; }
}

/* "Другие разделы" at the foot of every section and album page */
.more + .more { padding-top: 0; }
.more__grid--blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; gap: 22px clamp(8px, 1.2vw, 16px); }
.more__grid--blocks .ph { aspect-ratio: 4 / 5; }
.more__grid--blocks .mt__t { font-family: var(--display); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.1; }
.mt__meta { font-size: 9.5px; margin-top: -2px; }
.mt__dark ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: p; }
.mt__dark li { counter-increment: p; font-family: var(--serif); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.15; }
.mt__dark li::before { content: "0" counter(p); display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 9px; letter-spacing: .12em; color: rgba(239, 233, 225, .45); }
@media (max-width: 760px) {
  .more__grid--blocks { gap: 14px 6px; }
  .more__grid--blocks .mt__t { font-size: 16px; }
  .mt__meta { font-size: 8.5px; letter-spacing: .1em; }
  .mt__dark { padding: 8px; }
  .mt__dark ol { gap: 5px; }
  .mt__dark li { font-size: 10.5px; }
  .mt__dark li::before { font-size: 7.5px; }
}

/* ==========================================================================
   ONLINE BOOKING WINDOW — DIKIDI booking page in a window over the site.
   Desktop: a centred panel over a dimmed page. Phones: a full-screen sheet.
   Fixed light colours: the DIKIDI page inside is always white.
   ========================================================================== */
.bk { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.bk.is-open { visibility: visible; pointer-events: auto; transition: none; }
.bk__backdrop { position: absolute; inset: 0; background: rgba(15, 13, 12, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s ease; }
.bk.is-open .bk__backdrop { opacity: 1; }
.bk__panel {
  position: relative; display: grid; grid-template-rows: 56px minmax(0, 1fr);
  width: min(520px, calc(100vw - 32px)); height: min(860px, calc(100svh - 48px));
  background: #fff; color: #141414; box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .45s ease, transform .6s var(--slow);
}
.bk.is-open .bk__panel { opacity: 1; transform: none; }
.bk__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: #faf8f5; border-bottom: 1px solid #e7e3dd; }
.bk__title { font-family: var(--display); font-size: 19px; line-height: 1; }
.bk__right { display: flex; align-items: center; gap: 20px; }
.bk__ext, .bk__close { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8b8680; white-space: nowrap; }
.bk__close { color: #141414; padding: 8px 0; }
.bk__ext:hover, .bk__close:hover { color: #141414; }
.bk__body { position: relative; background: #fff; }
.bk__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .4s ease; }
.bk.is-loaded .bk__body iframe { opacity: 1; }
.bk__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font-family: var(--serif); font-size: 17px; color: #8b8680; }
.bk.is-loaded .bk__load { display: none; }
.bk__spin { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e7e3dd; border-top-color: #141414; animation: bkspin .9s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .bk { place-items: stretch; }
  .bk__panel { width: 100%; height: 100%; grid-template-rows: calc(52px + env(safe-area-inset-top, 0px)) minmax(0, 1fr); transform: translateY(100%); transition: transform .55s var(--slow); opacity: 1; box-shadow: none; }
  .bk.is-open .bk__panel { transform: none; }
  .bk__bar { padding: env(safe-area-inset-top, 0px) 18px 0; }
  .bk__title { font-size: 18px; }
  .bk__right { gap: 16px; }
  .bk__ext { font-size: 9px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .bk__panel, .bk__backdrop { transition: none; }
}
