/* DIMNAMIC DESIGN — стилове на публичните страници.
   Палитрата се сменя от трите реда под „Палитра“: всички фонове, текстове, бутони, линии,
   фокусът и избраните състояния се извеждат от тях. */

/* ---------- Шрифтове ---------- */

/* Sofia Sans (Lettersoup, SIL Open Font License): българските форми се включват от lang="bg". */
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-cyrillic.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Само за надписа DIMNAMIC DESIGN в знака (логото). */
@font-face {
  font-family: "Uni Sans Heavy";
  src: url("../fonts/uni-sans-heavy.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ---------- Палитра и мерки ---------- */

:root {
  /* Палитра (2026-11-19, v7): Chalk White, Chocolate, Baby Blue. */
  --chalk: #F5F2E9;       /* основен фон, въздух около работата */
  --chocolate: #463636;   /* заглавия, текст, контури, тъмни секции */
  --baby: #BED8E7;        /* акцент: само основното действие и избраното */

  /* Роли. Компонентите ползват само тях. */
  --bg: var(--chalk);
  --ink: var(--chocolate);
  --field: #ECE6D9;       /* поле около кадрите: шоколадов текст 9.2:1 */
  --deep: var(--chocolate);
  --accent: var(--baby);  /* само като фон, винаги с шоколадов текст (7.7:1) и контур */
  --soft: #6b5b59;        /* по-мек текст: 5.7:1 върху фона, 5.2:1 върху полето */
  --line: rgba(70, 54, 54, .16);
  --edge: #857775;        /* контур на полетата: 3.8:1 върху фона */
  --btn: var(--baby);
  --btn-text: var(--chocolate);
  --btn-edge: var(--chocolate);
  --focus: var(--chocolate);
  --picked: var(--baby);
  --picked-text: var(--chocolate);
  --paper: #FFFDF8;       /* фон на полетата за писане */
  --tile: #ece6e4;
  --danger: #a3261b;      /* само за грешки във формата, винаги с текст: 6.6:1 */

  --font: "Sofia Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-display: clamp(2.375rem, 1.55rem + 3.5vw, 4.5rem);
  --step-h1: clamp(2.25rem, 1.7rem + 2.3vw, 3.75rem);
  --step-h2: clamp(1.875rem, 1.45rem + 1.7vw, 3rem);
  --step-h3: clamp(1.375rem, 1.25rem + .45vw, 1.625rem);
  --step-lead: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem);
  --step-body: 1.125rem;
  --step-small: .9375rem;

  --m: clamp(16px, 4.2vw, 56px);                    /* еднакви странични полета */
  --max: 1320px;
  --gap: clamp(16px, 2.4vw, 32px);
  --section: clamp(88px, 11vw, 168px);              /* разстояние между секциите */
  --bar-h: 72px;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --fast: 160ms;
}
@media (max-width: 860px) {
  :root { --bar-h: 60px; }
}

/* ---------- Основа ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Заглавието на избраната секция остава под горната лента. */
  scroll-padding-top: calc(var(--bar-h) + 24px);
}
body {
  margin: 0;
  overflow-x: clip; /* меките сенки на кадрите не разширяват страницата встрани */
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html.menu-open { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--field); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--m); top: 8px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--bg); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

main > section, main > article, main > nav, .foot__in, .bar__in, .foot__legal {
  width: min(100% - 2 * var(--m), var(--max));
  margin-inline: auto;
}

/* Едноколонните мрежи не растат по-широко от екрана заради една дълга дума (голям текст, 360 px):
   думата се пренася в рамките на колоната. */
.page-head, .prose, .case__head, .sec-head--stack, .proc__head, .contact__head, .form, .field,
.menu__foot, .foot__about, .band, .pair__item, .ex, .step, .inc li, .qa > div {
  grid-template-columns: minmax(0, 1fr);
}
.h1, .hero__h, .h2, .h3 { overflow-wrap: anywhere; }

/* ---------- Типография ---------- */

.h1, .hero__h, .h2, .h3, .h4 { font-weight: 600; text-wrap: balance; }
.hero__h { font-size: var(--step-display); line-height: 1.02; letter-spacing: -.022em; max-width: 15ch; }
.h1 { font-size: var(--step-h1); line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; }
.h2 { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -.015em; }
.h3 { font-size: var(--step-h3); line-height: 1.2; letter-spacing: -.005em; }
.h4 { font-size: var(--step-body); line-height: 1.35; }
.h3 a, .h4 a { text-decoration: none; }
.sec-lead { font-size: var(--step-lead); line-height: 1.5; max-width: 52ch; }
p { max-width: 64ch; }

/* ---------- Връзки, стрелки и бутони ---------- */

/* Подчертаването е отделна линия, която се свива (или разгъва) от ляво надясно: не мести текста. */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px; font-weight: 600; text-decoration: none;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; transform-origin: right;
  transition: transform var(--fast) var(--ease);
}
.link--quiet { font-weight: 400; }
.link--quiet::after { transform: scaleX(0); transform-origin: left; }
.link--back::before { content: "←"; font-weight: 400; }
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(0); }
  .link--quiet:hover::after { transform: scaleX(1); }
}

/* Стрелка: рамената се разтварят и стрелката се плъзга 2px (без да мести съседен текст). */
.arw { display: inline-flex; flex: none; transition: transform var(--fast) var(--ease); }
.arw svg { width: 1em; height: 1em; overflow: visible; }
.arw path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.arw__arm { transform-box: view-box; transform-origin: 10px 8px; transition: transform var(--fast) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a:hover > .arw, a:hover .row__link .arw { transform: translateX(3px); }
  a:hover > .arw .arw__arm--top { transform: rotate(8deg); }
  a:hover > .arw .arw__arm--bot { transform: rotate(-8deg); }
  a:hover > .arw--out { transform: translate(2px, -2px); }
  a:hover > .arw--down { transform: translateY(3px); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 26px;
  background: var(--btn); color: var(--btn-text);
  border: 0; border-radius: 0;
  font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), background-color var(--fast) var(--ease);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--btn) 88%, var(--bg)); }
}
.btn[disabled] { cursor: progress; opacity: .7; }
.pair-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Знак и горна лента ---------- */

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.brand .mark { width: 40px; height: auto; flex: none; }
.brand__word {
  font-family: "Uni Sans Heavy", var(--font); font-weight: 800;
  font-size: 1.0625rem; letter-spacing: .01em; line-height: 1; white-space: nowrap;
}

