/* ==========================================================================
   ПРМ — Проектно-реставрационная мастерская · v3 «известковая бумага»
   Палитра первой версии (известковая бумага, тушь, бронза) + композиция
   второй: первый экран собран на холсте 1172×657 и масштабируется одним
   transform (js/main.js), 3D-кольцо постеров и макет страницы-портфолио.
   Шрифты: Montserrat (кириллица вместо Poppins) + Playfair Display.
   ========================================================================== */

:root {
  --sheet: #FBF9F5;
  --paper: #F3EEE5;
  --paper-2: #EAE3D7;
  --paper-3: #DDD3C3;
  --white: #FFFFFF;
  --ink: #1C1915;
  --ink-2: #3F3830;
  --muted: #6B6155;
  --dim: #73685B;
  --bronze: #7E6036;
  --bronze-2: #9B7B4C;
  --bronze-deep: #5F4727;
  --bronze-soft: #C2A678;
  --gold: #E6C994;
  --night: #161411;
  --night-2: #201D19;
  --night-3: #2A2621;
  --on-night: #EEE7DB;
  --on-night-2: #CFC5B6;
  --on-night-muted: #A69B8B;
  --line: rgba(28, 25, 21, .12);
  --line-2: rgba(28, 25, 21, .2);
  --line-night: rgba(238, 231, 219, .13);
  --line-night-2: rgba(238, 231, 219, .24);
  --err: #9E3B25;
  --err-night: #F0B6A4;

  --sans: Montserrat, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);      /* EXPO */
  --soft: cubic-bezier(.22, .61, .36, 1);
  --io: cubic-bezier(.65, 0, .35, 1);

  --gut: clamp(20px, 4vw, 56px);
  --sec-y: clamp(88px, 11vw, 160px);
  --sh-1: 0 1px 2px rgba(60, 42, 20, .05), 0 16px 36px -24px rgba(60, 42, 20, .3);
  --sh-2: 0 2px 6px rgba(60, 42, 20, .07), 0 34px 70px -34px rgba(60, 42, 20, .45);
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  background: var(--sheet);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--sheet);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
a { text-decoration: none; color: inherit; }      /* button labels never underline */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--bronze); color: #fff; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   BUTTONS — the prompt's glow button retold in bronze: a warm light pooled
   at the foot, clipped by the button's own shape. Thin, low, unhurried.
   ========================================================================== */
.btn {
  position: relative; display: inline-grid; place-items: center; overflow: hidden;
  height: 46px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: .005em; line-height: 1;
  color: #FFF8EC;
  background: linear-gradient(180deg, #8E6E42 0%, #775935 52%, #614829 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 204, .34),
    inset 0 0 0 1px rgba(60, 40, 18, .16),
    0 1px 2px rgba(60, 40, 18, .18),
    0 12px 24px -14px rgba(95, 71, 39, .7);
  transition: translate .35s var(--ease), box-shadow .3s, filter .3s, background-color .3s, color .3s;
}
.btn::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 58%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 100%, rgba(255, 214, 150, .42), rgba(255, 214, 150, 0) 72%);
  opacity: .6; transition: opacity .3s;
}
.btn span { position: relative; z-index: 1; display: block; }
.btn:hover {
  translate: 0 -1px; filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 204, .42),
    inset 0 0 0 1px rgba(60, 40, 18, .16),
    0 2px 4px rgba(60, 40, 18, .18),
    0 18px 30px -14px rgba(95, 71, 39, .72);
}
.btn:hover::after { opacity: 1; }
.btn:active { translate: 0 0; filter: brightness(.97); }
.btn:focus-visible { outline-offset: 4px; }
/* frosted glass variant: sits on paper and on photos */
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, .56);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(28, 25, 21, .12), inset 0 1px 0 #fff, 0 8px 18px -12px rgba(60, 42, 20, .28);
}
/* on glass the light at the foot is a bronze hairline, not a pool */
.btn--glass::after {
  left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px; opacity: 1;
  background: linear-gradient(90deg, rgba(214, 180, 120, 0), rgba(214, 180, 120, .95) 50%, rgba(214, 180, 120, 0));
  box-shadow: 0 -3px 10px rgba(230, 201, 148, .55);
}
.btn--glass:hover {
  filter: none; background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(126, 96, 54, .42), inset 0 1px 0 #fff, 0 16px 30px -16px rgba(60, 42, 20, .5);
}
.btn--line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line::after { display: none; }
.btn--line:hover { filter: none; color: var(--bronze); box-shadow: inset 0 0 0 1px var(--bronze); }
.btn--block { width: 100%; }
.btn[disabled] { filter: saturate(.5); opacity: .7; cursor: progress; }

/* ==========================================================================
   NAV — no frame: logo, text buttons that light up on hover and press, and
   the bronze action. Fixed and independent of the hero scale. Once the page
   scrolls, a soft veil (paper, or night over the dark sections) keeps the
   labels legible without drawing a box around them.
   ========================================================================== */
.navwrap {
  position: fixed; left: 0; right: 0; top: 0; z-index: 400;
  display: flex; justify-content: center; padding: 12px var(--gut) 0; pointer-events: none;
  transition: translate .6s var(--ease);
}
.navwrap::before, .navwrap::after {
  content: ""; position: absolute; inset: 0 0 -38px; pointer-events: none; opacity: 0; transition: opacity .45s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent);
}
.navwrap::before { background: linear-gradient(180deg, rgba(251, 249, 245, .94) 0%, rgba(251, 249, 245, .78) 50%, rgba(251, 249, 245, 0) 100%); }
.navwrap::after { background: linear-gradient(180deg, rgba(22, 20, 17, .92) 0%, rgba(22, 20, 17, .74) 50%, rgba(22, 20, 17, 0) 100%); }
.navwrap.is-solid:not(.on-dark)::before, .navwrap.is-solid.on-dark::after { opacity: 1; }
.navwrap.is-hidden { translate: 0 calc(-100% - 40px); }
.nav { position: relative; z-index: 1; display: flex; align-items: center; width: 100%; max-width: 1240px; height: 56px; pointer-events: auto; }
.navmenu { display: contents; }            /* shell, invisible on desktop */
.burger { display: none; }

.mark { flex: 0 0 auto; width: 26px; height: 26px; }
.wm { display: grid; gap: 3px; margin-left: 9px; line-height: 1; white-space: nowrap; }
.wm .kick { font-size: 6.6px; font-weight: 600; letter-spacing: .26em; color: var(--muted); transition: color .35s; }
.wm .name { font-weight: 800; font-size: 19px; letter-spacing: .03em; color: var(--ink); transition: color .35s; }
.links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.links a {
  position: relative; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s, background-color .25s, box-shadow .25s, scale .2s var(--soft);
}
.links a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--bronze); transform: scale(0); transition: transform .35s var(--ease), background-color .35s;
}
.links a:hover { color: var(--bronze); background: rgba(126, 96, 54, .09); box-shadow: 0 0 18px -4px rgba(194, 166, 120, .45); }
.links a:active { color: var(--bronze-deep); background: rgba(126, 96, 54, .17); scale: .96; }
.links a.is-active { color: var(--bronze); }
.links a.is-active::after { transform: scale(1); }
.nav .btn { flex: 0 0 auto; height: 40px; padding: 0 20px; font-size: 13.5px; }
.navwrap.on-dark .wm .name { color: var(--on-night); }
.navwrap.on-dark .wm .kick { color: var(--on-night-muted); }
@media (min-width: 1081px) {
  .navwrap.on-dark .links a { color: rgba(238, 231, 219, .8); }
  .navwrap.on-dark .links a:hover, .navwrap.on-dark .links a.is-active { color: var(--gold); }
  .navwrap.on-dark .links a:hover { background: rgba(230, 201, 148, .12); box-shadow: 0 0 18px -4px rgba(230, 201, 148, .35); }
  .navwrap.on-dark .links a:active { background: rgba(230, 201, 148, .2); }
  .navwrap.on-dark .links a::after { background: var(--gold); }
}

/* ==========================================================================
   HERO STAGE
   ========================================================================== */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #F4EFE7; }
.bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 16%, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0) 72%),
    radial-gradient(90% 60% at 50% 110%, rgba(194, 166, 120, .3), rgba(194, 166, 120, 0) 64%),
    linear-gradient(180deg, #FAF7F1 0%, #F2ECE2 62%, #ECE4D6 100%);
}
.bg::after {                    /* limestone grain */
  content: ""; position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.stage::after {                 /* the hero dissolves into the page below */
  content: ""; position: absolute; inset: auto 0 0; height: 72px; z-index: 350; pointer-events: none;
  background: linear-gradient(to top, var(--sheet), rgba(251, 249, 245, 0));
}
.canvas {
  position: absolute; left: 50%; top: 0; width: 1172px; height: 657px;
  transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 0;
  --u: calc(1px / var(--k, 1));         /* one on-screen pixel, in design units */
}
.canvas > * { position: absolute; }
.navspace { display: none; }
.stack { inset: 0; z-index: 300; transform: translateY(var(--stshift, 0px)); pointer-events: none; }
.stack > * { position: absolute; }

/* ---------- licence line: no frame, centred above the headline ---------- */
.badge {
  left: 0; right: 0; top: 76px;
  display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  height: clamp(calc(26 * var(--u)), 22px, calc(30 * var(--u)));
  white-space: nowrap; text-transform: uppercase;
  font-size: clamp(calc(11.5 * var(--u)), 9.4px, calc(12.5 * var(--u))); font-weight: 600; letter-spacing: .18em; color: var(--muted);
}
.badge i { display: block; flex: 0 0 auto; width: calc(16 * var(--u)); height: calc(18 * var(--u)); color: var(--bronze); }
.badge i svg { display: block; width: 100%; height: 100%; }
.badge b { font-weight: 600; }

/* ---------- hero type ---------- */
.h1shell { inset: 0; margin: 0; pointer-events: none; font: inherit; }
.h1 {
  position: absolute; left: 586px; top: 120px; transform: translateX(-50%); white-space: nowrap; line-height: 1;
  font-family: var(--sans); font-weight: 800; font-size: 44px; letter-spacing: -.012em;
  text-transform: uppercase; color: var(--ink);
}
.h1 em {
  display: inline-block; margin: 0 .1em; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.17em; letter-spacing: -.01em; text-transform: none; color: var(--bronze);
}
.subshell {
  left: 586px; top: var(--sub-top, 178px); transform: translateX(-50%); width: max-content; text-align: center;
  font-size: clamp(calc(14 * var(--u)), 9.6px, calc(16.5 * var(--u))); line-height: 1.55; color: var(--muted);
}
.sub { display: block; white-space: nowrap; }
.sub b { font-weight: 600; color: var(--ink); }
.nb { white-space: nowrap; }
.cta2 {
  left: 586px; top: var(--cta-top, 240px); transform: translateX(-50%);
  height: clamp(calc(40 * var(--u)), 30px, calc(46 * var(--u)));
  padding: 0 calc(26 * var(--u));
  font-size: clamp(calc(14 * var(--u)), 10.4px, calc(15.5 * var(--u)));
  pointer-events: auto;
}

/* ==========================================================================
   THE RING — 37 cards on a cylinder; camera at the ring centre (R = 891).
   js sets --ring-top (top of the centre card) and --rs (wheel scale).
   ========================================================================== */
.showcase { left: 0; top: 0; width: 1172px; height: 0; }
.ring {
  position: absolute; left: 0; top: 0; width: 1172px; height: 657px; z-index: 5;
  perspective: 891px; perspective-origin: 586px calc(var(--ring-top, 280px) + 452px);
  transform: scale(var(--rs, .9)); transform-origin: 586px var(--ring-top, 280px);
  transform-style: preserve-3d; pointer-events: none;
}
.card {
  position: absolute; left: 586px; top: calc(var(--ring-top, 280px) + 150px); width: 130px; height: 300px;
  margin: -150px 0 0 -65px; border-radius: 12px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 22px 36px -16px rgba(50, 34, 14, .42), 0 3px 8px rgba(50, 34, 14, .14);
  backface-visibility: hidden; will-change: transform;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .edge { position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 16px 30px rgba(255, 255, 255, .06); }
.card.broken img { display: none; }

/* shared creative sub-classes */
.cv { position: absolute; left: 0; right: 0; padding: 0 10px; }
.fill { position: absolute; inset: 0; }
.ph { position: absolute; left: 0; right: 0; overflow: hidden; background: linear-gradient(155deg, #d9cdb9, #b5a283 60%, #a08c6c); }
.phf { top: 0; bottom: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dot { display: inline-block; width: 4.5px; height: 4.5px; background: #b0342a; margin-right: 4px; transform: rotate(45deg) translateY(-1px); }
.dot.sq { transform: none; width: 6.5px; height: 4.5px; border-radius: 1px; }
.t-big {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; line-height: .96;
  letter-spacing: -.015em; white-space: nowrap; transform: scaleX(.875); transform-origin: left center;
}
.t-serif { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: .01em; white-space: nowrap; }

/* ==========================================================================
   THE BROWSER MOCK — frosted glass in FRONT of the ring, bleeding off the
   bottom. js sets --mock-top / --mock-h so its photo is always in view.
   ========================================================================== */
.browser {
  position: absolute; left: 165px; top: var(--mock-top, 470px); width: 842px; height: var(--mock-h, 260px);
  border-radius: 24px 24px 0 0; overflow: hidden; z-index: 100;
  background: rgba(250, 247, 241, .4);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .78),
    0 0 0 1px rgba(28, 25, 21, .06),
    0 -24px 60px -28px rgba(50, 34, 14, .5);
}
.bar { position: absolute; left: 0; top: 0; width: 100%; height: 34px; }
.dots { position: absolute; left: 22px; top: 13px; display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.dots i:nth-child(1) { background: #ee6a5f; }
.dots i:nth-child(2) { background: #f5bf4f; }
.dots i:nth-child(3) { background: #61c454; }
.omni {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 340px; height: 22px; border-radius: 7px;
  background: rgba(255, 255, 255, .74); box-shadow: inset 0 0 0 1px rgba(28, 25, 21, .08);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.omni svg { width: 9px; height: 9px; opacity: .7; }
.omni span { font-size: 9.5px; color: var(--ink-2); letter-spacing: .005em; }
.tools { position: absolute; right: 22px; top: 11px; display: flex; align-items: center; gap: 6px; opacity: .78; }
.tools svg { width: 11px; height: 12px; }
.page {
  position: absolute; left: 7px; right: 7px; top: 34px; bottom: 0; background: #fff; color: var(--ink);
  overflow: hidden; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(28, 25, 21, .05);
}
.pghero { position: relative; margin: 7px 7px 0; height: 152px; border-radius: 8px; overflow: hidden; background: linear-gradient(120deg, #d9cab4, #b9a483); }
.pghero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pghero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 13, 9, .5) 0%, rgba(16, 13, 9, 0) 30%),
    linear-gradient(90deg, rgba(16, 13, 9, .64) 0%, rgba(16, 13, 9, .24) 42%, rgba(16, 13, 9, 0) 66%);
}
.pgnav {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 30px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; color: #fff;
}
.pgnav u { text-decoration: none; font-size: 4.6px; font-weight: 600; letter-spacing: .16em; opacity: .9; }
.pgnav u + u { margin-left: 10px; }
.pglogo { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); text-align: center; line-height: 1; }
.pglogo em { display: block; font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .16em; }
.pglogo i { display: block; margin-top: 2px; font-style: normal; font-size: 3.6px; letter-spacing: .34em; opacity: .85; }
.pgicons { display: flex; gap: 6px; }
.pgicons svg { width: 7px; height: 7px; }
.pghero .copy { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #fff; }
.pghero .copy u { display: block; font-size: 4.6px; letter-spacing: .26em; text-transform: uppercase; opacity: .9; text-decoration: none; }
.pghero .copy em { display: block; font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 15px; line-height: 1.12; margin-top: 5px; }
.pghero .copy i { display: inline-block; font-style: normal; margin-top: 9px; padding: 5px 12px; border-radius: 20px; background: #fff; color: #17181c; font-size: 5px; font-weight: 600; letter-spacing: .06em; }
.pgsec { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 26px 9px; }
.pgsec b { font-family: var(--serif); font-weight: 600; font-size: 9px; color: #17181c; }
.pgsec u { font-size: 4.6px; letter-spacing: .14em; color: #8a8a8a; text-transform: uppercase; text-decoration: none; }
.pggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 26px; }
.pgcard .ph { position: relative; height: 0; padding-bottom: 104%; border-radius: 6px; overflow: hidden; background: linear-gradient(150deg, #efe7e1, #ddcfc6); }
.pgcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgcard .tag { position: absolute; left: 6px; top: 6px; padding: 2px 5px; border-radius: 3px; background: #17181c; color: #fff; font-size: 3.8px; font-weight: 600; letter-spacing: .1em; }
.pgcard b { display: block; margin-top: 6px; font-size: 5.4px; font-weight: 600; color: #17181c; letter-spacing: .01em; }
.pgcard i { display: block; font-style: normal; margin-top: 2px; font-size: 4.6px; color: #8a8a8a; }
.pgcard s { display: block; margin-top: 3px; font-size: 5.6px; font-weight: 700; color: #17181c; text-decoration: none; }
.pgcard s span { font-weight: 400; color: #a08f86; margin-left: 4px; font-size: 4.6px; }
.pgstrip { display: flex; justify-content: space-between; margin: 16px 26px 0; padding: 9px 0; border-top: 1px solid #eee6e0; border-bottom: 1px solid #eee6e0; }
.pgstrip span { font-size: 4.4px; letter-spacing: .12em; color: #7d7169; text-transform: uppercase; }

/* ---------- floating call button ---------- */
.wa {
  position: fixed; right: 18px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; z-index: 300;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #8E6E42, #614829);
  box-shadow: inset 0 1px 0 rgba(255, 236, 204, .35), 0 0 0 1px rgba(60, 40, 18, .12), 0 14px 28px -12px rgba(95, 71, 39, .7);
  transition: translate .35s var(--ease), filter .3s;
}
.wa svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(126, 96, 54, .5); animation: pulse 2.8s ease-out infinite;
}
.wa:hover { translate: 0 -2px; filter: brightness(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   MASTER ENTRANCE — resting states use translate/scale/clip-path, NOT
   transform: transform already belongs to the fitter and the ring loop.
   ========================================================================== */
html.intro .nav { opacity: 0; translate: 0 -9px; }
html.intro .mark, html.intro .wm, html.intro .links a, html.intro .nav .btn, html.intro .burger { opacity: 0; translate: 0 6px; }
html.intro .badge { opacity: 0; translate: 0 11px; scale: .985; }
html.intro .h1 { opacity: 0; translate: 0 15px; clip-path: inset(100% 0 -30% 0); }
html.intro .h1 em { opacity: 0; translate: 0 8px; }
html.intro .sub { opacity: 0; translate: 0 10px; }
html.intro .cta2 { opacity: 0; translate: 0 13px; scale: .985; }
html.intro .ring { opacity: 0; translate: 0 18px; scale: .99; }
html.intro .browser { opacity: 0; translate: 0 26px; }
html.intro .wa { opacity: 0; scale: .88; }
@media (prefers-reduced-motion: reduce) {
  html.intro .nav, html.intro .mark, html.intro .wm, html.intro .links a, html.intro .nav .btn, html.intro .burger,
  html.intro .badge, html.intro .h1, html.intro .h1 em, html.intro .sub, html.intro .cta2, html.intro .ring, html.intro .browser, html.intro .wa {
    opacity: 1; translate: none; scale: none; clip-path: none;
  }
}

/* ==========================================================================
   NARROW-VIEWPORT NAV (≤1080): same DOM nodes, re-laid-out in a panel
   ========================================================================== */
@media (max-width: 1080px) {
  .burger {
    display: grid; place-content: center; gap: 4px; margin-left: auto; margin-right: -10px;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s;
  }
  .burger:active { background: rgba(126, 96, 54, .14); }
  .burger span { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s, background-color .35s; }
  .navwrap.on-dark .burger span { background: var(--on-night); }
  .nav.open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .navmenu {
    display: block; position: absolute; left: auto; right: 0; width: min(380px, 100%); top: calc(100% + 6px); padding: 10px;
    border-radius: 22px;
    background: #FBF9F5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px rgba(28, 25, 21, .08), 0 30px 60px -30px rgba(60, 42, 20, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .24s ease, transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
  }
  .nav.open .navmenu { opacity: 1; visibility: visible; transform: none; }
  .links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .links a { padding: 12px 14px; border-radius: 12px; font-size: 15.5px; transition: background .2s, color .2s; }
  .links a::after { display: none; }
  .nav .btn { display: grid; width: 100%; height: 48px; margin-top: 8px; font-size: 15px; }
}
@media (hover: hover) and (max-width: 1080px) {
  .links a:hover { background: rgba(126, 96, 54, .08); box-shadow: none; }
  .burger:hover { background: rgba(126, 96, 54, .08); }
  .navwrap.on-dark .burger:hover { background: rgba(230, 201, 148, .12); }
}
@media (prefers-reduced-motion: reduce) { .navmenu, .burger span { transition: none; } }

@media (min-width: 701px) and (max-width: 1080px) {
  .wa { width: 56px; height: 56px; right: 22px; bottom: 26px; }
}

/* ---------- PHONE ≤700: a genuine flow column ---------- */
@media (max-width: 700px) {
  .navwrap { padding: 8px 18px 0; }
  .wm .name { font-size: 18px; }

  .stage { height: auto; min-height: 100vh; min-height: 100svh; display: flex; }
  .canvas {
    position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none;
    display: flex; flex-direction: column; align-items: center; padding: 0 20px; flex: 1 1 auto;
  }
  .canvas > * { position: static; }
  .navspace { display: block; flex: 0 0 auto; height: 66px; }
  .stack { display: contents; }
  .stack > * { position: relative; left: auto; top: auto; transform: none; }
  .badge { margin-top: clamp(16px, 2.6vh, 26px); height: 24px; max-width: 100%; gap: 8px; font-size: 11px; letter-spacing: .14em; flex: 0 0 auto; }
  .badge i { width: 14px; height: 16px; }
  .h1shell { position: relative; inset: auto; display: block; margin-top: clamp(14px, 2.2vh, 20px); }
  .h1 {
    display: block; position: relative; left: auto; top: auto; transform: none; white-space: normal; text-align: center;
    font-size: clamp(29px, 8.4vw, 36px); line-height: 1.08; letter-spacing: -.012em;
  }
  .subshell { margin-top: clamp(10px, 1.8vh, 16px); width: auto; max-width: 340px; font-size: clamp(14px, 3.9vw, 15.5px); line-height: 1.5; }
  .sub { display: inline; white-space: normal; }
  .cta2 { margin-top: clamp(16px, 2.6vh, 24px); flex: 0 0 auto; height: 46px; padding: 0 26px; font-size: 15px; }
  .showcase { position: relative; left: auto; top: auto; flex: 1 1 auto; width: 100%; height: auto; min-height: 372px; margin-top: 10px; }
  /* the ring keeps its full 1172×657 3D geometry, just repositioned and clipped */
  .ring { --ring-top: 0px; --rs: .9; position: absolute; left: 50%; margin-left: -586px; top: 6px; }
  .browser { position: absolute; left: 50%; transform: translateX(-50%); top: 196px; bottom: 0; width: calc(100% + 40px); height: auto; border-radius: 22px 22px 0 0; }
  .omni { width: 58%; }
  .omni span { font-size: 9px; }
  .tools { display: none; }
  .pghero { margin: 7px 7px 0; height: 150px; border-radius: 12px; }
  .pgnav { height: 34px; padding: 0 12px; }
  .pgnav u { display: none; }
  .pglogo { top: 8px; }
  .pglogo em { font-size: 14px; }
  .pglogo i { font-size: 5px; }
  .pgicons svg { width: 10px; height: 10px; }
  .pghero .copy { left: 16px; bottom: 14px; }
  .pghero .copy u { display: none; }
  .pghero .copy em { font-size: 17px; margin-top: 0; }
  .pghero .copy i { font-size: 8.5px; padding: 6px 13px; margin-top: 8px; }
  .pgsec { margin: 16px 18px 10px; }
  .pgsec b { font-size: 14px; }
  .pgsec u { font-size: 8px; }
  .pggrid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 18px; }
  .pgcard .ph { border-radius: 9px; }
  .pgcard .tag { font-size: 7px; padding: 3px 7px; border-radius: 4px; }
  .pgcard b { font-size: 10.5px; margin-top: 7px; }
  .pgcard i { font-size: 8.5px; }
  .pgcard s { font-size: 11.5px; margin-top: 4px; }
  .pgcard s span { font-size: 8.5px; }
  .pgstrip { margin: 16px 18px 0; flex-wrap: wrap; gap: 5px 16px; }
  .pgstrip span { font-size: 8px; }
  .wa { width: 52px; height: 52px; right: 14px; bottom: 16px; }
  .wa svg { width: 22px; height: 22px; }
  .stage::after { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .wa::after { animation: none; } }

/* ==========================================================================
   SECTIONS — paper, white sheet and two night interludes, as in v1
   ========================================================================== */
.wrap { width: 100%; max-width: calc(1240px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: var(--sec-y) 0; background: var(--sheet); }
.sec--paper { background: var(--paper); }
.sec--night { background: var(--night); color: var(--on-night-muted); }

.shead { margin-bottom: clamp(44px, 6vw, 84px); }
.shead--split { display: grid; gap: 22px; }
@media (min-width: 1000px) {
  .shead--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 64px; }
}
.shead__note { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.sec--night .shead__note { color: var(--on-night-muted); }

/* section label: number in the serif, a hairline, the name */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.kicker i {
  font-style: normal; font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  color: var(--bronze); padding-right: 14px; border-right: 1px solid rgba(126, 96, 54, .35);
}
.sec--night .kicker { color: var(--on-night-muted); }
.sec--night .kicker i { color: var(--gold); border-color: rgba(230, 201, 148, .35); }

.h2 {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.95rem, 4.1vw, 3.8rem); line-height: 1.04; letter-spacing: -.012em; word-spacing: .08em;
  color: var(--ink); max-width: 21ch; text-wrap: balance;
}
.h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none;
  letter-spacing: -.005em; word-spacing: normal; color: var(--bronze);
}
.sec--night .h2 { color: var(--on-night); }
.sec--night .h2 em { color: var(--gold); }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.lead--sm { font-size: clamp(18px, 1.45vw, 21px); }
.ul {
  color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  text-decoration: underline; text-decoration-color: var(--bronze-soft); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .25s;
}
.ul:hover { color: var(--bronze); }
.lnk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink); transition: color .25s; }
.lnk svg { width: 18px; height: 18px; fill: none; stroke: var(--bronze); stroke-width: 1.6; transition: transform .35s var(--ease); }
.lnk:hover { color: var(--bronze); }
.lnk:hover svg { transform: translateX(4px); }

.gcard { position: relative; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.photo { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--paper-2); isolation: isolate; }
.photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 21, .08);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.photo:hover img, .photo a:hover img { transform: scale(1.035); }
.shot, .zoom { cursor: zoom-in; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .6); font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 1; overflow: hidden; padding: clamp(16px, 2.2vw, 26px) 0; background: var(--sheet);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 75s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; }
.ticker li {
  display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); padding-right: clamp(18px, 2.2vw, 32px);
  font-weight: 700; text-transform: uppercase; font-size: clamp(19px, 2.5vw, 36px); line-height: 1.15; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
}
.ticker li.o { color: transparent; background: linear-gradient(180deg, rgba(28, 25, 21, .4), rgba(28, 25, 21, .13)); -webkit-background-clip: text; background-clip: text; }
.ticker li::after { content: ""; width: 7px; height: 7px; background: var(--bronze-soft); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 01 about ---------- */
.about__grid { display: grid; gap: clamp(40px, 5vw, 88px); align-items: start; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.about__cols { display: grid; gap: 18px; margin-top: 28px; font-size: 15.5px; }
@media (min-width: 700px) { .about__cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.about__photo { aspect-ratio: 3 / 2; }
.about__photo .zoom { display: block; height: 100%; }
.about__photo figcaption {
  position: absolute; inset: auto 0 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
  padding: 44px 20px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(20, 16, 10, .7), rgba(20, 16, 10, 0)); pointer-events: none;
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 104px); }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { display: grid; align-content: start; gap: 14px; padding: clamp(20px, 2.4vw, 30px); overflow: hidden; }
.stat::before { content: ""; position: absolute; left: clamp(20px, 2.4vw, 30px); top: 0; width: 40px; height: 2px; background: var(--bronze-soft); }
.stat__v {
  font-weight: 800; font-size: clamp(42px, 4.6vw, 70px); line-height: .92; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 30%, var(--bronze) 125%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- 02 services ---------- */
.services__grid { display: grid; gap: 48px; }
.services__visual { display: none; }
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 104px); align-items: start; }
  .services__visual { display: block; position: sticky; top: 110px; }
}
.services__frame { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--paper-2); box-shadow: var(--sh-1); }
.services__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28, 25, 21, .08); pointer-events: none; z-index: 3; }
.svc-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.4s var(--ease); }
.svc-img.is-active { opacity: 1; transform: none; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-img--sheet { background: #FBF8F2; }
.svc-img--sheet img { object-fit: contain; padding: 9% 7% 16%; }
.svc-img--sheet::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(28, 25, 21, .12); border-radius: 12px; pointer-events: none; }
.svc-img.svc-img--sheet figcaption { color: var(--muted); background: none; }
.svc-img figcaption {
  position: absolute; inset: auto 0 0; padding: 48px 22px 20px; font-size: 12.5px; letter-spacing: .03em; color: #fff;
  background: linear-gradient(to top, rgba(20, 16, 10, .78), rgba(20, 16, 10, 0));
}
.services__list { border-top: 1px solid var(--line-2); }
.svc { border-bottom: 1px solid var(--line-2); }
.svc__btn {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 16px; align-items: center;
  padding: clamp(20px, 2.2vw, 26px) 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.svc__num { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--bronze); }
.svc__title { font-weight: 700; font-size: clamp(18px, 1.75vw, 24px); line-height: 1.22; color: var(--ink); transition: transform .5s var(--ease), color .3s; }
.svc__btn:hover .svc__title { transform: translateX(6px); color: var(--bronze-deep); }
.svc__icon {
  position: relative; width: 44px; height: 44px; border-radius: 50%; justify-self: end;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .6);
  transition: background .35s, border-color .35s;
}
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: var(--ink); translate: -50% -50%; border-radius: 2px; transition: background .35s; }
.svc__icon::after { rotate: 90deg; transition: rotate .45s var(--ease), background .35s; }
.svc__btn:hover .svc__icon { border-color: var(--bronze-soft); }
.svc.is-open .svc__icon { border-color: transparent; background: linear-gradient(180deg, #8E6E42, #614829); }
.svc.is-open .svc__icon::before, .svc.is-open .svc__icon::after { background: #fff; }
.svc.is-open .svc__icon::after { rotate: 0deg; }
.svc__panel { display: grid; grid-template-rows: 1fr; }
.js .svc__panel { grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease); }
.js .svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__in { min-height: 0; overflow: hidden; padding-left: 68px; }
.js .svc:not(.is-open) .svc__in { visibility: hidden; transition: visibility 0s .65s; }
.svc__in p { max-width: 60ch; color: var(--ink-2); }
.svc__in .tags { margin: 18px 0 clamp(24px, 3vw, 32px); }
@media (max-width: 560px) {
  .svc__btn { grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 12px; }
  .svc__in { padding-left: 0; }
}

/* ---------- 03 skills: horizontal ribbon of eras ---------- */
.skills { padding-bottom: clamp(56px, 7vw, 104px); }
.skills__side { display: grid; gap: 22px; }
.skills__ctrl { display: flex; align-items: center; gap: 14px; }
.skills__bar { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(28, 25, 21, .1); overflow: hidden; }
.skills__bar span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, .16)); background: linear-gradient(90deg, var(--bronze-soft), var(--bronze)); }
.arrow {
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--white); transition: border-color .25s, background .25s;
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.arrow:hover { border-color: var(--bronze); }
.arrow:hover svg { stroke: var(--bronze); }
.arrow:disabled { opacity: .35; cursor: default; }
.skills__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.skills__viewport::-webkit-scrollbar { display: none; }
.skills__track { display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; padding: 0 var(--gut); }
.era {
  position: relative; flex: 0 0 auto; width: clamp(290px, 30vw, 420px); scroll-snap-align: start; scroll-margin-left: var(--gut);
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.era__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.era__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.era:hover .era__media img { transform: scale(1.04); }
.era__media--draw {
  background:
    repeating-linear-gradient(0deg, rgba(126, 96, 54, .07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(126, 96, 54, .07) 0 1px, transparent 1px 24px),
    radial-gradient(80% 80% at 50% 40%, #FFFDF8, #F1E9DB);
}
.era__media--draw img { object-fit: contain; padding-top: 10px; }
.era__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .5) 16%, rgba(255, 255, 255, 0) 42%); }
.era__body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 24px 26px; flex: 1; }
.era__num {
  margin-top: -.6em; font-weight: 800; font-size: clamp(38px, 3.8vw, 54px); line-height: 1; letter-spacing: -.02em;
  color: transparent; background: linear-gradient(180deg, #A9874F 10%, var(--bronze) 60%, var(--bronze-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  position: relative; z-index: 1; width: max-content;
}
.era__title { font-weight: 700; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.2; color: var(--ink); }
.era p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.era__objects { display: grid; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.era__objects li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.era__objects li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--bronze-soft); }

/* pinned horizontal scroll (desktop, motion allowed) — height set by js */
.skills.is-pinned { padding: 0; }
.skills.is-pinned .skills__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 84px 0 28px;
}
.skills.is-pinned .shead { margin-bottom: clamp(24px, 3.4vh, 44px); }
.skills.is-pinned .skills__viewport { overflow: visible; scroll-snap-type: none; }
.skills.is-pinned .skills__track { will-change: transform; }
.skills.is-pinned .era { height: min(58vh, 560px); }
.skills.is-pinned .era__media { aspect-ratio: auto; height: 46%; flex: 0 0 auto; }

/* ---------- 04 projects ---------- */
.case { display: grid; gap: clamp(32px, 4vw, 72px); padding-block: clamp(56px, 7vw, 112px); border-top: 1px solid var(--line-2); }
.case:last-child { padding-bottom: 0; }
.case > *, .case-wide__grid > *, .heritage__figs > * { min-width: 0; }
.case__meta { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.case__index { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--dim); margin-bottom: 18px; }
.case__index span { font-family: var(--serif); font-size: 16px; color: var(--bronze); letter-spacing: .02em; }
.case__status { font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--bronze); line-height: 1.5; }
.case__title {
  margin: 14px 0 12px; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.06;
  letter-spacing: -.01em; color: var(--ink); text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.case__place { font-size: 15px; color: var(--muted); }
.case__text { margin-top: 22px; max-width: 48ch; }
.facts { margin-top: 26px; border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { color: var(--ink); }
@media (min-width: 1000px) {
  .case:not(.case--wide) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .case.case--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .case:not(.case--wide) .case__meta { position: sticky; top: 110px; }
  .case--flip .case__meta { order: 2; }
}
.gal-palaty { display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "a b" "a c" "d d"; }
.gal-palaty .shot--a { grid-area: a; }
.gal-palaty .shot--b { grid-area: b; aspect-ratio: 369 / 276; }
.gal-palaty .shot--c { grid-area: c; aspect-ratio: 358 / 276; }
.gal-palaty .shot--d { grid-area: d; }
.sheet { background: #FFFDF9; padding: clamp(14px, 3vw, 40px); }
.sheet img { object-fit: contain; height: auto; max-width: 820px; margin-inline: auto; }
@media (max-width: 640px) {
  .gal-palaty { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .gal-palaty .shot--a { aspect-ratio: 575 / 362; }
}
.gal-venev { display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: 1fr 1fr; }
.gal-venev .shot--wide { grid-column: 1 / -1; aspect-ratio: 1280 / 966; }
.gal-venev .shot:not(.shot--wide) { aspect-ratio: 3 / 4; }
.gal-concept { display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.gal-concept .shot--tall { aspect-ratio: 1100 / 1884; }
@media (max-width: 560px) {
  .gal-concept { grid-template-columns: 1fr; }
  .gal-concept .shot--tall { aspect-ratio: 4 / 5; }
}
/* drawing sheet: the facade is drawn in bronze ink as you scroll */
.blueprint { display: grid; gap: 14px; }
.blueprint__frame {
  position: relative; padding: 12% 10%; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(126, 96, 54, .07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(126, 96, 54, .07) 0 1px, transparent 1px 24px),
    radial-gradient(80% 70% at 50% 40%, #FFFDF9, #F6F0E5);
  box-shadow: inset 0 0 0 1px rgba(126, 96, 54, .2), var(--sh-1);
}
.blueprint__frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(126, 96, 54, .16); border-radius: 10px; pointer-events: none; }
.drawing {
  --draw: 0%;
  aspect-ratio: 1236 / 1288; background: var(--bronze-deep);
  -webkit-mask: url("../assets/img/blag-drawing.png") center / contain no-repeat;
          mask: url("../assets/img/blag-drawing.png") center / contain no-repeat;
  clip-path: inset(var(--draw) 0 0 0);
}
.js .drawing { --draw: 100%; }
.blueprint__label { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Рай-Семёновское */
.case--wide { gap: clamp(36px, 5vw, 72px); }
.case-hero { aspect-ratio: 16 / 8; min-height: 380px; border-radius: 22px; background: var(--night-2); }
.case-hero__img { position: absolute; inset: -8% 0; }
.case-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.case-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(16, 13, 9, .84) 0%, rgba(16, 13, 9, .24) 48%, transparent 72%); }
.case-hero__body { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(20px, 4vw, 56px); }
.case-hero .case__index { color: rgba(255, 255, 255, .7); }
.case-hero .case__index span { color: var(--gold); }
.case-hero .case__status { color: var(--gold); }
.case-hero .case__title { color: #fff; font-size: clamp(32px, 6vw, 84px); margin-bottom: 8px; }
.case-hero .case__place { color: rgba(255, 255, 255, .86); }
.case-wide__grid { display: grid; gap: clamp(32px, 4vw, 72px); }
.case-wide__text { display: grid; gap: 22px; align-content: start; max-width: 56ch; }
.shot--zones { aspect-ratio: 1035 / 902; }
@media (min-width: 1000px) { .case-wide__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
@media (max-width: 640px) { .case-hero { aspect-ratio: 4 / 5; } }
.profile__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 18px 18px 10px; border-radius: 16px; background: #FFFDF9; box-shadow: inset 0 0 0 1px var(--line); }
.profile__scroll img { width: 100%; min-width: 1100px; }
.profile figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- 05 heritage (night): expanding panels ---------- */
.whp { display: flex; gap: 12px; height: clamp(440px, 64vh, 620px); }
.whp__item {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--night-2);
  transition: flex-grow .85s var(--ease);
}
.whp__item.is-open { flex-grow: 5.2; }
.whp__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
  filter: saturate(.6) brightness(.62); transition: transform 1.3s var(--ease), filter .7s;
}
.whp__item.is-open .whp__img { transform: none; filter: none; }
.whp__item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(10, 8, 5, .45) 0%, rgba(10, 8, 5, 0) 20%), linear-gradient(to top, rgba(10, 8, 5, .88) 0%, rgba(10, 8, 5, .3) 42%, rgba(10, 8, 5, 0) 70%); }
.whp__item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.whp__num { position: absolute; left: 18px; top: 16px; z-index: 2; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--gold); }
/* fixed width = the open panel's width (set by js): the copy never re-wraps while a panel grows */
.whp__body { position: absolute; left: 0; bottom: 0; z-index: 2; width: var(--whp-w, 100%); padding: clamp(18px, 2.4vw, 32px); }
.whp__short {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap;
  transition: opacity .35s; pointer-events: none;
}
.whp__item.is-open .whp__short { opacity: 0; }
@media (max-width: 999px) { .whp__short { display: none; } }
.whp__year { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.whp__name { margin-top: 8px; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.06; letter-spacing: -.01em; color: #fff; max-width: 18ch; }
.whp__meta { margin-top: 8px; font-size: 14px; color: rgba(238, 231, 219, .84); max-width: 46ch; }
@media (min-width: 1000px) {
  .whp__body { opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .2s ease, translate 0s linear .2s; will-change: opacity, translate; }
  .whp__item.is-open .whp__body { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .5s ease .32s, translate .8s var(--ease) .28s; }
}
@media (max-width: 999px) {
  .whp__item::after { background: linear-gradient(to bottom, rgba(10, 8, 5, .45) 0%, rgba(10, 8, 5, 0) 22%), linear-gradient(to top, rgba(10, 8, 5, .94) 0%, rgba(10, 8, 5, .62) 48%, rgba(10, 8, 5, 0) 82%); }
  .whp { flex-direction: column; height: auto; }
  .whp__item { flex: none; height: clamp(260px, 62vw, 380px); cursor: default; }
  .whp__img { transform: none; filter: none; }
}
.heritage__figs { display: grid; gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(56px, 7vw, 104px); }
@media (min-width: 1000px) { .heritage__figs { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; } }
.heritage .photo { background: var(--night-2); }
.heritage .photo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hfig--map .shot { aspect-ratio: 1390 / 2190; max-height: 640px; }
.hfig--wide .shot { aspect-ratio: 2400 / 1278; }
.hfig figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--on-night-muted); max-width: 52ch; }
.hfig__k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 999px) { .hfig--map .shot { aspect-ratio: 4 / 5; } .hfig--map .shot img { object-position: 50% 30%; } }

/* ---------- 06 registry: regions dashboard + filters + list ---------- */
.regions { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: clamp(28px, 4vw, 44px); }
.region {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 178px; padding: 16px 18px 18px; border: 0; border-radius: 18px; overflow: hidden; isolation: isolate;
  cursor: pointer; text-align: left; color: #fff; background: var(--night-2);
  transition: opacity .4s, filter .4s, translate .45s var(--ease);
}
.region img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.region::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 11, 7, .55) 0%, rgba(14, 11, 7, .06) 34%, rgba(14, 11, 7, .26) 56%, rgba(14, 11, 7, .84) 100%);
}
.region::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: box-shadow .35s; }
.region:hover { translate: 0 -3px; }
.region:hover img { transform: scale(1.05); }
.region:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.region__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.region__unesco { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(230, 201, 148, .7); color: var(--gold); font-size: 9px; letter-spacing: .16em; line-height: 1; }
.region__bottom { display: grid; gap: 5px; }
.region__count { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: clamp(36px, 3.2vw, 46px); line-height: .9; letter-spacing: -.02em; }
.region__count small { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .86); }
.region__name { font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.2; }
.region__meta { font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.region--lg .region__count { font-size: clamp(64px, 7vw, 108px); }
.region--lg .region__name { font-size: clamp(20px, 2vw, 28px); }
.region--lg .region__meta { font-size: 13px; max-width: 34ch; }
.region.is-active::after { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 6px rgba(230, 201, 148, .22); }
.regions.has-region .region:not(.is-active) { opacity: .5; filter: saturate(.35); }
.regions.has-region .region:not(.is-active):hover { opacity: .8; }
.region__top > span:first-child { white-space: nowrap; }
@media (max-width: 759px) {
  .region { min-height: 164px; padding: 14px 14px 15px; gap: 10px; }
  .region--lg { grid-column: 1 / -1; min-height: 230px; padding: 16px 18px 18px; }
  .region:not(.region--lg) .region__meta { display: none; }
  .region:not(.region--lg) .region__top { font-size: 9.5px; letter-spacing: .1em; }
  .region:not(.region--lg) .region__unesco { padding: 3px 6px; font-size: 8px; letter-spacing: .1em; }
  .region:not(.region--lg) .region__name { font-size: 15px; }
}
@media (min-width: 760px) {
  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region--lg { grid-column: 1 / -1; min-height: 250px; }
}
@media (min-width: 1000px) {
  .regions { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .region--lg { grid-column: span 2; grid-row: span 2; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7);
  font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.chip span { font-size: 12px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; transition: color .25s; }
.chip:hover { border-color: var(--bronze-soft); }
.chip.is-active {
  border-color: transparent; color: #FFF8EC;
  background: linear-gradient(180deg, #8E6E42, #614829);
  box-shadow: inset 0 1px 0 rgba(255, 236, 204, .3), 0 10px 20px -14px rgba(95, 71, 39, .7);
}
.chip.is-active span { color: var(--gold); }
.chip--unesco::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
@media (min-width: 1000px) { .chip--unesco { margin-left: auto; } }
.filters__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 44px; margin: 18px 0 10px; }
.filters__count { font-size: 13.5px; color: var(--muted); }
.filters__region {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(126, 96, 54, .45); background: rgba(126, 96, 54, .07); color: var(--ink); font-size: 13px; font-weight: 600;
}
.filters__region svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.filters__region:hover { border-color: var(--bronze); color: var(--bronze); }
.reg-list { border-top: 1px solid var(--line-2); }
.reg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.reg.is-entering { animation: regIn .55s var(--ease) both; }
@keyframes regIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.reg__num { grid-row: span 3; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--bronze); padding-top: 2px; font-variant-numeric: tabular-nums lining-nums; }
.reg__title { font-weight: 700; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.reg__note { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.reg__place { font-size: 14px; color: var(--ink-2); }
.reg__type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge-s { padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(126, 96, 54, .5); font-style: normal; font-size: 9.5px; letter-spacing: .12em; color: var(--bronze); }
@media (min-width: 900px) {
  .reg { position: relative; isolation: isolate; grid-template-columns: 52px minmax(0, 1fr) 170px 230px; gap: 24px; align-items: baseline; padding: 22px 14px; margin: 0 -14px; }
  .reg::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -18px rgba(60, 42, 20, .35); opacity: 0; transition: opacity .3s; }
  .reg:hover::before { opacity: 1; }
  .reg__num { grid-row: auto; padding-top: 0; }
}
.reg-empty { padding: 40px 0; font-size: 15px; color: var(--muted); }

/* ---------- 07 documents ---------- */
.docblock { scroll-margin-top: 100px; }
.docblock + .docblock, .docs__row { margin-top: clamp(48px, 6vw, 88px); }
.docblock__t { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; font-weight: 700; font-size: clamp(20px, 1.9vw, 27px); color: var(--ink); }
.docblock__t span { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--bronze); }
.lic { display: grid; gap: 14px; }
@media (min-width: 700px) { .lic { grid-template-columns: 1fr 1fr; gap: 16px; } .lic__item--wide { grid-column: 1 / -1; } }
.lic__item { display: grid; align-content: start; gap: 8px; padding: clamp(22px, 2.4vw, 30px); overflow: hidden; }
.lic__item--main { padding-right: clamp(22px, 2.4vw, 30px); }
@media (min-width: 520px) { .lic__item--main { padding-right: 150px; } }
.lic__k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.lic__n { font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.lic__item--main .lic__n { font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); }
.lic__d { font-size: 14px; color: var(--ink-2); }
.lic__t { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
/* a long register number stays on one line: it shrinks with its card instead of breaking */
.lic__item--code { container-type: inline-size; }
@supports (font-size: 1cqi) { .lic__item--code .lic__n { white-space: nowrap; font-size: clamp(14px, 6.3cqi, 24px); } }
.lic__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 2px; }
.lic__links .lnk { font-size: 13.5px; gap: 8px; }
.lic__links .lnk svg { width: 16px; height: 16px; }
.seal { position: absolute; right: 22px; top: 22px; width: 108px; height: 108px; animation: spin 48s linear infinite; }
@media (max-width: 519px) { .seal { position: relative; right: auto; top: auto; width: 92px; height: 92px; margin-bottom: 6px; } }
.seal__ring { fill: none; stroke: rgba(126, 96, 54, .32); stroke-width: 1; }
.seal__text { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .2em; fill: var(--bronze); }
.seal__icon { fill: none; stroke: var(--bronze); stroke-width: 2; stroke-linecap: round; }
@keyframes spin { to { rotate: 360deg; } }
.docs__row { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 1000px) { .docs__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.awards { display: grid; gap: 14px; }
@media (min-width: 700px) { .awards { grid-template-columns: 1.7fr 1fr; } }
.doc { display: grid; gap: 18px; padding: 14px 14px 22px; align-content: start; }
.doc__frame {
  display: flex; align-items: center; justify-content: center; height: clamp(300px, 30vw, 420px); padding: clamp(14px, 2vw, 26px);
  border-radius: 14px; cursor: zoom-in; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #fff, rgba(255, 255, 255, 0) 72%), var(--paper);
}
.doc__frame img { width: auto; max-width: 100%; max-height: 100%; box-shadow: 0 22px 40px -22px rgba(50, 34, 14, .55), 0 0 0 1px rgba(28, 25, 21, .06); transition: transform .7s var(--ease); }
.doc__frame:hover img { transform: translateY(-6px) rotate(-.4deg); }
.doc figcaption { display: grid; gap: 6px; padding: 0 8px; }
.doc__year { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.doc__title { font-weight: 700; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.25; color: var(--ink); }
.doc__text { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- 08 partners ---------- */
.partners__grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .partners__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .partners__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.partners__grid > li { display: flex; }
.partner {
  display: flex; flex-direction: column; gap: 12px; width: 100%; min-height: 230px; padding: clamp(24px, 2.6vw, 32px); overflow: hidden;
  transition: border-color .35s, box-shadow .35s, translate .5s var(--ease);
}
.partner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--bronze-soft), var(--bronze)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
a.partner:hover { border-color: rgba(126, 96, 54, .35); box-shadow: var(--sh-2); translate: 0 -3px; }
a.partner:hover::after { transform: scaleX(1); }
.partner__logo { font-weight: 800; text-transform: uppercase; font-size: clamp(23px, 2.3vw, 32px); line-height: 1; letter-spacing: -.01em; color: var(--ink); padding-right: 32px; }
.partner__logo small { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.partner__name { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.partner__rel { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--bronze); }
.partner__go { position: absolute; top: 24px; right: 24px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; transition: transform .4s var(--ease), stroke .3s; }
a.partner:hover .partner__go { transform: translate(3px, -3px); stroke: var(--bronze); }

/* ---------- 09 navigator quiz ---------- */
.start__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) { .start__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .start__head { position: sticky; top: 120px; } }
.start__head .shead__note { margin-top: 24px; }
.quiz { padding: clamp(22px, 3vw, 40px); min-height: 440px; display: grid; align-content: start; gap: 26px; }
.quiz__steps { display: flex; gap: 8px; }
.quiz__steps span { flex: 1; height: 3px; border-radius: 3px; background: rgba(28, 25, 21, .1); transition: background .4s; }
.quiz__steps span.is-on { background: linear-gradient(90deg, var(--bronze-soft), var(--bronze)); }
.quiz__q { border: 0; min-width: 0; }
.quiz__q legend { margin-bottom: 20px; padding: 0; font-weight: 700; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.2; color: var(--ink); }
.quiz__opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); text-align: left;
  font-size: 15px; font-weight: 500; line-height: 1.4; transition: border-color .25s, background .25s, translate .35s var(--ease);
}
.opt::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--bronze-soft); transition: background .25s, border-color .25s; }
.opt:hover, .opt:focus-visible { border-color: var(--bronze-soft); background: #fff; translate: 4px 0; }
.opt:hover::before, .opt:focus-visible::before { background: var(--bronze); border-color: var(--bronze); }
.quiz__back { justify-self: start; min-height: 44px; margin-top: 6px; background: none; border: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.quiz__back:hover { color: var(--bronze); }
.quiz__q.is-entering, .quiz__result.is-entering { animation: quizIn .6s var(--ease) both; }
@keyframes quizIn { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
.quiz__result { display: grid; gap: 16px; outline: none; }
.quiz__label { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.quiz__title { font-weight: 800; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; color: var(--ink); }
.quiz__route { counter-reset: r; display: grid; gap: 10px; }
.quiz__route li {
  counter-increment: r; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--sheet); font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
}
.quiz__route li::before {
  content: counter(r, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #FFF8EC;
  background: linear-gradient(180deg, #8E6E42, #614829); box-shadow: inset 0 1px 0 rgba(255, 236, 204, .3);
}
.quiz__route b { display: block; color: var(--ink); font-weight: 700; }
.quiz__note { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }

/* ---------- 10 process ---------- */
.steps { position: relative; display: grid; gap: 14px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.steps__line { display: none; }
.step {
  position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.4vw, 30px); border-radius: 20px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.step__num {
  font-weight: 800; font-size: clamp(40px, 3.4vw, 54px); line-height: 1; letter-spacing: -.02em;
  width: max-content; color: transparent; background: linear-gradient(180deg, #A9874F, var(--bronze-deep));
  -webkit-background-clip: text; background-clip: text;
}
.step__t { font-weight: 700; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink); }
.step p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- 11 contact (night) ---------- */
.contact__grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.contact__intro .shead__note { margin-top: 24px; }
.contact__list { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line-night); }
.contact__list div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-night); }
.contact__list dt { padding-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); }
.contact__list dd a { font-size: 17px; color: var(--on-night); overflow-wrap: anywhere; transition: color .25s; }
.contact__list dd a:hover { color: var(--gold); }
.form { display: grid; gap: 24px; padding: clamp(22px, 3vw, 40px); }
.contact .form { background: var(--night-2); border-color: var(--line-night); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.form__row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .85; }
.field__input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-night-2);
  background: rgba(255, 255, 255, .04); color: var(--on-night); font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field__input:hover { border-color: rgba(238, 231, 219, .36); }
.field__input:focus, .field__input:focus-visible { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 3px rgba(230, 201, 148, .18); }
.field__input--area { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--on-night-muted); border-bottom: 1.5px solid var(--on-night-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__select select { padding-right: 44px; cursor: pointer; }
.field__select option { color: var(--ink); background: #fff; }
.field__error { font-size: 13px; color: var(--err-night); }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: rgba(240, 182, 164, .75); }
.field--check { grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.field--check label { font-size: 14px; line-height: 1.5; cursor: pointer; color: var(--on-night-2); }
.field--check .field__error { grid-column: 2; }
.check {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 6px; border: 1px solid rgba(238, 231, 219, .4); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background .25s, border-color .25s;
}
.check::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.check:checked { border-color: transparent; background: var(--gold); }
.check:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.field.is-invalid .check { border-color: rgba(240, 182, 164, .8); }
.form__foot { display: grid; gap: 14px; }
.form__status { font-size: 14px; line-height: 1.55; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--on-night); }
.form__status.is-error { color: var(--err-night); }
.form__status a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer (night) ---------- */
.footer { position: relative; padding: clamp(72px, 9vw, 128px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--line-night); }
@media (max-width: 1500px) { .footer__bottom { padding-right: 76px; } }
.footer__word { font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 8.4vw, 136px); line-height: .94; letter-spacing: -.03em; color: var(--on-night); }
.footer__word em { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: -.01em; color: var(--gold); }
.footer__grid { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1.7fr 1fr; gap: 48px; } }
.footer__brand { display: grid; gap: 10px; align-content: start; }
.footer__name { font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: .02em; color: var(--on-night); }
.footer__sub { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); line-height: 1.5; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; align-content: start; font-size: 14px; }
@media (min-width: 560px) { .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer__nav a, .footer__contacts a { padding-block: 4px; color: var(--on-night-muted); transition: color .25s; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--gold); }
.footer__contacts { display: grid; gap: 4px; align-content: start; font-size: 14px; }
.footer__contacts a { color: var(--on-night); }
.footer__contacts p { margin-top: 8px; color: var(--on-night-muted); }
.credits { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line-night); font-size: 12.5px; line-height: 1.6; color: var(--on-night-muted); }
.credits summary { cursor: pointer; color: var(--on-night-2); font-weight: 600; min-height: 32px; }
.credits summary:hover { color: var(--gold); }
.credits p { margin-top: 10px; }
.credits ul { margin-top: 10px; padding-left: 18px; display: grid; gap: 4px; list-style: disc; }
.credits a { color: var(--on-night-2); text-decoration: underline; text-decoration-color: rgba(238, 231, 219, .3); text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-night); font-size: 13px; color: var(--on-night-muted); }
.footer__legal { display: grid; gap: 4px; line-height: 1.55; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-night); font-weight: 600; transition: color .25s; }
.footer__up svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.footer__up:hover { color: var(--gold); }
.footer__up:hover svg { transform: translateY(-3px); }

