@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Share Tech Mono";
  src: url("../fonts/share-tech-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd700;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --black: #000;
  --ink: #080909;
  --panel: #0c0e0e;
  --text: #e7e7e7;
  --muted: rgba(231, 231, 231, 0.62);
  --header-height: 72px;
  --shell: min(1280px, calc(100% - 48px));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(0, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  color: var(--text);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

body.is-menu-open,
body.is-modal-open {
  overflow: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

::selection {
  background: var(--cyan);
  color: #000;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  background: #000;
  color: var(--cyan);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2,
.video-section h2,
.advantages h2,
.final-cta h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section-heading h2 span,
.video-section h2 span,
.advantages h2 span {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0, 255, 255, 0.44);
}

.section-heading > p:last-child,
.video-section__copy > p,
.final-cta > p {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--muted);
}

.cyber-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--magenta);
  background: rgba(255, 0, 255, 0.05);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.2);
  color: #fff;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cyber-button:hover {
  background: var(--magenta);
  box-shadow: 0 0 24px rgba(255, 0, 255, 0.58);
  color: #000;
}

.cyber-button:active {
  transform: translateY(1px) scale(0.98);
}

.cyber-button--cyan {
  border-color: var(--cyan);
  background: rgba(0, 255, 255, 0.05);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.18);
}

.cyber-button--cyan:hover {
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.52);
}

.cyber-button--yellow {
  border-color: var(--yellow);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.15);
  color: var(--yellow);
}

.cyber-button--yellow:hover {
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.48);
  color: #000;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button-row--center {
  justify-content: center;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(2, 3, 3, 0.92);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  width: min(1320px, calc(100% - 32px));
  min-height: var(--header-height);
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--cyan);
  clip-path: polygon(50% 0, 95% 22%, 95% 72%, 50% 100%, 5% 72%, 5% 22%);
  color: var(--yellow);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 0 16px rgba(0, 255, 255, 0.18);
}

.brand__name {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 2px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand__name b {
  color: var(--yellow);
}

.brand__name strong {
  color: var(--cyan);
}

.brand__name small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--magenta);
  font-family: "Share Tech Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.24em;
}

.site-nav {
  justify-self: end;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 25px 0 22px;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.66);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
  border-color: var(--cyan);
  color: #fff;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle,
.nav-toggle {
  display: grid;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.search-toggle {
  width: 42px;
  height: 42px;
  place-items: center;
  font-family: "Share Tech Mono", monospace;
  font-size: 27px;
}

.nav-toggle {
  display: none;
}

.site-content {
  min-height: 70vh;
  padding-top: var(--header-height);
}

/* Search overlay */
.search-panel {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
}

.search-panel[hidden] {
  display: none;
}

.search-panel__inner {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid rgba(0, 255, 255, 0.5);
  background: #050606;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.15);
}

.search-panel__inner h2 {
  margin: 0 0 26px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

.search-panel__inner > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.search-panel__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--magenta);
  background: #050505;
  color: var(--magenta);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.site-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.site-search-form input {
  min-width: 0;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid rgba(0, 255, 255, 0.55);
  border-radius: 0;
  background: #020303;
  color: #fff;
  font-family: "Share Tech Mono", monospace;
  outline: none;
}

.site-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.site-search-form input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

/* Hero */
.home-hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - var(--header-height));
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #020303;
}

.home-hero__media {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 52%, rgba(0, 0, 0, 0.5) 100%),
    url("https://images.pexels.com/photos/13296053/pexels-photo-13296053.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1000&w=1800") center / cover;
  filter: saturate(0.55) contrast(1.06);
}

.home-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
}

.home-hero__scan {
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
  box-shadow: 0 0 22px var(--cyan);
  animation: scan 7s linear infinite;
}

.home-hero__content {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
  padding-block: 74px 96px;
}

.home-hero h1 {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--yellow);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(3.5rem, 9.5vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-shadow: 0 0 36px rgba(255, 215, 0, 0.46);
}

