/* Julia Nikel portfolio. Palette «Графит → Полночь» (prototype data-palette="gm"); light inserts «как у Инары».
   Typography «как EXRCST» (chosen by the author from her references instead of Prata from the brief):
   large Latin lines in Melodrama (free stand-in for Holise by Blaze Type) — narrow, high-contrast, capitals, tight;
   Russian headings, menu and text in Inter Tight. The English version sets its headings in Melodrama. */
:root {
  --bg: #17191D;
  --fg: #EEEAE2;
  --muted: #9EA4AE;
  --accent: #8FA6CC;
  --line: #2A3140;
  --on-accent: #F4F1EA;
  --glare: rgba(205,220,255,.12);
  --hl: #8FA6CC;
  --page-bg: linear-gradient(180deg, #1C1D1F 0%, #1B1D22 22%, #182030 55%, #111C30 80%, #0D1729 100%);
  --bar: rgba(26,28,33,.72);
  --btn-bg: linear-gradient(120deg, #5A7CC6 0%, #2D4A8C 100%);
  --btn-radius: 999px;
  --flow-1: #0C0D10;
  --flow-2: #0F1F44;
  --flow-3: #6F93D6;

  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-latin: "Melodrama", "Didot", "Bodoni 72", Georgia, serif;   /* large Latin display only */
  --f-display: var(--f-body);                                  /* Russian headings: plain grotesk */
  --f-cond: var(--f-body);
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);

  --gap: clamp(16px, 2.4vw, 32px);
  --section: clamp(104px, 12vw, 176px);
  --max: 1320px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

/* Light insert: #F2F0EB / #141B2B / #2D4A8C */
.light {
  --bg: #F2F0EB;
  --fg: #141B2B;
  --muted: #586172;
  --accent: #2D4A8C;
  --line: #DAD6CD;
  --hl: #2D4A8C;
  --glare: rgba(255,255,255,.2);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}
/* Rose-gold insert for the cosmetics case (pink-gold palette argues with blue) */
.light.rose {
  --bg: #F5EDE8;
  --accent: #9A5A48;
  --hl: #9A5A48;
  --line: #E6D6CE;
  --btn-bg: linear-gradient(120deg, #C99582 0%, #8C4F3E 100%);
  background: linear-gradient(180deg, #F6EFEA 0%, #F1E3DC 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.nat { height: auto !important; }
.entered .curtain { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
html { overflow-x: clip; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--page-bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
main { overflow-x: clip; display: block; }
.wrap {
  max-width: calc(var(--max) + 64px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
a { color: inherit; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.hl { color: var(--hl); }
/* Russian headings: Inter Tight capitals, tight tracking and leading (EXRCST's Russian lines) */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: .94; margin: 0; text-wrap: balance; letter-spacing: -.025em; text-transform: uppercase; }
.menu a, .pkg .price, .pkg .old, .case-card .num, .case-hero .num, .pin-words li, .pager a span:last-child, .levels td.p, .quote, .consent p {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.03em;
}
.menu a, .pin-words li, .pager a span:last-child, .consent p { text-transform: uppercase; }
/* Small titles: grotesk capitals */
.cap h3, .fig figcaption b, .acc summary, .pkg :is(h3, h4), .benefits :is(h3, h4), .levels th, .roles, .eyebrow {
  font-family: var(--f-cond); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.15;
}
/* Holise: large Latin lines. Natural proportions, capitals, tight letters and lines */
.latin, .hero2-name, .curtain .c-mono {
  /* Melodrama runs lighter than Holise: one step heavier keeps the reference contrast */
  font-family: var(--f-latin); font-weight: 500; text-transform: uppercase; letter-spacing: -.012em; line-height: .82; font-synthesis: none;
}
/* English version: Latin headings are set in Holise too */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .pin-words li, html[lang="en"] .pager a span:last-child, html[lang="en"] .case-card .num, html[lang="en"] .case-hero .num {
  font-family: var(--f-latin); font-weight: 500; letter-spacing: -.012em; line-height: .86;
}
html[lang="en"] .cap h3 { font-family: var(--f-cond); letter-spacing: -.005em; line-height: 1.15; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding-block: 16px; }
.mark { font-family: var(--f-body); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; padding-block: 4px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a.on { color: var(--fg); border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; font-family: var(--f-mono); font-size: var(--step--1); }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 6px; border-radius: 4px; }
.lang a[aria-current="true"] { color: var(--fg); }
.lang a:hover { color: var(--fg); }
.snd { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: inline-grid; place-items: center; transition: border-color .2s; }
.snd:hover { border-color: var(--accent); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.snd[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.snd[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.4s; }
.snd[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.75s; }
.snd[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.burger { display: none; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .875rem; }
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-block; }
}
/* narrow phones (≤380px): the name, languages, sound and «Меню» share one line */
@media (max-width: 380px) {
  .top .wrap { gap: 10px; }
  .mark { letter-spacing: .2em; font-size: .8125rem; }
  .tools { gap: 8px; }
  .burger { padding: 8px 12px; }
}
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(13,17,26,.97); display: grid; align-content: center; justify-items: start; gap: 8px; padding: 32px max(24px, env(safe-area-inset-left)); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu.open { opacity: 1; visibility: visible; }
.menu a { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); text-decoration: none; color: #EEEAE2; }
.menu .close { position: absolute; top: 18px; right: 18px; }

/* ---------- Curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: auto; }
.curtain .half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #111317; transition: transform 1.6s cubic-bezier(.7,0,.2,1); }
.curtain .half.l { left: 0; background: linear-gradient(90deg, #0E1013, #15181D); }
.curtain .half.r { right: 0; background: linear-gradient(270deg, #0E1013, #15181D); }
.curtain .half::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(143,166,204,.25); }
.curtain .half.l::after { right: 0; }
.curtain .half.r::after { left: 0; }
.curtain .c-in { position: relative; display: grid; justify-items: center; gap: 36px; text-align: center; transition: opacity .6s; color: #EEEAE2; padding: 24px; }
.curtain .c-mark { font-family: var(--f-body); font-weight: 500; letter-spacing: .38em; text-transform: uppercase; font-size: clamp(1rem, .8rem + 1vw, 1.4rem); }
.curtain .c-sub { color: #9EA4AE; }
.curtain.open { pointer-events: none; }
.curtain.open .half.l { transform: translateX(-101%); }
.curtain.open .half.r { transform: translateX(101%); }
.curtain.open .c-in { opacity: 0; }
.curtain.gone { display: none; }

/* ---------- Custom cursor ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.has-cursor .cur { display: block; }
.cur-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--fg); mix-blend-mode: difference; }
.cur-ring { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(238,234,226,.55); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s; }
.cur-ring span { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: #F4F1EA; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cur.big .cur-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(23,25,29,.42); border-color: rgba(238,234,226,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cur.big .cur-ring span { opacity: 1; }
.cur.big .cur-dot { opacity: 0; }
.cur.hide { opacity: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--btn-bg); color: var(--on-accent); border: 0; border-radius: var(--btn-radius); padding: 15px 26px; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: opacity .2s, transform .2s; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.985); }
.btn-line { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: var(--fg); background: none; border-radius: 999px; padding: 14px 24px; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.btn-line:hover { border-color: var(--accent); }
.link { color: var(--fg); text-decoration: none; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 0 0 2px; font-size: .9375rem; cursor: pointer; transition: border-color .2s; }
.link:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px var(--gap); flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2 { font-size: var(--step-3); }
.sec-head .sub { color: var(--muted); font-size: var(--step-1); font-weight: 300; max-width: 36ch; margin: 0; }
.sec-head .kick { color: var(--hl); display: block; margin-bottom: 14px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px var(--gap); flex-wrap: wrap; margin: clamp(72px, 9vw, 128px) 0 clamp(24px, 3vw, 40px); }
.sub-head h3, .sub-head h2 { font-size: var(--step-2); }
.sub-head p { margin: 0; color: var(--muted); max-width: 44ch; }
.band { padding-block: clamp(72px, 9vw, 136px); margin-top: var(--section); }
.band .sub-head:first-child { margin-top: 0; }
.end-cta { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 96px) 0; min-height: min(88vh, 900px); }
.roles { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 26px; color: var(--hl); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); margin-bottom: 32px; }
.lead { font-size: var(--step-1); line-height: 1.55; max-width: 38ch; margin: 0 0 32px; font-weight: 300; color: var(--muted); }
.lead b { color: var(--fg); font-weight: 400; }
.hero-media { justify-self: end; width: min(100%, 520px); }
.frame { position: relative; padding: clamp(8px, .9vw, 12px); background: #E9E5DC; }
.frame .vid { position: relative; aspect-ratio: 828 / 1108; overflow: hidden; background: #0f1115; }
.frame .selfie { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.frame .selfie.show { opacity: 1; }
.hero-cap { display: inline-block; margin-top: 14px; color: var(--muted); background: none; border: 0; padding: 0; cursor: help; text-align: left; }
.hero-cap:hover, .hero-cap:focus-visible { color: var(--fg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { justify-self: start; width: min(100%, 440px); }
}

/* Letters fly in */
/* Type motion: letters (Latin) or words (Russian) rise out of a hairline mask; the letters also close up from a wider set.
   The mask is each word's own box, so nothing outside the line moves. Text stays visible without JS. */
.rise { --st: 46ms; --d0: 0ms; --spread: 0em; }
.rise .w { display: inline-block; white-space: nowrap; clip-path: inset(-.3em -.2em -.06em -.2em); }
.rise .ch { display: inline-block; transform: translate3d(calc(var(--c, 0) * var(--spread)), 112%, 0); opacity: 0;
  transition: transform 1.35s cubic-bezier(.16,1,.3,1), opacity .9s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * var(--st) + var(--d0)); }
.rise.in .ch { transform: none; opacity: 1; }
.rise[data-split="ch"] { --spread: .1em; }
.rise[data-split="w"] { --st: 60ms; --d0: 120ms; }
.rise[data-split="w"] .w { white-space: normal; max-width: 100%; overflow-wrap: break-word; }
.sec-head .rise[data-split="w"] { --d0: 320ms; }
.rv:has(.rise), .rv.rise { transform: none; }
.latin { translate: var(--dx, 0) 0; }

/* ---------- Interludes (shader) ---------- */
.inter { position: relative; margin-top: var(--section); min-height: clamp(460px, 76vh, 800px); display: grid; align-items: center; overflow: hidden; color: #F2F0EA; isolation: isolate; }
.inter canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.inter .wrap { position: relative; width: 100%; padding-block: clamp(80px, 10vw, 140px); }
.inter-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.inter-grid.solo { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.inter .kick { color: #A9C0EE; display: inline-flex; align-items: center; gap: 14px; letter-spacing: .18em; margin-bottom: 22px; }
.inter .kick::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.inter-grid.solo .kick::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.inter h2 { font-size: clamp(2.1rem, 1rem + 3.4vw, 4.4rem); line-height: 1.1; max-width: 17ch; }
.inter-grid.solo h2 { max-width: 20ch; }
.inter-works { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.inter-works .work:nth-child(2) { transform: translateY(-14%); }
.inter-works.one { grid-template-columns: minmax(0, 340px); justify-content: end; }
.inter .cap h3 { color: #F2F0EA; }
.inter .cap p, .inter .cap .mono { color: rgba(242,240,234,.65); }
.inter .tilt-inner { background: rgba(255,255,255,.04); }
@media (max-width: 760px) { .inter-grid { grid-template-columns: 1fr; } .inter-works .work:nth-child(2) { transform: none; } .inter-works.one { justify-content: start; grid-template-columns: minmax(0, 260px); } }

/* Text fills left→right while scrolling (--muted → --fg) */
.fill { --p: 0%; color: transparent; background: linear-gradient(90deg, var(--fill-to, #F2F0EA) var(--p), var(--fill-from, rgba(242,240,234,.32)) calc(var(--p) + 8%)); -webkit-background-clip: text; background-clip: text; }
.fill.on-page { --fill-to: var(--fg); --fill-from: var(--muted); }

/* ---------- Work card + soft tilt ---------- */
.work { margin: 0; display: grid; gap: 14px; align-content: start; }
.tilt { display: block; width: 100%; padding: 0; border: 0; background: none; perspective: 1000px; cursor: pointer; text-align: left; text-decoration: none; color: inherit; }
.tilt-inner { position: relative; display: block; overflow: hidden; transform-style: preserve-3d; background: var(--line); }
.tilt-inner.is-live { will-change: transform; }
picture { display: contents; }
.tilt-inner img, .tilt-inner > video { position: absolute; inset: 0; }
.r34 { aspect-ratio: 3 / 4; }
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1; }
.r169 { aspect-ratio: 16 / 9; }
.r32 { aspect-ratio: 3 / 2; }
.r916 { aspect-ratio: 9 / 16; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), var(--glare), transparent 55%); mix-blend-mode: screen; z-index: 2; }
.badge { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 9px; border-radius: 999px; background: rgba(10,12,16,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F3EEE6; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.cap > div { min-width: 0; }
.cap h3 { font-size: var(--step-1); line-height: 1.2; }
.cap p { margin: 3px 0 0; color: var(--muted); font-size: .9375rem; }
.cap .mono { color: var(--muted); white-space: nowrap; }
.note { font-size: .8125rem; color: var(--muted); }
.concept { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: .9375rem; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.tabs button:hover { color: var(--fg); border-color: var(--accent); }
.tabs button[aria-selected="true"] { color: var(--on-accent); background: var(--btn-bg); border-color: transparent; }
@media (max-width: 760px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .tabs button { flex: none; } }
.panel[hidden] { display: none; }
.panel { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Series cover grid */
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) var(--gap); }
.covers .work:nth-child(3n+2) { margin-top: clamp(0px, 5vw, 80px); }
@media (max-width: 960px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .covers .work:nth-child(3n+2) { margin-top: 0; } .covers .work:nth-child(2n) { margin-top: clamp(0px, 6vw, 56px); } }
@media (max-width: 520px) { .covers { grid-template-columns: 1fr; } .covers .work:nth-child(2n) { margin-top: 0; } }

/* Consent plate (boudoir) */
.consent { border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); display: grid; justify-items: start; gap: 22px; max-width: 640px; }
.consent p { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.2; margin: 0; }

/* Wedding teaser */
.wed-teaser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); align-items: center; }
.wed-teaser .work { max-width: 560px; }
.wed-teaser h3 { font-size: var(--step-3); margin: 10px 0 18px; }
@media (max-width: 860px) { .wed-teaser { grid-template-columns: 1fr; } }

/* Horizontal ribbon */
.ribbon { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 300px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ribbon > * { scroll-snap-align: start; }
.ribbon .vbox { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--line); }
.ribbon-wide { grid-auto-columns: clamp(260px, 40vw, 520px); }

/* ---------- Prices / packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.pkg { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; position: relative; }
.pkg :is(h3, h4) { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 0; }
.pkg .time { color: var(--muted); }
.pkg .price { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; white-space: nowrap; }
.pkg .old { color: var(--muted); text-decoration: line-through; font-size: var(--step-1); font-family: var(--f-display); }
.pkg ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pkg li { display: flex; justify-content: space-between; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pkg li span:first-child { color: var(--muted); }
.pkg li.plain { display: block; color: var(--fg); }
.pkg.feat { border: 1px solid #5A7CC6; background: linear-gradient(180deg, rgba(90,124,198,.10), transparent 60%); padding-block: clamp(36px, 4vw, 60px); margin-block: -20px; }
.pkg .tag { position: absolute; top: -13px; left: clamp(24px, 3vw, 40px); background: var(--btn-bg); color: var(--on-accent); border-radius: 999px; padding: 5px 12px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.pkg .gift { color: var(--hl); }
@media (max-width: 900px) {
  .pkgs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 16px 18px; margin-inline: -16px; scrollbar-width: none; }
  .pkg { scroll-snap-align: center; }
  .pkg.feat { order: -1; margin-block: 0; }
}
.small { font-size: .875rem; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); }
.info { border-top: 1px solid var(--line); padding-top: 20px; }
.info :is(h3, h4) { font-family: var(--f-mono); font-weight: 400; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--hl); margin: 0 0 14px; line-height: inherit; }
.info ul { margin: 0; padding-left: 1.1em; }
.info li { margin-bottom: 8px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.genres span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .875rem; color: var(--muted); }

.cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.cert h3 { font-size: var(--step-2); margin-bottom: 18px; }
.cert .price-big { font-family: var(--f-display); font-size: var(--step-1); margin: 22px 0 26px; }
@media (max-width: 760px) { .cert { grid-template-columns: 1fr; } }

.price-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 24px; margin-top: clamp(56px, 7vw, 96px); }
.price-line p { margin: 0; flex: 1 1 420px; min-width: 0; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.45; }
.price-line p span { white-space: nowrap; }
@media (max-width: 760px) { .price-line p span { white-space: normal; } }
.price-line p i { font-style: normal; color: var(--muted); padding-inline: 6px; }

.levels { width: 100%; border-collapse: collapse; margin-top: 8px; }
.levels th, .levels td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.levels th { font-family: var(--f-display); font-size: var(--step-1); white-space: nowrap; }
.levels td.p { font-family: var(--f-display); white-space: nowrap; }
.levels td.d { color: var(--muted); }
@media (max-width: 640px) { .levels tr { display: grid; grid-template-columns: 1fr auto; } .levels td.d { grid-column: 1 / -1; padding-top: 0; } }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; cursor: pointer; font-family: var(--f-display); font-size: var(--step-1); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 1.5rem; color: var(--muted); transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------- Before / after ---------- */
.ba { position: relative; overflow: hidden; background: var(--line); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img, .ba canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba .after { z-index: 1; }
.ba-tag { position: absolute; z-index: 4; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10,12,16,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F3EEE6; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; transition: opacity .3s; }
.ba-tag.b { left: 12px; }
.ba-tag.a { right: 12px; }
.ba-hint { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(10,12,16,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F3EEE6; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; white-space: nowrap; transition: opacity .4s; }
.ba.used .ba-hint { opacity: 0; }
/* slider */
.ba[data-mode="slider"] { cursor: ew-resize; }
.ba[data-mode="slider"] .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x, 50%); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: rgba(244,241,234,.85); }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,12,16,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(244,241,234,.6); color: #F4F1EA; font-size: .9rem; letter-spacing: .1em; }
.ba[data-mode="slider"]:focus-visible { outline-offset: 2px; }
/* curtain: opens by itself with scroll */
.ba[data-mode="curtain"] .after { clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0); }
.ba[data-mode="curtain"] .ba-handle { left: var(--x, 0%); }
.ba[data-mode="curtain"] .ba-handle::after { display: none; }
/* crossfade & hold: after on top, fades out to reveal before */
.ba[data-mode="crossfade"] .after, .ba[data-mode="hold"] .after { transition: opacity .9s var(--ease); }
.ba[data-mode="crossfade"].show-b .after, .ba[data-mode="hold"].show-b .after { opacity: 0; }
.ba[data-mode="crossfade"] .ba-tag, .ba[data-mode="hold"] .ba-tag { transition: opacity .5s; }
.ba[data-mode="crossfade"] .ba-tag.b, .ba[data-mode="hold"] .ba-tag.b { opacity: 0; }
.ba[data-mode="crossfade"].show-b .ba-tag.b, .ba[data-mode="hold"].show-b .ba-tag.b { opacity: 1; }
.ba[data-mode="crossfade"].show-b .ba-tag.a, .ba[data-mode="hold"].show-b .ba-tag.a { opacity: 0; }
.ba[data-mode="crossfade"] { cursor: pointer; }
.ba[data-mode="hold"] { cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; }
/* loupe */
.ba[data-mode="loupe"] { cursor: none; touch-action: none; }
.ba-loupe { position: absolute; z-index: 3; left: 0; top: 0; width: var(--ls, 200px); height: var(--ls, 200px); margin: calc(var(--ls, 200px) / -2) 0 0 calc(var(--ls, 200px) / -2); border-radius: 50%; border: 1px solid rgba(244,241,234,.85); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease); }
.ba.lens .ba-loupe { opacity: 1; transform: none; }
.ba[data-mode="loupe"] .ba-tag.b { opacity: 0; }
.ba[data-mode="loupe"].lens .ba-tag.b { opacity: 1; }
/* brush */
.ba[data-mode="brush"] { cursor: crosshair; touch-action: none; }
.ba[data-mode="brush"] canvas { z-index: 1; }
.ba-reset { position: absolute; z-index: 5; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(10,12,16,.58); color: #F3EEE6; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

.ba-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.ba-feature h3 { font-size: var(--step-2); margin: 12px 0 16px; }
@media (max-width: 860px) { .ba-feature { grid-template-columns: 1fr; } }
.pairs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.pairs > * { grid-column: span 4; }
.pairs > .w6 { grid-column: span 6; }
.pairs > .w7 { grid-column: span 7; }
.pairs > .w5 { grid-column: span 5; }
.pairs > .w8 { grid-column: span 8; }
.pairs > .w12 { grid-column: 1 / -1; }
.pairs > .drop { margin-top: clamp(0px, 6vw, 96px); }
@media (max-width: 860px) { .pairs { grid-template-columns: 1fr 1fr; } .pairs > *, .pairs > .w5, .pairs > .w6, .pairs > .w7, .pairs > .w8 { grid-column: span 1; } .pairs > .w12, .pairs > .wide-s { grid-column: 1 / -1; } .pairs > .drop { margin-top: 0; } }
@media (max-width: 520px) { .pairs { grid-template-columns: 1fr; } .pairs > * { grid-column: 1 / -1 !important; } }
.fig { margin: 0; display: grid; gap: 12px; align-content: start; }
.fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.fig figcaption b { font-weight: 400; font-family: var(--f-display); font-size: var(--step-1); }
.fig figcaption .mono { white-space: nowrap; }

/* Product grid */
.prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gap); }
@media (max-width: 960px) { .prod { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .prod { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prod .cap h3 { font-size: 1.0625rem; }

/* Videos */
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.vids .vbox { position: relative; overflow: hidden; background: var(--line); }
@media (max-width: 760px) { .vids { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; } .vids > * { scroll-snap-align: start; } }
.wide-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }

/* ---------- Case list ---------- */
.cases { display: grid; gap: clamp(56px, 7vw, 112px); }
.case-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 72px); align-items: center; text-decoration: none; color: inherit; }
.case-card:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.case-card:nth-child(even) .case-text { order: 2; }
.case-card .num { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); color: var(--hl); line-height: 1; opacity: .7; }
.case-card h3 { font-size: var(--step-2); margin: 14px 0 12px; }
.case-card p { color: var(--muted); margin: 0 0 18px; max-width: 40ch; }
.case-card .tilt { max-width: 460px; justify-self: center; }
.case-card .more { font-size: .9375rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.case-card:hover .more { border-color: var(--accent); }
@media (max-width: 760px) { .case-card, .case-card:nth-child(even) { grid-template-columns: 1fr; } .case-card:nth-child(even) .case-text { order: 0; } .case-card .case-text { order: 2 !important; } }

/* Lists of steps (AI) */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 12px; display: inline-flex; gap: 10px; align-items: center; font-size: .9375rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .75rem; color: var(--hl); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: rgba(143,166,204,.08); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .9375rem; }

/* ---------- Pinned «Снимаю → Довожу → Создаю → Оживляю» ---------- */
.pin { position: relative; height: 420vh; }
.pin-in { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: center; padding-block: 80px 32px; }
.pin-stage { position: relative; height: min(76vh, 760px); aspect-ratio: 1; justify-self: end; max-width: 100%; overflow: hidden; background: #0b0e14; }
/* whole frames, no crop: the stage is square, each state fits inside on its own background */
.pin-stage > * { position: absolute; inset: 0; opacity: 0; object-fit: contain; background: #0b0e14; transition: opacity 1s var(--ease), transform 1.4s var(--ease); transform: scale(1.03); }
.pin-stage > .light-bg { background: #fff; }
.pin-stage > .on { opacity: 1; transform: none; }
.pin-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pin-words li { font-family: var(--f-display); font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.6rem); line-height: 1.12; color: var(--muted); opacity: .35; transition: opacity .6s, color .6s, transform .6s var(--ease); transform-origin: left center; }
.pin-words li.on { opacity: 1; color: var(--fg); transform: translateX(10px); }
.pin-words li.done { opacity: .6; }
.pin-desc { min-height: 3.2em; margin-top: 26px; color: var(--muted); max-width: 36ch; }
.pin-bar { height: 1px; background: var(--line); margin-top: 26px; position: relative; max-width: 360px; }
.pin-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: var(--pp, 0%); }
@media (max-width: 760px) {
  .pin { height: 380vh; }
  .pin-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 76px; gap: 18px; }
  .pin-stage { justify-self: center; height: 56vh; order: 2; }
  .pin-words { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .pin-words li { font-size: 1.15rem; }
  .pin-words li.on { transform: none; }
  .pin-desc { margin-top: 10px; min-height: 0; font-size: .9375rem; }
  .pin-bar { display: none; }
}

/* 3D grid with hover-play videos */
.grid3d { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.grid3d .work:nth-child(4n+2) { margin-top: clamp(0px, 4vw, 64px); }
.grid3d .work:nth-child(4n+4) { margin-top: clamp(0px, 3vw, 40px); }
@media (max-width: 960px) { .grid3d { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3d .work { margin-top: 0 !important; } }
.vposter { position: absolute; inset: 0; z-index: 1; transition: opacity .6s; }
.playing .vposter { opacity: 0; }

/* ---------- Pages: series / case ---------- */
.page-head { padding-top: clamp(36px, 5vw, 72px); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 16px var(--gap); flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 56px); }
.page-title h1 { font-size: var(--step-3); }
.page-title p { margin: 12px 0 0; color: var(--muted); font-size: var(--step-1); font-weight: 300; max-width: 44ch; }
.lead-frame { margin: 0 auto; }
.lead-frame img { height: auto; }
.lead-frame.portrait { max-width: min(100%, 72vh); }
.gallery { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: var(--gap); }
.g-cols { columns: 2; column-gap: var(--gap); }
.g-cols > * { break-inside: avoid; margin-bottom: var(--gap); }
@media (min-width: 1100px) { .g-cols.c3 { columns: 3; } }
@media (max-width: 520px) { .g-cols { columns: 1; } }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; position: relative; }
.shot img { height: auto; }
.shot.full img { width: 100%; }
.more-row { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); border-top: 1px solid var(--line); margin-top: var(--section); padding-top: 28px; }
.pager a { text-decoration: none; display: grid; gap: 6px; }
.pager a:last-child { text-align: right; }
.pager a span:last-child { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.1; }
.pager a:hover span:last-child { color: var(--hl); }
@media (max-width: 760px) { .pager { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } .pager a span:last-child { overflow-wrap: break-word; } }
.page-cta { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: var(--section) 0; }
.page-cta h2 { font-size: var(--step-2); max-width: 22ch; }

/* Stardust: halves glide into one */

/* Wedding */
.wed-hero img { height: auto; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.benefits div { border-top: 1px solid var(--line); padding-top: 22px; }
.benefits :is(h3, h4) { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); margin: 0 0 10px; }
.benefits p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }
.tl-wrap { position: relative; max-width: 720px; }
.tl-wrap::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-line { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: clamp(24px, 3vw, 40px); }
.timeline li { position: relative; font-size: var(--step-1); font-weight: 300; }
.timeline li::before { content: attr(data-n); position: absolute; left: -44px; top: .15em; width: 23px; height: 23px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .6875rem; display: grid; place-items: center; color: var(--muted); transition: border-color .4s, color .4s; }
.timeline li.lit::before { border-color: var(--accent); color: var(--fg); }

/* Case pages */
.stage { padding-top: clamp(80px, 10vw, 152px); }
.stage-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px clamp(20px, 3vw, 40px); align-items: baseline; margin-bottom: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); padding-top: 20px; }
.stage-head .n { font-family: var(--f-mono); color: var(--hl); font-size: var(--step--1); letter-spacing: .08em; }
.stage-head h2 { font-size: var(--step-2); }
.stage-head p { grid-column: 2; margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.band .stage { padding-top: 0; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; }
.task dt { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.task dd { margin: 0; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.4; }
.task > div { display: grid; gap: 8px; }
@media (max-width: 760px) { .task { grid-template-columns: 1fr; } }
.quote { font-family: var(--f-display); font-size: clamp(1.8rem, 1rem + 2.8vw, 3.6rem); line-height: 1.2; max-width: 22ch; margin: clamp(48px, 6vw, 88px) 0; }
.quote::before { content: "«"; color: var(--hl); }
.quote::after { content: "»"; color: var(--hl); }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini { opacity: .92; }
.mini .cap-s { margin-top: 8px; }
.zoom { position: relative; overflow: hidden; cursor: zoom-in; }
.zoom img { transition: transform .8s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); height: auto; }
.zoom.on img { transform: scale(1.9); }
.dna { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.dna dl { margin: 0; border-top: 1px solid var(--line); }
.dna dl div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.dna dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hl); margin-bottom: 6px; }
.dna dd { margin: 0; }
@media (max-width: 860px) { .dna { grid-template-columns: 1fr; } }
.converge { columns: 2; column-gap: var(--gap); }
.converge > * { break-inside: avoid; margin-bottom: var(--gap); transform: translate(calc(var(--cx, 0) * var(--k, 0) * 1px), calc(var(--cy, 0) * var(--k, 0) * 1px)) rotate(calc(var(--cr, 0) * var(--k, 0) * 1deg)); }
@media (max-width: 600px) { .converge { columns: 1; } }

/* Extra layout pieces */
.w3 { grid-column: span 3; }
.pairs > .w3 { grid-column: span 3; }
.sub-head.flush { margin-top: 0; }
.page-light { padding-bottom: var(--section); }
.ai-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.ai-top h3 { font-size: var(--step-3); margin: 14px 0 16px; }
.ai-top .vbox { background: var(--line); }
@media (max-width: 760px) { .ai-top { grid-template-columns: 1fr; } .ai-top .fig { max-width: 300px; } }
.case-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 96px); align-items: end; padding-bottom: 8px; }
.case-hero .num { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); color: var(--hl); line-height: 1; opacity: .7; display: block; margin-bottom: 10px; }
.case-hero h1 { font-size: var(--step-3); }
/* phones: one long word («Нейрофотосессия») must fit the line */
@media (max-width: 520px) { .case-hero h1, .page-title h1 { font-size: min(var(--step-3), 9.2vw); } }
.case-hero .work { max-width: 480px; justify-self: end; width: 100%; }
.case-task { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.case-task p { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.4; margin: 8px 0 0; max-width: 40ch; }
@media (max-width: 860px) { .case-hero { grid-template-columns: 1fr; } .case-hero .work { justify-self: start; } }
.ba[data-mode="brush"] .after { visibility: hidden; }
.vbox { position: relative; overflow: hidden; }
.vbox video { position: absolute; inset: 0; }
.wide-video video { position: absolute; inset: 0; }
.shot { overflow: hidden; }
.shot img { transition: transform 1.2s var(--ease), opacity .4s; }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.015); } }
.lb-count { opacity: .7; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-block: clamp(40px, 5vw, 72px) 0; }
.trio > * { transition: opacity .7s var(--ease), transform .9s var(--ease); }
@media (hover: hover) and (pointer: fine) { .trio:hover > * { opacity: .4; } .trio > *:hover { opacity: 1; transform: translateY(-10px); } }
@media (max-width: 600px) { .trio { grid-template-columns: 1fr 1fr; } }
.chapter { padding-top: clamp(64px, 8vw, 120px); }
.chapter h3 { font-size: var(--step-2); margin-bottom: 8px; }
.chapter > p { color: var(--muted); margin-bottom: clamp(24px, 3vw, 40px); }
.lune-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: var(--gap); align-items: end; }
.packshots { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.packshots img { aspect-ratio: 3 / 4; height: auto; object-fit: contain; background: #fff; }

/* ---------- About & contacts ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about h3 { font-size: var(--step-3); margin-bottom: 24px; }
.about p { max-width: 60ch; }
.about p b { font-weight: 500; }
.about .first { font-size: var(--step-1); font-weight: 300; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 460px; } }

.contact { padding-block: var(--section); }
.contact h2 { font-size: var(--step-3); margin-bottom: 32px; max-width: 16ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.contact ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact li span:first-child { color: var(--muted); }
.contact li a { text-decoration: none; }
.contact li a:hover { color: var(--hl); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact li { flex-direction: column; gap: 2px; } }
.icons { display: flex; gap: 10px; margin-top: 24px; }
.icons a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s; }
.icons a:hover { border-color: var(--accent); }
.icons svg { width: 18px; height: 18px; fill: currentColor; }

footer.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
footer.foot .wrap { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 32px; padding-block: 32px 40px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--fg); }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.foot .meta { grid-column: 1 / -1; font-size: .75rem; opacity: .75; margin: 0; }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr; padding-bottom: 110px; } }

/* Mobile fixed Telegram button */
.tg-fixed { position: fixed; z-index: 45; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: none; justify-content: center; transform: translateY(140%); transition: transform .5s var(--ease); }
.tg-fixed .btn { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tg-fixed.show { transform: none; }
@media (max-width: 760px) { .tg-fixed { display: flex; } }

/* ---------- Lightbox / modal ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(8,10,14,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; color: #EEEAE2; }
.lb.open { opacity: 1; visibility: visible; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 16px; }
.lb-x, .lb-nav { border: 1px solid rgba(238,234,226,.25); background: none; color: inherit; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.lb-x:hover, .lb-nav:hover { border-color: #8FA6CC; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 4vw, 72px); min-height: 0; }
.lb-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lb-stage .ba { width: min(100%, calc((100vh - 160px) * var(--ar, 1))); }
.lb-stage iframe { width: min(100%, calc((100vh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; }
.lb-foot { display: flex; justify-content: center; gap: 12px; padding: 14px; }

/* ===================================================================
   Reference layer — what the author liked in her four screen recordings:
   EXRCST (curtain, squeezing first screen, staircase words, collage, photos over text),
   a 3D studio site (full-screen reel + preview strip), macro product film (slow camera).
   =================================================================== */

/* Curtain: live silk on both halves, mirrored, with a stacked monogram */
.curtain .half { overflow: hidden; transition: transform 1.8s cubic-bezier(.76,0,.24,1); }
.curtain .half canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.curtain .half.r canvas { transform: scaleX(-1); }
.curtain .half::after { display: none; }
.curtain .c-in { gap: 20px; z-index: 1; isolation: isolate; }
.curtain .c-in::before { content: ""; position: absolute; inset: -60px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(4,6,11,.6), transparent); }
.curtain .c-mono { display: grid; justify-items: center; font-size: clamp(4.2rem, 2.4rem + 5vw, 7.4rem); line-height: .8; color: #F4F1EA; margin-bottom: 6px; }
.curtain .c-mono i { width: 1px; height: clamp(36px, 6vh, 64px); background: rgba(244,241,234,.7); margin: 8px 0; }
.curtain .c-mark { font-size: .8125rem; letter-spacing: .5em; }
/* monogram: the hairline draws from the centre, J rises to it and N drops to it; the name closes up its tracking.
   On «Войти» the letters leave the way they came while the silk parts. */
.curtain .c-mono .m { display: block; clip-path: inset(-.2em -.2em -.06em -.2em); }
.curtain .c-mono .m span { display: block; }
.curtain .c-mono .m:first-child span { animation: mono-up 1.5s cubic-bezier(.16,1,.3,1) .55s both; }
.curtain .c-mono .m:last-child span { animation: mono-down 1.5s cubic-bezier(.16,1,.3,1) .65s both; }
.curtain .c-mono i { animation: rule-draw 1.1s cubic-bezier(.65,0,.35,1) .15s both; }
.curtain .c-mark { animation: track-in 2.2s cubic-bezier(.16,1,.3,1) .15s both; } /* early: the name is the first thing painted */
.curtain .c-sub, .curtain [data-enter] { animation: fade-up 1.2s cubic-bezier(.16,1,.3,1) 1.25s both; }
.curtain.open .c-mono .m:first-child span { animation: mono-out-up .8s cubic-bezier(.7,0,.84,0) both; }
.curtain.open .c-mono .m:last-child span { animation: mono-out-down .8s cubic-bezier(.7,0,.84,0) both; }
.curtain.open .c-mono i { animation: rule-out .7s cubic-bezier(.7,0,.84,0) .1s both; }
.curtain.open .c-in { transition: opacity .5s .45s; }
@keyframes mono-up { from { transform: translateY(105%); } }
@keyframes mono-down { from { transform: translateY(-105%); } }
@keyframes mono-out-up { to { transform: translateY(-105%); } }
@keyframes mono-out-down { to { transform: translateY(105%); } }
@keyframes rule-draw { from { transform: scaleY(0); } }
@keyframes rule-out { to { transform: scaleY(0); } }
@keyframes track-in { from { letter-spacing: 1.1em; opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* First screen */
.hero2 { position: relative; height: 250vh; }
.hero2-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #F4F1EA; }
.hero2-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; background: #0B0D11;
  clip-path: inset(calc(var(--p1, 0) * 31%) calc(var(--p1, 0) * 7%) calc(var(--p1, 0) * 31%) calc(var(--p1, 0) * 7%));
  transform: translateY(calc(var(--p1, 0) * -22vh)); }
.hero2-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,16,.45), rgba(10,12,16,.05) 30%, rgba(10,12,16,.12) 50%, rgba(10,12,16,.78)); }
.hm { position: relative; overflow: hidden; }
.hm.l { margin-right: -1px; } /* no hairline seam between the mirrored halves */
.hm video { position: absolute; inset: 0; }
/* faces turn toward each other in the middle (the portrait looks to the left of its frame) */
.hm.l video, .hm.l .selfie { transform: scaleX(-1); }
.hm .selfie { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .5s ease; }
.hm .selfie.show { opacity: 1; }
.hero2-title { position: absolute; inset: 0; display: grid; align-content: end; justify-items: center; text-align: center; gap: 18px; padding: 80px 16px max(96px, 13vh);
  opacity: calc(1 - var(--p1, 0) * 1.7); transform: translateY(calc(var(--p1, 0) * -20vh)); }
.hero2 .roles { color: #DCE5F6; justify-content: center; gap: 6px 24px; margin: 0; font-size: .9375rem; letter-spacing: .16em; }
.hero2-name { margin: .12em 0 0; font-weight: 400; font-size: clamp(4.2rem, 1rem + 15vw, 18rem); line-height: .8; white-space: nowrap; }
/* the name arrives slower than section words, then parts like the mirrored film as the first screen squeezes */
.hero2-name.rise { --st: 70ms; --d0: 450ms; --spread: .16em; }
.hero2-name .w:first-child, .hero2-name .sr + .w { translate: calc(var(--p1, 0) * -10vw) 0; }
.hero2-name .w:last-child { translate: calc(var(--p1, 0) * 10vw) 0; }

/* Section labels: a large Latin word above the Russian heading (EXRCST: «EXRCST», «FAQ») */
.sec-head.has-latin { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 var(--gap); }
.sec-head .latin { grid-column: 1 / -1; margin: 0 0 clamp(14px, 2vw, 26px) -.04em; font-size: clamp(4.6rem, 1.4rem + 14vw, 16.5rem); color: var(--fg); }
.sec-head.has-latin h2 { font-size: var(--step-2); letter-spacing: -.03em; }
html[lang="en"] .sec-head.has-latin h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.page-head + section .sec-head .latin { margin-top: clamp(20px, 3vw, 40px); }
.sec-head.has-latin .kick { margin-bottom: 10px; }
.sec-head.latin-center { justify-items: center; text-align: center; grid-template-columns: 1fr; }
.sec-head.latin-center .latin { margin-left: 0; }
@media (max-width: 760px) { .sec-head.has-latin { grid-template-columns: 1fr; } .sec-head.has-latin .sub { margin-top: 12px; } }

.contact-latin { margin: 0 0 clamp(18px, 2.4vw, 32px) -.04em; font-size: clamp(4.6rem, 1.4rem + 14vw, 16.5rem); }
.contact .contact-latin ~ h2 { font-size: var(--step-2); }

/* FAQ */
.faq { max-width: 920px; margin-inline: auto; }
.faq .acc summary { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); }
.hero2-cue { position: absolute; left: 50%; bottom: 28px; color: rgba(244,241,234,.75); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.stair { position: absolute; left: 0; right: 0; top: 43%; margin: 0; padding-inline: max(16px, 4vw); pointer-events: none;
  font-family: var(--f-cond); font-weight: 400; font-size: clamp(1.9rem, .6rem + 4.4vw, 5.2rem); line-height: .96; letter-spacing: -.04em; color: var(--fg); }
.stair > span { display: block; opacity: var(--w, 0); transform: translateX(calc((1 - var(--w, 0)) * var(--dir, 1) * 30vw)); }
.stair > span:nth-child(1) { --dir: -1; }
.stair > span:nth-child(2) { --dir: 1; padding-left: 1.4em; }
.stair > span:nth-child(3) { --dir: -1; padding-left: 2.8em; }
.hero2-foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px;
  opacity: var(--p3, 0); transform: translateY(calc((1 - var(--p3, 0)) * 30px)); pointer-events: none; }
.hero2.foot-on .hero2-foot { pointer-events: auto; }
.hero2-foot .lead { margin: 0; max-width: 50ch; font-size: 1rem; }
.hero2-foot .hero-cap { margin: 0; }
.hero2.static { height: auto; }
.hero2.static .hero2-stick { position: relative; height: auto; min-height: 100vh; padding-bottom: 40px; }
.hero2.static .stair, .hero2.static .hero2-foot { position: relative; top: auto; bottom: auto; margin-top: 60vh; }
.hero2.static .stair > span, .hero2.static .hero2-foot { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) {
  .hero2-media { grid-template-columns: 1fr; }
  .hm.r { display: none; }
  .hm video, .hm .selfie { object-position: 30% 30%; }
  .stair > span:nth-child(2) { padding-left: .6em; }
  .stair > span:nth-child(3) { padding-left: 1.2em; }
  .stair { top: 40%; }
  .hero2-foot .lead { font-size: .9375rem; }
}

/* Interludes: pinned phrase on silk, photos float over it */
.inter { display: block; height: 240vh; min-height: 0; overflow: visible; overflow-x: clip; }
.inter-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
/* no WebGL: a still, slightly shifted navy instead of the moving silk */
.inter-stick.no-gl canvas { background: linear-gradient(160deg, #0B1324 0%, #10224A 55%, #0A1120 100%); }
/* shader canvases fade in once compiled (see flow() in fx.js); the fallback gradient shows at once */
canvas[data-flow] { opacity: 0; transition: opacity 1.2s ease; }
canvas[data-flow].on, .no-gl canvas[data-flow] { opacity: 1; }
.inter .wrap.inter-text { padding-block: 0; display: grid; justify-items: center; text-align: center; }
.inter .kick::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.inter h2 { font-size: clamp(2.3rem, 1rem + 5vw, 6.6rem); line-height: .94; max-width: 15ch; letter-spacing: -.04em; }
.inter .sub { margin: 26px auto 0; text-align: center; }
.floats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); width: clamp(160px, 21vw, 320px); pointer-events: auto; text-decoration: none; color: #F2F0EA; will-change: transform; }
.fl:nth-child(2) { width: clamp(150px, 18vw, 280px); }
.fl:nth-child(3) { width: clamp(140px, 16vw, 250px); }
.fl img { width: 100%; height: auto; }
.fl .badge { left: 10px; top: 10px; }
.fl-cap { display: block; margin-top: 10px; color: rgba(242,240,234,.78); }
@media (max-width: 760px) {
  .fl, .fl:nth-child(2), .fl:nth-child(3) { width: 40vw; }
  .fl:nth-child(1) { --x: 4% !important; } .fl:nth-child(2) { --x: 54% !important; } .fl:nth-child(3) { --x: 24% !important; }
}

/* Editorial collage */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 84px); align-items: start; }
.collage > * { grid-column: var(--col, span 4); margin: calc(var(--mt, 0) * 1vw) 0 0; }
.collage .cap h3 { font-size: 1rem; }
.collage figcaption.mono { margin-top: 10px; color: var(--muted); font-size: .72rem; }
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .collage > * { grid-column: auto; margin-top: 0; min-width: 0; }
  .collage > *:nth-child(3n+1) { grid-column: 1 / -1; }
  .collage > *:nth-child(3n) { margin-top: 14vw; }
  .collage > .land { grid-column: 1 / -1; margin-top: 0; } /* landscape frames are too small at half width */
}

