@font-face {
  font-family: Inter;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,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;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-ruble.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20BD;
}

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

@font-face {
  font-family: "Yeseva One";
  src: url("fonts/yeseva-one-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #f5f4ef;
  --surface: #f7f6f1;
  --panel: var(--paper);
  --ink: #34322e;
  --soft: #59554e;
  --line: #d8d4cb;
  --outline: #887e72;
  --accent: #715948;
  --selection: #f0ebe4;
  --danger: #873d31;
  --danger-bg: #f3eee9;
  --warning: #715121;
  --warning-bg: #f3f0e8;
  --info: #345260;
  --info-bg: #f1f2ef;
  --content-width: 1440px;
  --edge: clamp(16px, max(4.3vw, calc(8px + 3vw)), 92px);
  --page-inset: max(var(--edge), calc((100% - var(--content-width)) / 2));
  --masthead-min-height: clamp(54px, 8dvh, 84px);
  --masthead-height: var(--masthead-min-height);
  --column-gap: clamp(12px, 2.05vw, 24px);
  --section-space: clamp(44px, 5.4vw, 80px);
  --section-heading-gap: clamp(20px, 2.2vw, 32px);
  --case-space: clamp(24px, 3vw, 40px);
  --card-inset: clamp(12px, 2vw, 28px);
  --heading-size: clamp(2rem, 3.5vw, 3rem);
  --subheading-size: clamp(1.5rem, 2.45vw, 2rem);
  --interface-heading-size: clamp(1.25rem, 1.9vw, 1.625rem);
  --prose-measure: 56ch;
  --prose-leading: 1.6;
  --interface-text-size: .875rem;
  --caption-size: .8125rem;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --reveal-ease: cubic-bezier(.26, .45, .34, 1);
  --control-duration: 160ms;
  font-family: Inter, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body, p, h1, h2, h3, h4, figure, dl, dd, fieldset { margin: 0; }
:where(h1, h2, h3, h4) { overflow-wrap: anywhere; }
body { font-size: 1rem; line-height: 1.5; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }
::selection { background: var(--selection); color: var(--ink); }
.gutter { width: min(var(--content-width), calc(100% - 2 * var(--edge))); margin-inline: auto; }

.sr, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; background: var(--surface); padding: 10px; }

.opening {
  min-height: 100vh;
  min-height: 100dvh;
  margin-block-start: calc(-1 * var(--masthead-height));
  padding-block-start: var(--masthead-height);
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  min-height: var(--masthead-min-height);
  padding-inline: var(--page-inset);
  background: var(--paper);
}
.masthead[data-page-top] { background: transparent; }
.masthead::after {
  content: "";
  position: absolute;
  inset: auto var(--page-inset) 0;
  block-size: 1px;
  background: var(--line);
  pointer-events: none;
}
.wordmark { font-size: clamp(1.2rem, 1.68vw, 1.7rem); font-weight: 650; letter-spacing: -.04em; text-decoration: none; }
.wordmark:is(:hover, :focus-visible) { color: var(--accent); }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(12px, 2.7vw, 40px); max-inline-size: 100%; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; max-inline-size: 100%; overflow-wrap: anywhere; }
.masthead nav a { text-decoration: underline transparent; font-size: var(--interface-text-size); line-height: 1.4; font-weight: 500; }
.masthead nav a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.masthead .contact-pill { position: relative; isolation: isolate; justify-content: center; padding-inline: 14px; text-decoration: none; }
.contact-platform { margin-inline-start: .25em; }
.masthead .contact-pill::before { content: ""; position: absolute; z-index: -1; inset: 4px 0; border: 1px solid var(--outline); border-radius: 30px; }
.masthead .contact-pill:is(:hover, :focus-visible) { color: var(--surface); }
.masthead .contact-pill:is(:hover, :focus-visible)::before { background: var(--ink); border-color: var(--ink); }

.chat-icon {
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-weight: 660;
}

.gallery { --gallery-height: max(72px, var(--masthead-height)); border-block-start: 1px solid var(--line); }
.gallery-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  min-height: var(--masthead-height);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: var(--column-gap);
  padding: 8px var(--page-inset);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.gallery[data-navigation-ended] .gallery-bar { visibility: hidden; }

