/* ============ Tokens ============ */
:root {
  --paper: #F1ECE3;
  --paper-2: #E9E2D6;
  --white: #FBF9F5;
  --ink: #15120F;
  --ink-2: #221E1A;
  --muted: #6B6258;
  --line: rgba(21, 18, 15, .14);
  --line-inv: rgba(241, 236, 227, .16);
  --orange: #C8472B;
  --violet: #7A5AF8;
  --lav: #DBCDE6;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --sec-y: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.19, .8, .12, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after { /* плёночное зерно */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--lav); color: var(--ink); }

/* Выделение: тексты, резюме и контакты выделяются; декор и кликабельное — нет,
   чтобы двойной клик, перетаскивание ленты и долгое нажатие не красили страницу. */
.hero__title, .hero__meta, .hero__fig, .marquee,
.nav, .menu nav, .btn, .modal__close, .lb__bar, .pm__nav,
.pcard, .strip, .m-item__photo, .m-item__zoom, .vid-sound, .ev-preview, .ev__n, .label, .cursor,
[aria-hidden="true"] {
  -webkit-user-select: none; user-select: none;
}
img, video { -webkit-user-drag: none; }
a, button { -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.label {
  font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.h2 {
  font-family: var(--serif); font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.015em;
}
.section { padding: var(--sec-y) var(--gutter); position: relative; }
/* переход по меню: заголовок не прячется под шапкой */
main section[id], footer[id] { scroll-margin-top: 92px; }
.section-x { padding-inline: var(--gutter); }

.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 15px 26px; border: 1px solid currentColor; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
}

/* ============ Reveal ============ */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
}
.nav a { text-decoration: none; }
.nav__logo { font: 400 30px/1 var(--serif); letter-spacing: -.02em; margin-right: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); font-size: 14px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 14px; border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; }
.nav__burger { display: none; align-items: center; gap: 10px; font-size: 14px; z-index: 2; }
.nav__burger-lines { position: relative; width: 22px; height: 8px; }
.nav__burger-lines::before, .nav__burger-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger-lines::before { top: 0; }
.nav__burger-lines::after { top: 7px; }
.nav__burger[aria-expanded="true"] .nav__burger-lines::before { top: 3.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-lines::after { top: 3.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
  padding: 90px var(--gutter) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font: 400 clamp(40px, 12vw, 64px)/1.08 var(--serif); border-bottom: 1px solid var(--line-inv); padding: 6px 0;
}
.menu nav a small { font: 500 11px/1 var(--sans); letter-spacing: .1em; color: var(--lav); opacity: .7; }
.menu__mail { font-size: 15px; color: var(--lav); }

/* ============ Hero ============ */
/* Компьютер: фото во всю высоту справа, имя крупно слева и заходит на фото,
   текст с кнопкой сразу под именем. Телефон — см. @media (max-width: 700px). */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 40vw); grid-template-rows: auto 1fr;
  padding: 96px var(--gutter) 40px;
}
.hero__meta { grid-column: 1 / -1; }
/* как обложка: имя сверху вровень с фото, подпись с кнопкой снизу */
.hero__main {
  grid-column: 1; grid-row: 2; position: relative; z-index: 2; margin-right: -18vw; padding-top: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.hero::before { /* фирменный градиент со старого сайта, мягко */
  content: ""; position: absolute; z-index: -2; width: 70vmax; height: 70vmax; right: -22vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(200, 71, 43, .55), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(122, 90, 248, .45), transparent 70%);
  filter: blur(40px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6vmax, 5vmax) rotate(25deg); } }

