/* Scroll studio: native document scrolling drives the scenes; all content has a static fallback. */
:root { --accent: #3455f5; --text: #14171d; --surface: #edf3ff; --motion-ease: cubic-bezier(.22,1,.36,1); }
:root[data-theme="dark"] { --accent: #a1b4ff; --text: #f0f4fc; --surface: #1b2941; }
.site-header { position: relative; border: 0; background: var(--bg); backdrop-filter: none; }
.bar { height: 96px; gap: 24px; }
@media (min-width: 821px) {
  .menu { margin-left: auto; gap: 2px; padding: 6px; border: 0; background: #14171d; color: #fff; border-radius: 99px; }
  .menu a { padding: 11px 17px; border-radius: 99px; font-size: 13px; }
  .menu a:hover, .menu a[aria-current="location"] { background: #fff; color: #14171d; }
  .header-actions { gap: 12px; }
}
.hero { padding: 32px 0 0; margin-top: 0; }
.hero-grid { display: flex; flex-direction: column; min-height: 0; gap: 0; }
.hero-copy { text-align: center; width: 100%; max-width: 1200px; padding: 12px 0 0; }
.hero h1, :root[lang="ru"] .hero h1, :root[lang="en"] .hero h1 { font-size: clamp(46px,5.8vw,84px); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; }
.hero h1 > span { display: inline; }
.hero h1 > span:first-child { display: block; }
.hero h1 > span:last-child { white-space: nowrap; }
.hero .hero-lead { max-width: 650px; margin: 24px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.hero .cta { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }
.hero .btn { padding: 16px 24px; font-size: 14px; }
.btn-primary { background: #3455f5; box-shadow: none; }
.hero .btn-text { padding-inline: 24px; border: 1px solid var(--line); border-radius: 99px; }
.hero .btn-text:hover { border-color: var(--accent); background: var(--surface); }
.btn .icon, .project-link .icon { transition: transform .35s var(--motion-ease); }
.btn:hover .icon, .project-link:hover .icon { transform: translate(3px,-3px); }
.hero-scene { position: relative; width: 100%; height: clamp(330px,34vw,470px); margin-top: 36px; isolation: isolate; }
.hero-art { position: absolute; z-index: 2; width: min(45%,500px); left: 50%; top: -2%; margin: 0; transform: translateX(-50%) rotate(var(--scene-turn,0deg)); }
.hero-art img { width: 100%; height: auto; animation: none; transform: none; transition: none; }
.hero-art--cutout img { mask-image: url('/assets/hero-zero-mask.svg'); mask-size: 100% 100%; mask-repeat: no-repeat; }
.hero-art--cutout::before { content: ''; display: block; position: absolute; z-index: -1; left: 28%; width: 48%; top: 86%; height: 7%; border: 0; border-radius: 50%; background: radial-gradient(ellipse, #15295624, transparent 70%); filter: blur(10px); transform: none; }
:root[data-theme="dark"] .hero-art--cutout::before { background: radial-gradient(ellipse, #00000060, transparent 70%); }
.hero-satellite { position: absolute; left: 50%; top: 8%; margin: 0 0 0 -110px; width: 220px; aspect-ratio: 16/10; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 45px -30px #10204450; }
.hero-satellite img { width: 100%; height: 100%; object-fit: cover; }
.hero-satellite--one { transform: translate(-330px,0) rotate(-9deg); }
.hero-satellite--two { transform: translate(330px,0) rotate(9deg); }
.hero-satellite--three { transform: translate(-290px,225px) rotate(7deg); }
.hero-satellite--four { transform: translate(290px,225px) rotate(-7deg); }
.capability-journey { position: relative; margin-top: 20px; }
.capability-stage { position: relative; overflow: clip; display: grid; place-items: center; padding: 100px 0; }
.capability-rows { display: grid; gap: 24px; }
.capability-row { display: flex; align-items: center; justify-content: center; gap: 28px; font-size: clamp(36px,6.5vw,94px); font-weight: 500; letter-spacing: -.06em; line-height: 1.2; color: #d87636; }
.capability-row:nth-child(2) { color: #3455f5; }
.capability-row:nth-child(3) { color: #7953c4; }
.capability-row:nth-child(4) { color: #138557; }
:root[data-theme="dark"] .capability-row:first-child { color: #f7aa73; }
:root[data-theme="dark"] .capability-row:nth-child(2) { color: #a1b4ff; }
:root[data-theme="dark"] .capability-row:nth-child(3) { color: #c8a5ff; }
:root[data-theme="dark"] .capability-row:nth-child(4) { color: #74dcae; }
.capability-row .icon { width: .8em; height: .8em; stroke-width: 1.5; flex-shrink: 0; }
.capability-row > span { min-width: 0; }
.capability-arrow { display: none; position: absolute; inset: 0; width: 100%; height: 100%; fill: #3455f5; pointer-events: none; transform-origin: 50% 50%; }
.scroll-scenes-active .capability-journey { height: calc(var(--capability-count,4) * 45svh + 100svh); }
.scroll-scenes-active .capability-stage { position: sticky; top: 0; height: 100svh; padding: 0; }
.scroll-scenes-active .capability-arrow { display: block; }
/* One real horizontal scroll container: touch, trackpad, mouse drag and keyboard. */
#products { padding: 64px 0 42px; background: #3455f5; color: #fff; overflow: clip; }
#products .section-heading { align-items: center; gap: 32px; margin-bottom: 30px; }
#products .section-heading > div:first-child { flex: 1; }
#products .section-heading .eyebrow { color: #eef2ff; margin-bottom: 16px; }
#products .eyebrow .section-number { color: inherit; }
#products .section-heading h2 { font-size: clamp(38px,4.1vw,60px); line-height: 1.1; letter-spacing: -.05em; font-weight: 500; }
#products .accent { color: #fff; }
#products .section-heading > p { color: #e0e6ff; font-size: 15px; max-width: 280px; }
.carousel-controls { display: flex; gap: 12px; flex-shrink: 0; }
.carousel-arrow { width: 56px; height: 56px; border: 1px solid #ffffffb3; border-radius: 50%; background: transparent; color: #fff; font-size: 30px; line-height: 1; transition: background .2s,color .2s; }
.carousel-arrow:hover { background: #fff; color: #3455f5; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
#products button:focus-visible, #products a:focus-visible { outline-color: #fff; }
#products .product-stack { display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter),calc((100vw - var(--max))/2)); padding: 6px max(var(--gutter),calc((100vw - var(--max))/2)) 20px; margin-inline: calc(-1 * max(var(--gutter),calc((100vw - var(--max))/2))); scrollbar-width: none; cursor: grab; }
#products .product-stack::-webkit-scrollbar { display: none; }
#products .product-stack.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
#products .product-stack .product-card { flex: 0 0 min(420px,32vw); display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 12px; border: 0; border-radius: 30px; color: #14171d; background: #e7f0ff; scroll-snap-align: start; overflow: hidden; box-shadow: none; transform: none; opacity: 1; }
#products .product-card:nth-child(2) { background: #e3f2ee; }
#products .product-card:nth-child(3) { background: #ffece2; }
#products .product-card[data-project-card="puzzle-15"] { background: #fff3e4; }
#products .product-card[data-project-card="weatheruz"] { background: #f0eaff; }
#products .product-card > figure { order: -1; flex: 0 0 auto; }
#products .product-stack .product-card .product-visual, #products .product-card .store-visual { width: 100%; height: auto; margin: 0; aspect-ratio: 16/9; border-radius: 20px; background: transparent; transform: none; }
#products .product-card .product-visual > img, #products .product-card .store-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--motion-ease); }
#products .product-card:hover .product-visual > img, #products .product-card:hover .store-cover > img { transform: scale(1.035); }
#products .product-card .store-preview { height: 100%; }
#products .product-card .store-preview .store-shot { width: auto; height: 100%; max-width: 44%; }
#products .product-card .store-preview img { width: auto; height: 100%; }
#products .product-card figure figcaption { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-size: 8px; background: #ffffffdd; color: #526581; }
#products .product-card .product-copy { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 22px 14px 14px; }
#products .product-card .product-heading { gap: 12px; align-items: start; flex-direction: column-reverse; }
#products .product-card h3 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.045em; margin: 0; }
#products .product-card .store-icon { width: 30px; height: 30px; border-radius: 8px; }
#products .product-card .status { font-size: 10px; padding: 4px 9px; color: #06633c; background: #d2f0df; }
#products .product-card .status.soon { color: #214adb; background: #d2e3ff; }
#products .product-card .product-copy > p { font-size: 15px; line-height: 1.6; margin-top: 14px; color: #526078; }
#products .product-card .product-copy > .meta { font-size: 11px; line-height: 1.5; color: #58667b; margin-top: 12px; }
#products .product-card .product-actions { margin-top: auto; padding-top: 22px; gap: 6px; }
#products .product-card .project-link { color: #2448de; font-size: 15px; padding: 0; }
#products .product-card .project-link::before { content: none; }
#products .product-card .project-credit-link { color: #5c697c; font-size: 11px; margin: 0; }
#products .product-card .store-downloads { margin-top: 18px; }
#products .product-card a.store-download { min-width: 145px; min-height: 50px; border-radius: 12px; padding: 8px 14px; }
#products .product-card a.store-download strong { font-size: 16px; }
#products .product-card a:focus-visible { outline-color: #2448de; }
.carousel-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; }
.carousel-hint { margin: 0; font-size: 14px; }
.carousel-hint span:last-child { padding-left: 18px; font-size: 24px; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dot { display: grid; place-items: center; width: 36px; height: 44px; border: 0; padding: 0; background: transparent; }
.carousel-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ffffff60; transition: width .25s,background .25s; }
.carousel-dot[aria-current="true"]::before { width: 22px; border-radius: 99px; background: white; }
#products .product-note { color: #eef2ff; font-size: 12px; margin-top: 26px; }
/* Scroll-driven service scenes. Without enhancement these are ordinary articles. */
.services { padding: 0; }
.service-stage { padding-block: 100px 40px; }
.services-intro { text-align: center; }
.services-intro .eyebrow { display: none; }
.services-intro h2 { max-width: none; width: 100%; margin-inline: auto; font-size: clamp(30px,3vw,44px); font-weight: 500; letter-spacing: -.04em; }
.services-intro h2 span { display: inline; }
.service-stories { margin-top: 42px; }
.service-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-width: 0; padding-block: 50px; }
.service-story-copy { min-width: 0; }
.service-story h3 { margin: 18px 0 30px; font-size: clamp(42px,4.9vw,70px); font-weight: 500; letter-spacing: -.055em; line-height: 1.06; }
.service-story-copy > p { font-size: 20px; line-height: 1.6; max-width: 510px; }
.service-story .service-tech { color: var(--muted); font-size: 14px; margin: 24px 0 32px; }
.story-count { color: var(--muted); font-size: 12px; }
.story-link { color: var(--accent); display: inline-block; font-size: 17px; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.story-link span:last-child { display: inline-block; margin-left: 14px; transition: transform .3s; }
.story-link:hover span:last-child { transform: translateX(6px); }
.service-story-visual { margin: 0; display: grid; place-items: center; min-width: 0; }
.service-story-visual img { width: 100%; height: auto; object-fit: contain; }
.service-story-visual--phone img { width: auto; max-width: 100%; height: min(55svh,540px); border: 6px solid #171b24; border-radius: 38px; box-shadow: 0 28px 50px -35px #28457470; }
.service-story-visual figcaption { font-size: 10px; color: var(--muted); margin-top: 14px; }
.service-story-visual--art img { border-radius: 30px; max-height: 56svh; }
.story-skip { display: flex; justify-content: end; align-items: center; gap: 15px; padding-block: 18px; color: var(--muted); text-decoration: none; font-size: 13px; }
.story-skip span:last-child { font-size: 24px; }
.story-nav { display: none; }
.service-scenes-active .services { height: calc(var(--service-count,4) * 80svh + 90svh); position: relative; }
.service-scenes-active .service-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: 45px 18px; }
.service-scenes-active .service-stories { display: grid; grid-template-columns: 175px minmax(0,1fr); column-gap: 45px; margin-top: 28px; min-height: 0; align-items: center; }
.service-scenes-active .story-nav { display: flex; flex-direction: column; position: relative; gap: 68px; grid-column: 1; grid-row: 1; }
.story-nav::before { content: ''; position: absolute; width: 1px; background: var(--line); left: 9px; top: 18px; bottom: 18px; }
.story-nav-button { position: relative; display: flex; align-items: center; gap: 16px; padding: 5px 0; background: transparent; border: 0; text-align: left; color: var(--muted); font-size: 13px; line-height: 1.5; }
.story-nav-button::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; background: var(--bg); flex-shrink: 0; }
.story-nav-button[aria-pressed="true"] { color: var(--accent); }
.story-nav-button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px var(--surface); }
.service-scenes-active .service-story { grid-column: 2; grid-row: 1; grid-template-columns: 1.2fr 1fr; gap: 35px; padding: 0; opacity: 0; visibility: hidden; transform: translateY(35px); transition: opacity .5s var(--motion-ease),transform .65s var(--motion-ease),visibility .5s; }
.service-scenes-active .service-story.is-active { opacity: 1; visibility: visible; transform: none; }
.service-scenes-active .service-story h3 { font-size: clamp(40px,4.5vw,64px); }
.service-scenes-active .story-count { display: none; }
.service-scenes-active .service-story-copy > p { font-size: 19px; }
.service-scenes-active .service-story .service-tech { font-size: 13px; }
#team .team-heading { max-width: 1030px; margin: 0 auto 70px; }
#team .team-heading h2 { font-size: clamp(44px,6vw,88px); font-weight: 500; letter-spacing: -.055em; }
#team .team-heading p { max-width: 700px; margin-inline: auto; }
.word-reveal { display: inline; transition: color .15s; color: var(--line); }
.word-reveal.is-read { color: var(--text); }
#process { background: var(--surface); border-radius: 36px; padding: 64px; }
.process-rail li::before { transform: scaleX(var(--step-progress,1)); transform-origin: left; }
.process-rail li::after { box-shadow: 0 0 0 5px var(--surface); }
.reveal-ready [data-reveal] { transform: translate3d(0,42px,0); }
.reveal-ready [data-reveal].is-visible { transition: opacity .85s var(--motion-ease),transform .85s var(--motion-ease); transition-delay: 0s; }
.reveal-ready .hero-copy[data-reveal] { opacity: 1; transform: none; }
.motion-ready .hero h1 { animation: headline-in .9s var(--motion-ease) both; }
.motion-ready .hero .hero-lead, .motion-ready .hero .cta { animation: headline-in .9s .15s var(--motion-ease) both; }
@keyframes headline-in { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: none; } }
.contact-section { margin-top: 40px; padding: 88px 0 64px; background: #3455f5; color: #fff; }
.contact-panel { background: transparent; border: 0; border-radius: 0; padding: 0; text-align: center; }
.contact-panel > .eyebrow { display: none; }
.contact-panel h2 { max-width: 1000px; margin: 0 auto; font-size: clamp(38px,4.7vw,68px); }
.contact-panel .accent { color: #fff; }
.contact-panel .contact-lead { color: #e3e9ff; max-width: 850px; margin: 24px auto 0; font-size: 18px; }
.contact-panel .contact-list { max-width: 1080px; margin: 42px auto 0; gap: 20px; text-align: left; }
.contact-panel .contact-list a { background: transparent; border-color: #ffffff75; border-radius: 18px; padding: 24px; color: #fff; }
.contact-panel .contact-list a:hover { background: #ffffff0f; border-color: #fff; box-shadow: none; }
.contact-panel a:focus-visible { outline-color: #fff; }
.contact-panel .contact-list .label, .contact-panel .contact-list .value, .contact-panel .contact-list .contact-action { color: #fff; }
.contact-panel .contact-list .contact-icon { background: transparent; color: #fff; margin-bottom: 0; }
.contact-panel .contact-list .contact-action { border-color: #ffffff50; }
.contact-panel .contact-list .contact-email a { justify-content: center; padding: 10px 0 0; }
.contact-panel .contact-email .label, .contact-panel .contact-email > a > .icon { display: none; }
@media (min-width: 1101px) {
  .contact-panel .contact-list > li:not(.contact-email) a { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 14px; align-items: center; }
  .contact-panel .contact-icon { grid-column: 1; grid-row: 1 / 3; }
  .contact-panel .contact-list .label { grid-column: 2; grid-row: 1; }
  .contact-panel .contact-list .value { grid-column: 2; grid-row: 2; font-size: 15px; }
  .contact-panel .contact-list .contact-action { grid-column: 3; grid-row: 1 / 3; border: 0; padding: 0; margin: 0; font-size: 12px; gap: 8px; }
}

@media (max-width: 1100px) {
  .menu a { padding-inline: 11px; }
  .hero h1, :root[lang="ru"] .hero h1, :root[lang="en"] .hero h1 { font-size: 5.7vw; }
  .hero-satellite { width: 180px; margin-left: -90px; }
  #products .product-stack .product-card { flex-basis: 390px; }
  #products .section-heading > p { display: none; }
  .service-scenes-active .service-stories { grid-template-columns: 135px minmax(0,1fr); gap: 24px; }
  .service-scenes-active .service-story { gap: 22px; }
  .service-scenes-active .service-story-copy > p { font-size: 16px; }
  .service-scenes-active .service-story .service-tech { font-size: 12px; }
  .story-nav-button { font-size: 12px; gap: 12px; }
  #process { padding: 48px 32px; }
}
@media (max-width: 820px) {
  html:not(.js) .bar { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 20px 8px; }
  html:not(.js) .menu { position: static; order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border: 0; }
  html:not(.js) .menu a { font-size: 12px; }
  .bar { height: 78px; }
  .hero { padding-top: 32px; }
  .hero .hero-lead { font-size: 16px; max-width: 560px; }
  .hero-satellite { width: 140px; margin-left: -70px; border-radius: 18px; }
  .hero-scene { min-height: 0; height: 44vw; margin-top: 30px; }
  .hero-art { width: 52%; }
  #products { padding-block: 64px 40px; }
  .carousel-arrow { width: 46px; height: 46px; font-size: 24px; }
  .service-scenes-active .service-stories { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .service-scenes-active .story-nav { grid-row: 1; flex-direction: row; gap: 24px; justify-content: center; }
  .story-nav::before { display: none; }
  .service-scenes-active .service-story { grid-column: 1; grid-row: 2; }
  .service-story h3 { font-size: 40px; }
  .service-story-copy > p { font-size: 17px; }
  .contact-section { padding-block: 64px 48px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 22px; }
  .hero h1, :root[lang="ru"] .hero h1, :root[lang="en"] .hero h1 { font-size: clamp(33px,8.5vw,48px); letter-spacing: -.055em; line-height: 1.12; }
  .hero h1 > span { display: block; }
  .hero .hero-lead { font-size: 15px; margin-top: 22px; }
  .hero .cta { gap: 10px; margin-top: 25px; }
  .hero .btn { font-size: 12px; padding: 14px 17px; }
  .hero-scene { height: 68vw; margin-top: 35px; }
  .hero-art { width: 66%; top: 0; }
  .hero-satellite { width: 25%; margin-left: -12.5%; border-radius: 12px; }
  .hero-satellite--one { transform: translate(-120%,0) rotate(-10deg); }
  .hero-satellite--two { transform: translate(120%,0) rotate(10deg); }
  .hero-satellite--three { transform: translate(-100%,190%) rotate(7deg); }
  .hero-satellite--four { transform: translate(100%,190%) rotate(-7deg); }
  .capability-stage { padding: 60px 0 70px; }
  .capability-row { font-size: clamp(30px,8.1vw,46px); gap: 14px; }
  .capability-rows { gap: 20px; }
  #products .section-heading { display: flex; align-items: end; gap: 18px; margin-bottom: 28px; }
  #products .section-heading h2 { font-size: 34px; }
  #products .section-heading .eyebrow { font-size: 10px; }
  .carousel-controls { gap: 8px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 22px; }
  #products .product-stack { gap: 16px; }
  #products .product-stack .product-card { flex-basis: min(400px,86vw); border-radius: 26px; padding: 10px; }
  #products .product-card .product-copy { padding: 20px 12px 14px; }
  #products .product-card h3 { font-size: 30px; }
  #products .product-card .product-copy > p { font-size: 14px; }
  .carousel-footer { gap: 6px; }
  .carousel-hint { font-size: 12px; }
  .carousel-hint span:last-child { padding-left: 8px; }
  .carousel-dot { width: 28px; }
  .service-stage { padding-block: 65px 20px; }
  .services-intro h2 { max-width: none; width: 100%; margin-inline: auto; font-size: 31px; line-height: 1.2; }
  .service-stories { margin-top: 12px; }
  .service-story { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  .service-story h3 { margin: 12px 0 24px; font-size: 46px; }
  .service-story-copy > p { font-size: 16px; }
  .service-story .service-tech { margin-block: 22px; font-size: 12px; }
  .service-story-visual--phone img { height: 470px; max-height: none; }
  .service-story-visual--art img { max-height: none; }
  #team .team-heading { margin-bottom: 40px; }
  #process { padding: 40px 24px; border-radius: 24px; }
  .process-rail li::before { transform: scaleY(var(--step-progress,1)); transform-origin: top; }
  .contact-panel .contact-list { grid-template-columns: 1fr; gap: 16px; }
  .contact-panel .contact-list a { padding: 22px; }
  .contact-panel .contact-list .value { font-size: 18px; }
  .contact-panel .contact-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { transform: translateX(-50%); }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .motion-ready .hero h1, .motion-ready .hero .hero-lead, .motion-ready .hero .cta { animation: none; }
  .btn .icon, .project-link .icon, .word-reveal { transition: none; }
  .word-reveal { color: var(--text); }
  #products .product-card:hover .product-visual > img, #products .product-card:hover .store-cover > img { transform: none; }
}

/* Project detail pages carry the author and platform metadata. Keep the carousel concise. */
#products .product-card .product-copy > .meta, #products .product-card .project-credit-link { display: none; }
#products .product-card .product-copy { padding-top: 18px; }
#products .product-card .product-copy > p { margin-bottom: 0; }
#products .product-card .product-actions { padding-top: 20px; }
@media (max-width: 600px) { .hero .cta { flex-direction: row; } .hero .btn { padding-inline: 13px; font-size: 11px; } }
.service-scenes-active .story-nav::after { content: ''; position: absolute; z-index: 0; left: 9px; top: 18px; width: 1px; height: calc((100% - 36px) * var(--story-progress,0)); background: var(--accent); }
.story-nav-button { z-index: 1; }
@media (max-width: 820px) { .service-scenes-active .story-nav::after { display: none; } }

.story-panels { display: contents; }
.compact-stories .story-nav { display: flex; justify-content: space-between; gap: 12px; margin: 25px 0 0; overflow-x: auto; scrollbar-width: none; }
.compact-stories .story-nav::before { display: none; }
.compact-stories .story-nav-button { flex: 1 0 0; min-width: 0; flex-direction: column; gap: 12px; font-size: 11px; text-align: center; }
.compact-stories .story-nav-button > span { min-width: 0; overflow-wrap: anywhere; }
.compact-stories .story-panels { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.compact-stories .story-panels::-webkit-scrollbar { display: none; }
.compact-stories .service-story { flex: 0 0 100%; scroll-snap-align: start; }
.compact-stories .story-count { display: none; }
@media (max-width: 600px) {
  .compact-stories .service-story { padding: 24px 4px; align-content: start; }
  .compact-stories .service-story h3 { font-size: 38px; margin-top: 10px; }
  .compact-stories .service-story-visual--phone img { height: 340px; border-radius: 28px; }
  .compact-stories .service-story-visual--art img { height: auto; max-height: 300px; object-fit: contain; }
}
html:has(body:not(.project-page)) { scroll-padding-top: 24px; }
body:not(.project-page) main > [id] { scroll-margin-top: 0; }
.carousel-controls[hidden], .carousel-footer[hidden] { display: none; }