.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.bar.is-scrolled { border-bottom-color: var(--line); }
/* При много голям текст бутонът „Меню“ слиза на втори ред, вместо да излезе извън екрана. */
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: var(--bar-h); }
.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.bar__nav a {
  position: relative; padding: 10px 0; text-decoration: none; font-size: 1.0625rem;
}
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.bar__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover::after { transform: scaleX(1); } }
.bar__lang { font-weight: 600; }
.bar__menu {
  display: none; min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1px solid var(--edge); border-radius: 0;
  font-weight: 600; cursor: pointer;
  transition: transform 120ms var(--ease);
}
.bar__menu:active { transform: scale(.97); }

@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .brand .mark { width: 34px; }
  .brand__word { font-size: .9375rem; }
}

/* ---------- Меню (телефон) ---------- */

.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0 var(--m) max(24px, env(safe-area-inset-bottom));
  border: 0; background: var(--bg); color: var(--ink);
  flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.menu[open] { display: flex; }
.menu.is-open { opacity: 1; transform: none; }
.menu.is-closing { opacity: 0; transform: translateY(-6px); transition-duration: 140ms; }
.menu::backdrop { background: transparent; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--bar-h); }
.menu__close {
  min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1px solid var(--edge); border-radius: 0;
  font-weight: 600; cursor: pointer;
}
.menu__links { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--line); }
.menu__links a {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: var(--step-h3); font-weight: 600; text-decoration: none;
}
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.menu__foot { display: grid; gap: 20px; margin-top: auto; padding-top: 40px; justify-items: start; }
.menu__foot .btn { width: 100%; }
.menu__direct { display: grid; gap: 6px; }
.menu__direct a { padding: 4px 0; }
.menu__lang { padding: 6px 0; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* ---------- Първи екран ---------- */

.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(40px, 8vh, 112px) clamp(56px, 9vh, 120px);
}
.hero__copy { grid-column: 1 / span 8; }
.hero__h { max-width: 13em; }
.hero__lead { margin-top: 28px; font-size: var(--step-lead); max-width: 42ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

@media (max-width: 1000px) {
  .hero__copy { grid-column: 1 / span 8; }
}
/* Телефон: плочката запазва естествените 4:5 на кадъра (без шев около сянката), по-тясна и в средата,
   така че заглавието, бутонът и кучето да се виждат на 360 × 740. */
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding-block: 20px 56px; }
  .hero__copy { grid-column: 1; }
  .hero__lead { margin-top: 14px; }
  .hero__actions { margin-top: 22px; gap: 4px 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Рамка на сайт (снимка в прозорец на браузър) ---------- */

.shot { display: block; background: var(--paper); border: 1px solid var(--line); }
.shot__bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px;
  border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--soft);
}
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot__bar em { font-style: normal; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot__view { display: block; overflow: hidden; }
.shot__view picture, .shot__view img { display: block; width: 100%; height: auto; }

/* ---------- Избрани проекти ---------- */

.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--stack { display: grid; justify-content: start; gap: 16px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); margin-top: clamp(56px, 7vw, 104px); }
.pair--one { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.pair__item { display: grid; gap: 12px; align-content: start; }
.pair__media { display: block; margin-bottom: 12px; }
.pair__media .shot__view { aspect-ratio: 4 / 3; }

@media (max-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair__media .shot__view { aspect-ratio: 4 / 4; }
  .pair__media .shot__view img { width: 130%; max-width: none; }
}

/* ---------- Редове (услуги, страници) ---------- */

.svc, .proc, .faq, .sub-sec { padding-top: var(--section); }
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__link {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; align-items: baseline;
  gap: 6px var(--gap); padding: 26px 0; text-decoration: none;
}
.row__name { font-size: var(--step-h3); font-weight: 600; line-height: 1.2; }
.row__text { color: var(--ink); }
.row__link .arw { align-self: center; font-size: 1.25rem; }
@media (hover: hover) and (pointer: fine) {
  .row__link:hover .row__name { text-decoration: underline; text-decoration-thickness: 1px; }
  .row__link:hover > .arw { transform: translateX(3px); }
  .row__link:hover > .arw .arw__arm--top { transform: rotate(8deg); }
  .row__link:hover > .arw .arw__arm--bot { transform: rotate(-8deg); }
}
.rows--small .row__link { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; }
.rows--small .row__name { font-size: var(--step-body); }
/* „По вид бизнес“: заглавие на свой ред и под него връзките като подредени капсули, вместо разпилени подчертани редове. */
.svc__for { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.svc__for span { flex: 1 0 100%; margin-bottom: 4px; font-size: var(--step-small); color: var(--soft); }
.svc__for a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); text-decoration: none; font-size: .9375rem; line-height: 1.2;
  transition: background-color var(--fast) var(--ease), transform 120ms var(--ease);
}
.svc__for a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .svc__for a:hover { background: var(--baby); } }
/* Телефон: две равни колонки, всяка връзка в еднаква клетка (най-много два реда текст). */
@media (max-width: 560px) {
  .svc__for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .svc__for span { grid-column: 1 / -1; }
  .svc__for a { min-height: 60px; padding: 10px 14px; border-radius: 14px; font-size: .875rem; line-height: 1.25; }
}
.svc__note { margin-top: 28px; max-width: 56ch; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
@media (max-width: 760px) {
  .row__link { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 0; }
  .row__text { grid-column: 1; grid-row: 2; }
  .row__link .arw { grid-column: 2; grid-row: 1; }
}

/* ---------- Как работя ---------- */

.proc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.proc__head { grid-column: 1 / span 5; display: grid; gap: 20px; position: sticky; top: calc(var(--bar-h) + 32px); }
.proc__head p { font-size: var(--step-lead); max-width: 34ch; }
.steps { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.step { display: grid; gap: 10px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .proc { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .proc__head, .steps { grid-column: 1; position: static; }
}

/* ---------- Въпроси ---------- */

.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.faq .h2 { grid-column: 1 / span 5; }
.faq__list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.faq__sign { position: relative; flex: none; width: 14px; height: 14px; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor;
  transition: transform var(--fast) var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding-bottom: 24px; }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .faq .h2, .faq__list { grid-column: 1; }
}

/* ---------- Запитване ---------- */

.contact { width: 100% !important; max-width: none !important; margin-top: var(--section); background: var(--field); }
.contact__in {
  width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: clamp(64px, 8vw, 128px);
}
.contact__head { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.contact__direct { margin-top: 12px; line-height: 1.8; }
.contact__direct a { font-weight: 600; }
.form { grid-column: 7 / -1; display: grid; gap: 22px; }
@media (max-width: 860px) {
  .contact__in { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .contact__head, .form { grid-column: 1; }
}

.field { display: grid; gap: 8px; max-width: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; }
.field legend { padding: 0; margin-bottom: 10px; }
.field__opt, .field__hint { font-weight: 400; color: var(--soft); }
.contact .field__opt, .contact .field__hint, .contact .form__next { color: var(--ink); }
.field__hint { font-size: var(--step-small); }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--edge); border-radius: 0;
  font-size: var(--step-body); line-height: 1.4;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; overflow: hidden; }
.field input[type="text"]:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 2px var(--ink); }
.field textarea::placeholder { color: var(--soft); opacity: 1; }

/* Етикетът е вътре в рамката (като при Revolut): големият текст в празното поле се смалява нагоре при фокус или написан текст.
   Работи само с CSS: празното поле има placeholder=" ", а етикетът е след полето в кода. */
.field__box { position: relative; display: block; }
.field__box > input[type="text"], .field__box > textarea { padding: 27px 14px 8px; min-height: 62px; }
.field__box > textarea { padding-top: 31px; min-height: 140px; }
.field__box > label {
  position: absolute; left: 15px; right: 15px; top: 20px; margin: 0; pointer-events: none;
  font-weight: 400; font-size: var(--step-body); line-height: 1.4; color: var(--soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: 0 0;
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.field__box > input:focus ~ label, .field__box > input:not(:placeholder-shown) ~ label, .field__box > input:-webkit-autofill ~ label,
.field__box > textarea:focus ~ label, .field__box > textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-13px) scale(.8);
}
.field__box > input:focus ~ label, .field__box > textarea:focus ~ label { color: var(--ink); }
.field__box > textarea::placeholder { color: transparent; }
.field__box > textarea:focus::placeholder { color: var(--soft); }
.field__error { color: var(--danger); font-weight: 600; font-size: var(--step-small); }
.field__error:empty { display: none; }
.field.is-error input[type="text"], .field.is-error textarea { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field.is-shaking { animation: shake 280ms var(--ease); }
@keyframes shake { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }

.kinds__list { display: flex; flex-wrap: wrap; gap: 8px; }
.kind { position: relative; cursor: pointer; }
.kind input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kind span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  background: var(--paper); border: 1px solid var(--edge);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.kind input:checked + span { background: var(--picked); color: var(--picked-text); border-color: var(--picked); }
.kind input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.kind:active span { transform: scale(.98); }

.consent label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { font-weight: 600; }
.form__end { display: grid; gap: 14px; justify-items: start; }
.form__next { font-size: var(--step-small); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--ink); font-weight: 600; max-width: none; }
.form__status.is-bad { border-left-color: var(--danger); }
@media (max-width: 760px) {
  .form__end .btn { width: 100%; }
}

/* ---------- Долна част ---------- */

.foot { margin-top: var(--section); border-top: 1px solid var(--line); }
main:has(> .contact:last-child) ~ .foot, main:has(> .band:last-child) ~ .foot, main:has(> .office:last-child) ~ .foot { margin-top: 0; border-top: 0; }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px var(--gap); padding-block: 64px 48px; }
.foot__about { display: grid; gap: 16px; align-content: start; }
.foot__about p { color: var(--soft); max-width: 30ch; }
.foot__col { display: grid; gap: 4px; align-content: start; }
.foot__col a { padding: 6px 0; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__col a:hover { text-decoration: underline; } }
.foot__h { font-weight: 600; margin-bottom: 6px; }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 32px; border-top: 1px solid var(--line);
  font-size: var(--step-small); color: var(--soft); max-width: var(--max);
}
@media (max-width: 860px) {
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
/* Телефон: чист подвал. Марка и ред за фирмата, под тях две равни колони (услуги | сайт) с връзки една под друга, най-долу контактът на един ред. */
@media (max-width: 560px) {
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 36px 28px; }
  .foot__about { grid-column: 1 / -1; gap: 8px; }
  .foot__col { display: grid; align-content: start; gap: 0; }
  .foot__h { margin: 0 0 6px; font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--soft); }
  .foot__col a { padding: 8px 0; font-size: .9375rem; line-height: 1.3; }
  div.foot__col { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  div.foot__col .foot__h { flex: 1 0 100%; }
}