/* Wedding story on phones: landscapes full width, portraits in pairs with a step */
@media (max-width: 760px) {
  .collage.story > * { grid-column: auto; margin-top: 0; }
  .collage.story > .land { grid-column: 1 / -1; }
  .collage.story > :not(.land):nth-child(even) { margin-top: 12vw; }
}

/* Full-screen reel with a preview strip */
.reel { margin-inline: calc(50% - 50vw); background: #07090D; color: #F4F1EA; }
.reel-stage { position: relative; height: min(88vh, 960px); overflow: hidden; }
.reel-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); filter: blur(42px) brightness(.42) saturate(1.2); transition: opacity .45s; }
.reel-main { position: absolute; inset: 0; object-fit: contain; transition: opacity .45s, transform .9s var(--ease); }
.reel.swap .reel-main, .reel.swap .reel-bg { opacity: 0; }
.reel.swap .reel-main { transform: scale(.985); }
.reel-meta { position: absolute; left: max(16px, 3vw); bottom: 28px; z-index: 2; display: grid; gap: 10px; }
.reel-meta .mono { color: #A9C0EE; }
.reel-title { font-size: clamp(1.8rem, 1rem + 2.8vw, 3.8rem); max-width: 16ch; }
.reel-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(244,241,234,.4); background: rgba(7,9,13,.35); color: #F4F1EA; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s; }
.reel-nav:hover { border-color: #8FA6CC; }
.reel-prev { left: max(16px, 2vw); }
.reel-next { right: max(16px, 2vw); }
.reel-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px max(16px, 3vw) 16px; scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip button { flex: none; position: relative; padding: 0; border: 0; background: #11141A; cursor: pointer; opacity: .42; transition: opacity .3s; }
.reel-strip button img { height: clamp(62px, 9vh, 96px); width: auto; }
.reel-strip button span { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .625rem; padding: 3px 7px; border-radius: 999px; background: #F4F1EA; color: #07090D; opacity: 0; transition: opacity .3s; }
.reel-strip button.on, .reel-strip button:hover, .reel-strip button:focus-visible { opacity: 1; }
.reel-strip button.on span, .reel-strip button:hover span { opacity: 1; }
.reel-strip button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: #8FA6CC; }
@media (max-width: 760px) { .reel-stage { height: 72vh; } .reel-nav { width: 42px; height: 42px; margin-top: -21px; } }

/* Slow camera on product and jewellery photos (reference: macro product film) */
.kb .tilt-inner img { animation: kb 24s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.kb:nth-child(3n+2) .tilt-inner img { animation-duration: 28s; animation-delay: -9s; }
.kb:nth-child(3n) .tilt-inner img { animation-duration: 21s; animation-delay: -15s; }
@keyframes kb { from { transform: scale(1.03) translate3d(-1.2%, .8%, 0); } to { transform: scale(1.14) translate3d(1.4%, -1.4%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .inter { height: auto; }
  .inter-stick { position: relative; height: auto; min-height: 80vh; }
  .floats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 32px 16px; }
  .fl { position: relative; left: auto; top: auto; }
}

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* View transitions: cover → first frame */
/* Page change: the old page sinks back and dims, the new one is revealed from the bottom like a curtain */
::view-transition-old(root) { animation: vt-out 1s cubic-bezier(.65,0,.35,1) both; }
::view-transition-new(root) { animation: vt-in 1.05s cubic-bezier(.65,0,.35,1) both; }
@keyframes vt-out { to { transform: scale(.94) translateY(-3%); opacity: .25; filter: blur(2px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(8%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.top { view-transition-name: top; }
::view-transition-group(top), ::view-transition-old(top), ::view-transition-new(top) { animation: none; }
main.page-in { animation: page-in .9s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
::view-transition-group(shot) { animation-duration: .8s; animation-timing-function: cubic-bezier(.65,0,.2,1); }
::view-transition-old(shot), ::view-transition-new(shot) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }

/* No custom motion when the user asks for less */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .rise .ch, .rv { opacity: 1; transform: none; filter: none; }
  .latin, .hero2-name .w { translate: none !important; }
  .fill { color: inherit; background: none; }
  .pin { height: auto; }
  .pin-in { position: static; height: auto; }
  .pin-stage > * { position: relative; opacity: 1; transform: none; }
  .pin-stage { height: auto; aspect-ratio: auto; display: grid; gap: 12px; background: none; }
  .converge > * { transform: none !important; }
}