.home-hero__subtitle {
  min-height: 1.8em;
  margin: 0 0 22px;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.9rem, 2.2vw, 1.4rem);
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.66);
}

.home-hero__lead {
  max-width: 630px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.home-hero__lead strong {
  color: var(--yellow);
}

.home-hero__lead em {
  color: var(--cyan);
  font-style: normal;
}

.home-hero__lead b {
  color: var(--magenta);
  font-weight: 600;
}

.home-hero__location {
  position: absolute;
  right: max(36px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: grid;
  justify-items: end;
  color: rgba(0, 255, 255, 0.62);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero__location span:last-child {
  margin-top: 5px;
  color: rgba(255, 0, 255, 0.62);
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(110vh); }
}

/* Video */
.video-section {
  display: grid;
  padding-block: 90px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
  align-items: center;
  gap: clamp(42px, 9vw, 120px);
}

.video-section__copy {
  max-width: 580px;
}

.video-section__copy > p {
  margin-inline: 0;
  font-size: 1.1rem;
}

.video-section__copy small {
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.video-player {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.62);
  background: #000;
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.14), 0 0 52px rgba(255, 0, 255, 0.1);
}

.video-player__poster,
.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
}

.video-player__poster {
  padding: 0;
  cursor: pointer;
}

.video-player__poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.88));
  content: "";
}

.video-player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.75);
  transition: filter 300ms ease, transform 500ms ease;
}

.video-player__poster:hover img {
  transform: scale(1.035);
  filter: brightness(0.68) saturate(0.9);
}

.video-player__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--cyan);
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.48);
  color: var(--cyan);
  font-size: 20px;
  transform: translate(-50%, -50%);
}

.video-player__label {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.video-player__label small {
  display: block;
  margin-top: 4px;
  color: var(--magenta);
  font-size: 9px;
}

/* Stats */
.stats-strip {
  display: grid;
  border-block: 1px solid rgba(0, 255, 255, 0.16);
  background: #000;
  grid-template-columns: repeat(4, 1fr);
}

.stats-strip > div {
  display: grid;
  min-height: 150px;
  place-content: center;
  padding: 24px;
  border-right: 1px solid rgba(0, 255, 255, 0.12);
  text-align: center;
}

.stats-strip > div:last-child {
  border-right: 0;
}

.stats-strip strong {
  color: var(--yellow);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.34);
}

.stats-strip span {
  margin-top: 8px;
  color: var(--muted);
}

/* Services */
.services-home {
  padding-block: 104px;
}

.category-jump-grid {
  display: grid;
  margin-bottom: 46px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.category-jump-grid a {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 22px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 10, 0.82);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.category-jump-grid a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--category-accent);
  box-shadow: 0 0 12px var(--category-accent);
  content: "";
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 220ms ease;
}

.category-jump-grid a:hover {
  z-index: 1;
  background: rgba(18, 21, 21, 0.96);
  transform: translateY(-4px);
}

.category-jump-grid a:hover::after {
  transform: scaleX(1);
}

.category-jump-grid span,
.category-jump-grid small {
  color: color-mix(in srgb, var(--category-accent), #fff 15%);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-jump-grid strong {
  margin-block: 17px;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.services-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.service-card {
  position: relative;
  display: grid;
  scroll-margin-top: calc(var(--header-height) + 28px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 8, 0.94);
  grid-template-rows: auto 1fr;
  transition: border-color 200ms ease, transform 200ms ease;
}

.service-card.is-direct-target {
  border-color: var(--card-accent);
  box-shadow: inset 0 0 0 1px var(--card-accent);
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--card-accent), transparent 32%);
  transform: translateY(-5px);
}

.service-card__image {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: #050606;
}

.service-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  content: "";
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.7);
  transition: filter 250ms ease, transform 500ms ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.045);
  filter: brightness(0.9) saturate(0.96);
}