/* ---------- Вътрешни страници ---------- */

.page-head { padding-block: clamp(40px, 7vw, 104px) 0; display: grid; gap: 24px; justify-items: start; }
.page-head--short { padding-bottom: var(--section); }
.page-head .pair-links { margin-top: 8px; }
.crumbs { font-size: var(--step-small); color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--soft); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.split > .h2 { grid-column: 1 / span 5; }
.split > :not(.h2) { grid-column: 7 / -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .split > .h2, .split > :not(.h2) { grid-column: 1; }
}
.inc, .qa, .prep { border-top: 1px solid var(--line); }
.inc li, .qa > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.inc p, .qa dd { color: var(--ink); }
.qa dt { font-weight: 600; }
.prep li { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); position: relative; }
.prep li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 2px; background: var(--ink); }
.sub-work .sec-lead { margin: -8px 0 40px; }
.sub-work .h2 { margin-bottom: 24px; }
.sub-work .pair { margin-top: 0; }

.band {
  width: 100% !important; max-width: none !important; margin-top: var(--section);
  background: var(--field); padding: clamp(64px, 8vw, 120px) max(var(--m), calc((100% - var(--max)) / 2));
  display: grid; gap: 22px; justify-items: start;
}

/* Плавен преход към завършващия блок: лентата започва прозрачна и свършва в точния цвят на блока. */
.fade {
  --fade: clamp(150px, 20vw, 260px); --rgb: 236, 230, 217;
  margin: calc(var(--section) * .5) 0 -2px; height: var(--fade); width: 100%;
  background: linear-gradient(to bottom, rgba(var(--rgb), 0) 0%, rgba(var(--rgb), .08) 20%, rgba(var(--rgb), .3) 45%, rgba(var(--rgb), .65) 70%, rgba(var(--rgb), .9) 88%, rgb(var(--rgb)) 100%);
}
.fade--dark { --rgb: 70, 54, 54; }
.fade + .band { margin-top: 0; }

.prose { padding-top: clamp(40px, 7vw, 96px); display: grid; gap: 18px; }
.prose > * { max-width: 70ch; }
.prose .h3 { margin-top: 24px; }
.prose p:last-child { margin-top: 32px; }

/* ---------- Движение ---------- */

/* Влизане на частите на секциите: само ако скриптът е тръгнал (html.motion), иначе всичко се вижда. */
.motion [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.motion [data-rise].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .motion [data-rise] { opacity: 1; transform: none; }
  .btn:active, .bar__menu:active, .kind:active span { transform: none; }
}

/* =====================================================================
   Светла тема v7 (2026-11-19): Chalk White, Chocolate, Baby Blue.
   Синьото е само фон на основното действие и на избраното, винаги с шоколадов текст и контур.
   Тъмните секции сменят ролите на самата секция, компонентите остават същите.
   ===================================================================== */

::selection { background: var(--baby); color: var(--chocolate); }
.skip { background: var(--baby); color: var(--chocolate); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--chocolate); }

