/* ИКА — портфолио художницы
   Шрифты: Onest (текст, заголовки) + Cormorant Garamond italic (акценты) */

:root {
  --bg: #efe1ce;            /* Pantone Buttercream 11-0110 TCX */
  --ink: #111111;
  --muted: #7f7364;
  --line: #d9c7ae;
  --soft: #e8d7bf;
  --accent: #b5643c;           /* терракота — линия сграффито */
  --tan: #b9a07f;              /* сдержанный тон для мелких элементов */
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 80px);
  --c1: #e2d6bf; --c2: #b39a74; --c3: #55594b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
html[lang="ru"] [data-l="en"], html[lang="en"] [data-l="ru"] { display: none !important; }
::selection { background: var(--ink); color: #fff; }

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section { padding: clamp(100px, 14vw, 200px) var(--pad); }

/* ---------- progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 76px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: rgba(239,225,206,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.wordmark { text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .12em; display: flex; align-items: baseline; gap: 14px; }
.wordmark .wm-name { font-weight: 400; font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.topbar nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.topbar nav a { position: relative; text-decoration: none; font-size: 13px; font-weight: 500; }
.topbar nav sup { font-size: 9px; color: var(--muted); margin-right: 4px; letter-spacing: .05em; }
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.topbar nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: clamp(18px, 2.6vw, 40px); }
.lang button { background: none; border: 0; padding: 4px 2px; font: 500 12px var(--sans); letter-spacing: .08em; color: var(--muted); cursor: pointer; transition: color .3s; }
.lang button[aria-pressed="true"], .lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.topbar nav { margin-left: auto; order: 2; }
.lang { order: 3; }
.menu-toggle { order: 4; }

/* ---------- images ---------- */
img { display: block; max-width: 100%; }
[data-lightbox] { cursor: zoom-in; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 120px var(--pad) 48px;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-top { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.hero-title {
  position: relative; z-index: 2; align-self: center;
  font-size: clamp(42px, 9.2vw, 170px); line-height: .92; letter-spacing: -.055em; font-weight: 400;
  margin: 6vh 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.hero-title .indent { padding-left: 18vw; }
.hero-title em { font-size: 1.08em; letter-spacing: -.03em; }
.is-loaded .hero-title .line > span { transform: none; }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; position: relative; z-index: 2; }
.intro { max-width: 380px; margin: 0; color: #5a5147; font-size: 15px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; font-size: 13px; font-weight: 500; }
.scroll-cue i { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.hero-art {
  position: absolute; z-index: 1; margin: 0;
  right: var(--pad); top: 50%; width: clamp(240px, 27vw, 460px); aspect-ratio: 4 / 5;
  transform: translateY(-50%);
}
.art-wrap { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease) .35s; background: var(--soft); }
.is-loaded .art-wrap { clip-path: inset(0 0 0 0); }
.art-img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 2s var(--ease) .35s; will-change: transform; }
.is-loaded .art-img { scale: 1; }
.hero-art figcaption {
  position: absolute; left: 0; right: 0; bottom: -28px;
  display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: var(--muted);
}
.hero-art figcaption em { font-size: 15px; color: var(--ink); letter-spacing: 0; }
.hero-art figcaption span:last-child { letter-spacing: .02em; }

.fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.is-loaded .fade { opacity: 1; transform: none; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > span { font-size: clamp(28px, 4vw, 56px); letter-spacing: -.03em; padding-right: .6em; white-space: nowrap; }
.marquee i { display: inline-block; width: .16em; height: .16em; margin: 0 .55em; border: 1px solid var(--tan); border-radius: 50%; vertical-align: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads + split text ---------- */
.section-head { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 60px; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2, .about h2 {
  font-size: clamp(42px, 6.4vw, 108px); line-height: .98; letter-spacing: -.045em;
}
.section-head h2 em, .about h2 em, .method-title em { font-size: 1.06em; }
.aside { margin: 0; max-width: 260px; color: var(--muted); font-size: 14px; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-split].is-visible .wi { transform: none; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- works: horizontal gallery ---------- */
.works { padding-top: clamp(100px, 12vw, 180px); }
.works .section-head { padding: 0 var(--pad); }
.hscroll { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-track { display: flex; align-items: center; gap: clamp(40px, 7vw, 120px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.work { margin: 0; flex: none; }
.work:nth-child(even) { margin-top: 12vh; }
.work-frame { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: var(--ar, 1); height: var(--h); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.work-frame.tall   { --h: min(62vh, 640px); }
.work-frame.wide   { --h: min(50vh, 520px); }
.work-frame.square { --h: min(56vh, 580px); }
.work-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.work:hover .work-frame img { scale: 1.03; }
.work-meta { display: flex; gap: 18px; margin-top: 18px; align-items: baseline; }
.work-meta b { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.work-meta h3 { font-size: 22px; letter-spacing: -.02em; }
.work-meta p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.hscroll-ui { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; display: flex; align-items: center; gap: 24px; font-size: 12px; color: var(--muted); }
.hscroll-ui b { color: var(--ink); font-weight: 500; }
.hscroll-ui .bar { flex: 1; height: 1px; background: var(--line); }
.hscroll-ui .bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- catalogue ---------- */
.catalogue { position: relative; }
.catalogue-head { display: flex; justify-content: space-between; margin-bottom: 40px; }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-list li {
  position: relative; display: grid; grid-template-columns: 70px 1fr 200px 110px; align-items: baseline; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line); cursor: default;
  transition: color .4s, padding .6s var(--ease);
}
.cat-list li::before { content: ""; position: absolute; inset: 0; background: var(--soft); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.cat-list li:hover { padding-left: 18px; }
.cat-list li:hover::before { transform: scaleY(1); }
.cat-list li > span { font-size: 12px; color: var(--muted); }
.cat-list .thumb { display: none; }
.cat-list li:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.cat-list h3 { font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.cat-list p { margin: 0; font-size: 13px; color: var(--muted); }
.cat-list p:last-child { text-align: right; }
.cat-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 280px; overflow: hidden; background: var(--soft); box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
  opacity: 0; scale: .6; transition: opacity .4s, scale .6s var(--ease);
}
.cat-preview.is-on { opacity: 1; scale: 1; }
.cat-preview img { width: 100%; height: auto; }

/* ---------- manifest ---------- */
.manifest { padding: clamp(110px, 14vw, 200px) var(--pad); background: var(--soft); }
.manifest-quote .hw { color: rgba(17,17,17,.16); }
.manifest-quote {
  margin: 40px 0 clamp(60px, 8vw, 120px); max-width: 1400px;
  font: 400 clamp(32px, 4.6vw, 76px)/1.12 var(--serif); letter-spacing: -.02em;
}
.manifest-quote .hw { color: rgba(17,17,17,.14); transition: color .5s; }
.manifest-quote .hw.on { color: var(--ink); }
.manifest-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.manifest-body p { margin: 0; color: #544b41; font-size: 15px; }
.manifest-body p:nth-child(2) { --rd: .12s; }
.manifest-body p:nth-child(3) { --rd: .24s; }
.manifest-credit { margin: 60px 0 0; font: italic 22px var(--serif); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.portrait-img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; object-position: 80% 30%; will-change: transform; }
.portrait-wrap, .reveal-clip { overflow: hidden; clip-path: inset(18% 18% 18% 18%); transition: clip-path 1.6s var(--ease); }
.reveal-clip.is-visible { clip-path: inset(0 0 0 0); }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.42), transparent); pointer-events: none; }
.portrait figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; font: italic 20px var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.about-copy h2 { margin: 28px 0 40px; }
.about-copy > p:not(.eyebrow) { color: #544b41; max-width: 540px; margin: 0 0 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 24px;
  padding: 14px 22px; border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.pill::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); z-index: -1; }
.pill:hover { color: #fff; }
.pill:hover::before { transform: none; }
.pill span { transition: transform .5s var(--ease); }
.pill:hover span { transform: translate(3px, -3px); }

/* ---------- method ---------- */
.method { padding: clamp(110px, 14vw, 200px) var(--pad); text-align: center; overflow: hidden; }
.method-title { margin: 30px 0 0; font-size: clamp(48px, 10vw, 180px); line-height: .95; letter-spacing: -.055em; }
.scratch { width: 100%; height: clamp(60px, 9vw, 140px); margin: clamp(20px, 3vw, 40px) 0; overflow: visible; }
.scratch path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.method-copy { max-width: 620px; margin: 0 auto; color: #544b41; font-size: 17px; }

.sg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 40px); margin: clamp(60px, 7vw, 110px) auto 0; max-width: 1200px; text-align: left; }
.sg-item { margin: 0; }
.sg-item:nth-child(2) { margin-top: clamp(30px, 5vw, 80px); }
.sg-frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.sg-frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; transition: scale 1.2s var(--ease); }
.sg-item:hover img { scale: 1.05; }
.sg-wide { grid-column: 2 / -1; }
.sg-wide .sg-frame { aspect-ratio: 4 / 3; }
.sg-item figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.sg-item figcaption em { font-size: 17px; color: var(--ink); }
@media (max-width: 900px) { .sg-grid { grid-template-columns: 1fr 1fr; } .sg-item:nth-child(2) { margin-top: 40px; } .sg-item:nth-child(3) { grid-column: 1 / -1; width: 70%; justify-self: center; } .sg-wide { grid-column: 1 / -1; } }

/* ---------- exhibitions ---------- */
.exh-head { grid-template-columns: 1fr 1.15fr; align-items: end; }
.exh-head h2 { align-self: end; }
.exh-photo { position: relative; margin: 0; aspect-ratio: 3 / 2; }
.exh-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 55% 40%; will-change: transform; }
@media (max-width: 900px) { .exh-head { grid-template-columns: 1fr; } .exh-photo { margin-top: 12px; } }
.exhibitions { border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: clamp(50px, 7vw, 100px) 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.timeline li:nth-child(2) { --rd: .08s; } .timeline li:nth-child(3) { --rd: .16s; } .timeline li:nth-child(4) { --rd: .24s; }
.timeline time { font-size: clamp(36px, 4.4vw, 72px); letter-spacing: -.05em; line-height: 1; font-weight: 300; }
.timeline h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.02em; margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--muted); max-width: 620px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(239,225,206,.98); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; opacity: 0; transition: opacity .5s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; height: 100vh; padding: 70px 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.lightbox img { max-height: calc(100vh - 190px); max-width: 100%; object-fit: contain; box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); transform: translateY(20px) scale(.97); transition: transform .7s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { text-align: center; }
.lightbox h3 { font-size: 26px; letter-spacing: -.02em; }
.lightbox figcaption p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.lightbox button { background: none; border: 0; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }
.lb-close { position: absolute; top: 24px; right: var(--pad); }
.lb-nav { font-size: 28px !important; height: 100%; opacity: .5; transition: opacity .3s; }
.lb-nav:hover { opacity: 1; }
@media (max-width: 900px) { .lightbox { grid-template-columns: 44px 1fr 44px; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 60px var(--pad) 32px; overflow: hidden; }
.footer .eyebrow { color: rgba(255,255,255,.5); }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer .pill { border-color: rgba(255,255,255,.5); margin: 0; }
.footer .pill::before { background: #fff; }
.footer .pill:hover { color: var(--ink); }
.footer-mark {
  display: block; text-decoration: none; text-align: center;
  font-size: clamp(120px, 34vw, 560px); line-height: .8; letter-spacing: -.035em; font-weight: 500;
  margin: 8vw 0 4vw;
}
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.footer-bottom a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wordmark .wm-name { display: none; }
  .lang { margin-left: auto; margin-right: 22px; position: relative; z-index: 2; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0;
    font: 500 13px var(--sans); color: var(--ink); cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle i { width: 18px; height: 7px; border-block: 1.5px solid currentColor; transition: transform .4s var(--ease); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(90deg); }
  .topbar nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center;
    padding: 0 var(--pad); gap: 8px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  }
  .topbar nav.is-open { clip-path: inset(0 0 0 0); }
  .topbar nav a { font-size: 44px; letter-spacing: -.04em; font-weight: 400; }
  .topbar nav a::after { display: none; }

  .hero { padding-top: 110px; }
  .hero-top { flex-direction: column; gap: 6px; }
  .hero-art { position: relative; right: auto; top: auto; transform: none; width: 72%; margin: 0 0 56px auto; grid-row: 3; }
  .hero-title { margin: 8vh 0 6vh; }
  .hero-title .indent { padding-left: 8vw; }
  .hero-bottom { grid-row: 4; flex-direction: column; align-items: flex-start; }
  .section-head { grid-template-columns: 1fr; }

  .hscroll-sticky { position: static; height: auto; overflow: visible; display: block; }
  .hscroll-track { width: auto; flex-direction: column; align-items: stretch; gap: 64px; transform: none !important; }
  .work:nth-child(even) { margin-top: 0; padding-left: 18vw; }
  .work-frame.tall, .work-frame.wide, .work-frame.square { height: auto; width: 100%; }
  .work-frame img { left: 0; width: 100%; }
  .hscroll-ui { display: none; }

  .cat-list li { grid-template-columns: 30px 56px 1fr auto; align-items: center; gap: 14px; }
  .cat-list .thumb { display: block; width: 56px; height: 56px; object-fit: contain; object-position: center; }
  .cat-list h3 { font-size: 20px; }
  .cat-list li p:nth-of-type(1) { display: none; }
  .cat-preview { display: none; }

  .manifest-body { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fade, [data-split] .wi, .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .reveal-clip, .art-wrap { clip-path: none !important; }
  .art-img { scale: 1 !important; }
  .manifest-quote .hw { color: var(--ink); }
}
