@font-face{font-family:"Switzer";src:url("/portfolio-assets/fonts/Switzer-Variable.woff2?v=33") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Google Sans Code";src:url("/portfolio-assets/fonts/google-sans-code.woff2?v=33") format("woff2");font-weight:300 800;font-display:swap}
@font-face{font-family:"BV Printed";src:url("/portfolio-assets/fonts/brands/printed.woff2?v=33") format("woff2");font-weight:850;font-display:block}
@font-face{font-family:"BV Archko";src:url("/portfolio-assets/fonts/brands/archko.woff2?v=33") format("woff2");font-weight:600;font-display:block}
@font-face{font-family:"BV Girandra";src:url("/portfolio-assets/fonts/brands/girandra.woff2?v=33") format("woff2");font-weight:820;font-display:block}
@font-face{font-family:"BV Progresyvus";src:url("/portfolio-assets/fonts/brands/pprojektai.woff2?v=33") format("woff2");font-weight:700;font-display:block}
@font-face{font-family:"BV TAU";src:url("/portfolio-assets/fonts/brands/tau-projektai.woff2?v=33") format("woff2");font-weight:500;font-display:block}
@font-face{font-family:"BV Pajurio";src:url("/portfolio-assets/fonts/brands/pajurio-mediena.woff2?v=33") format("woff2");font-weight:640;font-display:block}
@font-face{font-family:"BV Mapresta";src:url("/portfolio-assets/fonts/brands/mapresta.woff2?v=33") format("woff2");font-weight:300;font-display:block}
@font-face{font-family:"BV Vidamarina";src:url("/portfolio-assets/fonts/brands/vidamarina.woff2?v=33") format("woff2");font-weight:700;font-display:block}
@font-face{font-family:"BV Aigesa";src:url("/portfolio-assets/fonts/brands/aigesa.woff2?v=33") format("woff2");font-weight:800;font-display:block}
@font-face{font-family:"BV DeBygg";src:url("/portfolio-assets/fonts/brands/de-bygg.woff2?v=33") format("woff2");font-weight:850;font-display:block}
@font-face{font-family:"BV FelixBygg";src:url("/portfolio-assets/fonts/brands/felix-bygg.woff2?v=33") format("woff2");font-weight:860;font-display:block}
@font-face{font-family:"BV SDService";src:url("/portfolio-assets/fonts/brands/sd-service.woff2?v=33") format("woff2");font-weight:780;font-display:block}
@font-face{font-family:"BV EduTinklas";src:url("/portfolio-assets/fonts/brands/edutinklas.woff2?v=33") format("woff2");font-weight:800;font-display:block}
/* premium-kit v1 (2026-10-03) / motion-tokens.css — токены движения сайта в одном месте (docs/PREMIUM_MOTION.md, раздел 2).
   Только сантехника: кривые, длительности, шаги, переменная скорости прокрутки. Никаких готовых появлений —
   грамматику (что и как появляется) пишет сайт сам, ссылаясь на эти переменные.
   Движение всегда включено: здесь нет и не будет блока prefers-reduced-motion (правило пользователя).

   Пример:
     <link rel="stylesheet" href="premium-kit/motion-tokens.css">
     .title .sm-line-inner { transform: translateY(var(--reveal-shift)); transition: transform var(--dur-text) var(--ease-out);
                             transition-delay: calc(var(--i, 0) * var(--stagger-line)); }
     .title.is-in .sm-line-inner { transform: none; }
     .rail { translate: calc(var(--velocity) * -12px) 0; }   — что меняет скорость, решает машина клиента
*/

/* --velocity пишет motion-tokens.js (createVelocity); @property делает её анимируемой и наследуемой числом */
@property --velocity { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --velocity-abs { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  /* кривые */
  --ease-out: cubic-bezier(.16, 1, .3, 1);        /* expo out — появления, раскрытия */
  --ease-out-soft: cubic-bezier(.25, 1, .5, 1);   /* quart out — hover, мелкие переходы */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);    /* смена состояния сцены, обмен кадров */
  --ease-snap: cubic-bezier(.23, 1, .32, 1);      /* отклик кнопки 100–160 мс (раздел 3, п. 6) */

  /* длительности: середины диапазонов из таблицы; сайт может сдвинуть внутри диапазона, но в одном месте */
  --dur-press: 140ms;   /* отклик нажатия 100–160 */
  --dur-micro: 260ms;   /* hover, фокус 180–350 */
  --dur-text: 950ms;    /* появление текста 800–1100 */
  --dur-media: 1200ms;  /* появление медиа 1000–1400 */
  --dur-scene: 1800ms;  /* смена главы, раскрытие поля 1200–2400 */
  --dur-intro: 2000ms;  /* потолок вступления; любой ввод его ускоряет */
  --dur-hover-media: 700ms; /* внутренний масштаб фото при наведении 600–800 */

  /* шаги */
  --stagger-word: 50ms;  /* 35–70 */
  --stagger-line: 110ms; /* 80–140 */
  --stagger-item: 80ms;  /* 60–100 */

  /* амплитуды */
  /* сдвиг строки внутри маски, а не прыжок на 50–100 px: строка + запас маски сверху и снизу, иначе гачек Š
     или точка Ė при плотном межстрочном выглядывают из маски ещё до старта */
  --reveal-shift: calc(100% + 2 * var(--sm-bleed));
  --media-scale: 1.1;      /* встречный масштаб кадра 1,08–1,15 → 1 */
  --hover-scale: 1.04;     /* внутренний сдвиг кадра ≤ 1,06 */
  --tilt-max: 4deg;        /* наклон листа/фото */
  --sm-bleed: .16em;       /* запас маски строки под гачеки и хвосты: Č Ė Ū над строкой, Ą Ų J под ней */
}

/* Страховка разрезанного текста (раздел 4): пока split-mask.js не разрезал элемент, он скрыт только при JS
   (класс kit-js ставит одна строка в <head>), а через 2,6 с показывается в любом случае. Без JS текст виден сразу. */
.kit-js [data-split]:not(.is-split) { opacity: 0; animation: kit-split-safety 0s linear 2.6s forwards; }
@keyframes kit-split-safety { to { opacity: 1; } }

/* shulenok.com v16 «Re-set» — one system: paper, ink, cobalt; Switzer + Google Sans Code; client faces only with their projects. */
:root {
  --paper: #f4f5f7; --paper-2: #e9ecf1; --ink: #0c111d; --ink-2: #485064; --ink-3: #5f677b;
  --line: rgba(12, 17, 29, .14); --line-2: rgba(12, 17, 29, .08);
  --cobalt: #2348ff; --cobalt-ink: #1834d6; --on-cobalt: #fff;
  --brand: var(--cobalt); --brand-ink: var(--cobalt-ink);
  --gutter: clamp(16px, 3.6vw, 56px);
  --rail: min(1600px, 100% - 2 * var(--gutter));
  --bar-h: 64px;
  --sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --t-hero: clamp(3.2rem, 8.3vw, 11rem);
  --t-xl: clamp(2.5rem, 6.2vw, 7.25rem);
  --t-lead: clamp(1.125rem, .95rem + .55vw, 1.5rem);
  --t-body: clamp(1rem, .96rem + .14vw, 1.125rem);
  --sec: clamp(88px, 11vw, 176px);
  --radius: 4px;
  --vt-duration: 820ms; --vt-ease: var(--ease-in-out);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 760px) { :root { --bar-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 560; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--cobalt); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.rail { width: var(--rail); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; font-weight: 420; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.voice { font-family: var(--voice, var(--sans)); font-weight: var(--voice-w, 560); font-stretch: var(--voice-s, 100%); letter-spacing: var(--voice-ls, -.02em); text-transform: var(--voice-tt, none); }

/* ---------- header bar: one minimal bar from the first frame ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar-h); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-2); }
.bar-in { height: 100%; display: flex; align-items: center; gap: clamp(24px, 3vw, 56px); }
.brand { display: flex; align-items: center; color: var(--ink); flex: none; }
.wordmark { height: 13px; width: auto; }
.bar-nav { display: flex; gap: clamp(24px, 2.6vw, 44px); letter-spacing: .005em; margin-left: auto; font-size: .9375rem; line-height: 1; position: relative; }
.bar-nav a { display: inline-block; clip-path: inset(-.3em -.2em -.18em -.2em); }
.bar-nav .r { display: inline-block; white-space: pre; text-shadow: 0 1.3em 0 var(--ink); transition: transform 560ms var(--ease-out) calc(var(--i) * 14ms); }
.bar-nav a:hover .r { transform: translateY(-1.3em); }
.bar-nav a[aria-current] { color: var(--ink); }
.bar-nav a:focus-visible { clip-path: none; } .bar-nav a:focus-visible .r { text-shadow: none; transform: none; }
.bar-dot { position: absolute; left: 0; top: calc(100% + 10px); width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt); transform: scale(0); pointer-events: none; }
.bar-nav a, .langs a, .foot a { position: relative; color: var(--ink-2); transition: color var(--dur-micro) var(--ease-out-soft); }
.bar-nav a:hover, .langs a:hover, .langs a[aria-current], .foot a:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); font-size: .9375rem; line-height: 1; }
.langs { display: flex; gap: 16px; font-family: var(--mono); font-size: .8125rem; }
.langs a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bar-phone { white-space: nowrap; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 520; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: background-color var(--dur-micro) var(--ease-out-soft); }
.bar-phone:hover { background: var(--cobalt); }
.bar-call { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 520; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: .9375rem; height: 40px; margin-right: -4px; padding: 0 4px; }
.menu-icon { position: relative; width: 22px; height: 12px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur-micro) var(--ease-out), top var(--dur-micro) var(--ease-out); }
.menu-icon i:first-child { top: 1px; } .menu-icon i:last-child { top: 9.5px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5.25px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--bar-h) 0 0; z-index: 39; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font-size: clamp(2.25rem, 10vw, 3.5rem); font-weight: 540; letter-spacing: -.035em; line-height: 1.15; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.menu-foot { display: grid; gap: 12px; color: var(--ink-2); }
.menu-phone { font-size: 1.5rem; color: var(--ink); font-weight: 520; }
.menu.is-open .menu-nav a { animation: set-in 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@media (max-width: 1080px) { .bar-nav { display: none; } .menu-btn { display: inline-flex; } .bar-end { margin-left: auto; } }
@media (max-width: 560px) { .bar-end .langs, .bar-phone { display: none; } .bar-call { display: inline-flex; } .bar-end { gap: 14px; } .bar-in { gap: 16px; } }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 540; font-size: 1rem; line-height: 1; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out-soft), color var(--dur-micro) var(--ease-out-soft); }
.btn:active, .bar-phone:active, .copy:active { transform: scale(.98); transition-duration: var(--dur-press); }
.btn-ink { background: var(--ink); color: #fff; } .btn-ink:hover { background: var(--cobalt); }
.btn-light { background: #fff; color: var(--cobalt-ink); } .btn-light:hover { background: var(--ink); color: #fff; }
.btn-brand { background: var(--brand-ink); color: #fff; } .btn-brand:hover { background: var(--ink); }
.i-arrow { width: 18px; height: 18px; flex: none; transition: transform var(--dur-micro) var(--ease-out); }
a:hover > .i-arrow { transform: translate(2px, -2px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 540; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link:hover { color: var(--cobalt); }

/* ---------- headings: words close up to their final spacing ---------- */
.h-xl { font-size: var(--t-xl); line-height: 1.04; letter-spacing: -.045em; word-spacing: .05em; font-weight: 560; }
.sub { font-family: var(--mono); font-size: .8125rem; font-weight: 420; color: var(--ink-3); letter-spacing: 0; line-height: 1.4; }
.js [data-set] .sw { display: inline-block; opacity: 0; transform: translateX(calc(var(--d, 0) * .2em)); transition: opacity 700ms var(--ease-out), transform 950ms var(--ease-out); transition-delay: calc(var(--i, 0) * 38ms); }
.js [data-set].is-in .sw { opacity: 1; transform: none; }
@keyframes set-in { from { opacity: 0; transform: translateX(.5em); } to { opacity: 1; transform: none; } }
.js [data-fade] { opacity: 0; transition: opacity 800ms var(--ease-out) 120ms; }
.js [data-fade].is-in { opacity: 1; }

/* ---------- media plate: brand colour first, then the work ---------- */
.plate { position: absolute; inset: 0; background: var(--brand); transform: translateY(101%); pointer-events: none; z-index: 2; }
.js [data-media]:not(.is-in) .plate { transform: none; }
.js [data-media].is-in .plate { transform: translateY(-101%); transition: transform 760ms var(--ease-in-out) 60ms; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--bar-h) + clamp(32px, 5.6vh, 96px)); }
.hero-title { font-size: var(--t-hero); line-height: .9; letter-spacing: -.05em; word-spacing: .06em; font-weight: 560; }
html[lang="lt"] .hero-title { font-size: clamp(3rem, 7.3vw, 9.75rem); }
/* the lead-in line is quieter: smaller than the title size, the rolling ending keeps its own scale */
.l1 { display: block; font-size: .75em; }
.l2 { display: block; height: 1.36em; margin-top: .15em; position: relative; white-space: nowrap; color: var(--cobalt); }
.l2-in { display: inline-block; transform-origin: 0 0; position: absolute; left: 0; top: 0; line-height: 1; padding-bottom: .04em; }
.l2-in .c { display: inline-block; white-space: pre; transition: color 420ms var(--ease-out-soft); }
.l2-in .g { display: inline-block; transform-origin: 50% 80%; }
.js .hero-title .l1 { opacity: 0; transform: translateX(.18em); transition: opacity 800ms var(--ease-out), transform 1100ms var(--ease-out); }
.js .hero-title .l2 { opacity: 0; transition: opacity 600ms var(--ease-out) 260ms; }
.js .hero.is-in .hero-title .l1, .js .hero.is-in .hero-title .l2 { opacity: 1; transform: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "side stage" "cap stage"; grid-template-rows: 1fr auto; gap: clamp(24px, 3.2vw, 56px); margin-top: clamp(24px, 4.2vh, 60px); align-items: stretch; }
.hero-side { grid-area: side; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: clamp(24px, 3vw, 48px); }
.lead { font-size: var(--t-lead); line-height: 1.46; letter-spacing: 0; color: var(--ink); max-width: 30ch; }
.reel { grid-area: stage; position: relative; min-width: 0; }
/* the light MacBook (transparent screen) around the recording; its silhouette clips the colour plate as it rolls through the screen */
.reel { isolation: isolate; }
.reel-stage { margin-left: auto; position: relative; display: block; aspect-ratio: 2000 / 1299; overflow: hidden;
  -webkit-mask: url(/portfolio-assets/device/macbook-mask.avif) center / 100% 100% no-repeat; mask: url(/portfolio-assets/device/macbook-mask.avif) center / 100% 100% no-repeat; }
.reel-stage::after { content: ""; position: absolute; inset: 0; z-index: 5; background: url(/portfolio-assets/device/macbook.avif) center / 100% 100% no-repeat; pointer-events: none; }
.reel-media, .reel-stage .plate { position: absolute; left: 9.22%; top: 9.38%; width: 81.56%; height: 81.2%; }
.reel-media { display: block; overflow: hidden; background: #fff; }
/* soft light turns behind the lid in the project's colour; each new project lights it up, then it slowly dies down (app.js) */
@property --glow { syntax: '<color>'; inherits: true; initial-value: #2348ff; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.reel { transition: --glow 1600ms cubic-bezier(.4, 0, .2, 1);
  --a1: oklch(from var(--glow) .72 min(c, .17) h); --a2: oklch(from var(--glow) .82 min(c, .13) calc(h + 30));
  --a3: oklch(from var(--glow) .67 min(c, .17) calc(h - 26)); --a4: oklch(from var(--glow) .86 min(c, .1) calc(h + 50)); }
main:has(.reel) { overflow-x: clip; }
.glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .28; }
.glow > i { position: absolute; border-radius: 2.6% / 4%; background: conic-gradient(in oklch from var(--spin), var(--a1), var(--a2), var(--a4), var(--a3), var(--a1)); }
.glow > i:nth-child(1) { left: 11%; right: 11%; top: 11%; bottom: 10%; filter: blur(clamp(26px, 3vw, 52px)); opacity: .85; animation: glow-spin 6s linear infinite; }
.glow > i:nth-child(2) { inset: 0 2% -2%; border-radius: 50%; filter: blur(clamp(50px, 6vw, 110px)); opacity: .5; animation: glow-spin 6s linear infinite reverse; }
@keyframes glow-spin { to { --spin: 360deg; } }
/* iPhone stands on the same desk beside the MacBook, overlapping its right edge; Printed scrolls on it.
   --foot / --ph come from app.js: the laptop's foot line and height; the phone stands a step in front of the laptop, its base a little lower */
.phone { position: absolute; z-index: 3; right: 0; bottom: calc(var(--foot, 0px) - var(--ph, 400px) * .025); height: calc(var(--ph, 400px) * .67); aspect-ratio: 980 / 2000; pointer-events: none;
  translate: 14% .75%; }
.phone video { position: absolute; left: 5.1%; top: 2.2%; width: 89.8%; height: 95.6%; object-fit: cover; object-position: top; border-radius: 16.5% / 7.6%; background: #fff; opacity: 0; transition: opacity 360ms var(--ease-out-soft); }
.phone video.on { opacity: 1; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.reel-media video { opacity: 0; } .reel-media video.on { opacity: 1; }
.reel-media img.off { opacity: 0; }
.reel-cap { grid-area: cap; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.reel-title { width: calc(100% - 52px); font-size: clamp(1.75rem, 2.6vw, 3rem); line-height: 1.12; color: var(--ink); transition: color var(--dur-micro) var(--ease-out-soft); }
.reel-title:hover { color: var(--brand-ink); }
.reel-meta { color: var(--ink-2); font-family: var(--mono); font-size: .8125rem; font-weight: 420; letter-spacing: 0; }
.vid-btn { margin-left: auto; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); flex: none; transition: background-color var(--dur-micro), color var(--dur-micro); }
.vid-btn:hover { background: var(--ink); color: #fff; }
.vid-btn .ic-play { display: none; } .vid-btn[aria-pressed="true"] .ic-play { display: block; } .vid-btn[aria-pressed="true"] .ic-pause { display: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "side" "cap" "stage"; grid-template-rows: auto; }
  .reel-cap { padding-top: 14px; margin-bottom: -10px; }
  .phone { height: calc(var(--ph, 220px) * .62); translate: 0 .75%; }
  .hero-side { gap: 22px; }
  .lead { max-width: 36ch; }
}
@media (max-width: 600px) {
  .hero-title, html[lang="lt"] .hero-title { font-size: clamp(2.75rem, 14.2vw, 4.5rem); line-height: .94; }
  .reel-title { font-size: 1.5rem; }
  .hero { padding-top: calc(var(--bar-h) + 28px); }
  .hero-grid { gap: 22px; margin-top: 22px; }
  .hero-side { gap: 18px; }
  .lead { font-size: 1.0625rem; }
}

/* ---------- work ---------- */
.work { padding-top: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; max-width: 860px; }
.filters button { position: relative; font-size: .9375rem; color: var(--ink-2); padding: 6px 0; transition: color var(--dur-micro); }
.filters button sup { font-size: .6875rem; margin-left: 3px; color: var(--ink-3); vertical-align: super; line-height: 0; }
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-micro) var(--ease-out); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { transform: none; }
.work-block + .work-block { margin-top: clamp(80px, 9vw, 140px); }
.work-block > .sub { padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.work-block[hidden], .site[hidden], .row[hidden] { display: none; }
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(16px, 2.2vw, 32px); }
.site-link { display: block; }
.site-feature { grid-column: 1 / -1; }
.site-feature .site-link { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 2.6vw, 44px); align-items: stretch; }
.site-feature .site-cap { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 0; }
.site-feature .site-title { font-size: clamp(2.5rem, 5.4vw, 6.25rem); line-height: 1.02; }
@media (max-width: 1024px) { .site-feature .site-link { grid-template-columns: 1fr; gap: 18px; } .site-feature .site-cap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 32px; } .site-feature .site-meta { grid-column: 1 / -1; } }
.site-idea { font-size: var(--t-lead); line-height: 1.45; letter-spacing: 0; color: var(--ink); max-width: 30ch; }
.site-feature .site-scope { margin-top: 14px; } /* v32: the whole caption sits at the foot, level with the media bottom; title + idea right above role + meta */
.site-scope { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
/* project cards: plain blocks with a soft glow tinted by the project's colour (the user likes it) */
.site-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: transparent; isolation: isolate;
  box-shadow: 0 14px 30px -20px rgba(11, 14, 21, .22), 0 40px 80px -36px color-mix(in oklab, var(--brand-ink) 20%, rgba(11, 14, 21, .1)); }