/* Тъмен блок: призивът в края на проект. */
.band--dark {
  --bg: var(--chocolate); --ink: var(--chalk); --soft: #d8ccc3; --field: #574444; --paper: #3b2d2d;
  --edge: #a8998f; --line: rgba(245, 242, 233, .18); --focus: var(--baby); --danger: #ffb4a8; --btn-edge: var(--baby);
  background: var(--bg); color: var(--ink);
}
/* Запитването: син фон (като акцента), шоколадов текст, светли полета и шоколадов бутон „Изпратете запитване“. */
.contact {
  --bg: var(--baby); --ink: var(--chocolate); --soft: #5a4a48; --field: var(--baby); --paper: #f7f5ee;
  --edge: rgba(70, 54, 54, .55); --line: rgba(70, 54, 54, .22); --focus: var(--chocolate); --danger: #8f2a1c;
  --btn: var(--chocolate); --btn-text: var(--chalk); --btn-edge: var(--chocolate);
  --fade-out: clamp(120px, 16vw, 200px);
  background: var(--bg); color: var(--ink);
}
/* Преливане и надолу: синьото на запитването плавно става цвета на подвала, без рязка граница. */
.contact__in { padding-bottom: calc(var(--fade-out) * .8); }
.contact::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: var(--fade-out); pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 242, 233, 0) 0%, rgba(245, 242, 233, .1) 20%, rgba(245, 242, 233, .35) 45%, rgba(245, 242, 233, .7) 70%, rgba(245, 242, 233, .92) 88%, var(--chalk) 100%);
}

/* ---------- Бутони: хапчета ---------- */

.btn { border-radius: 999px; padding: 12px 26px; box-shadow: inset 0 0 0 1px var(--btn-edge); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #a9cbe0; }
  .contact .btn:hover { background: #5b4747; }
}
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--field); }
}
.btn--small { min-height: 44px; padding: 9px 18px; font-size: 1rem; }
.bar__menu, .menu__close { border-radius: 999px; padding-inline: 20px; border-color: var(--ink); }
/* Телефон: три чертички вместо думата „Меню“ (името остава в aria-label) */
.bar__menu { flex-direction: column; justify-content: center; gap: 5px; width: 48px; min-height: 48px; padding: 0; border: 0; background: transparent; }
.bar__menu i { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Горна лента: връзките в обща капсула ---------- */

.bar { background: var(--bg); }
.bar__nav { gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.bar__nav a { padding: 8px 16px; border-radius: 999px; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.bar__nav a::after { display: none; }
.bar__nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:not([aria-current]):hover { background: var(--field); } }
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }

/* ---------- Първи екран: кой, какво, как да започнем разговор ---------- */

/* Текстът води (7 колони), доберманът е тих подпис (5). Нищо не влиза с анимация: заглавието
   и основното действие са четими от първия кадър. */
.hero {
  position: relative; overflow-x: clip;
  align-items: center; row-gap: 0;
  padding-block: clamp(24px, 4vh, 56px) clamp(16px, 3vh, 40px);
}
.hero__copy { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; }
.hero__h { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); max-width: 11em; }
.hero__lead { max-width: 40ch; margin-top: 24px; }
.hero__actions { margin-top: 32px; gap: 14px 28px; }
.btn--main { min-height: 56px; padding: 14px 30px; font-size: 1.125rem; }

/* Тихият подпис: полигоналният доберман на лаптоп, по-малък и без сияние, което да тегли окото. */
.hero__stage {
  grid-column: 8 / -1; grid-row: 1; position: relative; align-self: stretch;
  min-height: min(56svh, 500px);
  display: grid; place-items: center; isolation: isolate;
}
.stage__glow { display: none; } /* без сияние: подписът не тегли окото от заглавието */
.stage__view { position: absolute; inset: 0; }
/* Неподвижният кадър е снимка на самата сцена (същата поза и рамка): смяната със живата сцена не се забелязва. */
.stage__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 600ms var(--ease);
}
.hero__stage.is-live .stage__fallback { opacity: 0; }
.stage__scene {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 0s 600ms;
}
.stage__scene canvas { width: 100% !important; height: 100% !important; }
.hero__stage.is-live .stage__scene.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Превключвател на трите сцени: цифри с линия, която се пълни; спира при посочване и извън екрана. */
.hero__deck {
  grid-column: 8 / -1; grid-row: 2; justify-self: end; z-index: 3;
  display: flex; align-items: center; gap: 18px; padding-top: 4px;
}
.hero__deck[hidden] { display: none; }
.deck__label { font-size: var(--step-small); color: var(--soft); max-width: none; }
.deck__nav { display: flex; gap: 6px; }
.deck__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px; font-weight: 600; font-size: .8125rem; letter-spacing: .08em; color: var(--soft);
  border-radius: 999px; transition: color var(--fast) var(--ease);
}
.deck__btn i { display: block; width: 36px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.deck__btn i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.deck__btn.on { color: var(--ink); }
.deck__btn.on i::after { animation: deckfill var(--deck-dur, 9s) linear forwards; }
.hero__deck:not([data-run]) .deck__btn.on i::after { animation: none; }
.no-motion .deck__btn.on i::after, .deck--still .deck__btn.on i::after { animation: none; transform: scaleX(1); }
.hero__deck[data-paused] .deck__btn.on i::after { animation-play-state: paused; }
.deck__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .deck__btn:hover { color: var(--ink); } }
@keyframes deckfill { to { transform: scaleX(1); } }

@media (max-width: 1000px) {
  .hero__copy { grid-column: 1 / span 8; }
  .hero__stage, .hero__deck { grid-column: 9 / -1; }
}
/* Телефон: заглавие, представяне и действието в първия екран на 360 × 740; подписът е под тях, малък. */
@media (max-width: 760px) {
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-block: 20px 8px; }
  .hero__copy { grid-column: 1; }
  .hero__h { font-size: clamp(2.25rem, 1.2rem + 5vw, 3rem); }
  .hero__lead { margin-top: 14px; font-size: 1.0625rem; }
  .hero__actions { margin-top: 22px; gap: 6px 24px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stage { grid-column: 1; grid-row: 2; min-height: 0; height: min(40svh, 330px); margin-top: 12px; }
  .hero__deck { grid-column: 1; grid-row: 3; justify-self: stretch; justify-content: space-between; padding: 2px 0 0; }
}

/* Трите неща, които клиентът получава винаги: при „Как работя“, където отговарят на въпроса „как“. */
.facts { display: grid; gap: 10px; margin-top: 8px; }
.facts li { position: relative; padding-left: 26px; font-size: var(--step-body); }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--baby); box-shadow: inset 0 0 0 1.5px var(--chocolate);
}

/* ---------- Примери: текст вляво (5), отрязък от истинския сайт вдясно (7) ---------- */

