/* Daria Tekuch: tokens + shared styles (North Form base, dark variant) */
:root {
  --ink: #0b0b0b;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --paper: #efeee9;
  --muted: #a5a59f;
  --accent: #c24f20;
  --acid: #0b0b0b;              /* template's green stripe, now black */
  --line: rgba(239, 238, 233, 0.14);
  --line-strong: rgba(239, 238, 233, 0.32);
  --max: 1720px;
  --pad: clamp(20px, 2.25vw, 38px);
  --radius: 0;
  --font-display: "Space Grotesk", "Onest", system-ui, sans-serif; /* Onest draws the Cyrillic Space Grotesk lacks */
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html.i18n-wait body { visibility: hidden; } /* i18n.js: until EN text is swapped in */
html, body { margin: 0; background: var(--ink); color: var(--paper); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--paper); color: var(--ink); }

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

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(80px, 10vw, 180px); padding-bottom: clamp(80px, 10vw, 180px); }
.section--line { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); }   /* use at most once per page */
.section--ink-2 { background: var(--ink-2); }

/* Type */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.92; }
.h-giant { font-size: clamp(64px, 15vw, 280px); }
.h-xl { font-size: clamp(40px, 6.4vw, 120px); }
.h-lg { font-size: clamp(30px, 3.6vw, 64px); }
.label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Stripe (was the --acid band): black with hairlines so it still reads */
.stripe {
  background: var(--acid);
  color: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  white-space: nowrap;
}
.stripe__track { display: inline-flex; gap: 48px; padding: 14px 0; animation: stripe 40s linear infinite; }
.stripe__track span { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.stripe__track span::after { content: "\2726"; margin-left: 48px; color: var(--muted); }
@keyframes stripe { to { transform: translateX(-50%); } }

/* Pills / buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid var(--line-strong);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pill:hover { border-color: var(--paper); }
.pill--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill--solid:hover { background: transparent; color: var(--paper); }

/* Floating pill nav */
.nav {
  position: fixed; top: 9px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: calc(100% - 2 * 9px); max-width: var(--max);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: rgba(11, 11, 11, 0.62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__logo { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); background: rgba(239, 238, 233, 0.08); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--paper); border-radius: 999px; padding: 9px 16px; font: 500 13px var(--font-display); cursor: pointer; }
.nav__panel { display: none; }
.nav__right { display: flex; align-items: center; gap: 10px; }
/* EN/RU switch (site.js) */
.lang { display: flex; align-items: center; gap: 2px; font: 500 12px var(--font-display); letter-spacing: 0.06em; }
.lang a { padding: 8px 6px; color: var(--muted); transition: color 0.3s var(--ease); }
.lang a:hover, .lang a[aria-current="true"] { color: var(--paper); }
.nav__social { display: flex; gap: 24px; margin-top: 24px; }
.nav__social a { color: var(--muted); }
.nav__panel-foot { display: flex; flex-direction: column; gap: 0; }

@media (max-width: 1100px) {
  .nav__links, .nav .pill--cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed; inset: 0; z-index: 49; padding: 96px var(--pad) var(--pad);
    background: var(--ink); flex-direction: column; justify-content: space-between;
  }
  .nav-open .nav__panel { display: flex; }
  .nav__panel ul { list-style: none; margin: 0; padding: 0; }
  .nav__panel li a {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: clamp(28px, 7vw, 44px); letter-spacing: -0.03em;
  }
  .nav__panel li a[aria-current="page"] { color: var(--muted); }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 140px); padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 48px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { padding: 4px 0; }
.footer__grid a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer__grid a:hover { color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(64px, 8vw, 120px); padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* Reveal start state (site.js animates; no-JS / reduced motion stay visible) */
.js [data-reveal], .js [data-reveal-load], .js [data-reveal-stagger] > * { opacity: 0; transform: translateY(32px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-load], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .stripe__track { animation: none; }
}

/* Word reveal (site.js splits big type): each word rises out of its own mask */
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.1em; margin: -0.06em -0.02em -0.1em; }
.display .wi { display: inline-block; transform-origin: 0 100%; will-change: transform; }