.services h2, .contact h2 {
  font-size: var(--heading-size);
  line-height: 1.1;
  text-wrap: balance;
}

.opening-intro h1,
#more-projects-title,
#services-title,
#contact-title {
  font-family: "Yeseva One", Inter, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.015em;
}

.gallery-bar h2 { font-size: var(--interface-text-size); line-height: 1.4; font-weight: 600; }
.gallery-bar nav { display: flex; justify-content: center; align-items: stretch; column-gap: clamp(12px, 1.8vw, 24px); }
.gallery-bar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  text-decoration: underline transparent;
  color: var(--soft);
  font-size: var(--interface-text-size);
  line-height: 1.4;
  font-weight: 500;
}

.gallery-bar nav a:is(:focus-visible, [aria-current="true"]) { color: var(--accent); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .gallery-bar nav a:hover { color: var(--accent); text-decoration-color: currentColor; }
}
.gallery-bar nav a[aria-current="true"] { text-decoration-thickness: 2px; }
.gallery-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(8px, 1.2vw, 18px); }
.gallery-meta a { display: flex; align-items: center; min-height: 32px; color: var(--ink); font-size: var(--interface-text-size); font-weight: 500; overflow-wrap: anywhere; }
.gallery-count { color: var(--soft); text-align: right; min-width: 6ch; font-size: var(--caption-size); font-variant-numeric: tabular-nums; }
.gallery-mobile-nav { display: none; }
.gallery [data-project] { scroll-margin-block-start: var(--gallery-height); }
.gallery :is(#fleet-report, #ledger, #order, #telegram-demo) { scroll-margin-block-start: calc(var(--gallery-height) + 8px); }
#opening-content { scroll-margin-block-start: var(--masthead-height); }
:is(#services, #audit, #contact) { scroll-margin-block-start: calc(var(--masthead-height) + 24px); }
[hidden] { display: none !important; }

#business-cases {
  --scene-backdrop: #24211e;
  background: linear-gradient(var(--scene-backdrop), var(--scene-backdrop))
    no-repeat top / 100% var(--scene-backdrop-height, 0px);
}
.scene {
  --focus: var(--surface);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  color: var(--surface);
  background: var(--scene-backdrop, var(--ink));
  min-height: calc(clamp(390px, 73dvh, 800px) - 100px);
  overflow: hidden;
}

.scene-art { position: absolute; inset: 0; z-index: -1; }
.scene-image { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 55%; }
.store-stage .scene-image { object-position: 61% 53%; }
.debt-stage .scene-image { object-position: 65% 52%; }
.telegram-stage .scene-image { object-position: 58% 48%; }
.scene-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #221e1af0, #221e1abf 47%, #221e1a4d 64%, #221e1a00 86%); }
.scene-inscription { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding-bottom: clamp(25px, 4.2vw, 75px); }
.scene-inscription h2 { font-size: clamp(2.125rem, 5.9vw, 6.5rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.06; }
.scene-inscription p { margin-bottom: 8px; font-size: clamp(.9375rem, 1.25vw, 1.125rem); line-height: 1.4; }
.scene-inscription a { display: inline-flex; align-items: center; min-height: 44px; }
.scene-inscription a:focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.scene-credit { position: absolute; top: 16px; inset-inline-end: var(--page-inset); max-inline-size: calc(100% - 2 * var(--page-inset)); overflow-wrap: anywhere; color: var(--surface); background: var(--ink); padding: 4px 8px; font-size: var(--caption-size); line-height: 1.125rem; }

@media screen and (prefers-reduced-motion: no-preference) {
  :where(.masthead a, .footer a, .gallery-bar a, .more-projects-heading nav a, .contact-link,
    .opening-topic-controls button, .scene-inscription a, .website-project-link) {
    transition: color var(--control-duration) ease, text-decoration-color var(--control-duration) ease,
      scale var(--control-duration) var(--motion-ease);
  }
  .masthead .contact-pill::before,
  :where(.opening-motion-toggle, .fleet-page button) {
    transition: background-color var(--control-duration) ease, border-color var(--control-duration) ease,
      color var(--control-duration) ease, box-shadow var(--control-duration) ease,
      scale var(--control-duration) var(--motion-ease);
  }
  :where(.contact-pill, .contact-link, .opening-topic-controls button,
    .opening-motion-toggle, .fleet-page button):active {
    scale: .97;
  }

  [data-reveal-copy] { --reveal-rise: 20px; --reveal-duration: 900ms; }
  [data-reveal-action] { --reveal-rise: 10px; --reveal-duration: 760ms; --reveal-opacity: .12; }
  [data-reveal-visual] { --reveal-rise: 24px; --reveal-duration: 1050ms; }
  .gallery-bar [data-reveal-state], .scene-credit {
    --reveal-rise: 4px;
    --reveal-duration: 580ms;
    --reveal-opacity: .5;
  }
  [data-reveal-state="pending"]:not(:focus-visible, :has(:focus-visible)) {
    opacity: var(--reveal-opacity, 0);
  }
  [data-reveal-state="entering"]:not(:focus-visible, :has(:focus-visible)) {
    animation: scroll-reveal-in var(--reveal-duration, 1050ms)
      var(--reveal-ease) var(--reveal-delay, 0ms) backwards;
  }
}
@keyframes scroll-reveal-in {
  from { opacity: var(--reveal-opacity, 0); translate: 0 var(--reveal-rise, 28px); }
  to { opacity: 1; translate: 0 0; }
}
.services {
  padding-block: var(--section-space) var(--section-heading-gap);
}

.services-heading { margin-block-end: var(--section-heading-gap); }
.services-heading p { max-inline-size: var(--prose-measure); margin-block-start: 10px; color: var(--soft); }
.detail-link-row { margin-block-start: 10px; }
.detail-link-row a { display: inline-flex; min-block-size: 44px; align-items: center; color: var(--accent); font-size: var(--interface-text-size); font-weight: 550; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--column-gap);
}

.service-list > div {
  padding: max(16px, var(--card-inset));
  background: color-mix(in srgb, var(--paper) 77%, var(--line));
}

.service-list > #audit { background: var(--selection); }
.service-list dt { font-size: clamp(1.1875rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.022em; }
.service-list dd { max-width: 43ch; margin-block-start: .55rem; color: var(--soft); line-height: 1.5; }
details { margin-top: 18px; border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; min-height: 44px; font-size: .97rem; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] > summary::after { content: "−"; }
details p { color: var(--soft); max-width: 64ch; margin: 3px 0 14px; }
.contact { background: #e7e7e1; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2vw, 24px) var(--column-gap);
  padding-block: clamp(32px, 4vw, 60px);
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-details p { max-inline-size: 48ch; color: var(--soft); line-height: var(--prose-leading); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--column-gap);
  margin-block-start: 16px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  font-size: var(--interface-text-size);
  font-weight: 550;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--outline);
  overflow-wrap: anywhere;
}
.contact-link:is(:hover, :focus-visible) { color: var(--accent); text-decoration-color: currentColor; }
.request-button {
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  font-size: var(--interface-text-size);
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.request-button:is(:hover, :focus-visible) { border-color: var(--accent); background: var(--accent); }
.request-dialog {
  inline-size: min(34rem, calc(100% - 2 * var(--edge)));
  max-block-size: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 16px 48px #34322e2e;
  overflow-wrap: anywhere;
}
.request-dialog::backdrop { background: #34322e72; }
.request-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-header h2 { font-size: var(--subheading-size); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.request-header h2:focus { outline: none; }
.request-close {
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1;
}
.request-close:hover { background: var(--selection); }
.request-intro { margin-block-start: 8px; color: var(--soft); }
.request-form, .request-fields { display: grid; gap: 14px; }
.request-form { margin-block-start: 20px; }
.request-fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.request-form label { display: grid; gap: 5px; font-size: var(--interface-text-size); font-weight: 550; }
.request-form :is(input, textarea) {
  inline-size: 100%;
  min-block-size: 44px;
  padding: 9px 11px;
  border: 1px solid var(--outline);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}
.request-form textarea { resize: vertical; }
.request-form ::placeholder { color: var(--soft); }
.request-form .request-button { justify-self: start; }
.request-form .request-button:disabled { opacity: .65; cursor: wait; }
.request-note, .request-status { color: var(--soft); font-size: var(--interface-text-size); line-height: 1.45; }
.request-note a { color: var(--accent); }
.request-status[data-state="error"] { color: var(--danger); }
.request-status:empty { margin-block: -14px 0; }
@media (max-width: 32rem) {
  .request-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .request-dialog[open] { animation: cookie-enter 230ms var(--motion-ease) both; }
}
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px clamp(20px, 3vw, 44px);
  padding-block: clamp(20px, 2.6vw, 36px);
  border-block-start: 1px solid var(--line);
  scroll-margin-block-start: var(--masthead-height);
}
.footer-owner, .footer-links { overflow-wrap: anywhere; }
.footer-name { font-weight: 600; line-height: 1.4; }
.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-block-start: 4px;
  color: var(--soft);
  font-size: var(--caption-size);
  font-variant-numeric: tabular-nums;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}
.footer :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-block: 5px;
  color: var(--soft);
  font-size: var(--interface-text-size);
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--outline);
  text-underline-offset: .22em;
}
.footer-links button {
  border: 0;
  padding-inline: 0;
  background: transparent;
  text-align: start;
}
.footer :is(a, button):is(:hover, :focus-visible) {
  color: var(--accent);
  text-decoration-color: currentColor;
}