.service-card__content {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
}

.service-card__category {
  margin: 0 0 10px;
  color: var(--card-accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h2 {
  margin: 0 0 11px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.service-card h2 a {
  text-decoration: none;
}

.service-card h2 a:hover {
  color: var(--card-accent);
}

.service-card__content > p:not(.service-card__category) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.service-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--card-accent), transparent 84%);
}

.service-card footer strong {
  color: var(--yellow);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  font-weight: 400;
}

.service-card footer a {
  color: var(--card-accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px),
    #050606;
  background-size: 24px 24px;
  color: rgba(0, 255, 255, 0.48);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.stemi-admin-edit {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 8px;
  border: 1px dashed rgba(255, 215, 0, 0.6);
  color: var(--yellow);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.stemi-admin-edit:hover {
  background: var(--yellow);
  color: #000;
}

/* Works preview and archive */
.works-preview {
  padding-block: 98px;
  border-block: 1px solid rgba(255, 0, 255, 0.14);
  background: #020303;
}

.work-cover-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.work-cover {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  grid-column: span 4;
  text-decoration: none;
}

.work-cover:nth-child(1),
.work-cover:nth-child(5) {
  grid-column: span 7;
}

.work-cover:nth-child(2),
.work-cover:nth-child(4) {
  grid-column: span 5;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.7);
  transition: filter 250ms ease, transform 600ms ease;
}

.work-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.86));
  content: "";
}

.work-cover:hover img {
  transform: scale(1.045);
  filter: brightness(0.86) saturate(0.95);
}

.work-cover > span {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
}

.work-cover strong {
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-cover small {
  margin-top: 6px;
  color: var(--work-accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-layout {
  padding-block: 44px 88px;
}

.work-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.work-archive-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 7, 0.94);
  transition: border-color 180ms ease, transform 180ms ease;
}

.work-archive-card:hover {
  border-color: color-mix(in srgb, var(--work-accent), transparent 32%);
  transform: translateY(-5px);
}

.work-archive-card__media {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
}

.work-archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.75);
  transition: filter 250ms ease, transform 600ms ease;
}

.work-archive-card:hover .work-archive-card__media img {
  transform: scale(1.045);
  filter: brightness(0.9) saturate(0.95);
}

.work-archive-card__media > span:not(.media-placeholder) {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  background: var(--work-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--work-accent), transparent 42%);
  color: #000;
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-archive-card > div {
  padding: 22px;
}

