@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/golos-latin.woff2") format("woff2");
  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;
}

:root {
  --paper: #151719;
  --surface: #202429;
  --ink: #f1f5fc;
  --muted: #b7c1d0;
  --line: #333d4d;
  --accent: #9ac8ff;
  --accent-hover: #bfdcff;
  --accent-ink: #111a2b;
  --banner-blue: #4297ff;
  --banner-blue-light: #78bbff;
  --banner-blue-edge: #0058c8;
  --silver: #e0e7f1;
  --steel-surface: linear-gradient(147deg, #303641, #222832 35%, #171c24 77%);
  --steel-edge: linear-gradient(150deg, #626e81, #303b4b 38%, #202936 67%, #43546e);
  --shell: 1280px;
  --header-height: 78px;
  --motion-fast: 145ms;
  --motion-ui: 230ms;
  --motion-travel: 460ms;
  --motion-sweep: 560ms;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
  scrollbar-gutter: stable;
  color-scheme: dark;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
.home-page {
  --glass-surface: linear-gradient(147deg, rgb(43 49 61 / 84%), rgb(27 37 53 / 74%) 36%, rgb(17 24 36 / 61%) 100%);
  position: relative;
  isolation: isolate;
  background: #10141c;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--accent-ink); background: var(--accent); }
main:focus { outline: none; }
[id] { scroll-margin-block-start: calc(var(--header-height) + 1rem); }

.shell { max-width: var(--shell); width: calc(100% - 112px); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 12px auto auto 12px;
  padding: .65rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:hover, .skip-link:focus { color: var(--accent-ink); }
.skip-link:focus { transform: none; }

.site-header.shell {
  --header-gutter: 56px;
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  padding-inline: max(var(--header-gutter), calc((100% - var(--shell)) / 2));
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(106deg, #1d232c, #15181d 40%, #171d26);
}
.skip-link:focus { z-index: 21; }

.site-header a { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(1.25rem, 3.1vw, 3rem); }
.site-header nav a, .header-contact { font-size: .9rem; font-weight: 560; padding-block: .6rem; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; inset: auto .06em .42rem; height: 1px; background: var(--banner-blue-light); opacity: 0; transform: scaleX(.24); }
.site-header nav a[aria-current] { color: var(--accent-hover); }
.site-header nav a:is([aria-current], :focus-visible)::after { opacity: 1; transform: scaleX(1); }
.site-header[data-scrolled] { border-bottom-color: #3a4b64; box-shadow: 0 12px 23px rgb(3 8 16 / 38%); }
.header-contact { justify-self: end; color: var(--accent); }
.header-contact:hover { color: var(--accent-hover); text-decoration: underline; }

.wordmark { display: inline-flex; min-height: 44px; gap: .6rem; align-items: center; justify-self: start; color: var(--silver); font-size: 1.36rem; font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.wordmark img { width: 40px; height: 40px; flex: none; }
.wordmark-name { white-space: nowrap; text-shadow: 0 1px 0 #586779, 0 3px 8px rgb(2 8 17 / 65%); }

.story {
  --scene-color: #10141c;
  --scene-progress: 0;
  background: var(--scene-color);
}

.story--hero { --scene-color: rgb(17 22 32 / 22%); --stage-height: min(47rem, calc(100svh - 78px)); }
.story-stage { position: relative; isolation: isolate; display: grid; align-items: center; min-height: var(--stage-height); overflow: clip; }
.story--hero .story-stage::before, .story--hero .story-stage::after { content: ""; position: absolute; pointer-events: none; }
.story--hero .story-stage::before {
  z-index: -2;
  inset: -10% -12% 0;
  background:
    radial-gradient(ellipse at 72% 68%, rgb(37 91 176 / 45%), transparent 47%),
    radial-gradient(ellipse 42% 48% at 80% 47%, rgb(118 148 193 / 9%), transparent 76%),
    radial-gradient(ellipse at 50% 38%, #202327, transparent 68%),
    linear-gradient(112deg, transparent 24%, rgb(157 170 188 / 10%) 47%, transparent 66%);
  mask-image: linear-gradient(#000 58%, transparent 99%);
  opacity: .63;
}
.story--hero .story-stage::after { z-index: -1; inset: 0; background: radial-gradient(circle clamp(13rem, 27vw, 23rem) at var(--beam-x, 50%) var(--beam-y, 45%), rgb(169 206 255 / 18%), rgb(70 130 208 / 7%) 49%, transparent 94%); opacity: 0; }
.story--hero .story-stage.is-lit::after { opacity: 1; }
.has-fluid-canvas .story--hero .story-stage.is-lit::after { opacity: .42; }
.story--hero .story-stage.has-hero-motion::before { animation: graphite-sheen 22s ease-in-out infinite alternate; }
.story--hero .story-stage[data-hero-playback="paused"]::before { animation-play-state: paused; }

@keyframes graphite-sheen {
  from { transform: translate3d(-4%, -1.5%, 0) rotate(-1.5deg); }
  to { transform: translate3d(4%, 0, 0) rotate(1.5deg); }
}

.page-fluid {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #10151e;
}
.page-fluid::before {
  content: "";
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(ellipse at 26% 38%, rgb(19 47 102 / 36%), transparent 51%),
    radial-gradient(ellipse at 74% 66%, rgb(21 45 93 / 34%), transparent 53%);
}
.home-page:not(.has-fluid-canvas) .page-fluid {
  position: absolute;
  background: radial-gradient(ellipse at 74% 58%, rgb(24 57 112 / 30%), transparent 59%) 0 0 / 100% max(38rem, 100svh), #10151e;
}
.home-page:not(.has-fluid-canvas) .page-fluid::before {
  inset: -7rem -14% auto;
  height: 125svh;
  animation: fluid-fallback 15s ease-in-out infinite alternate paused;
}
.home-page[data-fluid-playing]:not(.has-fluid-canvas) .page-fluid::before { animation-play-state: running; }
.has-fluid-canvas .page-fluid::before { opacity: .47; }
.page-fluid-canvas { display: block; width: 100%; height: 100dvh; opacity: 0; }
.has-fluid-canvas .page-fluid-canvas { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .home-page:not(.has-fluid-canvas) .page-fluid::before { animation: none; }
}

@keyframes fluid-fallback {
  from { transform: translate3d(-5%, -2%, 0) rotate(-5deg); }
  to { transform: translate3d(5%, 2%, 0) rotate(5deg); }
}

.hero-depth { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.has-hero-motion .hero-depth {
  transform: translateY(calc(-2.2rem * var(--hero-progress, 0)));
  opacity: calc(1 - .5 * var(--hero-progress, 0));
}
.hero-depth-piece {
  position: absolute;
  top: var(--depth-y);
  left: var(--depth-x);
  width: var(--depth-size, 3.4rem);
  display: grid;
  place-items: center;
  aspect-ratio: 1.53;
  border: 1px solid #526782;
  border-radius: .48rem;
  background: linear-gradient(150deg, #46505e, #202732 40%, #11171f 78%);
  box-shadow: inset 0 1px 0 rgb(196 213 233 / 55%), inset 0 -3px 0 #111821, 0 9px 13px rgb(3 9 17 / 75%);
  transform: translate3d(calc(-50% + var(--push-x, 0px)), calc(-50% + var(--push-y, 0px) + .9rem * var(--hero-progress, 0) * var(--scroll-plane, 0)), 0) rotate(calc(var(--depth-rotation, 0deg) + var(--push-turn, 0deg)));
  color: #c4cfdf;
  opacity: var(--depth-opacity, .53);
  font-size: var(--depth-font, .64rem);
  font-weight: 720;
  letter-spacing: .035em;
}

.hero-depth-piece:nth-child(1) { --depth-x: 13%; --depth-y: 19%; --depth-rotation: -16deg; --depth-size: clamp(3.2rem, 6vw, 6.3rem); --depth-font: clamp(.62rem, 1.4vw, 1.09rem); }
.hero-depth-piece:nth-child(2) { --depth-x: 8%; --depth-y: 60%; --depth-rotation: -23deg; --depth-size: clamp(3rem, 4.7vw, 4.8rem); --depth-font: .88rem; }
.hero-depth-piece:nth-child(3) { --depth-x: 20%; --depth-y: 34%; --depth-rotation: 16deg; --depth-size: 3.65rem; }
.hero-depth-piece:nth-child(4) { --depth-x: 88%; --depth-y: 29%; --depth-rotation: 16deg; --depth-size: clamp(3.5rem, 5.1vw, 5rem); --depth-font: .9rem; }
.hero-depth-piece:nth-child(5) { --depth-x: 95%; --depth-y: 53%; --depth-rotation: -13deg; --depth-size: 3.85rem; --depth-font: .8rem; }
.hero-depth-piece:nth-child(6) { --depth-x: 83%; --depth-y: 62%; --depth-rotation: 15deg; --depth-size: 4.3rem; --depth-font: .85rem; }
.hero-depth-piece:nth-child(7) { --depth-x: 4%; --depth-y: 57%; --depth-size: .78rem; }
.hero-depth-piece:nth-child(8) { --depth-x: 20%; --depth-y: 19%; --depth-size: .6rem; }
.hero-depth-piece:nth-child(9) { --depth-x: 55%; --depth-y: 82%; --depth-size: 1rem; }
.hero-depth-piece:nth-child(10) { --depth-x: 93%; --depth-y: 15%; --depth-size: .95rem; }
.hero-depth-piece:nth-child(11) { --depth-x: 90%; --depth-y: 88%; --depth-size: .7rem; }
.hero-depth-piece:nth-child(12) { --depth-x: 18%; --depth-y: 47%; --depth-rotation: 13deg; --depth-size: 4.1rem; --depth-opacity: .44; }
.hero-depth-piece:nth-child(13) { --depth-x: 82%; --depth-y: 12%; --depth-rotation: -14deg; --depth-size: clamp(3.3rem, 5.9vw, 6.15rem); --depth-font: clamp(.64rem, 1.1vw, .93rem); --depth-opacity: .54; }
.hero-depth-piece:nth-child(14) { --depth-x: 93%; --depth-y: 15%; --depth-rotation: 18deg; --depth-size: 2.8rem; --depth-opacity: .36; }
.hero-depth-piece:nth-child(15) { --depth-x: 41%; --depth-y: 82%; --depth-rotation: -11deg; --depth-size: 2.9rem; --depth-opacity: .4; }
.hero-depth-piece:nth-child(16) { --depth-x: 77%; --depth-y: 45%; --depth-rotation: 15deg; --depth-size: 2.65rem; --depth-opacity: .35; }
.hero-depth-piece:nth-child(17) { --depth-x: 86%; --depth-y: 88%; --depth-rotation: -18deg; --depth-size: 3.65rem; --depth-opacity: .33; }
.hero-depth-piece:nth-child(18) { --depth-x: 3%; --depth-y: 35%; --depth-rotation: 28deg; --depth-size: 1.8rem; }
.hero-depth-piece:nth-child(19) { --depth-x: 39%; --depth-y: 10%; --depth-rotation: -20deg; --depth-size: .85rem; }
.hero-depth-piece:nth-child(20) { --depth-x: 85%; --depth-y: 36%; --depth-rotation: 32deg; --depth-size: .76rem; }
.hero-depth-piece:nth-child(21) { --depth-x: 9%; --depth-y: 86%; --depth-rotation: -25deg; --depth-size: 1.6rem; }
.hero-depth-piece:nth-child(22) { --depth-x: 7%; --depth-y: 39%; --depth-size: .48rem; --depth-opacity: .39; }
.hero-depth-piece:nth-child(23) { --depth-x: 34%; --depth-y: 22%; --depth-size: .62rem; --depth-opacity: .42; }
.hero-depth-piece:nth-child(24) { --depth-x: 61%; --depth-y: 29%; --depth-size: .82rem; }
.hero-depth-piece:nth-child(25) { --depth-x: 72%; --depth-y: 20%; --depth-size: .64rem; --depth-opacity: .38; }
.hero-depth-piece:nth-child(26) { --depth-x: 95%; --depth-y: 76%; --depth-size: .64rem; }
.hero-depth-piece:nth-child(27) { --depth-x: 64%; --depth-y: 90%; --depth-size: .55rem; --depth-opacity: .42; }
.hero-depth-piece:nth-child(28) { --depth-x: 33%; --depth-y: 87%; --depth-size: .6rem; --depth-opacity: .38; }
.hero-depth-orb { aspect-ratio: 1; border-radius: 50%; border-color: #426391; background: radial-gradient(circle at 34% 25%, #c1e0ff 3%, #568bd0 18%, #1b467b 45%, #101b2c 72%); box-shadow: 0 4px 10px rgb(3 8 15 / 74%); opacity: var(--depth-opacity, .65); }
.hero-depth-cube { aspect-ratio: 1; border-radius: .18rem; background: linear-gradient(140deg, #6a7e98, #263a53 48%, #121c2c 49%, #1a2c46); opacity: .43; }
.hero-depth-orb, .hero-depth-cube { --scroll-plane: 1; }
.hero-depth-piece:nth-child(3n+10) { filter: blur(.55px); }
.hero-depth-piece.hero-banner-figure {
  --scroll-plane: 1;
  --figure-sheet: url("assets/kwork-hero-figures.webp");
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: var(--figure-sheet) var(--figure-position, 0 0) / var(--figure-sheet-size, 200% 200%) no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 .55rem .75rem rgb(0 7 18 / 72%));
}
.hero-banner-figure--code { --depth-x: 12%; --depth-y: 39%; --depth-size: clamp(4.7rem, 10vw, 9.5rem); --depth-rotation: -12deg; --depth-opacity: .82; }
.hero-banner-figure--gear { --depth-x: 14%; --depth-y: 74%; --depth-size: clamp(3.1rem, 6vw, 6.1rem); --depth-rotation: 13deg; --depth-opacity: .58; --figure-position: 100% 0; }
.hero-banner-figure--cursor { --depth-x: 87%; --depth-y: 75%; --depth-size: clamp(3rem, 5.7vw, 5.55rem); --depth-rotation: 9deg; --depth-opacity: .69; --figure-position: 0 100%; }
.hero-banner-figure--network { --depth-x: 88%; --depth-y: 44%; --depth-size: clamp(4.2rem, 9vw, 8.5rem); --depth-rotation: 12deg; --depth-opacity: .84; --figure-position: 100% 100%; }
.hero-depth-piece.hero-banner-figure[data-figure] {
  --figure-sheet: url("assets/hero-technology-figures.webp");
  --figure-sheet-size: 300% 300%;
  --depth-size: clamp(3.4rem, 6.2vw, 6rem);
  --depth-opacity: .6;
}
.hero-banner-figure[data-figure="chip"] { --depth-x: 23%; --depth-y: 13%; --depth-rotation: 16deg; }
.hero-banner-figure[data-figure="shield"] { --depth-x: 6%; --depth-y: 12%; --depth-rotation: -19deg; --figure-position: 50% 0; }
.hero-banner-figure[data-figure="ring"] { --depth-x: 95%; --depth-y: 22%; --depth-rotation: 12deg; --figure-position: 100% 0; }
.hero-banner-figure[data-figure="bolt"] { --depth-x: 7.5%; --depth-y: 50%; --depth-rotation: -13deg; --figure-position: 0 50%; }
.hero-banner-figure[data-figure="hourglass"] { --depth-x: 22%; --depth-y: 58%; --depth-rotation: -12deg; --figure-position: 50% 50%; }
.hero-banner-figure[data-figure="dish"] { --depth-x: 9%; --depth-y: 94%; --depth-rotation: -9deg; --figure-position: 100% 50%; }
.hero-banner-figure[data-figure="ethernet"] { --depth-x: 74.5%; --depth-y: 9.5%; --depth-rotation: 15deg; --figure-position: 0 100%; }
.hero-banner-figure[data-figure="sliders"] { --depth-x: 95%; --depth-y: 63%; --depth-rotation: -15deg; --figure-position: 50% 100%; }
.hero-banner-figure[data-figure="key"] { --depth-x: 78%; --depth-y: 91%; --depth-rotation: 15deg; --figure-position: 100% 100%; }

.story-content { position: relative; padding-block: 4.25rem; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1rem, 3.5vw, 3.75rem); padding-block: clamp(3.5rem, 10vh, 7rem); }
.story--hero .story-copy { position: relative; z-index: 1; }
.story--hero .story-copy::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -5rem -1.8rem -3rem -5rem; background: radial-gradient(ellipse closest-side at 41% 53%, rgb(13 19 29 / 80%), transparent); }
.story h1 { font-size: clamp(2.9rem, 5vw, 5.25rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.01; color: var(--silver); text-shadow: 0 2px #606c7e, 0 7px 22px rgb(2 7 15 / 80%); }
.story h1 span { display: inline-block; color: #88bfff; text-shadow: 0 2px #2763a8, 0 7px 21px rgb(2 12 32 / 84%); }
.story-copy p { margin-top: 1.3rem; max-width: 29rem; color: #d3d8e0; font-size: clamp(1rem, 1.38vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-block-start: 1.7rem; }
.hero-actions .primary, .contact .primary, .service .primary { --key-top: #286fc8; --key-bottom: #143f83; --key-rim: #6cb1ff; --key-edge: #071e49; color: #f3f8ff; padding-inline: 1.35rem; box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 4px 0 var(--key-edge), 0 8px 24px rgb(12 68 143 / 50%); }
.hero-actions .primary:hover, .contact .primary:hover, .service .primary:hover { --key-top: #347bd2; --key-bottom: #174890; }
.hero-actions .primary:active, .contact .primary:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 1px 0 var(--key-edge), 0 3px 6px rgb(0 0 0 / 25%); }
.hero-actions .text-link { min-height: 52px; padding-inline: 1.05rem; border: 1px solid #53627a; border-radius: 7px; color: var(--silver); background: linear-gradient(170deg, #2b3544, #1a222e); text-decoration: none; }
.hero-actions .text-link:is(:hover, :focus-visible) { color: var(--accent-hover); }
.hero-display { width: min(100%, 57rem); min-width: 0; }
.has-hero-motion .hero-display { padding-block-end: 1.25rem; }
.hero-display:has(:focus-visible) { --hero-progress: 0; }
.hero-modules { position: relative; isolation: isolate; height: clamp(17rem, 28vw, 26rem); min-width: 0; }
.has-hero-motion .hero-modules {
  --hero-drop: clamp(1.7rem, 5.9vh, 3rem);
  transform: translateY(calc(var(--hero-drop) * var(--hero-progress, 0))) scale(calc(1 - .17 * var(--hero-progress, 0)));
}
.hero-modules::before, .hero-modules::after { content: ""; position: absolute; pointer-events: none; }
.hero-modules::before {
  inset: 57% 2% 10%;
  z-index: -2;
  border-radius: 50%;
  border: 1px solid #536984;
  background: linear-gradient(90deg, #253449, #101722 17%, #26384e 47%, #141f2d 74%, #2f4157);
  box-shadow: inset 0 -3px 4px #0e1621, 0 1.15rem 2.3rem rgb(1 5 12 / 65%);
}
.hero-modules::after {
  inset: 49% 2% 16%;
  z-index: -1;
  border: 1px solid #506886;
  border-bottom-color: #8dbaf0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 77%, rgb(70 135 212 / 24%), transparent 62%),
    linear-gradient(156deg, #303f51, #141d2a 49%, #263549 89%);
  box-shadow: inset 0 -6px 12px rgb(58 107 168 / 27%), 0 3px 5px rgb(1 8 20 / 46%), 0 13px 22px rgb(20 78 151 / 20%);
}
.has-hero-motion .hero-modules::before, .has-hero-motion .hero-modules::after {
  transform: scaleX(calc(1 + .12 * var(--hero-progress, 0)));
  opacity: calc(1 - .67 * var(--hero-progress, 0));
}
.hero-module { position: absolute; z-index: 1; display: grid; justify-items: center; gap: .4rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.hero-module::before { content: ""; position: absolute; z-index: -1; inset: auto 5% 1.45rem; height: 23%; background: radial-gradient(ellipse, var(--module-light), transparent 71%); pointer-events: none; }
.has-hero-motion .hero-module { translate: 0 calc(var(--scroll-drift) * var(--hero-progress, 0)); }
.hero-module--web { --orbit-start: 207deg; --orbit-width: 42%; --scroll-drift: -.6rem; --module-light: rgb(54 132 253 / 30%); --module-mask: url("assets/module-web.webp"); width: 43%; top: 12%; left: 1%; }
.hero-module--telegram { --orbit-start: 83deg; --orbit-width: 32%; --scroll-drift: .5rem; --module-light: rgb(71 162 251 / 26%); --module-mask: url("assets/module-telegram.webp"); width: 33%; bottom: 9%; left: 37%; }
.hero-module--automation { --orbit-start: 331deg; --orbit-width: 35%; --scroll-drift: .2rem; --module-light: rgb(79 138 255 / 29%); --module-mask: url("assets/module-automation.webp"); width: 36%; top: 6%; right: 1%; }
.hero-module-visual { position: relative; display: block; width: 100%; pointer-events: none; }
.hero-module img { width: 100%; height: auto; filter: drop-shadow(0 .75rem 1.25rem var(--module-light)) drop-shadow(0 1.15rem .85rem rgb(0 0 0 / 63%)); }
.hero-module-label { display: grid; place-items: center; min-height: 1.7rem; padding-inline: .65rem; border: 1px solid #40516a; border-radius: 5px; background: linear-gradient(170deg, #222e40, #151e2b); color: #e0ebf9; font-size: clamp(.73rem, 1.15vw, .86rem); font-weight: 590; }
.hero-module:is(:hover, :focus-visible) { z-index: 2; --lift: -10px; --module-scale: 1.06; color: var(--accent); }
.hero-module:is(:hover, :focus-visible) .hero-module-label { color: var(--accent-hover); }

@property --orbit-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes hero-orbit {
  to { --orbit-angle: 360deg; }
}

.hero-modules.is-orbiting { --orbit-radius-x: 30cqw; container-type: inline-size; animation: hero-orbit 36s linear infinite; }
.is-orbiting .hero-module {
  --position-on-orbit: calc(var(--orbit-angle) + var(--orbit-start));
  --orbit-depth: sin(var(--position-on-orbit));
  top: 51%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: var(--orbit-width);
  z-index: calc(10 + var(--orbit-depth) * 8);
  transform: translate(-50%, -50%) translate(calc(cos(var(--position-on-orbit)) * var(--orbit-radius-x)), calc(var(--orbit-depth) * clamp(2.2rem, 6cqw, 3.2rem))) scale(calc(.95 + var(--orbit-depth) * .15));
}

.is-orbiting .hero-module-label { justify-self: center; margin-inline: 0; }
.is-orbiting .hero-module img { opacity: calc(.935 + .065 * var(--orbit-depth)); }
.is-orbiting .hero-module:is(:hover, :focus-visible) { z-index: 20; }
.is-orbiting:focus-within, .story-stage[data-hero-playback="paused"] .is-orbiting { animation-play-state: paused; }

@media (hover: hover) {
  .is-orbiting:has(.hero-module:hover) { animation-play-state: paused; }
}

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 7px; padding: .8rem 1.14rem; font-size: .95rem; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; }
.button, .rail-button, .viewer-button {
  --key-top: #293d59;
  --key-bottom: #18263b;
  --key-rim: #425a77;
  --key-edge: #0c1525;
  border: 1px solid var(--key-rim);
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 3px 0 var(--key-edge), 0 7px 12px rgb(0 0 0 / 28%);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.button:active, .rail-button:not([aria-disabled="true"]):active, .viewer-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 1px 0 var(--key-edge), 0 3px 6px rgb(0 0 0 / 25%);
}

.primary { --key-top: var(--banner-blue-light); --key-bottom: var(--banner-blue); --key-rim: #8bc7ff; --key-edge: var(--banner-blue-edge); color: var(--accent-ink); }
.primary:hover { --key-top: #99cfff; --key-bottom: #549efb; color: var(--accent-ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 650; text-decoration-thickness: 1px; }

.section { padding-top: 2.4rem; border-top: 1px solid var(--line); }
.portfolio-stage {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 51% 58%, rgb(25 55 102 / 18%), transparent 69%),
    linear-gradient(180deg, transparent, rgb(15 21 31 / 12%) 30% 73%, transparent);
}
.portfolio-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: auto 0;
  top: calc(-1 * clamp(4rem, 10vw, 8rem));
  height: clamp(13rem, 33vw, 29rem);
  background: radial-gradient(ellipse at 50% 43%, rgb(34 77 156 / 29%), rgb(24 48 104 / 17%) 34%, transparent 70%);
  opacity: clamp(0, calc((var(--hero-progress, 0) - .12) * 1.14), 1);
  transform: translateY(calc(1.6rem * var(--hero-progress, 0))) scaleX(calc(.88 + .23 * var(--hero-progress, 0)));
}
.portfolio-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -1px;
  left: 2%;
  width: 96%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3179d7 19%, #a6d4ff 31%, #3987e8 54%, transparent 96%);
  box-shadow: 0 0 1rem #3075d4;
  transform-origin: 70% 50%;
  transform: translateY(calc(-4rem * (1 - var(--hero-progress, 0)))) rotate(calc((1 - var(--hero-progress, 0)) * -4deg)) scaleX(calc(.4 + .6 * var(--hero-progress, 0)));
  opacity: calc(.13 + .7 * var(--hero-progress, 0));
}
#work {
  --work-gutter: 56px;
  width: 100%;
  max-width: none;
  padding-top: clamp(1.6rem, 4vw, 3.25rem);
  border-image: linear-gradient(90deg, #263041, rgb(133 185 242 / calc(.24 + .51 * var(--hero-progress, 0))) 47%, #263041) 1;
}
#work > :is(.section-heading, .portfolio-toolbar, .work-invitation), #work:not(.is-sliding) > .work-grid { width: min(var(--shell), calc(100% - var(--work-gutter) * 2)); margin-inline: auto; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-block-end: 2rem; }
.section-heading h2, .contact h2 { font-size: clamp(2.45rem, 5vw, 4.6rem); letter-spacing: -.04em; font-weight: 720; line-height: 1.04; }
.section-heading h2, .contact h2, .case-intro h1, .case-section h2 { color: var(--silver); text-shadow: 0 1px #5a6679, 0 4px 11px rgb(2 7 15 / 48%); }
.section-heading > p { max-width: 22rem; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.portfolio-toolbar { margin-block: -.35rem 1rem; }
.portfolio-carousel.is-category .portfolio-toolbar {
  position: sticky;
  z-index: 5;
  top: var(--header-height);
  isolation: isolate;
  padding-block: .5rem .6rem;
}
.portfolio-carousel.is-category .portfolio-toolbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -.65rem;
  border-bottom: 1px solid #344861;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(110deg, #111720, #192432);
  box-shadow: 0 .55rem 1.65rem rgb(3 8 16 / 39%);
}
#work.is-category > .work-grid {
  --wheel-height: clamp(22rem, 74svh, 45rem);
  --wheel-slot: calc(var(--wheel-height) * .64);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  width: min(62rem, calc(100% - var(--work-gutter) * 2));
  height: var(--wheel-height);
  padding: calc((var(--wheel-height) - var(--wheel-slot)) / 2) clamp(.4rem, 1.5vw, 1.25rem);
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: linear-gradient(90deg, transparent, rgb(16 22 32 / 55%) 20% 80%, transparent);
  box-shadow: inset 0 1px 0 #304259, inset 0 -1px 0 #304259;
}
#work.is-category > .work-grid::-webkit-scrollbar { display: none; }
.is-category .work-grid > :is(.work, .portfolio-showcase) {
  flex: 0 0 var(--wheel-slot);
  height: var(--wheel-slot);
  opacity: calc(1 - var(--wheel-distance, 1) * .42);
  scroll-margin-block: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.is-category .work-grid > :is(.work, .portfolio-showcase):has(:focus-visible) { opacity: 1; }
.is-category .work { width: min(100%, calc((var(--wheel-slot) - 6.5rem) * 1.5 + 1rem)); }
.is-category .work-link { grid-template-rows: minmax(0, 1fr) auto; }
.is-category .work-cover { height: 100%; min-height: 0; object-fit: contain; background: transparent; outline: 0; }
.is-category .work-copy { gap: .16rem; padding: .38rem .55rem .12rem; }
.is-category .work h3 { margin-bottom: 0; font-size: clamp(1rem, 2vw, 1.38rem); }
.is-category .work-play:not([hidden]) { inset: auto .8rem .65rem auto; }
.is-category .work.is-current-work .work-link {
  --steel-edge: linear-gradient(152deg, #758da7, #384b65 40%, #26394e 71%, #658ec1);
  box-shadow: inset 0 1px 0 rgb(191 220 255 / 25%), 0 .8rem 1.6rem rgb(0 6 16 / 57%);
}
#work.is-category .portfolio-showcase { width: min(100%, 42rem); }
.is-category .showcase-scene:not([hidden]) { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; padding: .35rem .55rem; }
.is-category .showcase-copy { margin: 0; }
.is-category .showcase-copy h3 { font-size: clamp(1.2rem, 4vw, 2.3rem); }
.is-category .showcase-type { margin-bottom: .18rem; }
.is-category .showcase-caption { margin-top: .23rem; font-size: clamp(.82rem, 2vw, 1rem); }
.is-category .showcase-stage { align-self: center; width: min(100%, calc((var(--wheel-slot) - 8rem) * 1.85)); }
.is-category .showcase-link { min-height: 44px; min-width: 10rem; margin: 0; padding-block: .4rem; }
.is-category .showcase-scene[data-showcase="telegram"]:has(.showcase-switch:not([hidden])) { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.is-category [data-showcase="telegram"] .showcase-stage { width: min(100%, calc((var(--wheel-slot) - 10.4rem) * 1.85)); }
.showcase-actions, .showcase-switch:not([hidden]) { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .35rem; }
.showcase-switch:not([hidden]) { margin-block: .25rem .45rem; }
.showcase-switch .rail-button { min-height: 44px; padding: .25rem .75rem; font-size: .82rem; }
.showcase-switch .rail-button[aria-pressed="true"] { --key-rim: rgb(var(--showcase-light)); --key-top: #423623; --key-bottom: #251f18; color: #ffe3ad; }
.showcase-demo:not([hidden]) { min-height: 44px; padding: .4rem .8rem; }
.showcase-demo { color: var(--silver); cursor: pointer; font-family: inherit; }
.showcase-demo[hidden], .contact-direct[hidden] { display: none; }
#work .section-heading { align-items: center; }
.work-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.work-filters .rail-button { --key-top: #262f3d; --key-bottom: #1b222d; --key-rim: #454f60; }
.work-filters .rail-button[aria-pressed="true"] { --key-top: #355a86; --key-bottom: #203751; --key-rim: #93caff; color: #e7f2ff; }
#work .section-heading { margin-block-end: .9rem; }
#work-title { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.25rem, 2vw, 1.72rem); letter-spacing: -.025em; }
#work-title::before { content: ""; width: clamp(1.25rem, 4vw, 3.25rem); height: 1px; background: #6ea9f1; box-shadow: 0 0 .7rem #3476ca; }
.showcase-scene { --showcase-light: 76 151 246; position: relative; isolation: isolate; }
.showcase-scene:not([hidden]) { display: grid; justify-items: center; }
.showcase-scene::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -1.7rem -4vw -1.2rem; background: radial-gradient(ellipse at 53% 59%, rgb(11 14 19 / 96%) 25%, rgb(11 14 19 / 77%) 58%, transparent 87%); mask-image: linear-gradient(transparent, #000 13% 83%, transparent); }
.showcase-scene[data-showcase="telegram"] { --showcase-light: 224 159 78; }
.showcase-scene[data-showcase="web"] { --showcase-light: 144 177 116; }
.showcase-copy { position: relative; z-index: 2; justify-self: stretch; margin-block-end: .55rem; }
.showcase-type { margin-block-end: .45rem; color: rgb(var(--showcase-light)); font-size: clamp(.72rem, 1vw, .86rem); font-weight: 660; letter-spacing: .075em; text-transform: uppercase; }
.showcase-copy h3 { max-width: 22ch; color: var(--silver); font-size: clamp(2.3rem, 5.1vw, 4.7rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 740; text-wrap: balance; text-shadow: 0 1px #647185, 0 5px 15px rgb(2 7 15 / 47%); }
.showcase-caption { margin-block-start: .5rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.33rem); }
.showcase-stage { position: relative; isolation: isolate; width: min(100%, 64rem); aspect-ratio: 2 / 1; }
.showcase-stage::before, .showcase-stage::after { content: ""; position: absolute; pointer-events: none; }
.showcase-stage::before {
  z-index: -1;
  inset: -10% -6% 0;
  background:
    radial-gradient(ellipse at 73% 57%, rgb(var(--showcase-light) / 32%), transparent 53%),
    radial-gradient(ellipse at 15% 80%, rgb(69 129 216 / 17%), transparent 50%);
  mask-image: radial-gradient(ellipse, #000 49%, transparent 73%);
}
.showcase-stage::after {
  z-index: 0;
  inset: auto 1% 4% 1%;
  height: 16%;
  border: 1px solid rgb(157 178 207 / 44%);
  border-bottom-color: #588fda;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 83% 86%, rgb(65 132 230 / 33%), transparent 32%),
    radial-gradient(ellipse at 50% 64%, rgb(var(--showcase-light) / 28%), transparent 59%),
    linear-gradient(114deg, #2c3038, #10151b 35%, #292e37 58%, #10161f);
  box-shadow: 0 .45rem 0 -.12rem #222832, 0 .83rem 0 -.19rem #0a0e15, 0 1.35rem 1.55rem rgb(2 5 11 / 78%);
}
.showcase-device {
  position: absolute;
  padding: clamp(.26rem, 1vw, .7rem);
  border: 1px solid #767b85;
  border-radius: clamp(.48rem, 2.25vw, 1.65rem);
  background: linear-gradient(154deg, #777a81, #272b33 15%, #161c26 43%, #404754 74%, #171d27);
  box-shadow: inset 0 1px 0 rgb(246 247 255 / 46%), inset 0 -2px 0 #141820, 0 .5rem 1rem rgb(0 4 11 / 77%);
}
.showcase-device--display { z-index: 1; width: 67%; aspect-ratio: 1.53; right: 7%; bottom: 12%; transform: perspective(1100px) rotateY(-7deg) rotateX(1.5deg); }
.showcase-device--phone { z-index: 2; width: 19.5%; aspect-ratio: .483; left: 12%; bottom: 7.5%; padding: clamp(.2rem, .78vw, .5rem); transform: perspective(780px) rotateY(8deg) rotateZ(-4deg); }
.showcase-screen { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: clamp(.25rem, 1.25vw, .95rem); background-color: #10141c; }
.showcase-screen img { position: absolute; top: var(--shot-top, 0%); left: var(--shot-left, 0%); width: var(--shot-width, 100%); max-width: none; height: auto; }
/* Use the actual screen areas from the portfolio screenshots inside the device frames. */
.showcase-scene[data-showcase="telegram"] .showcase-device--display { --shot-width: 139%; --shot-left: -7%; --shot-top: -22%; }
.showcase-scene[data-showcase="telegram"] .showcase-device--phone { --shot-width: 541%; --shot-left: -44%; --shot-top: -30%; }
.showcase-scene[data-screen="cart"] .showcase-device--phone { --shot-left: -162%; }
.showcase-scene[data-screen="orders"] .showcase-device--phone { --shot-left: -399%; }
.showcase-scene[data-showcase="web"] .showcase-device--display { width: 76%; right: 12%; aspect-ratio: 1.71; transform: perspective(1100px) rotateX(2deg); }
.showcase-link { --key-top: #203550; --key-bottom: #121f33; --key-rim: #679fe1; --key-edge: #101a2b; min-width: min(100%, 12rem); margin-block-start: clamp(.6rem, 1.75vw, 1.35rem); color: #d4e9ff; }
.rail-button { min-height: 44px; padding: .5rem .85rem; border-radius: 7px; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 570; cursor: pointer; }
.rail-button:hover, .viewer-button:hover { --key-top: #365171; --key-bottom: #202f47; color: #f1f6ff; }
.portfolio-carousel.is-sliding .work-grid { --rail-gap: 1.5rem; --rail-columns: 3; --rail-inset: max(var(--work-gutter), calc((100% - var(--shell)) / 2)); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--rail-gap) * (var(--rail-columns) - 1)) / var(--rail-columns)); gap: var(--rail-gap); padding: .8rem var(--rail-inset) 1.65rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-inset); }
.is-sliding .work-grid::-webkit-scrollbar { height: 5px; }
.is-sliding .work-grid::-webkit-scrollbar-thumb { background: #596c89; border-radius: 6px; }
.is-sliding .work-grid::-webkit-scrollbar-button { display: none; }
.is-sliding .work { scroll-snap-align: start; }
.portfolio-carousel.is-looping .work-grid { scroll-snap-type: none; scrollbar-width: none; }
.portfolio-carousel.is-looping .work-grid:not(:focus-within) { mask-image: linear-gradient(90deg, transparent, #000 clamp(.55rem, 2.2vw, 2rem), #000 calc(100% - clamp(.55rem, 2.2vw, 2rem)), transparent); }
.is-looping .work-grid::-webkit-scrollbar { display: none; }
.portfolio-carousel.is-sliding .work-grid.is-dragging { scroll-snap-type: none; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .is-sliding :is(.work-grid, .work-link) { cursor: grab; }
  .is-sliding .is-dragging, .is-sliding .is-dragging .work-link { cursor: grabbing; }
  .is-dragging .work-link:hover { transform: none; }
}
.work { position: relative; min-width: 0; }
.work-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding: .55rem;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--steel-surface) padding-box, var(--steel-edge) border-box;
  box-shadow: inset 0 1px 0 rgb(207 225 248 / 18%), inset 0 -4px 0 rgb(1 6 13 / 56%), 0 10px 20px rgb(2 6 13 / 46%);
  color: var(--ink);
  text-decoration: none;
}
.work-cover { width: 100%; height: auto; border-radius: 9px; background: var(--surface); outline: 1px solid rgb(197 215 240 / 11%); outline-offset: -1px; }
.work-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .75rem .65rem .6rem; }
.work-category { color: #c0cede; font-size: .81rem; font-weight: 510; }
.work h3 { margin-bottom: .35rem; font-size: clamp(1.12rem, 1.65vw, 1.5rem); font-weight: 700; line-height: 1.18; letter-spacing: -.032em; overflow-wrap: anywhere; text-wrap: pretty; }
.work-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--accent); font-size: .83rem; font-weight: 650; }
.work-play:not([hidden]) {
  position: absolute;
  z-index: 1;
  inset: auto 1.15rem 1.15rem auto;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 44px;
  padding-inline: .62rem;
  border: 1px solid #4d688d;
  border-radius: 7px;
  background: linear-gradient(165deg, #2d4360, #1a283b);
  color: #e4effe;
  font: 610 .82rem/1 "Golos Text", Arial, sans-serif;
  cursor: pointer;
}
.work-play::before { content: ""; display: block; width: 0; height: 0; border-block: 4px solid transparent; border-inline-start: 6px solid currentColor; }
.work-play:is(:hover, :focus-visible) { border-color: var(--accent); color: var(--accent-hover); }
.work-link:is(:hover, :focus-visible) {
  --steel-edge: linear-gradient(150deg, #9fb6d3, #41648e 40%, #253447 70%, #5075a1);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(216 233 255 / 20%), inset 0 -4px 0 rgb(1 6 13 / 51%), 0 12px 19px rgb(3 12 28 / 72%);
}
.work-link:is(:hover, :focus-visible) .work-source { color: var(--accent-hover); text-decoration: underline; }
.source-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .92rem; font-weight: 650; }
.source-link:hover { color: var(--accent-hover); }
.work-invitation { display: flex; align-items: center; justify-content: space-between; gap: .2rem 1.5rem; padding: .7rem clamp(.8rem, 2.2vw, 1.5rem); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(100deg, #222b38, #191f28 70%, #1b293d); }
.portfolio-carousel.is-sliding .work-invitation { display: none; }
.portfolio-carousel:not(.is-sliding) .work-invitation { margin-top: 1.75rem; }
.work-invitation p { color: var(--muted); }
.work-invitation .text-link { color: var(--accent); }
.work-invitation .text-link:hover { color: var(--accent-hover); }

.workflow-section {
  margin-block-start: clamp(3.2rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 50% 60%, rgb(29 73 133 / 22%), transparent 65%);
}
.workflow-steps {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.3rem, 3vw, 2rem);
}
.workflow-steps::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 59% 12% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #568fe1 16%, #9bc9ff 50%, #568fe1 84%, transparent);
  box-shadow: 0 0 1.25rem #2867bb;
}
.workflow-pulse { position: absolute; z-index: 1; left: 0; top: 59%; width: min(14vw, 7rem); height: 3px; margin-inline-start: max(-7vw, -3.5rem); background: radial-gradient(ellipse, #c1ecff, #448ff3 35%, transparent 75%); opacity: 0; pointer-events: none; }
.motion-enabled .workflow-steps::before {
  opacity: calc(.34 + .66 * var(--scene-progress, 0));
  transform: scaleX(calc(.72 + .28 * var(--scene-progress, 0)));
}
.workflow-step {
  position: relative;
  --plinth: #546b89;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .5rem .25rem .85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font: 650 clamp(.77rem, 2.1vw, 1.1rem)/1.3 "Golos Text", Arial, sans-serif;
  text-align: center;
}
.workflow-step:enabled { cursor: pointer; }
.workflow-step:is(:hover, :focus-visible, [aria-pressed="true"]) { --plinth: #a1ccff; color: var(--silver); }
.workflow-step[aria-pressed="true"] { border-color: #567599; background: radial-gradient(ellipse at 50% 60%, rgb(52 103 180 / 21%), transparent 74%); }
.workflow-object {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 17rem);
  height: clamp(4.5rem, 15vw, 10rem);
  padding-block-end: .8rem;
}
.workflow-object::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 61% 3% 0;
  border: 1px solid var(--plinth);
  border-radius: 50%;
  background: linear-gradient(172deg, #2d3c53, #101a28 53%, #344c6c);
  box-shadow: inset 0 -3px #111a28, 0 7px 19px rgb(1 7 18 / 70%);
}
.workflow-object img { width: 76%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 7px 14px rgb(6 20 47 / 85%)); }
.workflow-step[aria-pressed="true"] img { filter: drop-shadow(0 6px 15px rgb(61 134 247 / 54%)); }
.workflow-note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-block-start: 1rem; }
.workflow-note p { color: var(--muted); max-width: 40rem; }

.services-section { margin-block: clamp(3.45rem, 8vw, 6rem); }
.service-list, .process-list, .case-facts, .reviews-inner {
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--steel-surface) padding-box, var(--steel-edge) border-box;
  box-shadow: inset 0 -4px 0 rgb(1 6 13 / 44%), 0 10px 24px rgb(5 8 15 / 25%);
}
.service-choices:not([hidden]) { display: flex; flex-wrap: wrap; gap: .55rem; margin-block-end: 1.15rem; }
.service-choices .rail-button[aria-pressed="true"] { --key-top: #365d90; --key-bottom: #1a3355; --key-rim: #85bcff; }
.service {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding: clamp(1.15rem, 4vw, 3.5rem);
  scroll-margin-top: calc(var(--header-height) + .8rem);
}
.service[hidden] { display: none; }
.service-list.is-switchable { display: grid; isolation: isolate; }
.service-list.is-switchable > .service { display: grid; grid-area: 1 / 1; border: 0; }
.service-list.is-switchable > .service:not([hidden]) { z-index: 1; }
.service-list.is-switchable > .service[hidden] { visibility: hidden; opacity: 0; pointer-events: none; }
.service:not([hidden]) + .service:not([hidden]) { border-top: 1px solid var(--line); }
.service h3 { color: var(--silver); font-size: clamp(1.65rem, 3.85vw, 3rem); font-weight: 720; letter-spacing: -.044em; line-height: 1.07; text-wrap: balance; }
.service p { margin-block: .85rem 1.3rem; color: var(--muted); max-width: 29rem; }
.service-example { display: grid; gap: .65rem; color: var(--silver); font-size: .95rem; font-weight: 590; }
.service-example img { display: block; width: 100%; height: auto; max-height: 23rem; object-fit: contain; border: 1px solid #63748a; border-radius: 9px; background: #0d1420; box-shadow: 0 9px 24px rgb(3 9 18 / 57%); }
.service-example:is(:hover, :focus-visible) img { border-color: var(--accent); }

.process-section { margin-block-end: clamp(2.5rem, 5vw, 4.5rem); }
.process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style-position: inside; }
.process-list li { padding: clamp(1rem, 3vw, 2.35rem); }
.process-list li + li { border-inline-start: 1px solid var(--line); }
.process-list li::marker { color: #a4d5ff; font-weight: 740; }
.process-list h3 { display: inline; font-size: clamp(1.03rem, 1.7vw, 1.4rem); font-weight: 690; line-height: 1.25; }
.process-list p { max-width: 24rem; margin-block-start: .6rem; color: var(--muted); }
.process-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 3.65rem;
  margin-block-end: .8rem;
  border-radius: 10px;
  border: 1px solid #728eaf;
  background: linear-gradient(148deg, #435b77, #18283e 52%, #223953);
  box-shadow: inset 0 1px rgb(197 221 250 / 35%), 0 4px #101827, 0 8px 22px rgb(4 12 27 / 50%);
}
.process-symbol span { position: absolute; display: block; }
.process-symbol--plan span {
  width: 1.8rem;
  height: 1.4rem;
  background: repeating-linear-gradient(180deg, #bedbff 0 2px, transparent 2px 7px) center / 78% 90% no-repeat;
  border-left: 2px solid #8fc0fa;
}
.process-symbol--screen span {
  width: 1.85rem;
  height: 1.35rem;
  border: 2px solid #a5cbf8;
  border-radius: 4px;
  background: linear-gradient(#a5cbf8, #a5cbf8) 0 4px / 100% 1px no-repeat;
}
.process-symbol--check span { width: 1.45rem; height: .85rem; border: solid #aed1fe; border-width: 0 0 3px 3px; transform: translateY(-.16rem) rotate(-45deg); }

.reviews-strip { margin-block-end: clamp(2.5rem, 5vw, 4.5rem); }
.reviews-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; padding: clamp(.85rem, 2.6vw, 1.5rem); }
.reviews-k { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 8px; border: 1px solid #6787af; color: #d2e7ff; background: linear-gradient(155deg, #39567d, #1b2b40); font-size: 1.29rem; font-weight: 750; }
.reviews-inner h2 { color: var(--silver); font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 670; }
.reviews-inner .button { margin-inline-start: auto; min-height: 44px; padding-block: .55rem; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4.4rem);
  padding: clamp(1.2rem, 5vw, 4.4rem);
  border: 1px solid #4b6080;
  border-radius: 16px;
  background: radial-gradient(ellipse at 91% 9%, rgb(58 115 203 / 24%), transparent 65%), var(--glass-surface);
  box-shadow: inset 0 1px 0 rgb(207 225 248 / 12%), inset 0 -4px 0 rgb(1 6 13 / 44%), 0 14px 28px rgb(5 8 15 / 30%);
}
.contact h2 { font-size: clamp(2.2rem, 4.9vw, 4.2rem); }
.contact p { color: var(--muted); margin-block-start: .8rem; max-width: 29rem; }
.contact-address { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .65rem; margin-block-start: .5rem; color: var(--muted); font-size: .87rem; }
.contact-copy:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.contact-copy:hover { color: var(--accent-hover); }
.contact-qr summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; color: var(--muted); font-size: .87rem; font-weight: 580; text-decoration: underline; text-underline-offset: .24em; }
.contact-qr summary::-webkit-details-marker { display: none; }
.contact-qr summary:hover { color: var(--accent); }
.contact-qr .qr-close, .contact-qr[open] .qr-open { display: none; }
.contact-qr[open] .qr-close { display: inline; }
.contact-qr img { width: min(12rem, 100%); height: auto; border-radius: 10px; }
.contact-request { min-width: 0; scroll-margin-top: calc(var(--header-height) + .9rem); }
.home-page :is(.service-list, .process-list, .work-invitation, .reviews-inner) { border-color: #3b4c62; background: var(--glass-surface) padding-box; }
.home-page .service-list { background: radial-gradient(ellipse at 71% 64%, rgb(36 83 152 / 23%), transparent 67%), var(--glass-surface); }
.brief-form button[type="submit"] { font-family: inherit; cursor: pointer; }
.brief-details summary { padding-block: .7rem; min-height: 44px; color: var(--accent); font-weight: 580; font-size: .88rem; cursor: pointer; }
.brief-details summary::marker { color: var(--banner-blue-light); }
.brief-fields { display: grid; grid-template-columns: 1.35fr 1fr; gap: .85rem 1rem; }
.brief-wide { grid-column: 1 / -1; }
.brief label { display: block; min-width: 0; color: var(--silver); font-size: .89rem; font-weight: 610; }
.brief :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-block-start: .35rem;
  padding: .6rem .76rem;
  border: 1px solid #516179;
  border-radius: 7px;
  background: #131b26;
  color: var(--ink);
  font: 400 1rem/1.45 "Golos Text", Arial, sans-serif;
}
.brief :is(input, textarea)::placeholder { color: var(--muted); }
.brief :is(input, select, textarea):focus-visible { border-color: #9ac8ff; outline-offset: 2px; background: #192537; }
.brief textarea { resize: vertical; }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-block-start: .9rem; }
.brief-quiet { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.brief-quiet:hover { color: var(--accent-hover); }
.brief-copy { position: relative; min-width: 8.25rem; padding-inline-end: 1rem; text-align: start; }
.brief-copy[data-copied] { color: #b8defe; }
.brief-copy-icon { position: absolute; top: 50%; right: .2rem; width: .62rem; height: .39rem; border: solid currentColor; border-width: 0 0 2px 2px; visibility: hidden; transform: translateY(-73%) rotate(-45deg); }
.brief-copy[data-copied] .brief-copy-icon { visibility: visible; }
.brief-result { margin-block-start: 1.15rem; padding: 1rem; border: 1px solid #455b77; border-radius: 12px; background: #182332; }
.brief-status:not(:empty) { margin-block-start: .7rem; color: var(--muted); font-size: .88rem; }
.site-footer { display: flex; align-items: center; gap: 1rem; padding-block: 1.35rem 1.65rem; color: var(--muted); font-size: .86rem; }
.site-footer > a { margin-inline-start: auto; }
.motion-setting:not([hidden]) { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.motion-setting::before { content: ""; width: .56rem; height: .56rem; border: 1px solid currentColor; border-radius: 50%; }
.motion-setting[aria-pressed="true"]::before { color: var(--banner-blue-light); background: currentColor; }
.motion-setting:hover { color: var(--accent-hover); }

.case-back { margin-top: 1.65rem; }
.case-back a { color: var(--accent); }
.case-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1rem 2.9rem; }
.case-intro h1 { font-size: clamp(2.35rem, 5.2vw, 5.25rem); line-height: 1.03; font-weight: 720; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: balance; }
.case-intro p { margin-top: .8rem; color: var(--muted); font-size: 1rem; }
.case-jumps { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-block-start: 1rem; }
.case-jumps a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .9rem; font-weight: 580; }
.case-jumps a:hover { color: var(--accent-hover); }
.case-cover { width: 100%; height: auto; padding: .58rem; border: 1px solid transparent; border-radius: 15px; background: var(--steel-surface) padding-box, var(--steel-edge) border-box; box-shadow: inset 0 1px 0 rgb(223 237 255 / 17%), 0 14px 26px rgb(3 9 18 / 47%); }
.case-section { border-top: 1px solid var(--line); padding-top: 1.75rem; margin-bottom: 3.5rem; }
.case-section h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 3.3vw, 2.75rem); line-height: 1.1; font-weight: 690; letter-spacing: -.035em; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem 2rem; padding: clamp(1rem, 3vw, 2rem); }
.case-facts dt { margin-bottom: .35rem; color: var(--accent); font-weight: 680; }
.case-facts dd { color: var(--muted); max-width: 42ch; }
.case-video { display: block; width: 100%; max-height: 72vh; height: auto; aspect-ratio: 16 / 9; background: #111214; border: 1px solid #3c4656; border-radius: 14px; box-shadow: 0 8px 18px rgb(2 8 18 / 40%); }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; align-items: start; }
.case-shot:only-child { grid-column: 1 / -1; }
.case-shot-link { display: block; border: 1px solid #3c4656; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 14px rgb(3 9 18 / 35%); }
.case-shot-link:hover { outline: 1px solid var(--muted); outline-offset: 2px; }
.case-shot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.case-shot img { width: 100%; height: auto; max-height: 25rem; object-fit: contain; }
.case-shot figcaption { margin-top: .45rem; color: var(--muted); font-size: .87rem; }
.case-next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; border-block: 1px solid var(--line); padding-block: 1.5rem; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem; }
.case-actions .text-link { color: var(--accent); }
.case-follow { display: grid; width: min(100%, 28rem); grid-template-columns: minmax(0, 6.75rem) minmax(0, 1fr); align-items: center; gap: .8rem; padding: .5rem .85rem .5rem .5rem; border: 1px solid transparent; border-radius: 12px; background: var(--steel-surface) padding-box, var(--steel-edge) border-box; text-decoration: none; }
.case-follow img { width: 100%; height: auto; border-radius: 7px; }
.case-follow-copy { display: grid; gap: .2rem; }
.case-follow-copy > span { color: var(--muted); font-size: .79rem; }
.case-follow strong { line-height: 1.25; overflow-wrap: anywhere; }
.case-follow:hover strong { text-decoration: underline; }

.viewer { max-width: min(92vw, 87.5rem); max-height: 92dvh; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgb(8 8 9 / 88%); }
.viewer-toolbar, .viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .5rem .85rem; background: linear-gradient(160deg, #242e3c, #191f29); }
.viewer-toolbar { border-block-end: 1px solid #394658; }
.viewer-navigation { border-block-start: 1px solid #394658; }
.viewer-counter { color: var(--muted); font-size: .86rem; }
.viewer-tools { display: flex; flex: none; flex-wrap: wrap; gap: .25rem; }
.viewer-navigation[hidden] { display: none; }
.viewer-button { min-height: 44px; padding: .45rem .65rem; border-radius: 5px; color: var(--ink); cursor: pointer; font: inherit; font-size: .86rem; }
.viewer-button:disabled { opacity: .58; cursor: default; }
.viewer-download:not([hidden]) { display: inline-flex; align-items: center; text-decoration: none; font-size: .86rem; }
.viewer-scroll { position: relative; overflow: auto; overscroll-behavior: contain; background: #111214; }
.viewer-scroll:not(.is-zoomed) { display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.viewer-scroll:focus-visible { outline-offset: -3px; }
.viewer-image { width: auto; max-width: 100%; height: auto; margin: auto; }
.viewer-scroll:not(.is-zoomed) .viewer-image { max-height: min(64dvh, 60rem); object-fit: contain; }
.viewer-scroll.is-zoomed .viewer-image { max-width: none; margin: 0; }
.viewer-scroll[data-image-state] .viewer-image { visibility: hidden; }
.viewer-feedback:not([hidden]) { display: grid; place-items: center; align-content: center; position: absolute; inset: 0; text-align: center; padding: .85rem; background: #111214; color: var(--silver); }
.viewer-scroll:has(.viewer-feedback:not([hidden])) { min-height: min(14rem, 40dvh); }
.viewer-original:not([hidden]) { color: var(--accent); }
body:has(.viewer[open]) { overflow: hidden; }
.portfolio-preview { max-width: min(94vw, 66rem); border-color: #4a5e79; box-shadow: 0 1rem 3.8rem rgb(0 5 14 / 62%); }
.portfolio-preview .viewer-toolbar { flex-wrap: nowrap; gap: .65rem; }
.preview-title { min-width: 0; font-size: clamp(1rem, 2.15vw, 1.4rem); line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.preview-close { flex: none; }
.preview-media { background: #080c13; }
.preview-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: min(66dvh, 39rem); height: auto; object-fit: contain; }
.preview-media:has(.preview-status:not([hidden])) .preview-video { display: none; }
.preview-status:not([hidden]) { padding: clamp(1.1rem, 4vw, 2.25rem); color: var(--muted); }
.preview-case { color: var(--accent); }

@keyframes surface-enter {
  from { opacity: .78; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes edge-sweep {
  from { background-position: 100% 50%; opacity: 0; }
  40% { opacity: 1; }
  to { background-position: 0 50%; opacity: 0; }
}

@keyframes copy-check {
  from { opacity: 0; transform: translateY(-73%) rotate(-45deg) scale(.67); }
  to { opacity: 1; transform: translateY(-73%) rotate(-45deg) scale(1); }
}

@keyframes viewer-enter {
  from { opacity: .87; transform: scale(.984); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes frame-enter {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  :where(:root:not([data-motion-paused])) .is-category .work-grid > :is(.work, .portfolio-showcase) { transform: perspective(1100px) translateZ(calc(-2rem * var(--wheel-distance, 1))) scale(calc(1 - var(--wheel-distance, 1) * .29)); }
  :where(:root:not([data-motion-paused])) .showcase-scene:not([hidden]) .showcase-stage { animation: frame-enter var(--motion-ui) ease-out both; }
  :where(:root:not([data-motion-paused])) .site-header { transition: box-shadow var(--motion-ui) ease-out, border-color var(--motion-ui) ease-out; }
  :where(:root:not([data-motion-paused])) .site-header nav a::after { transition: opacity var(--motion-fast) ease-out, transform var(--motion-ui) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .story--hero .story-stage::after { transition: opacity var(--motion-ui) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .hero-module-visual { transform: perspective(520px) translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--module-scale, 1)); transition: transform var(--motion-ui) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .hero-module-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    mask: var(--module-mask) center / 100% 100% no-repeat;
    background: linear-gradient(105deg, transparent calc(var(--shine-x, 48%) - 14%), rgb(147 205 255 / 65%) var(--shine-x, 48%), transparent calc(var(--shine-x, 48%) + 10%));
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity var(--motion-fast) ease-out;
  }
  :where(:root:not([data-motion-paused])) .hero-module:is(:hover, :focus-visible) .hero-module-visual::after { opacity: .82; }
  :where(:root:not([data-motion-paused])) .hero-actions .text-link { transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease-out; }
  :where(:root:not([data-motion-paused])) .hero-actions .text-link:active { transform: translateY(1px); }
  :where(:root:not([data-motion-paused])) .work-link { transition: transform var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) ease-out; }
  :where(:root:not([data-motion-paused])) .work-play { transition: border-color var(--motion-fast) ease-out, transform var(--motion-fast) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .work-play:active { transform: translateY(1px); }
  :where(:root:not([data-motion-paused])) .work-link:focus-visible { transform: translateY(-2px); }
  :where(:root:not([data-motion-paused])) :is(.work-link, .workflow-step)::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    background: linear-gradient(115deg, transparent 39%, #558dcc 47%, #e1f1ff 50%, #66afff 53%, transparent 62%) 100% 50% / 280% 100%;
    opacity: 0;
  }
  :where(:root:not([data-motion-paused])) :is(.work-link, .workflow-step):is(:focus-visible, [data-edge-flash])::after { animation: edge-sweep var(--motion-sweep) ease-out; }
  :where(:root:not([data-motion-paused])) .is-sliding .work-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgb(153 203 255 / 82%);
    box-shadow: inset 0 1px 10px rgb(108 170 246 / 27%);
    opacity: 0;
    transition: opacity var(--motion-travel) var(--motion-ease);
  }
  :where(:root:not([data-motion-paused])) .is-sliding .work:first-of-type { --arrival-rim: var(--portfolio-glow, 0); }
  :where(:root:not([data-motion-paused])) .is-sliding .work:first-of-type .work-link::before { opacity: calc(var(--arrival-rim) * .83); transition: none; }
  :where(:root:not([data-motion-paused])) .is-sliding .work.is-rail-focus .work-link::before { opacity: .7; }
  :where(:root:not([data-motion-paused])) .workflow-object img { transition: filter var(--motion-ui) ease-out; }
  :where(:root:not([data-motion-paused])) .service-list[data-switching] .service { transition: opacity var(--motion-ui) ease-out, visibility 0s; }
  :where(:root:not([data-motion-paused])) .service-list[data-switching] .service[hidden] { transition-delay: 0s, var(--motion-ui); }
  :where(:root:not([data-motion-paused])) .service-example img { transition: transform var(--motion-ui) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .service-example:is(:hover, :focus-visible) img { transform: translateY(-2px); }
  :where(:root:not([data-motion-paused])) .contact-qr[open] img { animation: surface-enter var(--motion-ui) var(--motion-ease) both; }
  :where(:root:not([data-motion-paused])) .brief-details[open] .brief-fields { animation: surface-enter var(--motion-ui) var(--motion-ease) both; }
  :where(:root:not([data-motion-paused])) .brief-result:not([hidden]) { animation: surface-enter var(--motion-ui) var(--motion-ease) both; }
  :where(:root:not([data-motion-paused])) .brief-copy[data-copied] .brief-copy-icon { animation: copy-check var(--motion-fast) var(--motion-ease) both; }
  :where(:root:not([data-motion-paused])) .case-follow { transition: transform var(--motion-ui) var(--motion-ease); }
  :where(:root:not([data-motion-paused])) .case-follow:is(:hover, :focus-visible) { transform: translateY(-2px); }
  :where(:root:not([data-motion-paused])) .viewer[open] { animation: viewer-enter var(--motion-ui) var(--motion-ease) both; }
  :where(:root:not([data-motion-paused])) .viewer[open] .viewer-scroll:not([data-image-state]) .viewer-image { animation: frame-enter var(--motion-fast) ease-out both; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :where(:root:not([data-motion-paused])) .work-link:hover { transform: translateY(-4px); }
  :where(:root:not([data-motion-paused])) .work-link:active { transform: translateY(-1px); }
  :where(:root:not([data-motion-paused])) :is(.work-link, .workflow-step):hover::after { animation: edge-sweep var(--motion-sweep) ease-out; }
}

:root[data-motion-paused] :is(.button, .rail-button, .viewer-button) { transition: none; }
:root[data-motion-paused] :is(.button, .rail-button, .viewer-button):active { transform: none; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 72px); }
  #work { --work-gutter: 36px; }
  .site-header.shell { --header-gutter: 36px; }
}

@media (max-width: 1023px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-carousel.is-sliding .work-grid { --rail-columns: 2; --rail-gap: 1rem; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-banner-figure[data-figure="hourglass"] { --depth-x: 7%; --depth-y: 76%; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .shell { width: calc(100% - 36px); }
  #work { --work-gutter: 18px; }
  #work.is-category > .work-grid { width: calc(100% - clamp(.9rem, 5vw, 1.55rem)); padding-inline: .37rem; }
  .showcase-stage { aspect-ratio: 1.68; }
  .showcase-device--display { width: 75%; right: 3%; }
  .showcase-device--phone { width: 22%; left: 7%; }
  .showcase-scene[data-showcase="web"] .showcase-device--display { width: 88%; right: 6%; }
  .site-header.shell { --header-gutter: 18px; min-height: 64px; grid-template-columns: auto 1fr; gap: .8rem; }
  .site-header nav { justify-self: end; gap: 0 clamp(.65rem, 2.8vw, 1.25rem); }
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .header-contact { display: none; }
  .wordmark { gap: .45rem; font-size: 1.08rem; }
  .wordmark img { width: 34px; height: 34px; }
  .story--hero { --stage-height: min(40rem, calc(100svh - 64px)); }
  .hero-depth-piece { opacity: min(var(--depth-opacity, .36), .4); }
  .hero-depth-piece:nth-child(1) { --depth-x: 87%; --depth-y: 5%; }
  .hero-depth-piece:nth-child(2) { --depth-x: 4%; --depth-y: 58%; }
  .hero-depth-piece:nth-child(3) { --depth-x: 42%; --depth-y: 53%; }
  .hero-depth-piece:nth-child(4) { --depth-x: 95%; --depth-y: 56%; }
  .hero-depth-piece:nth-child(5) { --depth-x: 11%; --depth-y: 88%; }
  .hero-depth-piece:nth-child(6) { --depth-x: 87%; --depth-y: 85%; }
  .hero-depth-piece:nth-child(12) { --depth-x: 97%; --depth-y: 69%; }
  .hero-depth-piece:nth-child(13) { --depth-x: 1%; --depth-y: 7%; }
  .hero-depth-piece:nth-child(14) { --depth-x: 79%; --depth-y: 93%; }
  .hero-depth-piece:nth-child(15) { --depth-x: 27%; --depth-y: 83%; }
  .hero-depth-piece:nth-child(n+22):not(.hero-banner-figure) { opacity: .24; }
  .hero-depth-piece.hero-banner-figure { opacity: .58; }
  .hero-banner-figure--code { --depth-x: 11%; --depth-y: 58%; --depth-size: 4.25rem; }
  .hero-banner-figure--gear { --depth-x: 19%; --depth-y: 94%; }
  .hero-banner-figure--cursor { --depth-x: 93%; --depth-y: 91%; }
  .hero-banner-figure--network { --depth-x: 89%; --depth-y: 58%; --depth-size: 4rem; }
  .hero-depth-piece.hero-banner-figure[data-figure] { --depth-size: clamp(2.65rem, 9vw, 3.8rem); opacity: .52; }
  .hero-banner-figure[data-figure="chip"] { --depth-x: 22%; --depth-y: 8%; }
  .hero-banner-figure[data-figure="shield"] { --depth-x: 49%; --depth-y: 6%; }
  .hero-banner-figure[data-figure="ring"] { --depth-x: 68%; --depth-y: 7%; }
  .hero-banner-figure[data-figure="bolt"] { --depth-x: 5.5%; --depth-y: 33%; }
  .hero-banner-figure[data-figure="hourglass"] { --depth-x: 96%; --depth-y: 35%; }
  .hero-banner-figure[data-figure="dish"] { --depth-x: 7%; --depth-y: 96%; }
  .hero-banner-figure[data-figure="ethernet"] { --depth-x: 38%; --depth-y: 94%; }
  .hero-banner-figure[data-figure="sliders"] { --depth-x: 96%; --depth-y: 74%; }
  .hero-banner-figure[data-figure="key"] { --depth-x: 61%; --depth-y: 95%; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-block: clamp(2rem, 7vh, 3.65rem) 1rem; }
  .hero-display { width: min(100%, 34rem); justify-self: center; }
  .hero-modules { height: clamp(13.5rem, 63vw, 20rem); }
  .has-hero-motion .hero-modules { --hero-drop: clamp(1.6rem, 4.9vh, 2.4rem); }
  .hero-modules.is-orbiting { --orbit-radius-x: 31cqw; }
  .hero-modules::before, .hero-modules::after { inset-inline: 5%; }
  .story-copy { max-width: 35rem; }
  .story h1 { font-size: clamp(2.1rem, 8vw, 4.1rem); text-wrap: balance; }
  .story-copy p { margin-top: .8rem; }
  .hero-actions { margin-block-start: 1.25rem; column-gap: .5rem; }
  .hero-actions .primary { padding-inline: 1rem; }
  .hero-actions .text-link { padding-inline: .45rem; }
  .section { padding-top: 1.75rem; }
  .section-heading { display: grid; margin-block-end: 1.25rem; gap: .6rem; }
  .work-grid { gap: 1.5rem 1rem; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-example img { max-height: unset; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 7.2rem; padding-inline-start: 6.5rem; position: relative; }
  .process-symbol { position: absolute; inset: 1.15rem auto auto 1rem; }
  .process-list li + li { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .case-back { margin-top: .8rem; }
  .case-hero { grid-template-columns: 1fr; gap: 1.2rem; padding-bottom: 1.75rem; }
  .case-jumps { margin-block-start: .55rem; }
  .case-facts { grid-template-columns: 1fr; gap: .9rem; }
  .case-section { margin-bottom: 2.25rem; }
}

@media (max-width: 599px) {
  .work-grid { grid-template-columns: 1fr; }
  .portfolio-carousel.is-sliding .work-grid { grid-auto-columns: 89%; }
  #work .section-heading { display: flex; gap: .5rem; }
  .portfolio-toolbar { margin-block: 0 .45rem; }
  .work-filters { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: .35rem; }
  .work-filters .rail-button { padding-inline: .4rem; font-size: .8rem; }
  .showcase-actions .button { min-width: 0; font-size: .82rem; padding-inline: .7rem; }
  .rail-button { padding-inline: .65rem; }
  .work-invitation { align-items: start; flex-direction: column; }
  .case-gallery { grid-template-columns: 1fr; gap: 1.15rem; }
  .case-shot img { max-height: 22rem; }
  .case-next { align-items: flex-start; flex-direction: column; }
  .brief-fields { grid-template-columns: 1fr; }
  .brief-wide { grid-column: auto; }
  .viewer-toolbar { flex-wrap: wrap; gap: .12rem .65rem; }
  .viewer-counter { flex-basis: 100%; }
  .viewer-tools { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .story--hero .story-stage::after { transition: none; }
  .button, .rail-button, .viewer-button, .work-link { transition: none; }
  .button:active, .rail-button:not([aria-disabled="true"]):active, .viewer-button:active { transform: none; }
}

@media (forced-colors: active) {
  .work-filters .rail-button[aria-pressed="true"] { border-color: Highlight; }
  .story h1, .story h1 span, .section-heading h2, .contact h2, .case-intro h1, .case-section h2 { color: CanvasText; text-shadow: none; }
}

@media (max-width: 400px) {
  .site-header.shell { --header-gutter: 12px; gap: .45rem; }
  .site-header nav { gap: 0 .38rem; }
  .site-header nav a { font-size: .79rem; }
  .site-header .wordmark { gap: .34rem; font-size: clamp(.84rem, 4.2vw, 1rem); }
  .site-header .wordmark img { width: clamp(28px, 8.2vw, 32px); height: auto; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 28px); }
  #work { --work-gutter: 14px; }
  .hero-banner-figure[data-figure="chip"], .hero-banner-figure[data-figure="ring"] { --depth-y: 5.5%; }
  .contact-inner { padding: 1.35rem; }
}