@media (min-width: 1070px) {
  .footer { grid-template-columns: minmax(0, 1fr) auto auto; }
}

.cookie-banner {
  position: fixed;
  z-index: 6;
  inset-inline-end: var(--page-inset);
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  width: min(30rem, calc(100% - 2 * var(--page-inset)));
  max-block-size: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 10px 32px #34322e1a;
}
.cookie-banner:not([data-from-settings]) {
  --cookie-enter-offset: 0px;
  position: static;
  width: min(45rem, calc(100% - 2 * var(--page-inset)));
  max-block-size: none;
  margin: 10px auto 0;
  padding: 10px clamp(10px, 2vw, 16px);
  overflow: visible;
  box-shadow: none;
}
.cookie-banner h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.cookie-banner p { margin-block-start: 6px; color: var(--soft); font-size: var(--interface-text-size); }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.cookie-actions button {
  flex: 1 0 auto;
  min-block-size: 44px;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: var(--interface-text-size);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.cookie-actions button:first-child { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.cookie-actions button:is(:hover, :focus-visible) { border-color: var(--accent); background: var(--selection); }
.cookie-actions button:first-child:is(:hover, :focus-visible) { background: var(--accent); }
.cookie-banner:not([data-from-settings]) h2 { font-size: 1rem; }
.cookie-banner:not([data-from-settings]) p { margin-block-start: 4px; line-height: 1.4; }
.cookie-banner:not([data-from-settings]) .cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-block-start: 8px;
}
.cookie-banner:not([data-from-settings]) .cookie-actions button { padding: 5px 6px; font-size: var(--caption-size); }
@media (min-width: 540px) {
  .cookie-banner:not([data-from-settings]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    align-items: center;
    gap: 16px;
  }
  .cookie-banner:not([data-from-settings]) .cookie-actions { margin-block-start: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-enter 230ms var(--motion-ease) both; }
  .cookie-actions button { transition: background-color var(--control-duration) ease, border-color var(--control-duration) ease; }
}
@keyframes cookie-enter {
  from { opacity: 0; translate: 0 var(--cookie-enter-offset, 8px); }
  to { opacity: 1; translate: 0 0; }
}

.privacy-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: var(--masthead-height); border-block-end: 1px solid var(--line); }
.privacy-bar > a:last-child { font-size: var(--interface-text-size); }
.privacy-document { width: min(46rem, calc(100% - 2 * var(--edge))); margin-inline: auto; padding-block: clamp(48px, 6.2vw, 96px); overflow-wrap: anywhere; }
.privacy-document h1 { font-size: var(--heading-size); line-height: 1.12; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.privacy-document section { margin-block-start: clamp(24px, 3vw, 36px); }
.privacy-document h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.privacy-document p { margin-block-start: 8px; color: var(--soft); line-height: var(--prose-leading); }
.privacy-document time { color: var(--soft); font-size: var(--interface-text-size); }
.privacy-document code { overflow-wrap: anywhere; }
.privacy-document a { color: var(--accent); }

@media (max-width: 1100px) {
  .gallery { --gallery-height: 100px; }
  .gallery-bar { grid-template-columns: minmax(0, 1fr) fit-content(50%); row-gap: 0; padding-block: 4px; }
  .gallery-rail {
    grid-area: 2 / 1 / 3 / -1;
    position: relative;
    min-width: 0;
    margin-inline: calc(-1 * var(--edge));
  }
  .gallery-rail::before, .gallery-rail::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block: 0;
    width: clamp(24px, 7vw, 42px);
    opacity: 0;
    pointer-events: none;
  }
  .gallery-rail::before {
    inset-inline-start: 0;
    background: linear-gradient(to right, var(--paper) 12%, transparent);
  }
  .gallery-rail::after {
    inset-inline-end: 0;
    background: linear-gradient(to left, var(--paper) 12%, transparent);
  }
  .gallery-rail[data-can-scroll-left]::before,
  .gallery-rail[data-can-scroll-right]::after { opacity: 1; }
  .gallery-rail nav {
    justify-content: start;
    padding-inline: var(--edge);
    column-gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--outline) transparent;
    scroll-padding-inline: var(--edge);
  }
  .gallery-rail nav a { flex: none; white-space: nowrap; }
  .gallery-rail nav a:focus-visible { outline-offset: -2px; }
}