/* Negative type: big type above a painting inverts where it crosses it (North Form effect).
   isolation keeps the blend inside its section; the type must sit above the image. */
.hero, .cine, #studio, #offer { isolation: isolate; }
.hero .h-giant, .cine .h-xl, .statement, .offer .h-xl, .sub-hero__title { mix-blend-mode: difference; color: var(--paper); position: relative; z-index: 2; }

/* Floating painting behind the studio statement (drifts with scroll, site.js [data-float]) */
#studio .wrap { position: relative; }
.float-art { position: absolute; z-index: -1; top: clamp(60px, 8vw, 140px); left: 44%; width: clamp(180px, 22vw, 400px); aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; }
.float-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .float-art { left: auto; right: -8%; width: 52vw; top: 120px; opacity: 0.85; } }
/* Offer heading slides over its painting on wide screens, so the negative shows */
@media (min-width: 1000px) { .offer .h-xl { margin-left: -24% !important; } }

/* ---------- Landing (index.html) ---------- */
/* Hero: full-bleed painting, caption + coordinates, giant wordmark */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.15) 40%, rgba(11,11,11,0.92) 100%); }
.hero__body { position: relative; padding-top: 120px; padding-bottom: var(--pad); width: 100%; }
.hero__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero__meta p { margin: 0; max-width: 34ch; }
.hero .h-giant { margin: 28px 0 0; font-size: clamp(56px, 15.6vw, 280px); line-height: 0.82; white-space: nowrap; }

/* Statement */
.statement { margin: clamp(40px, 6vw, 96px) 0 0; max-width: 18ch; }
.statement__bar { color: var(--muted); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }

/* Selected works: big list cards */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.25vw, 38px); margin-top: clamp(40px, 5vw, 80px); }
.work { display: block; }
.work:nth-child(even) { margin-top: clamp(0px, 10vw, 180px); }
.work__img { overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 5; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); opacity: 0.92; }
.work:hover .work__img img { transform: scale(1.04); opacity: 1; }
.work__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.work__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 34px); letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 0; }

/* Services: numbered rows */
.rows { list-style: none; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: baseline; padding: clamp(22px, 2.4vw, 40px) 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease), color 0.4s var(--ease); }
.row__name { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.row__arrow { justify-self: end; color: var(--muted); transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.row:hover { padding-left: 16px; }
.row:hover .row__arrow { color: var(--paper); transform: translate(4px, -4px); }

/* Offer block */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: end; margin-top: clamp(40px, 5vw, 80px); }
.offer__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.offer__img img { width: 100%; height: 100%; object-fit: cover; }
.offer__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.offer__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Quote (the one paper section) */
.quote { margin: clamp(40px, 5vw, 80px) 0 0; font-size: clamp(30px, 4.4vw, 84px); line-height: 1.02; max-width: 22ch; }
.quote-by { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.quote-by img { width: 56px; height: 70px; object-fit: cover; }
.section--paper .label, .section--paper .muted { color: #6c6c66; }
.section--paper .label-row { border-color: rgba(11, 11, 11, 0.16); }

/* Archive table */
.arch { list-style: none; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.arch__row { display: grid; grid-template-columns: 80px minmax(0, 2fr) minmax(0, 1.2fr) 100px; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background 0.3s var(--ease); }
.arch__row:hover { background: rgba(239, 238, 233, 0.04); }
.arch__row > span:nth-child(2) { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.arch__row > span:last-child { text-align: right; }
.arch__head { color: var(--muted); }
.arch__head > span { font-family: var(--font-display) !important; font-size: 12px !important; letter-spacing: 0.08em !important; text-transform: uppercase; }

/* Gateway cards strip (scroll-driven horizontal drift; scrollable without JS) */
.cards { overflow-x: auto; margin-top: clamp(40px, 5vw, 80px); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.js .cards { overflow: hidden; }
.cards__track { display: flex; gap: 16px; width: max-content; padding: 0 var(--pad); }
.card { width: clamp(220px, 22vw, 360px); flex: none; margin: 0; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-2); }
.card figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }

/* Cinematic CTA */
.cine { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.cine__media { position: absolute; inset: 0; }
.cine__media img { width: 100%; height: 120%; object-fit: cover; }
.cine__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,0.9) 0%, rgba(11,11,11,0.2) 45%, rgba(11,11,11,0.9) 100%); }
.cine__body { position: relative; width: 100%; padding-bottom: clamp(48px, 6vw, 96px); }
.cine__body .h-xl { margin: 0 0 40px; max-width: 12ch; }

/* FAQ */
.faq { margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 32px); letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 28px; max-width: 60ch; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 96px); }