.hero__meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; letter-spacing: .04em; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.hero__title {
  font-family: var(--serif); font-size: clamp(72px, 12.5vw, 250px); line-height: .84; letter-spacing: -.035em;
  margin: 0;
}
/* фамилия никогда не рвётся: ширина кегля рассчитана под колонку + заход на фото */
.hero__title .line { display: block; overflow: hidden; padding: .02em .04em .1em 0; white-space: nowrap; }
/* сдвиг вправо — фамилия заходит на белую стену фото, но не на лицо */
.hero__title .line--it { font-style: italic; margin-top: -.08em; padding-left: .7em; }
.ch { display: inline-block; }
.js .ch { transform: translateY(110%) rotate(6deg); animation: rise 1.25s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
@keyframes rise { to { transform: none; } }

.hero__fig {
  grid-column: 2; grid-row: 2; position: relative; z-index: 1; overflow: hidden; background: var(--paper-2);
  margin-top: 28px; min-height: 62vh;
}
@media (min-width: 701px) {
  /* как в журнале: фото уходит под обрез справа и снизу */
  .hero__fig { margin: 28px calc(var(--gutter) * -1) -40px 0; }
  .hero__foot { justify-content: flex-start; align-items: center; gap: clamp(24px, 3vw, 56px); }
}
/* кадр по Дарье: меньше белой стены сверху */
.hero__fig img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%;
  /* центр приближения левее Дарьи: лицо уходит вправо, подальше от фамилии */
  --zoom: 1.22; transform-origin: 20% 88%; transform: scale(var(--zoom));
}
.js .hero__fig { clip-path: inset(100% 0 0 0); animation: unclip 1.4s var(--ease) .5s forwards; }
.js .hero__fig img { transform: scale(calc(var(--zoom) + .15)); animation: settle 2s var(--ease) .5s forwards; }
@keyframes unclip { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(var(--zoom)); } }

.hero__foot { display: flex; justify-content: flex-start; align-items: center; gap: clamp(24px, 3vw, 56px); position: relative; z-index: 2; }
.hero__lead { max-width: 32ch; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.4; margin: 0; }
.hero__lead em { font-size: 1.2em; }

/* ============ Marquee ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--paper); }
.marquee__track { display: flex; align-items: center; gap: 32px; width: max-content; padding-right: 32px; animation: marq 40s linear infinite; }
.marquee span { font: italic 400 clamp(34px, 4vw, 60px)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--orange); font-size: 18px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============ About ============ */
.statement {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 150px); line-height: .95; letter-spacing: -.02em;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.statement em { color: var(--orange); }
.about__grid { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 0 24px; align-items: start; }
.about__collage { grid-column: 1; }
.about__text { grid-column: 3; font-size: clamp(17px, 1.35vw, 20px); max-width: 580px; }
.about__hi { font: italic 400 clamp(30px, 3vw, 44px)/1.1 var(--serif); margin-bottom: .6em; }
.about__more { font: italic 400 22px/1.3 var(--serif); color: var(--muted); margin: 18px 0 0; }