@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .gallery-rail::before, .gallery-rail::after { transition: opacity var(--control-duration) ease; }
}

@media (max-width: 959px) {
  .masthead nav { column-gap: clamp(7px, 2.2vw, 18px); }
  .masthead .contact-pill { padding-inline: 8px; }
  .masthead .contact-platform { display: none; }
}

@media (max-width: 760px) {
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .footer { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding-block: clamp(12px, 4vw, 18px); }
  .footer-name { font-size: .9375rem; }
  .footer-details { column-gap: 8px; }
  .footer-links { grid-column: 1 / -1; }
  .footer .footer-top { grid-area: 1 / 2; align-items: start; padding-block-start: 0; }
}

@media (max-width: 760px) {
  .scene { min-height: calc(clamp(350px, 67dvh, 640px) - clamp(24px, 5dvh, 48px)); }
  .fleet-stage .scene-image { object-position: 70% 55%; }
  .fleet-stage .scene-art::after { background: linear-gradient(to top, #221e1af0, #221e1acf 31%, #221e1a59 56%, #221e1a00 83%); }
  .store-stage .scene-image { object-position: 68% 53%; }
  .debt-stage .scene-image { object-position: 86% 52%; }
  .scene-inscription { align-items: start; flex-direction: column; gap: 14px; }
}

@media (max-height: 550px) {
  .scene .scene-art::after { background: linear-gradient(to top, #221e1af2, #221e1ad1 55%, #221e1a00); }
}

@media (max-width: 760px) {
  .gallery { --gallery-height: 85px; }
  .gallery-bar:has(.gallery-mobile-nav:not([hidden])) { padding-block: 2px; }
  .gallery-bar:has(.gallery-mobile-nav:not([hidden])) :is(.gallery-rail, .gallery-count) { display: none; }
  .gallery-bar:has(.gallery-mobile-nav:not([hidden])) :is(h2, .gallery-meta a) {
    color: var(--soft);
    font-size: var(--caption-size);
    font-weight: 450;
  }
  .gallery-bar:has(.gallery-mobile-nav:not([hidden])) .gallery-meta a {
    min-height: 28px;
    text-decoration-color: var(--outline);
  }
  .gallery-mobile-nav {
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .gallery-current-title {
    font-size: .9375rem;
    font-weight: 550;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .gallery-steps {
    display: flex;
    margin-inline-end: -10px;
  }
  .gallery-steps button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
  }
  .gallery-steps button::before {
    content: "";
    inline-size: 8px;
    block-size: 8px;
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    rotate: 45deg;
  }
  .gallery-steps button[data-project-step="-1"]::before { rotate: -135deg; }
  .gallery-steps button[aria-disabled="true"] { color: var(--outline); cursor: default; }
  .gallery-steps button[aria-disabled="true"]::before { opacity: .55; }
  .gallery-steps button:focus-visible { outline-offset: -3px; }
  .gallery-steps button:active:not([aria-disabled="true"]) { background: var(--selection); }
}

@media (max-width: 420px) {
  .gallery-count { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; min-width: 0; }
}

@media (max-width: 350px) {
  .masthead .wordmark { font-size: 1.08rem; }
  .masthead .contact-pill { padding-inline: 7px; }
}