.work-archive-card h2 {
  margin: 0 0 10px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.work-archive-card h2 a {
  text-decoration: none;
}

.work-archive-card p {
  color: var(--muted);
  font-size: 15px;
}

.work-archive-card > div > a:not(.stemi-admin-edit) {
  color: var(--work-accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Advantages */
.advantages {
  padding-block: 104px;
}

.advantage-grid,
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.advantage-grid article,
.about-values article {
  position: relative;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 7, 7, 0.72);
}

.advantage-grid article > span,
.about-values article > span {
  position: absolute;
  top: 13px;
  right: 18px;
  color: rgba(0, 255, 255, 0.09);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.advantage-grid h3,
.about-values h3 {
  position: relative;
  margin: 44px 0 13px;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advantage-grid p,
.about-values p {
  position: relative;
  color: var(--muted);
  font-size: 15px;
}

.final-cta,
.project-cta {
  padding: 90px 24px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  background: radial-gradient(circle at 50% 45%, rgba(255, 215, 0, 0.07), transparent 55%), #030404;
  text-align: center;
}

.final-cta h2 {
  color: var(--yellow);
  text-shadow: 0 0 26px rgba(255, 215, 0, 0.34);
}

/* Generic page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 24px 64px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.14);
  background: linear-gradient(180deg, #000, #090a0a);
  text-align: center;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero__content {
  position: relative;
  width: min(760px, 100%);
  margin-inline: auto;
}

.page-hero h1 {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 38px rgba(0, 255, 255, 0.33);
}

.page-hero--yellow h1 {
  color: var(--yellow);
  text-shadow: 0 0 38px rgba(255, 215, 0, 0.3);
}

.page-hero--magenta h1 {
  color: var(--magenta);
  text-shadow: 0 0 38px rgba(255, 0, 255, 0.3);
}

.page-hero__content > p:last-child {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
}

/* Filters and grouped services */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.filter-bar--sticky {
  position: sticky;
  z-index: 100;
  top: calc(var(--header-height) + 12px);
  padding: 10px;
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(4, 5, 5, 0.94);
  backdrop-filter: blur(12px);
}

body.admin-bar .filter-bar--sticky {
  top: calc(var(--header-height) + 44px);
}

.filter-bar button {
  min-height: 39px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 255, 255, 0.32);
  border-radius: 0;
  background: transparent;
  color: rgba(0, 255, 255, 0.78);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #000;
}

.service-category-section {
  margin-bottom: 76px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.service-category-section[hidden],
[data-filter-item][hidden],
.gallery-item[hidden] {
  display: none;
}

.service-category-section > header {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.service-category-section > header::after {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
  opacity: 0.35;
}

.service-category-section > header span {
  color: var(--cyan);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-category-section > header p {
  grid-column: 1 / -1;
  margin: -12px 0 0;
  color: var(--muted);
}

/* Single pages */
.single-project__hero {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: 1.15fr 0.85fr;
  background: #000;
}

.single-project__media {
  min-height: 540px;
  overflow: hidden;
}

.single-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.74);
}

.single-project__heading {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(36px, 6vw, 90px);
  border-left: 1px solid rgba(0, 255, 255, 0.14);
  background:
    linear-gradient(rgba(0, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.025) 1px, transparent 1px),
    #050606;
  background-size: 42px 42px;
}

.single-project__heading > a:first-child,
.work-single__toolbar > a {
  align-self: flex-start;
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.single-project__heading > p {
  margin: 44px 0 12px;
  color: var(--magenta);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.single-project__heading h1 {
  margin: 0 0 22px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.single-project__heading > strong {
  color: var(--yellow);
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
}

.single-project__content,
.standard-page,
.about-page {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 68px;
}

.entry-content {
  color: rgba(255, 255, 255, 0.76);
}

.entry-content > * {
  max-width: 72ch;
  margin-inline: auto;
}

.entry-content .alignwide {
  max-width: 1120px;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3 {
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif;
  line-height: 1.2;
}

.entry-content a {
  color: var(--cyan);
}

.entry-content img {
  border: 1px solid rgba(0, 255, 255, 0.18);
}

.work-single__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 0;
}

.project-gallery {
  padding-bottom: 78px;
}

.project-gallery .filter-bar button {
  border-color: color-mix(in srgb, var(--gallery-accent), transparent 58%);
  color: color-mix(in srgb, var(--gallery-accent), #fff 18%);
}

.project-gallery .filter-bar button:hover,
.project-gallery .filter-bar button.is-active {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent);
  color: #000;
}

.project-gallery__grid {
  columns: 300px;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: #030404;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.74);
  transition: filter 220ms ease, transform 500ms ease;
}

.gallery-item:nth-child(5n + 1) img {
  min-height: 390px;
}

.gallery-item:hover {
  border-color: color-mix(in srgb, var(--gallery-accent), transparent 32%);
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: brightness(0.95) saturate(0.98);
}

.gallery-item > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: var(--gallery-accent);
  color: #000;
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox__frame {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100dvh - 48px);
  border: 1px solid rgba(255, 0, 255, 0.65);
  background: #020202;
  box-shadow: 0 0 44px rgba(255, 0, 255, 0.2);
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 86px);
  object-fit: contain;
}

.lightbox__close,
.lightbox__previous,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--magenta);
  background: rgba(0, 0, 0, 0.82);
  color: var(--magenta);
  cursor: pointer;
}

.lightbox__close {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 29px;
}

.lightbox__previous,
.lightbox__next {
  top: 50%;
  width: 46px;
  height: 58px;
  font-size: 24px;
  transform: translateY(-50%);
}

.lightbox__previous { left: 12px; }
.lightbox__next { right: 12px; }

.project-cta h2 {
  margin: 0 0 26px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  text-transform: uppercase;
}

/* Contacts */
.contacts-page {
  padding-block: 64px 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-grid article {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 7, 7, 0.85);
}

.contact-grid article > span {
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
}

.contact-grid h2 {
  margin: 25px 0 9px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-grid a {
  color: var(--yellow);
  font-family: "Share Tech Mono", monospace;
  text-decoration: none;
}

.contact-grid p {
  margin: 0;
  color: var(--muted);
}

.messenger-section {
  padding-block: 72px;
}

.messenger-section h2,
.location-section h2,
.about-intro h2 {
  margin: 0 0 25px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.messenger-links a {
  display: grid;
  min-width: 145px;
  min-height: 58px;
  place-items: center;
  padding: 12px 18px;
  border: 1px solid var(--messenger-accent);
  color: var(--messenger-accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.messenger-links a:hover {
  background: var(--messenger-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--messenger-accent), transparent 45%);
  color: #000;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: #040505;
}

.location-section > header {
  padding: clamp(26px, 5vw, 52px);
}

.location-section > header > p:last-child {
  color: var(--muted);
}

.location-section__map {
  min-height: 500px;
  overflow: hidden;
  background: #020303;
}

.location-section__map iframe,
.location-section__map > div {
  width: 100% !important;
  max-width: none !important;
  height: 500px !important;
  border: 0 !important;
}

.yandex-rating {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 215, 0, 0.16);
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yandex-rating iframe {
  border: 0;
}

/* About, search, standard */
.about-page {
  width: var(--shell);
  max-width: 1280px;
}

.about-intro {
  display: grid;
  margin-bottom: 72px;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 70px;
}

.about-intro .section-kicker {
  grid-column: 1 / -1;
}

.about-intro h2 {
  margin-top: 14px;
}

.about-intro .entry-content {
  align-self: start;
}

.about-intro .entry-content > * {
  margin-top: 14px;
}

.search-results-page {
  padding-block: 58px 90px;
}

.search-results-page > .site-search-form {
  max-width: 780px;
  margin: 0 auto 52px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.search-results-grid article {
  min-height: 240px;
  padding: 25px;
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(5, 7, 7, 0.9);
}

.search-results-grid article > span {
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-results-grid h2 {
  margin: 34px 0 12px;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 15px;
}

.search-results-grid h2 a {
  text-decoration: none;
}

.search-results-grid p {
  color: var(--muted);
  font-size: 15px;
}

.search-results-grid article > a:last-child {
  color: var(--yellow);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  min-height: 380px;
  place-content: center;
  justify-items: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: "Orbitron", Arial, sans-serif;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 52ch;
  margin: 0 0 26px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 68px 24px 26px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 255, 255, 0.15);
  background:
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    #000;
  background-size: 42px 42px;
}

.site-footer__grid {
  display: grid;
  width: min(1280px, 100%);
  margin-inline: auto;
  grid-template-columns: 1.25fr 0.8fr 1fr 1.2fr;
  gap: 42px;
}

.brand--footer {
  margin-bottom: 22px;
}

.site-footer section > p,
.site-footer__contacts p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.site-footer section > h2 {
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer section:nth-child(3) > h2 {
  color: var(--yellow);
}

.site-footer section:nth-child(4) > h2 {
  color: var(--magenta);
}

.footer-menu,
.footer-services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-services a,
.site-footer__contacts > a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-services a:hover,
.site-footer__contacts > a:hover {
  color: var(--yellow);
}

.footer-menu .site-menu {
  display: block;
}

.footer-menu .site-menu a {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--cyan);
  color: #000;
}

.site-footer__bottom {
  display: flex;
  width: min(1280px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-menu {
    gap: 16px;
  }

  .site-header__cta {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  #wpadminbar {
    position: fixed;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    justify-self: end;
    place-content: center;
    gap: 5px;
  }

  .nav-toggle span:not(.screen-reader-text) {
    width: 24px;
    height: 2px;
    background: var(--cyan);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 910;
    top: 100%;
    right: auto;
    bottom: auto;
    left: 0;
    display: none;
    width: 100vw;
    height: calc(100dvh - var(--header-height));
    justify-self: stretch;
    overflow: auto;
    padding: 30px 24px;
    background: rgba(0, 0, 0, 0.97);
  }

  body.admin-bar .site-nav {
    top: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-menu {
    display: block;
  }

  .site-menu a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.16);
    font-size: 15px;
  }

  .site-header__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 48px;
  }

  .video-section,
  .location-section,
  .about-intro,
  .single-project__hero {
    grid-template-columns: 1fr;
  }

  .video-section__copy {
    max-width: 720px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip > div:nth-child(2) {
    border-right: 0;
  }

  .stats-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  }

  .advantage-grid,
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-project__hero {
    min-height: 0;
  }

  .single-project__media {
    min-height: 420px;
  }

  .single-project__heading {
    border-top: 1px solid rgba(0, 255, 255, 0.14);
    border-left: 0;
  }

  .about-intro .entry-content {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .brand__name {
    font-size: 14px;
  }

  .brand__mark {
    width: 33px;
    height: 37px;
  }

  .search-toggle {
    width: 36px;
  }

  .home-hero__content {
    width: calc(100% - 32px);
    padding-block: 58px 122px;
  }

  .home-hero h1 {
    font-size: clamp(3.05rem, 17vw, 5rem);
  }

  .home-hero__subtitle {
    letter-spacing: 0.11em;
  }

  .home-hero__location {
    right: 16px;
    bottom: 24px;
  }

  .video-section {
    padding-block: 70px;
  }

  .services-home,
  .advantages,
  .works-preview {
    padding-block: 76px;
  }

  .work-cover-grid {
    grid-template-columns: 1fr;
  }

  .work-cover,
  .work-cover:nth-child(1),
  .work-cover:nth-child(2),
  .work-cover:nth-child(4),
  .work-cover:nth-child(5) {
    min-height: 280px;
    grid-column: auto;
  }

  .advantage-grid,
  .about-values,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-search-form {
    grid-template-columns: 1fr;
  }

  .filter-bar--sticky {
    position: relative;
    top: auto;
  }

  .service-category-section > header {
    display: block;
  }

  .service-category-section > header::after {
    display: block;
    margin-top: 12px;
  }

  .single-project__media {
    min-height: 300px;
  }

  .project-gallery__grid {
    columns: 1;
  }

  .gallery-item:nth-child(5n + 1) img {
    min-height: 0;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox__frame {
    max-height: calc(100dvh - 20px);
  }

  .lightbox img {
    max-height: calc(100dvh - 20px);
  }

  .lightbox__previous,
  .lightbox__next {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .location-section__map {
    min-height: 420px;
  }

  .location-section__map iframe,
  .location-section__map > div {
    height: 420px !important;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    width: calc(100% - 20px);
  }

  .brand__name small {
    display: none;
  }

  .site-header__actions {
    display: none;
  }

  .nav-toggle {
    grid-column: 3;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cyber-button {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip > div {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  }

  .stats-strip > div:last-child {
    border-bottom: 0;
  }

  .category-jump-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .services-grid--home,
  .work-archive-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-block: 58px 48px;
  }

  .contact-grid article {
    min-height: 165px;
  }

  .yandex-rating {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Page boot transition */
.page-transition-overlay {
  display: none;
}

.stemi-js .page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 14%, rgb(0 255 255 / 0.08), transparent 26%),
    radial-gradient(circle at 82% 78%, rgb(255 0 255 / 0.07), transparent 28%),
    #070b0c;
  color: #00ffff;
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
  animation: stemi-transition-failsafe 0s 4s forwards;
}

.stemi-js .page-transition-overlay[hidden] {
  display: none;
}

.page-transition-overlay.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.page-transition-overlay__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(0 255 255 / 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 255 255 / 0.028) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(0 0 0 / 0.11) 3px 4px);
  background-size: 52px 52px, 52px 52px, auto;
  pointer-events: none;
}

.page-transition-overlay__grid::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(0 255 255 / 0.72), transparent);
  box-shadow: 0 0 18px rgb(0 255 255 / 0.32);
  animation: stemi-transition-scan 1.8s linear infinite;
}

.page-transition-brand,
.page-transition-terminal,
.page-transition-progress,
.page-transition-percent,
.page-transition-status {
  position: relative;
  z-index: 1;
}

.page-transition-brand {
  margin-bottom: 30px;
  text-align: center;
}

.page-transition-brand > span {
  display: block;
  color: #ffd700;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-shadow: 0 0 20px rgb(255 215 0 / 0.62);
}

.page-transition-brand strong {
  color: #00ffff;
  text-shadow: 0 0 20px rgb(0 255 255 / 0.62);
}

.page-transition-brand small {
  display: block;
  margin-top: 5px;
  color: #ff00ff;
  font-size: 9px;
  letter-spacing: 0.46em;
  text-shadow: 0 0 10px rgb(255 0 255 / 0.55);
}

.page-transition-terminal {
  width: min(100%, 620px);
  min-height: 138px;
}

.page-transition-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  animation: stemi-terminal-reveal 100ms ease forwards;
}

.page-transition-line.is-accent {
  color: #ffd700;
}

.page-transition-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ffff;
  vertical-align: -2px;
  box-shadow: 0 0 10px #00ffff;
  animation: stemi-cursor-blink 500ms step-end infinite;
}

.page-transition-progress {
  width: min(100%, 620px);
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  background: rgb(0 255 255 / 0.1);
}

.page-transition-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  box-shadow: 0 0 12px rgb(0 255 255 / 0.72);
  transition: width 44ms linear;
}

.page-transition-percent {
  width: min(100%, 620px);
  margin-top: 8px;
  color: rgb(0 255 255 / 0.62);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.page-transition-status {
  position: absolute;
  bottom: clamp(24px, 5vh, 48px);
  color: rgb(255 0 255 / 0.42);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-align: center;
}

.page-transition-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.82;
}

.page-transition-corner--tl { top: 22px; left: 22px; border-top: 2px solid #00ffff; border-left: 2px solid #00ffff; }
.page-transition-corner--tr { top: 22px; right: 22px; border-top: 2px solid #00ffff; border-right: 2px solid #00ffff; }
.page-transition-corner--bl { bottom: 22px; left: 22px; border-bottom: 2px solid #ff00ff; border-left: 2px solid #ff00ff; }
.page-transition-corner--br { right: 22px; bottom: 22px; border-right: 2px solid #ff00ff; border-bottom: 2px solid #ff00ff; }

@keyframes stemi-terminal-reveal { to { opacity: 1; } }
@keyframes stemi-cursor-blink { 50% { opacity: 0; } }
@keyframes stemi-transition-scan { from { top: -2%; } to { top: 102%; } }
@keyframes stemi-transition-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 600px) {
  .page-transition-overlay {
    font-size: 11px;
  }

  .page-transition-terminal {
    min-height: 112px;
  }

  .page-transition-line {
    text-overflow: ellipsis;
  }

  .page-transition-brand small {
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stemi-js .page-transition-overlay {
    display: none;
  }
}