@media (max-width: 760px) {
  .works { grid-template-columns: 1fr; }
  .work:nth-child(even) { margin-top: 0; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .row__desc { display: none; }
  .offer, .split { grid-template-columns: 1fr; }
  .arch__row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; }
  .arch__row > span:nth-child(3) { grid-column: 2; font-size: 14px; }
  .arch__row > span:nth-child(4) { display: none; }
  .arch__head > span:nth-child(3) { display: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero .h-giant { font-size: 25vw; white-space: normal; }
  .hero .h-giant span { display: block; }
}

/* ---------- Service subpages (channeling.html; T6 pages copy the same markup) ---------- */
/* Order: .sub-hero → .sub-intro → .steps → .price → .related → .sub-cta. Every page sets its own "0X / Service" label. */
.sub-hero { padding-top: clamp(120px, 12vw, 200px); padding-bottom: clamp(48px, 6vw, 96px); }
.sub-hero__title { margin: clamp(40px, 5vw, 80px) 0 0; max-width: 14ch; }
.sub-hero__lead { margin: clamp(28px, 3vw, 48px) 0 0; max-width: 40ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; color: var(--muted); }
.sub-hero__media { margin-top: clamp(48px, 6vw, 96px); overflow: hidden; aspect-ratio: 21 / 9; background: var(--ink-2); }
.sub-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

/* Intro: label left, text right (uses .split) */
.sub-intro__text { margin: 0; max-width: 56ch; font-size: clamp(16px, 1.2vw, 19px); color: var(--muted); }
.sub-intro__text + .sub-intro__text { margin-top: 1.2em; }
.sub-intro__quote { margin: 0 0 clamp(28px, 3vw, 48px); max-width: 24ch; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.08; }

/* How it works: 3 numbered rows (not links) */
.steps { list-style: none; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: clamp(24px, 2.6vw, 44px) 0; border-bottom: 1px solid var(--line); }
.step__name { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 52px); letter-spacing: -0.04em; line-height: 1; }
.step__desc { margin: 0; max-width: 46ch; color: var(--muted); }

/* Price card: text left, bordered card right */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 80px); }
.price__card { border: 1px solid var(--line-strong); padding: clamp(24px, 2.6vw, 44px); background: var(--ink-2); }
.price__amount { margin: 16px 0 0; font-size: clamp(48px, 6vw, 104px); }
.price__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.price__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price__card .pill { margin-top: 32px; }

/* Related works strip: 4 works, reuses .work__img / .work__meta / .work__title */
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); margin-top: clamp(40px, 5vw, 80px); }
.related a { display: block; }
.related a:hover .work__img img { transform: scale(1.04); opacity: 1; }
.related .work__title { font-size: clamp(17px, 1.5vw, 26px); }

/* Closing CTA → sessions.html */
.sub-cta .h-xl { margin: clamp(40px, 5vw, 80px) 0 40px; max-width: 14ch; }

@media (max-width: 760px) {
  .sub-hero__media { aspect-ratio: 4 / 5; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; }
  .step__desc { grid-column: 2; }
  .price { grid-template-columns: 1fr; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* T6: quote source line under .sub-intro__quote; Gateway cards as a grid (practices.html) */
.sub-intro__src { display: block; margin: calc(-1 * clamp(16px, 2vw, 32px)) 0 clamp(28px, 3vw, 48px); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); margin-top: clamp(40px, 5vw, 80px); }
.card-grid .card { width: auto; }
@media (max-width: 760px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Russian copy runs longer: the offer heading steps down to fit its half column */
html[lang="ru"] .offer .h-xl { font-size: clamp(36px, 5vw, 96px); hyphens: auto; -webkit-hyphens: auto; }