.about__pair { position: relative; aspect-ratio: 1 / 1.08; }
.about__ph { overflow: hidden; background: var(--paper-2); }
.about__ph img { width: 100%; height: 100%; object-fit: cover; }
.about__ph--me { position: absolute; left: 0; top: 0; width: 68%; aspect-ratio: 2 / 3; }
.about__ph--palette { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 2695 / 3669; --d: .15s; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.about__ph--sign { margin-top: clamp(16px, 2vw, 28px); aspect-ratio: 1716 / 394; --d: .3s; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.stats dt { font: 400 clamp(52px, 5.5vw, 88px)/.9 var(--serif); letter-spacing: -.02em; }
.stats dd { margin: 10px 0 0; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* ============ Projects ============ */
.projects { padding-top: clamp(40px, 6vw, 90px); }
.projects__head { display: grid; margin-bottom: clamp(36px, 5vw, 64px); }
.projects__sub { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.projects__bar { height: 1px; background: var(--line); margin-top: 32px; position: relative; overflow: hidden; }
.projects__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.hs__track { display: flex; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter) var(--sec-y); }
.hs:not(.is-pinned) .hs__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs:not(.is-pinned) .hs__track::-webkit-scrollbar { display: none; }
.hs.is-pinned .hs__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hs.is-pinned .hs__track { width: max-content; padding-bottom: 0; will-change: transform; }

.pcard { flex: 0 0 auto; width: min(78vw, 440px); scroll-snap-align: center; }
.hs.is-pinned .pcard { width: clamp(300px, 29vw, 480px); }
.hs.is-pinned .pcard:nth-child(even) { margin-top: 9vh; }
.pcard__btn { display: block; width: 100%; text-align: left; }
.pcard__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard__media::after {
  content: "View"; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font: italic 400 22px/1 var(--serif);
  scale: 0; transition: scale .6s var(--ease);
}
.pcard__btn:hover .pcard__media img, .pcard__btn:focus-visible .pcard__media img { transform: scale(1.06); }
.pcard__btn:hover .pcard__media::after, .pcard__btn:focus-visible .pcard__media::after { scale: 1; }
.pcard__meta { display: block; margin-top: 16px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.pcard__title { display: block; font: 400 clamp(34px, 3.2vw, 52px)/1 var(--serif); margin-top: 8px; transition: transform .6s var(--ease); }
.pcard__btn:hover .pcard__title { transform: translateX(8px); font-style: italic; }
.pcard__sub { display: block; color: var(--muted); margin-top: 6px; }

/* ============ Events (dark) ============ */
.events { background: var(--ink); color: var(--paper); }
.events .label { color: var(--lav); opacity: .75; }
.events__head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.events__head .label, .events__head .h2 { grid-column: 1; }
.events .h2 em { color: var(--lav); }
.events__kinds { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.events__kinds li { padding: 7px 13px; border: 1px solid var(--line-inv); border-radius: 999px; font-size: 14px; color: rgba(241, 236, 227, .85); }

.ev-list { border-bottom: 1px solid var(--line-inv); }
.ev {
  display: grid; grid-template-columns: 54px minmax(150px, 220px) 1.25fr 1fr; gap: 12px clamp(20px, 2.4vw, 36px);
  align-items: start; padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line-inv); position: relative;
}
/* фото видно всегда, а не только при наведении */
.ev__thumb { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: var(--ink-2); }
.ev__n { font-size: 13px; color: rgba(241, 236, 227, .5); font-variant-numeric: tabular-nums; padding-top: 6px; }
.ev__title { font: 400 clamp(32px, 4.4vw, 68px)/1 var(--serif); letter-spacing: -.01em; transition: transform .6s var(--ease), color .6s var(--ease); }
.ev__where { color: rgba(241, 236, 227, .6); margin: 10px 0 0; }
.ev__role { font-size: 15px; color: rgba(241, 236, 227, .6); margin: 0 0 8px; }
.ev__role strong { display: block; font-weight: 500; font-size: 17px; color: var(--paper); margin-top: 2px; }
.ev__tasks li { position: relative; padding-left: 16px; font-size: 15px; color: rgba(241, 236, 227, .85); margin-bottom: 3px; }
.ev__tasks li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--lav); }
@media (hover: hover) {
  .ev:hover .ev__title { font-style: italic; color: var(--lav); }
}

/* ============ Sketching ============ */
.sketches { background: var(--white); }
.sketches__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 32px; }
.sketches__text { font-size: 18px; max-width: 46ch; }
.chips--fabric { margin-bottom: clamp(48px, 6vw, 80px); }
.strip {
  overflow-x: auto; overflow-y: hidden; margin-inline: calc(var(--gutter) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip__track { display: flex; gap: clamp(20px, 3vw, 48px); width: max-content; padding: 20px 0 30px; }
.strip__item { flex: 0 0 auto; height: clamp(340px, 46vw, 600px); aspect-ratio: 86 / 300; transition: transform .6s var(--ease); }
.strip__item img { width: 100%; height: 100%; object-fit: contain; }
.strip__item:hover { transform: translateY(-14px) rotate(-1.5deg); }

/* ============ Modeling ============ */
.modeling__top { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 6vw, 110px); align-items: center; margin-bottom: clamp(48px, 6vw, 96px); }
.comp__label { margin: 40px 0 0; }
.comp { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 1px solid var(--line); max-width: 460px; }
.comp div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comp div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
.comp div:nth-child(even) { padding-left: 20px; }
.comp dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.comp dd { margin: 6px 0 0; font: 400 44px/1 var(--serif); }
.comp small { font: 400 14px var(--sans); color: var(--muted); margin-left: 4px; }

.modeling__video {
  position: relative; justify-self: end; overflow: hidden; background: var(--ink);
  height: min(86vh, 900px); aspect-ratio: 4 / 5; max-width: 100%;
}
.modeling__video video { width: 100%; height: 100%; object-fit: cover; }
.vid-sound {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px;
  transition: background .3s;
}
.vid-sound:hover { background: var(--white); }

.masonry { columns: 4 220px; column-gap: 16px; }
.m-item { position: relative; break-inside: avoid; margin: 0 0 16px; overflow: hidden; background: var(--paper-2); }
.m-item__photo { display: block; width: 100%; }
.m-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; pointer-events: none;
  background: linear-gradient(transparent, rgba(21, 18, 15, .88)); color: var(--paper); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .6s var(--ease);
}
.m-cap strong { display: block; font: 400 24px/1.05 var(--serif); margin-bottom: 4px; }
.m-cap__link { display: inline-block; margin-top: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; pointer-events: auto; }
.m-item.is-open .m-cap, .m-item.has-cap:hover .m-cap { pointer-events: auto; }
.m-item.is-open .m-cap { opacity: 1; transform: none; }
.m-item__zoom {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--ink); font-size: 16px; opacity: 0; transition: opacity .3s;
}
.m-item.is-open .m-item__zoom { opacity: 1; }
@media (hover: hover) {
  .m-item.has-cap:hover .m-cap { opacity: 1; transform: none; }
  .m-item.has-cap:hover .m-item__zoom { opacity: 1; }
}