.site-media img, .site-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-media video { opacity: 0; transition: opacity 400ms var(--ease-out-soft); }
.site-media video.on { opacity: 1; }
.site-cap { display: grid; gap: 6px; padding-top: 16px; }
/* v30: no hover effect on titles. Feature title always in the client's face and colour; grid titles always Switzer, smaller */
.site-title { font-size: clamp(1.25rem, 1.1vw + .6rem, 1.75rem); line-height: 1.16; overflow-wrap: anywhere; }
.site-title:not(.voice) { font-family: var(--sans); font-weight: 560; letter-spacing: -.02em; }
/* v32 hover: the client's colour floods the title left to right like ink; tags darken. No font swap */
.site-title:not(.voice) { background: linear-gradient(90deg, var(--brand-ink) 0 50%, var(--ink) 50% 100%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 620ms var(--ease-out-soft); }
.site-link:hover .site-title:not(.voice), .site-link:focus-visible .site-title:not(.voice) { background-position: 0 0; }
.site-meta { transition: color var(--dur-micro) var(--ease-out-soft); }
.site-link:hover .site-meta, .site-link:focus-visible .site-meta { color: var(--ink); }
@media (forced-colors: active) { .site-title:not(.voice) { background: none; color: CanvasText; } }
.site-feature .site-title { color: var(--brand-ink); }
/* v31: card tags (sphere · year) in the mono face, year right after the sphere */
.site-meta { color: var(--ink-2); font-family: var(--mono); font-size: .8125rem; font-weight: 420; letter-spacing: 0; line-height: 1.5; }
/* hairlines only between rows: the block heading carries the top line, the last row has none */
.rows li:last-child .row-link { border-bottom: 0; }
.row-link { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr) clamp(176px, 15vw, 248px); gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-title { transition: color var(--dur-micro) var(--ease-out-soft); }
.row-link:hover .row-title { color: var(--cobalt); }
.row-year { color: var(--ink-3); }
.row-title { font-size: clamp(1.375rem, 1.9vw, 2rem); font-weight: 560; letter-spacing: -.012em; line-height: 1.15; }
.row-role { color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.row-kind { color: var(--ink-3); }
.row-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.row-link:hover .row-thumb img { transform: scale(1.06); }
@media (max-width: 1080px) { .row-link { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr) 152px; } .row-kind { display: none; } }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; gap: 4px 18px; }
  .sites { grid-template-columns: 1fr; gap: 44px; }
  .site-cap { padding-top: 12px; gap: 4px; }
  .site-title { font-size: 1.375rem; }
  .site-feature .site-link { grid-template-columns: 1fr; gap: 14px; }
  .site-feature .site-cap { border-top: 0; padding-top: 0; gap: 10px; grid-template-columns: 1fr; }
  .site-feature .site-title { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .row-link { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb role"; gap: 2px 16px; padding: 14px 0; margin-inline: 0; align-items: start; }
  .row-thumb { grid-area: thumb; }
  .row-title { grid-area: title; font-size: 1.25rem; }
  .row-role { grid-area: role; font-size: .875rem; }
  .row-year { display: none; }
}

/* ---------- about ---------- */
.about { margin-top: var(--sec); padding-block: var(--sec); background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: stretch; }
.about-copy { display: grid; gap: 18px; align-content: start; color: var(--ink-2); max-width: 62ch; }
.about-lead { font-size: clamp(1.625rem, 2.7vw, 2.75rem); line-height: 1.16; letter-spacing: -.02em; font-weight: 520; color: var(--ink); margin-bottom: 10px; text-wrap: balance; }
.soc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; color: var(--ink); font-weight: 520; }
.soc a, .contact-soc a { display: inline-flex; align-items: center; gap: 6px; }
.soc a:hover { color: var(--cobalt); }
.figures { display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; border-top: 1px solid var(--line); }
.figures > div { padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.figures > div:nth-child(odd) { padding-right: 16px; }
.fig { font-size: clamp(3rem, 6.4vw, 7rem); line-height: .9; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.figures dd { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; line-height: 1.35; max-width: 18ch; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 104px); }
.skills > div { border-top: 1px solid var(--line); padding-top: 18px; }
.skills h3 { font-family: var(--mono); font-size: .8125rem; font-weight: 420; color: var(--ink-3); margin-bottom: 10px; }
.skills p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .skills { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- services ---------- */
.services { padding-block: var(--sec); }
.services .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.sec-intro { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.5; letter-spacing: 0; max-width: 40ch; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); }
.process-wrap > .sub, .svc-list > .sub { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.process { counter-reset: step; }
.process li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.process li::before { content: counter(step); grid-row: span 2; font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); padding-top: 6px; }
.process h3 { font-size: 1.375rem; letter-spacing: -.01em; line-height: 1.2; }
.process p { color: var(--ink-2); }
.svc summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary h3 { font-size: clamp(1.375rem, 2.1vw, 2.125rem); letter-spacing: -.02em; line-height: 1.12; transition: color var(--dur-micro); }
.svc summary:hover h3 { color: var(--cobalt); }
.svc summary svg { flex: none; transition: transform var(--dur-micro) var(--ease-out); }
.svc[open] summary svg { transform: rotate(45deg); }
.svc[open] summary { border-bottom-color: transparent; }
.svc-a { overflow: hidden; border-bottom: 1px solid var(--line); }
.svc-a p { padding: 0 0 24px; color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }
.svc::details-content { block-size: 0; overflow: clip; transition: block-size 500ms var(--ease-out), content-visibility 500ms allow-discrete; }
.svc[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }
.svc-list .link { margin-top: 32px; }
@media (max-width: 900px) { .services .sec-head, .svc-grid { grid-template-columns: 1fr; } }

/* ---------- contact finale (cobalt field) ---------- */
.contact { background: var(--cobalt); color: #fff; padding-block: var(--sec); }
.contact ::selection { background: #fff; color: var(--cobalt); }
.contact :focus-visible { outline-color: #fff; }
.contact-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: stretch; }
.contact-a, .contact-b { display: flex; flex-direction: column; gap: 24px; }
.contact-a { justify-content: space-between; }
.contact-intro { font-size: var(--t-lead); line-height: 1.45; max-width: 36ch; color: rgba(255, 255, 255, .86); }
.mail-xl { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-mail { font-size: clamp(2.25rem, 4.9vw, 5.75rem); font-weight: 520; letter-spacing: -.04em; line-height: 1.02; white-space: nowrap; padding-bottom: .08em; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size var(--dur-micro) var(--ease-out-soft), color var(--dur-micro); }
.contact-mail:hover { color: var(--ink); background-size: 0 2px; }
.contact-b { justify-content: flex-end; }
.phone-row { display: flex; flex-direction: column; gap: 8px; }
.phone-label { font-family: var(--mono); font-size: .75rem; color: rgba(255, 255, 255, .72); }
.contact-phone { align-self: flex-start; font-size: clamp(1.25rem, 1.6vw, 1.625rem); font-weight: 520; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 3px; }
.contact-phone:hover { border-bottom-color: #fff; }
.copy { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: .875rem; transition: background-color var(--dur-micro), color var(--dur-micro); }
.copy:hover { background: #fff; color: var(--cobalt-ink); }
.copy.done { background: #fff; color: var(--cobalt-ink); }
.contact .btn { align-self: flex-start; }
.contact-soc { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 520; }
.contact-soc a:hover { color: var(--ink); }
.contact-compact { padding-block: clamp(72px, 8vw, 128px); }
.contact-compact .h-xl { font-size: clamp(2.25rem, 4.6vw, 5rem); }
.contact-compact .contact-mail { font-size: clamp(2rem, 4.2vw, 4.75rem); }
@media (max-width: 900px) { .contact-in { grid-template-columns: 1fr; } .contact-mail { font-size: clamp(1.75rem, 8.4vw, 3.75rem); } .mail-xl { margin-top: 8px; } }

/* ---------- footer ---------- */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; font-size: .9375rem; }
.foot-brand .wordmark { height: 12px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-copy { margin-left: auto; color: var(--ink-3); }
@media (max-width: 760px) { .foot-in { display: grid; grid-template-columns: 1fr; gap: 14px; } .foot-copy { margin-left: 0; } }

/* ---------- case page ---------- */
.case-head { padding-top: calc(var(--bar-h) + clamp(28px, 5vh, 72px)); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); padding: 6px 0; }
.back::before { content: ""; width: 16px; height: 1.5px; background: currentColor; transition: width var(--dur-micro) var(--ease-out); }
.back:hover { color: var(--ink); } .back:hover::before { width: 24px; }
.case-kicker { margin-top: clamp(28px, 4vw, 56px); color: var(--ink-3); }
.case-title { margin-top: 12px; font-size: clamp(3rem, 9.4vw, 11rem); line-height: 1.04; color: var(--brand-ink); overflow-wrap: anywhere; }
.case-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; margin-top: clamp(24px, 3.4vw, 48px); }
.case-intro .lead { max-width: 46ch; }
.case-intro .btn { justify-self: end; }
.case-media { position: relative; margin-top: clamp(36px, 4.4vw, 64px); }
.case-media-in { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); isolation: isolate; }
.case-media-in img, .case-media-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-media-in video { opacity: 0; } .case-media-in video.on { opacity: 1; }
.case-cover img { object-position: 50% 0; }
.vid-btn-case { position: absolute; right: 16px; bottom: 16px; z-index: 3; background: color-mix(in srgb, var(--paper) 86%, transparent); border-color: transparent; }
.case-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); margin-top: clamp(48px, 6vw, 96px); }
/* facts and notes keep hairlines only between rows, never above the first or below the last */
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.case-facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.case-facts > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
/* a case without notes lays its facts out as one row across the rail */
.case-body.solo { grid-template-columns: 1fr; }
.case-body.solo .case-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 32px; }
.case-body.solo .case-facts > div { border-top: 0; padding-top: 0; }
.case-facts dt { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-bottom: 4px; }
.case-facts dd { font-size: .9375rem; line-height: 1.4; }
.case-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: start; }
.case-notes > div { border-top: 1px solid var(--line); padding-top: 14px; }
.case-notes > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.case-notes .sub { margin-bottom: 10px; }
.case-notes p { color: var(--ink-2); }
.case-shots { display: grid; gap: clamp(16px, 2vw, 32px); margin-top: clamp(56px, 7vw, 112px); }
.shot img { width: 100%; border-radius: var(--radius); background: var(--paper-2); }
.shot-desktop img { box-shadow: 0 0 0 1px var(--line-2); }
.phones { display: grid; gap: clamp(16px, 2vw, 32px); justify-content: center; grid-template-columns: repeat(var(--n, 2), minmax(0, 360px)); padding: clamp(32px, 5vw, 80px) 0; background: var(--paper-2); border-radius: var(--radius); }
.phones-1 { --n: 1; } .phones-2 { --n: 2; } .phones-3 { --n: 3; } .phones-4 { --n: 4; }
.shot-phone img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.case-next { margin-top: var(--sec); margin-bottom: var(--sec); }
.case-next > a:first-child { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 12px clamp(24px, 4vw, 64px); padding-top: 24px; border-top: 1px solid var(--ink); }
.case-next .sub { grid-column: 1; }
.next-title { grid-column: 1; font-size: clamp(2.5rem, 6vw, 6.5rem); line-height: 1.12; transition: color var(--dur-micro) var(--ease-out-soft); overflow-wrap: anywhere; }
.next-media { grid-column: 2; grid-row: 1 / span 2; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.case-next a:hover .next-title { color: var(--brand-ink); }
.case-next a:hover .next-media img { transform: scale(1.03); }
@media (max-width: 900px) {
  .case-intro, .case-body, .case-notes { grid-template-columns: 1fr; }
  .case-notes > div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .case-intro .btn { justify-self: start; }
  .case-next > a:first-child { grid-template-columns: 1fr; }
  .next-media { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) { .case-facts { grid-template-columns: 1fr; } .phones { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); padding: 20px 16px; } }

/* ---------- 404 ---------- */
.err { min-height: 78vh; padding-top: calc(var(--bar-h) + 12vh); display: grid; align-content: start; gap: 24px; }
.err .lead { max-width: 40ch; color: var(--ink-2); }
.err-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- first-visit brand moment ---------- */
html.intro-pending body::before { content: ""; position: fixed; inset: 0; z-index: 89; background: var(--paper); }
.intro { position: fixed; inset: 0; z-index: 90; background: var(--paper); display: grid; place-items: center; pointer-events: none; }
.intro-name { font-size: clamp(1.75rem, 7.6vw, 7rem); letter-spacing: -.04em; font-weight: 560; color: var(--ink); white-space: nowrap; }
.intro-name .ic { display: inline-block; white-space: pre; }
.intro-in { display: grid; justify-items: center; gap: 18px; }

/* ---------- page transitions (cross-document) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-old var(--vt-duration) var(--vt-ease) both; }
::view-transition-new(root) { animation: vt-new var(--vt-duration) var(--vt-ease) both; }
@keyframes vt-old { to { opacity: 0; } }
@keyframes vt-new { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
::view-transition-group(bar) { animation: none; z-index: 50; }
::view-transition-old(bar), ::view-transition-new(bar) { animation: none; }
html[data-vt="leave"] main { opacity: 0; transition: opacity 400ms var(--ease-in-out); }

/* contact echo: «your project» is set in one client voice after another — the next one could be yours */
.echo { display: block; width: max-content; white-space: nowrap; transform-origin: 0 100%; }
.echo.swap { animation: echo-in 420ms var(--ease-out) both; }
@keyframes echo-in { from { opacity: .15; } to { opacity: 1; } }
.note-idea p { color: var(--ink); font-size: var(--t-lead); line-height: 1.45; letter-spacing: 0; }

.contact-title { line-height: 1.16; font-size: clamp(2.375rem, 5.9vw, 6.5rem); } /* the line before the echo never breaks (LT "Pasikalbėkime apie"), so it must fit the column */