/* ---------- lightbox: a dark room for photographs ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 15, 11, .97); color: var(--on-night); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lbIn .35s ease; }
.lightbox::backdrop { background: rgba(18, 15, 11, .6); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 72px 96px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(238, 231, 219, .3) transparent; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - var(--lb-chrome, 150px)); max-height: calc(100dvh - var(--lb-chrome, 150px));
  width: auto; height: auto; object-fit: contain; opacity: 0; transform: scale(.985);
  transition: opacity .4s ease, transform .6s var(--ease); user-select: none; -webkit-user-drag: none; border-radius: 6px;
}
.lightbox__img.is-ready { opacity: 1; transform: none; }
.lightbox__img.is-tall { width: min(100%, 1100px); max-height: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 96px 26px; font-size: 14px; color: var(--on-night-muted); }
.lightbox__count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(238, 231, 219, .22); background: rgba(32, 29, 25, .7); color: var(--on-night); transition: background .25s, border-color .25s, color .25s;
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
@media (max-width: 720px) {
  .lightbox { --lb-chrome: 230px; }
  .lightbox__stage { padding: 68px 8px 8px; }
  .lightbox__bar { padding: 10px 16px 88px; flex-direction: column; gap: 4px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
html.lb-open, html.lb-open body { overflow: hidden; }

/* ==========================================================================
   OPENING SEQUENCE «Обмер» (js/preloader.js). The cover is painted from the
   first frame (html.preloading is set in <head>); the whole screen becomes a
   measured-drawing sheet, the facade is drawn, turns into the photo, and the
   photo flies into the banner of the portfolio mock on the first screen.
   ========================================================================== */