/* --- Modeling: блок «Model application» --- */
.modeling__hint { color: var(--muted); font-size: 16px; margin: 18px 0 0; }
.appblock { margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.appblock__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.appblock__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 76px); line-height: .95; letter-spacing: -.01em; }
.appblock__head .comp { margin-top: 0; }
.appblock__media {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px); align-items: start;
}
.appblock__video { order: 2; background: #000; overflow: hidden; align-self: center; }
.appblock__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.appblock__ph { order: 1; overflow: hidden; background: var(--paper-2); }
.appblock__ph img { width: 100%; height: auto; object-fit: contain; transition: transform 1.2s var(--ease); }
.appblock__ph:hover img { transform: scale(1.02); }
/* лист полароидов показываем целиком, без обрезки */
.appblock__ph--wide { background: none; }
.appblock.is-empty .appblock__media { display: none; }  /* пока нет полароидов — мерки всё равно видны */
@media (max-width: 700px) {
  .appblock__head { grid-template-columns: 1fr; }
  .appblock__media { grid-template-columns: 1fr; }
}

/* ============ Resume ============ */
.resume { border-top: 1px solid var(--line); }
.resume__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(48px, 6vw, 90px); }
.resume__head .label { flex-basis: 100%; margin: 0; }
.resume__field { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.resume__cols { display: grid; grid-template-columns: 7fr 5fr; gap: 56px clamp(40px, 6vw, 110px); }
.resume__h { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.tl > li { display: grid; grid-template-columns: 130px 1fr; gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tl__when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.tl h4 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.tl h4 span { display: block; font: 600 14px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-top: 6px; }
.tl__where { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.tl ul li { position: relative; padding-left: 16px; font-size: 15px; margin-bottom: 4px; }
.tl ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--ink); }
.tl__note { font-size: 15px; color: var(--ink-2); }

/* ============ Contact ============ */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--paper);
  padding: var(--sec-y) var(--gutter) 28px;
}
.contact .label { color: var(--lav); opacity: .7; margin-bottom: 12px; }
.contact__glow {
  position: absolute; z-index: -1; inset: auto -20vw -40vw auto; width: 90vw; height: 90vw;
  background: radial-gradient(closest-side, rgba(200, 71, 43, .75), transparent 70%),
              radial-gradient(closest-side at 30% 40%, rgba(122, 90, 248, .7), transparent 70%);
  filter: blur(50px); animation: drift 16s ease-in-out infinite alternate;
}
.contact__title { font: 400 clamp(56px, 11vw, 200px)/.88 var(--serif); letter-spacing: -.03em; margin: 12px 0 0; }
.contact__title em { color: var(--lav); }
.contact__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: clamp(64px, 9vw, 130px) 0 64px; font-size: 18px; }
.contact__grid a { text-decoration: none; overflow-wrap: anywhere; }
.contact__grid a:hover { text-decoration: underline; }
.contact__grid p { margin: 0; }
.contact__social li { margin-bottom: 4px; }
.contact__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-inv); font-size: 14px; color: rgba(241, 236, 227, .65); }
.contact__bottom a { text-decoration: none; }