/* Редовете стоят на обща ос: името, изречението и връзката са подравнени по средата на кадъра,
   така погледът минава спокойно от текста към детайла. Височината следва съдържанието; кадърът
   е най-много около 420 px висок при 1366 × 768, за да се вижда целият ред и началото на следващото. */
.work { padding-top: var(--section); }
.exs { display: grid; gap: clamp(64px, 8vw, 112px); }
.ex {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "name media" "type media" "line media" "link media";
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(32px, 5vw, 72px); row-gap: 10px;
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.ex__type { grid-area: type; font-size: var(--step-small); color: var(--soft); margin-top: -4px; }
.ex__name { grid-area: name; align-self: end; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; overflow-wrap: anywhere; }
.ex__name a { text-decoration: none; }
.ex__line { grid-area: line; font-size: var(--step-lead); line-height: 1.5; max-width: 36ch; }
.ex__link { grid-area: link; align-self: start; margin-top: 6px; }

/* Кадърът: чисто лице, тънък ръб, запазено място в основния цвят на снимката (няма празни дупки,
   докато се зарежда). Сянката са две широки меки ленти зад левия и десния ръб: едва отделят кадъра
   от кремавия фон и не го превръщат в „карта“. */
.ex__media {
  grid-area: media; position: relative; display: block; align-self: center;
  border-radius: 14px; background: var(--ph, var(--field));
  aspect-ratio: 16 / 10; max-height: 440px; isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.ex__media::before, .ex__media::after {
  content: ""; position: absolute; z-index: -1; top: -24px; bottom: -24px; width: 72px; pointer-events: none;
}
.ex__media::before { left: calc(-1 * min(56px, var(--m))); width: min(72px, var(--m) + 16px); background: radial-gradient(min(56px, var(--m)) 50% at 100% 50%, rgba(70, 54, 54, .13), transparent); }
.ex__media::after { right: calc(-1 * min(56px, var(--m))); width: min(72px, var(--m) + 16px); background: radial-gradient(min(56px, var(--m)) 50% at 0% 50%, rgba(70, 54, 54, .13), transparent); }
.ex__media picture, .ex__media img, .ex__media .lead { display: block; width: 100%; height: 100%; }
.ex__media img { object-fit: cover; object-position: 50% 0; border-radius: 14px; outline: 1px solid rgba(70, 54, 54, .07); outline-offset: -1px; box-shadow: 0 28px 60px -12px rgba(70, 54, 54, .40), 0 8px 24px -6px rgba(70, 54, 54, .24); }
@media (hover: hover) and (pointer: fine) {
  .ex__media img { transition: transform 600ms var(--ease); }
  .ex__media:hover img { transform: translateY(-3px); }
}
.exs__more { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- „Избрани проекти“ като книга (book.js) ----------
   Компютър: отворена книга, вляво текстът, вдясно сайтът на компютър и на телефон. Телефон: един лист на проект.
   Листът се върти около гръбчето (rotateY); отзад страницата потъмнява към гръбчето, както при истинска книга. */
.work.is-book .exs { display: none; }
.work.is-book .exs__more { margin-top: clamp(24px, 3vw, 40px); }
.book { --page: #fbf9f3; margin-top: clamp(28px, 4vw, 52px); }
.book__stage { position: relative; margin-inline: auto; isolation: isolate; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.book--spread .book__stage { width: min(100%, 980px); aspect-ratio: 3 / 2; perspective: 2800px; }
.book--single .book__stage { width: min(100%, 430px); aspect-ratio: 2 / 3; perspective: 1700px; }
.book--spread .book__stage::before {
  content: ""; position: absolute; z-index: -1; inset: 8px 0 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 34px 60px -20px rgba(70, 54, 54, .42), 0 10px 26px -10px rgba(70, 54, 54, .26);
}
.book--single .book__stage::before {
  content: ""; position: absolute; z-index: -1; inset: 8px 0 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 26px 48px -18px rgba(70, 54, 54, .42), 0 8px 20px -8px rgba(70, 54, 54, .24);
}

.page {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(22px, 3.4vw, 46px); background: var(--page); color: var(--chocolate);
}
.page::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.page--l { border-radius: 14px 0 0 14px; }
.page--r { border-radius: 0 14px 14px 0; }
.page--l::before { background: linear-gradient(to left, rgba(70, 54, 54, .20), rgba(70, 54, 54, 0) 13%); }
.page--r::before { background: linear-gradient(to right, rgba(70, 54, 54, .20), rgba(70, 54, 54, 0) 13%); }
.book--single .page { border-radius: 14px; }
.book__base--l { inset: 0 50% 0 0; }
.book__base--r { inset: 0 0 0 50%; }
.book--single .book__base { inset: 0; }

.leaf {
  position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%;
  transition: transform 900ms cubic-bezier(.645, .045, .355, 1);
}
.book--spread .leaf { left: 50%; width: 50%; }
.book--single .leaf { left: 0; width: 100%; }
.leaf.is-flipped { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face--back { transform: rotateY(180deg); }
.face > .page { inset: 0; }
.face::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 900ms ease;
  background: linear-gradient(to right, rgba(70, 54, 54, 0), rgba(70, 54, 54, .38));
}
.face--front::after { opacity: 0; }
.leaf.is-flipped .face--front::after { opacity: 1; }
.face--back::after { opacity: 1; background: linear-gradient(to left, rgba(70, 54, 54, 0), rgba(70, 54, 54, .38)); }
.leaf.is-flipped .face--back::after { opacity: 0; }

.page--text { justify-content: space-between; }
.bk__no { margin: 0; font-size: var(--step-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.bk__type { margin: 0 0 8px; font-size: var(--step-small); color: var(--soft); }
.bk__name { margin: 0 0 14px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; overflow-wrap: anywhere; }
.bk__name a { text-decoration: none; }
.bk__line { margin: 0; max-width: 32ch; font-size: var(--step-lead); line-height: 1.5; }
.bk__link { margin: 0; }

.page--media { padding: 0; }
.bk__media { position: absolute; inset: 0; display: block; background: var(--ph, var(--field)); }
.bk__wide, .bk__phone, .bk__detail { position: absolute; display: block; overflow: hidden; background: #fff; box-shadow: 0 22px 44px -14px rgba(70, 54, 54, .45), 0 6px 16px -6px rgba(70, 54, 54, .28); outline: 1px solid rgba(70, 54, 54, .08); outline-offset: -1px; }
.bk__wide { left: 8%; right: 8%; top: 10%; aspect-ratio: 8 / 5; border-radius: 10px; }
.bk__phone { right: 9%; bottom: 8%; width: 33%; aspect-ratio: 1000 / 1528; border-radius: 14px; }
.bk__detail { left: 8%; bottom: 8%; width: 46%; aspect-ratio: 3 / 2; border-radius: 10px; }
.bk__wide img, .bk__phone img, .bk__detail img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.page--project { gap: 10px; padding: 20px; }
.page--project .bk__copy { margin-top: 2px; }
.page--project .bk__name { font-size: 1.75rem; margin-bottom: 8px; }
.page--project .bk__line { font-size: var(--step-body); line-height: 1.45; }
.page--project .bk__media { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; border-radius: 12px; overflow: hidden; }
.page--project .bk__wide { left: 6%; right: 22%; top: 8%; }
.page--project .bk__phone { right: 6%; bottom: 6%; width: 30%; }
.page--project .bk__detail { left: 6%; bottom: 6%; width: 40%; }

.page--end, .page--blank { align-items: center; justify-content: center; }
.page--blank .mark { width: 72px; height: auto; opacity: .22; }
.bk__all { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.bk__all .arw { font-size: 1em; }

.book__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.book__status { margin: 0; min-width: 0; max-width: 46ch; text-align: center; font-size: var(--step-small); color: var(--soft); }
.book__btn {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform 120ms var(--ease), opacity var(--fast) var(--ease);
}
.book__btn:active:not(:disabled) { transform: scale(.94); }
.book__btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .book__btn:hover:not(:disabled) { background: var(--baby); } }
@media (max-width: 480px) { .book__status { font-size: .875rem; } .book__nav { gap: 12px; } }

/* Всички проекти: същият ред, с по-малко въздух между редовете. */
.exs--all { padding-top: clamp(40px, 5vw, 72px); gap: clamp(56px, 7vw, 96px); }
.sub-work .exs { margin-top: 8px; }

/* Телефон: вид, име, изречение, кадър (телефонната версия на сайта, квадрат), връзка. По-малко сянка,
   въздух от двете страни. */
@media (max-width: 760px) {
  .ex { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "type" "line" "media" "link"; grid-template-rows: none; row-gap: 8px; }
  .ex__line { font-size: var(--step-body); }
  .ex__media { aspect-ratio: 4 / 5; max-height: none; margin: 10px 0 4px; background: var(--ph-m, var(--ph, var(--field))); }
  /* Сенките остават в страничното поле (16 px): нищо не излиза извън екрана. */
  .ex__media::before, .ex__media::after { width: 24px; top: -8px; bottom: -8px; }
  .ex__media::before { left: -12px; background: radial-gradient(12px 50% at 100% 50%, rgba(70, 54, 54, .09), transparent); }
  .ex__media::after { right: -12px; background: radial-gradient(12px 50% at 0% 50%, rgba(70, 54, 54, .09), transparent); }
}

/* ---------- Отделен проект ---------- */

.case { padding-top: clamp(24px, 4vw, 56px); }
.case__head { display: grid; gap: 12px; justify-items: start; max-width: 62ch; }
.case__head .h1 { margin-top: 4px; }
.case__line { font-size: var(--step-lead); max-width: 44ch; }
.case__head .pair-links { margin-top: 8px; gap: 10px 20px; }
.case__host { color: var(--soft); font-size: var(--step-small); }
.case__lead { margin-top: clamp(28px, 4vw, 48px); border-radius: 20px; overflow: hidden; background: var(--field); }
.case__story {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap);
  margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line);
}
.case__story dt { font-size: var(--step-small); font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.case__story dd { margin: 0; font-size: var(--step-body); max-width: 40ch; }
.case__close { margin-top: var(--section); }
.case__close .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) var(--gap); align-items: start; }
.detail { display: grid; gap: 12px; }
.detail__img { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.detail__img img { width: 100%; height: auto; }
.detail figcaption { font-size: var(--step-small); color: var(--soft); max-width: 46ch; }
.case__full { margin-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.case__full-text { grid-column: 1 / span 5; display: grid; gap: 16px; position: sticky; top: calc(var(--bar-h) + 32px); }
.case__full-text p { color: var(--soft); }
.case__related { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.case__related a { color: var(--ink); }
.case__frame { grid-column: 7 / -1; }
.case__frame .shot__view { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .case__story { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .case__full { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .case__full-text, .case__frame { grid-column: 1; position: static; }
}
@media (max-width: 760px) {
  .case__lead { border-radius: 16px; }
}

/* Следващ проект: голяма карта със собствения му кадър. */
.nextpj { margin-top: var(--section); display: grid; gap: 16px; justify-items: start; }
.nextpj__card {
  width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--gap);
  padding: clamp(16px, 2.4vw, 32px); border-radius: 24px; background: var(--field); text-decoration: none;
  transition: transform 120ms var(--ease);
}
.nextpj__card:active { transform: scale(.99); }
.nextpj__text { display: grid; gap: 6px; padding-left: clamp(4px, 1.6vw, 24px); }
.nextpj__text small { font-size: var(--step-small); color: var(--soft); }
.nextpj__text b { font-size: var(--step-h2); font-weight: 600; line-height: 1.06; letter-spacing: -.015em; overflow-wrap: anywhere; }
.nextpj__text span { color: var(--soft); }
.nextpj__media { display: block; border-radius: 16px; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .nextpj__card:hover .lead img { transform: scale(1.02); } }
@media (max-width: 760px) {
  .nextpj__card { grid-template-columns: minmax(0, 1fr); }
  .nextpj__text { padding-left: 0; }
}

/* ---------- Рамки, редове, процес ---------- */

.shot { background: var(--paper); border-color: var(--line); border-radius: 12px; overflow: hidden; }
.shot__bar { background: var(--paper); color: var(--soft); }
.shot__bar i { background: var(--line); }
.shot__bar i:first-child { background: var(--ink); }
.shot__view { position: relative; }
.pair__media { border-radius: 14px; overflow: hidden; }
.contact { position: relative; overflow: hidden; isolation: isolate; }
.form__status { background: var(--paper); border-left-color: var(--ink); border-radius: 8px; }
.field input[type="text"], .field textarea { border-radius: 12px; }
.field input[type="text"]:focus-visible, .field textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.kind span { background: transparent; border-radius: 999px; }
.kind input:checked + span { border-color: var(--btn-edge); box-shadow: inset 0 0 0 1px var(--btn-edge); }
.consent input { accent-color: var(--chocolate); }

.row__link { position: relative; isolation: isolate; }
.row__link::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * min(24px, var(--m)));
  background: var(--field); border-radius: 14px;
  transform: scaleX(0); transform-origin: left center; transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .row__link:hover::before { transform: scaleX(1); }
  .row__link:hover .row__name { text-decoration: none; }
}

.steps { position: relative; padding-left: 40px; border-top: 0; }
.steps__rail { position: absolute; left: 9px; top: 34px; bottom: 34px; width: 2px; background: var(--line); }
.steps__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top center; transform: scaleY(0); }
.no-motion .steps__fill { transform: none; }
.step { position: relative; border-bottom: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: -38px; top: 34px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--edge); transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.step.is-done::before, .no-motion .step::before { background: var(--baby); border-color: var(--ink); }

.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Огромното име в края: „DESIGN“ е само контур. */
.foot__word {
  width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto; max-width: none;
  font-family: "Uni Sans Heavy", var(--font); font-weight: 800; line-height: .8; letter-spacing: -.01em;
  font-size: 9vw; white-space: nowrap; color: var(--ink); padding-block: .04em .02em;
  transform-origin: left bottom;
  /* Надписът избледнява надолу: горната третина е плътна, най-долната част се топи във фона. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 96%);
}
.foot { overflow: hidden; }
.foot__word span { color: transparent; -webkit-text-stroke: max(1px, .012em) var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .stage__scene { transition: opacity 1ms; transform: none; }
  .row__link::before { transition: none; }
  .lead img { transition: none; }
  .nextpj__card:active { transform: none; }
}

/* =====================================================================
   v8 (2026-11-20): форма с контекст, кадри в цял размер, фокус на секциите.
   ===================================================================== */

/* Заглавие на секция, получило фокус от навигацията: без рамка при мишка, с рамка при клавиатура. */
h1[tabindex="-1"]:focus:not(:focus-visible), h2[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* Поле „Относно“: пренесеният контекст стои отделно от съобщението и може да се поправи. */
.field--about input[type="text"] { background: var(--field); font-weight: 600; }

/* Ориентир за срока под въведението на услуга. */
.page-note { padding-left: 16px; border-left: 3px solid var(--baby); max-width: 52ch; }

/* Близък кадър: връзка към големия файл, с ясен надпис върху долния ръб. */
.detail__img { position: relative; display: block; text-decoration: none; color: var(--ink); border: 0; overflow: visible; background: none; }
.detail__zoom {
  display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: .8125rem; font-weight: 600;
}
.detail__img img { border-radius: 16px; outline: 1px solid var(--line); outline-offset: -1px; background: var(--paper); }
.case__type { font-size: var(--step-small); color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .detail__img:hover .detail__zoom { background: var(--baby); } }

/* Кадърът в цял размер: върху страницата, превърта се, ако е по-висок от екрана. */
.zoom {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 64px 16px 24px;
  border: 0; background: rgba(46, 35, 35, .92); overflow: auto; overscroll-behavior: contain;
}
.zoom::backdrop { background: transparent; }
.zoom__img { display: block; margin: 0 auto; width: auto; max-width: min(100%, 1200px); height: auto; border-radius: 10px; background: var(--paper); }
.zoom__close {
  position: fixed; top: 12px; right: 16px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 0; background: var(--chalk); color: var(--chocolate); font-weight: 600; cursor: pointer;
}
.zoom__close:focus-visible { outline: 2px solid var(--baby); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ex__media img { transition: none; }
}

/* Водещият кадър на проект (страницата на проекта и „Следващ проект“): широк на компютър, телефонният
   екран на сайта на телефон. */
.lead { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--field); }
.lead picture, .lead img { display: block; width: 100%; height: 100%; }
.lead img { object-fit: cover; object-position: 50% 0; transition: transform 700ms var(--ease); }
@media (max-width: 760px) { .lead { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .lead img { transition: none; } }


/* ---------- Бланка „Blueprint“ (артефакт): нискополигонален човек на чертожен лист ---------- */

.bp__sheet {
  --bp-ln: #463636; --bp-ln2: rgba(70, 54, 54, .66); --bp-dim: rgba(70, 54, 54, .30); --bp-faint: rgba(190, 216, 231, .55);
  position: absolute; z-index: -1; top: -56px; bottom: -32px; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none; opacity: .17;
  /* Чертежът живее само около „Услуги“ и четирите реда: горе и долу изчезва плавно, без рязък ръб. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(70px, 14vw, 150px), #000 calc(100% - clamp(70px, 14vw, 150px)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(70px, 14vw, 150px), #000 calc(100% - clamp(70px, 14vw, 150px)), transparent 100%);
  font: 11px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  text-transform: uppercase; letter-spacing: .08em; color: var(--bp-ln);
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(190, 216, 231, .60), transparent 70%),
    linear-gradient(var(--bp-faint) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--bp-faint) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(rgba(70, 54, 54, .10) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(70, 54, 54, .10) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--chalk);
}
.bp__sheet[hidden] { display: none; }
.svc { position: relative; isolation: isolate; padding-bottom: calc(var(--section) * .5); } /* „Избрани проекти“ добавя още едно разстояние отгоре */
.svc__main { position: relative; isolation: isolate; }
.bp__sheet .bp-title { display: none; }  /* ъгловата табелка на чертежа би легнала под текста на последния ред */
.bp-title, .bp-head, .bp-note { display: none; }
.bp__sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(100% 100% at 50% 50%, transparent 60%, rgba(70, 54, 54, .14)); }
.bp__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-frame { position: absolute; inset: 14px; border: 1px solid var(--bp-ln2); pointer-events: none; }
.bp-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--bp-dim); }
.bp-ruler { position: absolute; left: 14px; right: 14px; top: 14px; height: 10px; background: repeating-linear-gradient(90deg, var(--bp-ln2) 0 1px, transparent 1px 12px); opacity: .6; }
.bp-ruler.b { top: auto; bottom: 14px; }
.bp-slot { position: absolute; }
.bp-tag { position: absolute; left: 0; top: -16px; font-size: 9px; color: var(--bp-ln2); white-space: nowrap; }
.bp-slot.ring::before { content: ""; position: absolute; inset: -4%; border: 1px solid var(--bp-ln2); border-radius: 50%; }
.bp-slot.ring::after { content: ""; position: absolute; inset: -9%; border: 1px dashed var(--bp-dim); border-radius: 50%; animation: bp-spin 40s linear infinite; }
.bp-slot.box::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--bp-dim);
  background: linear-gradient(var(--bp-ln), var(--bp-ln)) 0 0 / 14px 1px no-repeat, linear-gradient(var(--bp-ln), var(--bp-ln)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--bp-ln), var(--bp-ln)) 100% 100% / 14px 1px no-repeat, linear-gradient(var(--bp-ln), var(--bp-ln)) 100% 100% / 1px 14px no-repeat;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }
.bp-dimv { position: absolute; width: 1px; background: var(--bp-ln2); }
.bp-dimv::before, .bp-dimv::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--bp-ln); }
.bp-dimv::before { top: 0; } .bp-dimv::after { bottom: 0; }
.bp-dimv span { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); font-size: 9px; white-space: nowrap; color: var(--bp-ln2); }
.bp-ld { position: absolute; height: 1px; background: var(--bp-ln2); transform-origin: 0 50%; }
.bp-ld::after { content: ""; position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; border: 1px solid var(--bp-ln); border-radius: 50%; background: var(--chalk); }
.bp-title { position: absolute; right: 30px; bottom: 30px; border: 1px solid var(--bp-ln2); background: rgba(245, 242, 233, .90); display: grid; grid-template-columns: auto auto; min-width: 300px; }
.bp-title > div { padding: 6px 10px; border-right: 1px solid var(--bp-dim); border-bottom: 1px solid var(--bp-dim); font-size: 9px; color: var(--bp-ln2); }
.bp-title > div b { display: block; color: var(--bp-ln); font-weight: 500; font-size: 11px; }
.bp-title .name { grid-column: 1 / -1; font-size: 26px; letter-spacing: .42em; color: var(--bp-ln); font-weight: 600; padding: 10px 12px 8px; }
.bp-title .name small { display: block; font-size: 9px; letter-spacing: .2em; color: var(--bp-ln2); font-weight: 400; margin-top: 2px; }
.bp-head { position: absolute; left: 30px; top: 30px; font-size: 9px; color: var(--bp-ln2); line-height: 1.7; }
.bp-head b { color: var(--bp-ln); font-weight: 500; }
.bp-note { position: absolute; font-size: 8px; color: rgba(70, 54, 54, .58); line-height: 1.5; white-space: pre; letter-spacing: .06em; }
.bp-warn { position: absolute; width: 26px; height: 26px; border: 1px solid var(--bp-ln); display: grid; place-items: center; font-size: 14px; color: var(--bp-ln); }
.bp-words { position: absolute; inset: 0; pointer-events: none; }
.bp-spot { position: absolute; width: 0; height: 0; }
.bp-spot.m { display: none; }
.bp-word {
  position: absolute; transform: translateY(8px); opacity: 0; filter: blur(6px); white-space: nowrap;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s ease;
}
.bp-word.r { transform: translate(-100%, 8px); text-align: right; }
.bp-word.on { opacity: 1; transform: translateY(0); filter: blur(0); }
.bp-word.r.on { transform: translate(-100%, 0); }
.bp-word.off { opacity: 0; filter: blur(5px); transform: translateY(-8px); }
.bp-word.r.off { transform: translate(-100%, -8px); }
.bp-word b { display: block; font-size: 17px; letter-spacing: .34em; font-weight: 500; color: var(--bp-ln); }
.bp-word.big b { font-size: 30px; letter-spacing: .4em; }
.bp-word small { display: block; font-size: 8px; color: var(--bp-ln2); margin-top: 3px; }
.bp-word i { display: block; height: 1px; width: 0; background: var(--bp-ln); margin-bottom: 5px; transition: width 1s .15s ease; }
.bp-word.r i { margin-left: auto; }
.bp-word.on i { width: 100%; }
.bp-s1 { left: 27%; top: 9%; width: 24%; height: 80%; }
.bp-s2 { left: 57%; top: 14%; width: 21%; height: 44%; }
.bp-s3 { left: 6%; top: 17%; width: 13%; height: 26%; }
.bp-s4 { left: 82%; top: 9%; width: 10%; height: 42%; }
.bp-s5 { left: 8%; top: 56%; width: 9%; height: 34%; }
.bp-s6 { left: 60%; top: 66%; width: 9%; height: 20%; }
@media (max-width: 760px) {
  .bp-s1 { left: 26%; top: 28%; width: 50%; height: 45%; }
  .bp-s2 { left: 56%; top: 12%; width: 34%; height: 15%; }
  .bp-s3 { left: 8%; top: 13%; width: 22%; height: 11%; }
  .bp-s4 { left: 6%; top: 38%; width: 17%; height: 26%; }
  .bp-s5 { left: 78%; top: 44%; width: 16%; height: 24%; }
  .bp-s6 { left: 9%; top: 66%; width: 20%; height: 9.5%; }
  .bp-title { left: 22px; right: 22px; bottom: 22px; min-width: 0; }
  .bp-title .name { font-size: 20px; }
  .bp-head { left: 22px; top: 24px; }
  .bp-note, .bp-d, .bp-spot.d { display: none; }
  .bp-spot.m { display: block; }
  .bp-word b { font-size: 13px; } .bp-word.big b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-slot.ring::after { animation: none; }
  .bp-word, .bp-word i { transition: none; }
}


