:root {
  color-scheme: dark;
  --bg: #07090b;
  --text: #f5f6f2;
  --muted: rgba(245, 246, 242, 0.58);
  --soft: rgba(245, 246, 242, 0.16);
  --line: rgba(245, 246, 242, 0.24);
  --accent: #d7ff3f;
  --online: #64ff9c;
  --page-x: clamp(22px, 4.2vw, 82px);
  --header-h: 98px;
  --footer-h: 86px;
  --drum-step: 90px;
  --active-index: 0;
  --autoplay-delay: 5000ms;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.background,
.background__image,
.background__tint,
.background__grid,
.background__grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background { z-index: 0; overflow: hidden; background: #090b0e; }

.background__image {
  inset: -3%;
  background:
    radial-gradient(circle at 76% 26%, rgba(215,255,63,.12) 0%, rgba(215,255,63,.03) 18%, transparent 38%),
    radial-gradient(circle at 18% 82%, rgba(255,255,255,.06) 0%, transparent 36%),
    linear-gradient(120deg, #080a0d 0%, #0a0e13 34%, #0b1016 62%, #07090c 100%);
  filter: saturate(1) contrast(1.02) brightness(1);
  transform: scale(1.02);
  transition: background 900ms ease, filter 900ms ease, transform 1400ms cubic-bezier(.2,.8,.2,1);
}

.background__tint {
  background:
    linear-gradient(90deg, rgba(5,7,10,.90) 0%, rgba(5,7,10,.74) 28%, rgba(5,7,10,.34) 58%, rgba(5,7,10,.64) 100%),
    linear-gradient(180deg, rgba(4,6,8,.76) 0%, rgba(4,6,8,.14) 42%, rgba(4,6,8,.46) 100%),
    radial-gradient(circle at 70% 32%, rgba(255,255,255,.03) 0%, transparent 40%);
  transition: background 900ms ease;
}

.background__grid {
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}

.background__grain {
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body[data-scene="group"] .background__image {
  background:
    radial-gradient(circle at 76% 24%, rgba(177,162,255,.16) 0%, rgba(177,162,255,.045) 20%, transparent 42%),
    radial-gradient(circle at 17% 80%, rgba(115,139,255,.07) 0%, transparent 38%),
    linear-gradient(125deg, #08090d 0%, #0d0f18 34%, #111225 68%, #07080d 100%);
  transform: scale(1.035);
}
body[data-scene="hardware"] .background__image {
  background:
    radial-gradient(circle at 76% 28%, rgba(143,255,216,.13) 0%, rgba(143,255,216,.03) 20%, transparent 40%),
    radial-gradient(circle at 24% 76%, rgba(255,255,255,.04) 0%, transparent 38%),
    linear-gradient(120deg, #070a0d 0%, #0b1215 36%, #0b1517 70%, #06090b 100%);
  transform: scale(1.045);
}
body[data-scene="devices"] .background__image {
  background:
    radial-gradient(circle at 77% 25%, rgba(106,190,255,.15) 0%, rgba(106,190,255,.035) 20%, transparent 40%),
    radial-gradient(circle at 19% 80%, rgba(132,255,231,.055) 0%, transparent 36%),
    linear-gradient(122deg, #07090d 0%, #0a1019 36%, #0b1720 69%, #06080c 100%);
  transform: scale(1.04);
}
body[data-scene="partners"] .background__image {
  background:
    radial-gradient(circle at 76% 24%, rgba(63,213,122,.16) 0%, rgba(63,213,122,.04) 20%, transparent 40%),
    radial-gradient(circle at 17% 80%, rgba(17,89,61,.10) 0%, transparent 38%),
    linear-gradient(122deg, #070a09 0%, #09120f 36%, #0a1812 69%, #060908 100%);
  transform: scale(1.047);
}
body[data-scene="contact"] .background__image {
  background:
    radial-gradient(circle at 77% 22%, rgba(255,115,115,.13) 0%, rgba(255,115,115,.03) 18%, transparent 36%),
    radial-gradient(circle at 14% 82%, rgba(255,255,255,.035) 0%, transparent 36%),
    linear-gradient(120deg, #09090b 0%, #120d10 40%, #130c0e 70%, #070809 100%);
  transform: scale(1.05);
}

body[data-scene="group"] { --accent: #b8adff; }
body[data-scene="hardware"] { --accent: #8fffd8; }
body[data-scene="devices"] { --accent: #71c7ff; }
body[data-scene="partners"] { --accent: #43d77c; }
body[data-scene="contact"] { --accent: #ff7373; }

.topbar {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  padding: 0 var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft);
}

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

.brand img {
  width: 58px;
  height: 30px;
  object-fit: contain;
  filter: invert(1);
}

.system-status,
.selector__label,
.selector__hint,
.hero__eyebrow,
.hero__tags,
.footer__meta {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}


.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.system-status__dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 14px color-mix(in srgb, var(--online), transparent 22%);
  animation: status-pulse 2.3s ease-in-out infinite;
}

.system-status__divider { opacity: .36; }

.layout {
  position: relative;
  z-index: 2;
  height: calc(100svh - var(--header-h) - var(--footer-h));
  padding: 0 var(--page-x);
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(450px, 1.6fr) 110px;
  gap: clamp(32px, 4.4vw, 84px);
  align-items: center;
}

.selector { align-self: center; min-width: 0; }
.selector__label { margin-bottom: 18px; color: var(--muted); font-size: 10px; }

.drum {
  position: relative;
  height: 450px;
  overflow: hidden;
  perspective: 800px;
  mask-image: linear-gradient(transparent, #000 17%, #000 83%, transparent);
}

.drum::before,
.drum::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 10;
  width: min(100%, 420px);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(245,246,242,.24) 9%, rgba(245,246,242,.24) 87%, transparent 100%);
}
.drum::before { top: 179px; }
.drum::after { top: 269px; }

.drum__focus {
  position: absolute;
  top: 180px;
  left: -14px;
  width: 4px;
  height: 90px;
  z-index: 12;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 35%);
  transition: background 500ms ease;
}

.drum__track {
  position: absolute;
  top: 180px;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 760ms cubic-bezier(.16,.88,.22,1);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.drum__item {
  width: 100%;
  height: var(--drum-step);
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: stretch;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: .2;
  filter: blur(1px);
  transform: rotateX(0deg) scale(.95);
  transform-origin: left center;
  backface-visibility: hidden;
  transition: opacity 580ms ease, filter 580ms ease, transform 580ms cubic-bezier(.2,.7,.2,1), color 400ms ease;
}

.drum__item:hover { opacity: .8; filter: blur(0); }
.drum__item:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }
.drum__item.is-active { opacity: 1; filter: none; color: #fff; }

.drum__number {
  display: flex;
  align-items: center;
  color: var(--muted);
  font: 11px/1 "Courier New", monospace;
  letter-spacing: .08em;
  transform: translateY(0);
}

.drum__name {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: clamp(41px, 3.95vw, 72px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.055em;
  white-space: nowrap;
  transform: translateY(.035em);
  backface-visibility: hidden;
  text-rendering: geometricPrecision;
}

.drum__item.is-active .drum__name {
  text-shadow: 0 0 26px rgba(255,255,255,.18);
}

.drum.is-auto-reloading {
  animation: drum-reload-kick 350ms cubic-bezier(.08,.9,.16,1) both;
}

/* Короткая пустая фаза скрывает мгновенный сброс трека между CONTACT и GROUP. */
.drum.is-reload-reset .drum__item {
  opacity: 0 !important;
  filter: blur(4px) !important;
  transition: none !important;
}

.drum.is-reload-reset .drum__focus {
  transform: scaleY(.34);
  opacity: .72;
  filter: brightness(1.8);
}


.drum.is-auto-advancing .drum__focus {
  animation: drum-focus-charge 1450ms cubic-bezier(.18,.52,.28,1) both;
}

.drum.is-auto-advancing .drum__name,
.drum.is-auto-advancing .drum__number {
  animation: drum-text-windup-blur 1320ms cubic-bezier(.22,.52,.28,1) both;
}

.drum.is-auto-shooting .drum__name,
.drum.is-auto-shooting .drum__number {
  will-change: filter, text-shadow;
  animation: drum-text-shot-blur 360ms cubic-bezier(.06,.9,.14,1) both;
}

.drum.is-auto-settling .drum__name,
.drum.is-auto-settling .drum__number {
  animation: drum-text-settle-blur 520ms cubic-bezier(.18,.74,.22,1) both;
}

.drum.is-manual-spinning .drum__name,
.drum.is-manual-spinning .drum__number {
  animation: drum-text-manual-blur 760ms cubic-bezier(.16,.88,.22,1) both;
}

.drum.is-auto-shooting::before,
.drum.is-auto-shooting::after {
  animation: drum-line-shot 230ms cubic-bezier(.04,.96,.12,1) both;
}

.drum.is-auto-shooting .drum__focus {
  animation: drum-focus-shot 230ms cubic-bezier(.04,.96,.12,1) both;
}


.selector__hint {
  margin: 18px 0 0;
  color: rgba(245,246,242,.40);
  font-size: 9px;
}


.autoplay-toggle {
  margin-top: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: rgba(8,10,13,.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, transform 220ms ease;
}

.autoplay-toggle:hover {
  border-color: color-mix(in srgb, var(--accent), white 10%);
  background: rgba(8,10,13,.42);
  transform: translateY(-1px);
}

.autoplay-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.autoplay-toggle__icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent), transparent 48%));
  pointer-events: none;
}

.autoplay-toggle__icon--play { display: none; }
.autoplay-toggle.is-paused .autoplay-toggle__icon--pause { display: none; }
.autoplay-toggle.is-paused .autoplay-toggle__icon--play { display: block; }

.selector__autoplay {
  width: min(220px, 62%);
  height: 1px;
  margin-top: 13px;
  overflow: hidden;
  background: rgba(245,246,242,.12);
}

.selector__autoplay span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent), transparent 42%);
}

.selector__autoplay span.is-running {
  animation: autoplay-progress var(--autoplay-delay) linear forwards;
}

.hero {
  position: relative;
  justify-self: center;
  width: min(92%, 860px);
  max-width: 860px;
  padding-left: clamp(18px, 2.5vw, 48px);
  transform: translateX(clamp(-76px, -4vw, -32px));
}

.hero::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--line) 12% 88%, transparent);
}

.hero__index {
  position: absolute;
  top: -26px;
  left: clamp(18px, 2.5vw, 48px);
  color: var(--accent);
  font: 10px/1 "Courier New", monospace;
  letter-spacing: .16em;
  transition: color 500ms ease;
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.hero__title {
  margin: 0;
  max-width: 700px;
  font-size: clamp(52px, 7.2vw, 124px);
  line-height: .79;
  letter-spacing: -.083em;
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(245,246,242,.88);
  font-size: clamp(18px, 1.48vw, 24px);
  line-height: 1.52;
  font-weight: 500;
  text-wrap: pretty;
}

.partner-actions,
.contact-actions {
  width: min(620px, 100%);
  margin-top: 28px;
}

.partner-actions[hidden],
.contact-actions[hidden] { display: none; }

.partner-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(180px, .92fr) minmax(220px, 1.08fr) auto;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(105deg, rgba(67,215,124,.08), transparent 42%),
    rgba(7,9,12,.32);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.partner-card:hover {
  border-color: color-mix(in srgb, var(--accent), white 10%);
  background:
    linear-gradient(105deg, rgba(67,215,124,.13), transparent 46%),
    rgba(9,12,15,.48);
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(0,0,0,.24), 0 0 30px color-mix(in srgb, var(--accent), transparent 88%);
}

.partner-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.partner-card__visual {
  min-width: 0;
  height: 86px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f4f2ed;
}

.partner-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card__meta {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.partner-card__kicker,
.partner-card__open {
  font: 9px/1 "Courier New", Courier, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.partner-card__kicker { color: var(--accent); }
.partner-card__meta strong {
  color: rgba(245,246,242,.96);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.partner-card__tagline {
  color: rgba(245,246,242,.64);
  font-size: 13px;
  line-height: 1.45;
}
.partner-card__open {
  align-self: start;
  padding-top: 4px;
  color: color-mix(in srgb, var(--accent), white 18%);
  white-space: nowrap;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-card {
  min-width: 0;
  min-height: 70px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(7,9,12,.26);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--accent), white 8%);
  background: rgba(9,12,16,.46);
  transform: translateY(-2px);
}

.contact-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-card.is-copied {
  border-color: var(--accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent), transparent 74%);
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 92%);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: currentColor;
}

.contact-card__icon .contact-card__cut {
  fill: none;
  stroke: rgba(7,9,12,.82);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.contact-card__text { min-width: 0; display: grid; gap: 4px; }
.contact-card__service,
.contact-card__copy {
  font: 9px/1 "Courier New", Courier, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-card__service { color: var(--muted); }
.contact-card__handle {
  overflow: hidden;
  color: rgba(245,246,242,.92);
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.contact-card__copy { color: color-mix(in srgb, var(--accent), white 12%); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-h) + 24px);
  z-index: 30;
  max-width: min(520px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 36%);
  color: rgba(245,246,242,.92);
  background: rgba(7,9,12,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  font: 11px/1.35 "Courier New", Courier, monospace;
  letter-spacing: .05em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 190ms ease, transform 260ms cubic-bezier(.2,.8,.2,1), border-color 190ms ease;
}

.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-toast.is-error { border-color: rgba(255,115,115,.72); }


.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero__tags span {
  padding: 8px 10px 7px;
  border: 1px solid var(--line);
  color: rgba(245,246,242,.58);
  font-size: 8px;
  backdrop-filter: blur(9px);
  background: rgba(5,7,8,.12);
}


.side-mark {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.side-mark span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.28);
  font-size: clamp(38px, 4.2vw, 76px);
  font-weight: 900;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.footer {
  position: relative;
  z-index: 2;
  height: var(--footer-h);
  padding: 0 var(--page-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--soft);
}

.footer__line { height: 1px; background: rgba(255,255,255,.13); overflow: hidden; }
.footer__line span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent), transparent 40%);
  transition: width 680ms cubic-bezier(.17,.84,.22,1), background 500ms ease;
}

.footer__meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  color: rgba(245,246,242,.44);
  font-size: 9px;
}
.footer__meta span:last-child { text-align: right; }

.content-out { animation: content-out 180ms ease forwards; }
.content-in { animation: content-in 560ms cubic-bezier(.2,.8,.2,1) both; }

@keyframes content-out {
  to { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
}
@keyframes content-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}

@keyframes autoplay-progress {
  from { transform: scaleX(0); opacity: .42; }
  82% { opacity: .72; }
  to { transform: scaleX(1); opacity: 1; }
}


@keyframes drum-text-windup-blur {
  0% {
    filter: blur(0);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  58% {
    filter: blur(.28px);
    text-shadow: 0 2px 1px rgba(255,255,255,.05);
  }
  100% {
    filter: blur(1.05px);
    text-shadow: 0 5px 2px rgba(255,255,255,.09);
  }
}

@keyframes drum-text-shot-blur {
  0% {
    filter: blur(1.05px);
    text-shadow: 0 5px 2px rgba(255,255,255,.09);
  }
  42% {
    filter: blur(2.7px);
    text-shadow: 0 12px 4px rgba(255,255,255,.17);
  }
  76% {
    filter: blur(1.45px);
    text-shadow: 0 5px 2px rgba(255,255,255,.1);
  }
  100% {
    filter: blur(.4px);
    text-shadow: 0 1px 1px rgba(255,255,255,.04);
  }
}

@keyframes drum-text-settle-blur {
  0% {
    filter: blur(.4px);
    text-shadow: 0 1px 1px rgba(255,255,255,.04);
  }
  100% {
    filter: blur(0);
    text-shadow: 0 0 26px rgba(255,255,255,.18);
  }
}

@keyframes drum-text-manual-blur {
  0% {
    filter: blur(0);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  38% {
    filter: blur(2.05px);
    text-shadow: 0 9px 3px rgba(255,255,255,.14);
  }
  72% {
    filter: blur(.85px);
    text-shadow: 0 3px 1px rgba(255,255,255,.08);
  }
  100% {
    filter: blur(0);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}

@keyframes drum-focus-charge {
  0% { transform: scaleY(1); opacity: 1; filter: brightness(1); }
  58% { transform: scaleY(.82); opacity: .72; filter: brightness(1.05); }
  82% { transform: scaleY(.94); opacity: .9; filter: brightness(1.28); }
  100% { transform: scaleY(.55); opacity: 1; filter: brightness(1.7); }
}

@keyframes drum-line-shot {
  0% { opacity: 1; box-shadow: 0 0 0 rgba(255,255,255,0); }
  45% { opacity: .35; box-shadow: 0 0 18px rgba(255,255,255,.34); }
  100% { opacity: 1; box-shadow: 0 0 0 rgba(255,255,255,0); }
}

@keyframes drum-focus-shot {
  0% { transform: scaleY(.55); opacity: 1; filter: brightness(1.7); }
  36% { transform: scaleY(1.16); opacity: 1; filter: brightness(2.25); }
  100% { transform: scaleY(1); opacity: 1; filter: brightness(1); }
}

@keyframes drum-reload-kick {
  0% { transform: translateX(0); }
  30% { transform: translateX(-2px); }
  62% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

@media (max-width: 980px) {
  :root { --header-h: 82px; --footer-h: 76px; --drum-step: 70px; }
  .layout {
  position: relative;
  z-index: 2;
    grid-template-columns: minmax(240px, .72fr) minmax(360px, 1.28fr);
    gap: 38px;
  }
  .side-mark { display: none; }
  .drum { height: 350px; }
  .drum__track { top: 140px; }
  .drum::before { top: 139px; }
  .drum::after { top: 209px; }
  .drum__focus { top: 140px; height: 70px; }
  .drum__item { height: var(--drum-step); }
  .drum__name { font-size: clamp(32px, 4.8vw, 51px); }
  .hero { width: min(96%, 760px); transform: translateX(-22px); }
  .hero__title { font-size: clamp(52px, 9.2vw, 94px); }
}

@media (max-width: 720px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { overflow-y: auto; }
  :root { --header-h: 72px; --footer-h: 70px; }
  .topbar { position: relative; z-index: 10; }
  .system-status__divider { display: none; }
  .brand img { width: 52px; }
  .layout {
  position: relative;
  z-index: 2;
    min-height: calc(100svh - var(--header-h) - var(--footer-h));
    height: auto;
    padding-top: 32px;
    padding-bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .selector { order: 2; width: 100%; min-width: 0; overflow: hidden; }
  .selector__label, .selector__hint, .selector__autoplay { display: none; }
  .drum {
    width: 100%;
    max-width: 100%;
    height: 64px;
    overflow-x: auto;
    overflow-y: hidden;
    perspective: none;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    scrollbar-width: none;
  }
  .drum::-webkit-scrollbar { display: none; }
  .drum::before, .drum::after, .drum__focus { display: none; }
  .drum__track {
    position: static;
    width: max-content;
    display: flex;
    gap: 8px;
    transform: none !important;
  }
  .drum__item {
    width: auto;
    min-width: 134px;
    height: 54px;
    padding: 0 14px;
    grid-template-columns: 27px auto;
    border: 1px solid var(--soft);
    opacity: .42 !important;
    filter: none !important;
    transform: none !important;
    background: rgba(5,7,8,.22);
    backdrop-filter: blur(10px);
  }
  .drum__item.is-active { opacity: 1 !important; border-color: var(--accent); }
  .drum__name { font-size: 19px; letter-spacing: -.04em; }
  .hero { order: 1; width: 100%; max-width: none; padding-left: 0; transform: none; }
  .hero::before { display: none; }
  .hero__index { position: static; margin-bottom: 14px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__title { font-size: clamp(48px, 15.5vw, 80px); }
  .hero__lead { max-width: none; }
  .partner-actions, .contact-actions { margin-top: 22px; }
  .partner-card { grid-template-columns: 1fr auto; gap: 14px; }
  .partner-card__visual { grid-column: 1 / -1; height: 78px; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-card { min-height: 64px; }
  .copy-toast { bottom: 18px; }
  .hero__lead { margin-top: 20px; font-size: 17px; line-height: 1.55; }
  .hero__tags { margin-top: 20px; }
  .next-button { margin-top: 26px; width: 100%; }
  .footer__meta { grid-template-columns: 1fr auto; }
  .footer__meta span:nth-child(2) { display: none; }
  .background__image { background-position: 63% center; }
  .background__tint {
    background:
      linear-gradient(0deg, rgba(4,6,8,.94) 0%, rgba(4,6,8,.59) 58%, rgba(4,6,8,.32) 100%),
      linear-gradient(90deg, rgba(4,6,8,.72), rgba(4,6,8,.2));
  }
}



@media (max-width: 720px) {
  .autoplay-toggle { width: 42px; align-self: flex-start; }
}

/* Shared top-level page navigation and hardware tool entry. */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.system-status { justify-self: end; }

.page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(245,246,242,.14);
  background: rgba(7,9,12,.24);
  backdrop-filter: blur(12px);
}

.page-tabs__link {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,246,242,.48);
  text-decoration: none;
  font: 9px/1 "Courier New", Courier, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.page-tabs__link:hover { color: rgba(245,246,242,.9); }
.page-tabs__link.is-active {
  color: var(--text);
  background: rgba(245,246,242,.08);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.page-tabs__link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.hardware-actions {
  width: min(620px, 100%);
  margin-top: 28px;
}
.hardware-actions[hidden] { display: none; }

.tool-link {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--accent), transparent 92%), transparent 52%),
    rgba(7,9,12,.28);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.tool-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent), white 8%);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--accent), transparent 86%), transparent 56%),
    rgba(9,12,16,.44);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.tool-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tool-link__index,
.tool-link__kicker,
.tool-link__open {
  font: 9px/1 "Courier New", Courier, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tool-link__index { color: var(--accent); }
.tool-link__text { min-width: 0; display: grid; gap: 6px; }
.tool-link__kicker { color: var(--muted); }
.tool-link__text strong {
  color: rgba(245,246,242,.95);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.tool-link__open { color: color-mix(in srgb, var(--accent), white 14%); white-space: nowrap; }

@media (max-width: 720px) {
  .topbar { grid-template-columns: auto 1fr; gap: 18px; }
  .page-tabs { justify-self: end; }
  .system-status { display: none; }
  .page-tabs__link { padding-inline: 9px; }
  .hardware-actions { margin-top: 22px; }
  .tool-link { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
  .tool-link__text strong { font-size: 14px; }
}

@media (max-width: 410px) {
  .page-tabs__link:first-child { display: none; }
}

.brand__wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text);
  font: 700 24px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.06em;
}
.brand__wordmark::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 0 13px 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 28%);
}