.pre { display: none; }
html.preloading, html.preloading body { overflow: hidden; }
html.preloading .pre {
  display: block; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: linear-gradient(180deg, #FBF8F2, #F2ECE2);
  transition: opacity .5s var(--soft);
  animation: preFailsafe 0s linear 12s forwards;            /* never strands the page */
}
html.preloading .pre.is-open { background: none; }
.pre.is-leaving { opacity: 0; pointer-events: none; }
@keyframes preFailsafe { to { visibility: hidden; } }

.pre-sheet { position: absolute; inset: 0; }
.pre-sheet__paper {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  background:
    repeating-linear-gradient(0deg, rgba(126, 96, 54, .055) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(126, 96, 54, .055) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #FBF8F2, #F2ECE2);
  box-shadow: inset 0 0 0 14px #FBF8F2, inset 0 0 0 15px rgba(126, 96, 54, .4), inset 0 0 0 20px #FBF8F2, inset 0 0 0 21px rgba(126, 96, 54, .18);
}
.pre-sheet.is-in .pre-sheet__paper { opacity: 1; }
.pre-sheet__art { --p: -4%; position: absolute; }
.pre-sheet__lines {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transition: opacity .8s ease;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 4%), transparent calc(var(--p) + 2%));
          mask-image: linear-gradient(90deg, #000 calc(var(--p) - 4%), transparent calc(var(--p) + 2%));
}
.pre-sheet__pen {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 1px; opacity: 0;
  background: linear-gradient(180deg, transparent, var(--bronze) 8%, var(--bronze) 92%, transparent);
  box-shadow: 0 0 14px 2px rgba(194, 166, 120, .55);
}
.pre-sheet__dims { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; transition: opacity .8s ease; }
.pre-sheet__dims .dl { fill: none; stroke: var(--bronze); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .45; transition: stroke-dashoffset 1s var(--io) calc(var(--i) * 70ms); }
.pre-sheet__dims .dl--d, .pre-sheet__dims .dl--c { opacity: .85; }
.pre-sheet__dims text { font-family: var(--serif); font-size: 14px; font-weight: 600; fill: var(--bronze); text-anchor: middle; opacity: 0; transition: opacity .5s ease calc(var(--i) * 70ms); }
.pre-sheet.is-drawn .dl { stroke-dashoffset: 0; }
.pre-sheet.is-drawn text { opacity: 1; }
.pre-sheet__title {
  position: absolute; left: clamp(34px, 3.2vw, 48px); bottom: clamp(32px, 4vh, 44px); margin: 0; display: grid; gap: 5px;
  opacity: 0; transition: opacity .6s ease .3s;
}
.pre-sheet__title b { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.pre-sheet__title span { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.pre-sheet.is-in .pre-sheet__title { opacity: 1; }
.pre-sheet__stamp {
  position: absolute; right: clamp(30px, 3vw, 44px); bottom: clamp(30px, 3.6vh, 42px); z-index: 5;
  display: grid; grid-template-columns: auto auto; border: 1px solid rgba(126, 96, 54, .45);
  background: rgba(255, 253, 249, .94); font-size: 10.5px; line-height: 1.3; color: var(--ink-2);
  opacity: 0; transition: opacity .6s ease .2s;
}
.pre-sheet__stamp > * { display: flex; align-items: center; padding: 6px 12px; border: 1px solid rgba(126, 96, 54, .2); margin: -1px 0 0 -1px; }
.pre-sheet__stamp b { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.pre-sheet__val { gap: 3px; font-size: 12px; color: var(--muted); }
.pre-sheet__val em { font-style: normal; font-size: 26px; line-height: 1; font-weight: 200; color: var(--ink); font-variant-numeric: tabular-nums; }
.pre-sheet.is-in .pre-sheet__stamp { opacity: 1; }
.pre-sheet.is-photo .pre-sheet__lines { opacity: 0; }
.pre-sheet.is-photo .pre-sheet__dims { opacity: .3; }
.pre-sheet.is-gone .pre-sheet__paper, .pre-sheet.is-gone .pre-sheet__dims,
.pre-sheet.is-gone .pre-sheet__title, .pre-sheet.is-gone .pre-sheet__stamp { opacity: 0; transition: opacity .45s ease; }
.pre-sheet__skip {
  position: absolute; top: clamp(28px, 3.4vh, 38px); right: clamp(32px, 3vw, 46px); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze);
  transition: background-color .25s, color .25s, opacity .4s;
}
.pre-sheet__skip:hover { background: rgba(126, 96, 54, .1); color: var(--bronze-deep); }
.pre-sheet__skip span { font-size: 13px; letter-spacing: 0; transition: translate .3s var(--ease); }
.pre-sheet__skip:hover span { translate: 3px 0; }
.pre-sheet__skip.is-gone { opacity: 0; pointer-events: none; }
.pre-photo { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 3; overflow: hidden; opacity: 0; transition: opacity .7s ease; }
.pre-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pre-photo.is-in { opacity: 1; }
@media (max-width: 700px) {
  .pre-sheet__title { left: 30px; right: 130px; bottom: auto; top: 34px; }
  .pre-sheet__stamp { left: 26px; right: 26px; font-size: 9.5px; }
  .pre-sheet__skip { top: 26px; right: 22px; }
}

/* ==========================================================================
   SCROLL REVEAL — individual translate/scale/clip-path, never transform
   ========================================================================== */
.js [data-rv] { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease) calc(var(--d, 0) * 90ms), translate 1.1s var(--ease) calc(var(--d, 0) * 90ms); }
.js [data-rv].is-in { opacity: 1; translate: 0 0; }
.js [data-rv="wipe"] { opacity: 1; translate: 0 15px; clip-path: inset(100% 0 -30% 0); transition: clip-path 1.1s var(--ease), translate 1.1s var(--ease); }
.js [data-rv="wipe"].is-in { translate: 0 0; clip-path: inset(-30% -10% -30% -10%); }
/* clip the children, not the observed element: a fully clipped target never intersects */
.js [data-rv="clip"] { opacity: 1; translate: none; }
.js [data-rv="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--io) calc(var(--d, 0) * 110ms); }
.js [data-rv="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-rv="clip"] img { scale: 1.12; transition: scale 1.7s var(--ease) calc(var(--d, 0) * 110ms), transform 1.2s var(--ease); }
.js [data-rv="clip"].is-in img { scale: 1; }
.js .case-hero[data-rv="clip"]::before { transition: opacity 1s ease .4s; }
.js .case-hero[data-rv="clip"]:not(.is-in)::before { opacity: 0; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; width: auto; flex-wrap: wrap; }
  .ticker ul[aria-hidden], .ticker ul + ul { display: none; }
  .ticker ul { flex-wrap: wrap; row-gap: 10px; padding-inline: var(--gut); }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .js [data-rv], .js [data-rv="clip"] > *, .js [data-rv="wipe"] { opacity: 1; translate: none; clip-path: none; }
  .js [data-rv="clip"] img { scale: 1; }
  .js .drawing { --draw: 0%; }
  .seal { animation: none; }
}

@media print {
  .navwrap, .wa, .ticker, .lightbox, .form, .ring { display: none !important; }
  body, html { background: #fff; color: #000; }
}