/* ---------- Малката анимация в първия екран (само анимацията, без надписи) ---------- */
/* Секцията е на цяла ширина: под анимацията и подписа светлият фон плавно преминава в синьото на запитването, без рязка граница. */
.thread-sec {
  --fade: clamp(200px, 26vw, 340px);
  position: relative; isolation: isolate; width: 100%; padding-inline: var(--m);
  padding-top: var(--section); padding-bottom: var(--fade);
}
.thread-sec::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -2px; height: calc(var(--fade) + 2px); pointer-events: none; /* 2 px под края: без светла линия на дробна граница */
  background: linear-gradient(to bottom, rgba(190, 216, 231, 0) 0%, rgba(190, 216, 231, .1) 18%, rgba(190, 216, 231, .35) 42%, rgba(190, 216, 231, .7) 68%, rgba(190, 216, 231, .92) 88%, var(--baby) 100%);
}
.thread-sec + .contact { margin-top: 0; }
.thread {
  position: relative; margin-inline: auto; width: min(100%, 720px); aspect-ratio: 2.3 / 1;
  border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
}
.thread dimnamic-motion {
  display: block; width: 100%; height: 100%;
  --motion-paper: var(--chalk); --motion-ink: var(--chocolate); --motion-blue: #a5cee4;
}
@media (max-width: 760px) { .thread { aspect-ratio: 1.9 / 1; } }

/* Анимираното „Уеб дизайн“ в заглавието: SVG-то е по-голямо от думата (листа, птици около буквите) и не се свива. */
.dm-anim .dm-svg { display: block; max-width: none; max-height: none; }

/* ---------- Доберманът на бюро, под запитването ---------- */
/* Синьото на запитването вече се топи в тебеширено; доберманът седи на това тебеширено, без рамка и без подпис. */
.office { width: 100% !important; max-width: none !important; margin: 0; padding: 0 var(--m) clamp(24px, 4vw, 56px); display: grid; place-items: center; }
.office__view { position: relative; width: min(100%, 640px); aspect-ratio: 7 / 5; }
.office__fallback, .office__view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.office__fallback { object-fit: contain; transition: opacity 600ms var(--ease); }
.office__view.is-live .office__fallback { opacity: 0; }
.office__view canvas { opacity: 0; transition: opacity 600ms var(--ease); }
.office__view.is-live canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .office__fallback, .office__view canvas { transition: opacity 1ms; } }