/* ============ Modal / lightbox ============ */
.modal { position: fixed; inset: 0; z-index: 80; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.modal.is-dark { background: rgba(21, 18, 15, .96); color: var(--paper); }
.js .modal:not([hidden]) { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.modal__close {
  position: fixed; top: 16px; right: var(--gutter); z-index: 2;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px;
}
.modal.is-dark .modal__close { background: var(--paper); color: var(--ink); }

.pm { display: grid; grid-template-columns: 7fr 5fr; min-height: 100vh; }
.pm__media { display: grid; gap: 12px; padding: 12px; background: var(--paper-2); align-content: start; }
.pm__media img, .pm__media video { width: 100%; height: auto; background: #000; }
/* много кадров — показываем в две колонки, обложка во всю ширину */
.pm__media--grid { grid-template-columns: 1fr 1fr; }
.pm__media--grid > :first-child { grid-column: 1 / -1; }
.pm__info { position: sticky; top: 0; align-self: start; padding: 110px var(--gutter) 48px; display: flex; flex-direction: column; min-height: 100vh; }
.pm__title { font: 400 clamp(52px, 6vw, 104px)/.92 var(--serif); letter-spacing: -.02em; margin: 8px 0 8px; }
.pm__sub { font: italic 400 26px/1.2 var(--serif); color: var(--muted); margin-bottom: 32px; }
.pm__desc { font-size: 19px; max-width: 42ch; }
.pm__info .btn { align-self: start; margin-top: 20px; }
.pm__nav { margin-top: auto; padding-top: 48px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.pm__nav button { text-align: left; font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pm__nav button strong { display: block; font: 400 28px/1.1 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); margin-top: 6px; }
.pm__nav button:last-child { text-align: right; }

.lb { min-height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center; padding: 70px var(--gutter) 20px; }
.lb__stage { display: grid; place-items: center; width: 100%; height: calc(100svh - 160px); }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__stage.is-white img { background: #fff; padding: 12px; }
.lb__cap { max-width: 60ch; text-align: center; margin: 14px 0 0; color: rgba(241, 236, 227, .8); }
.lb__cap strong { font: 400 22px var(--serif); color: var(--paper); }
.lb__bar { display: flex; align-items: center; gap: 28px; padding-top: 16px; font-size: 14px; }
.lb__bar button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-inv); font-size: 18px; transition: background .3s; }
.lb__bar button:hover { background: rgba(241, 236, 227, .12); }

/* ============ Cursor ============ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; display: none;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease);
}
.has-cursor .cursor { display: block; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__collage, .about__text { grid-column: 1; }
  .about__collage { max-width: 520px; width: 100%; }
  .events__head, .sketches__head { grid-template-columns: 1fr; }
  .events__kinds { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .modeling__top { grid-template-columns: 1fr; }
  .modeling__video { justify-self: stretch; height: auto; width: 100%; }
  .resume__cols { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .pm__info { position: static; min-height: 0; order: -1; padding-top: 80px; }
  .pm__media { padding: 0 var(--gutter) var(--gutter); background: none; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .hero { padding-top: 76px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .hero__fig { grid-column: 1; grid-row: 2; justify-self: end; width: 64vw; min-height: 0; aspect-ratio: 2 / 3; margin-top: 20px; }
  .hero__main { grid-column: 1; grid-row: 3; margin: -56px 0 0; padding-top: 0; display: block; }
  .hero__title { font-size: clamp(64px, 21vw, 120px); margin-bottom: 28px; }
  .hero__title .line--it { padding-left: 0; }
  .hero__foot { flex-direction: column; align-items: start; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stats dd { margin: 0; }
  .ev { grid-template-columns: 1fr; gap: 6px; }
  .ev__n { display: none; }
  .ev__thumb { aspect-ratio: 16 / 10; margin-bottom: 14px; order: -1; }
  .masonry { columns: 2; column-gap: 10px; }
  .m-item { margin-bottom: 10px; }
  .m-cap { padding: 36px 10px 10px; font-size: 13px; }
  .m-cap strong { font-size: 19px; }
  .tl > li { grid-template-columns: 1fr; gap: 4px; }
  .tl__when { padding: 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__bottom { flex-direction: column; }
  .lb__stage { height: calc(100svh - 190px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track, .strip__track { animation: none !important; }
  .strip { overflow-x: auto; }
}
