:root {
  color-scheme: dark;
  --void: #020503;
  --void-2: #07100b;
  --green: #00ff88;
  --green-soft: #70ffb2;
  --green-dim: rgba(0, 255, 136, 0.18);
  --white: #f5fff8;
  --muted: #9bb6a7;
  --line: rgba(0, 255, 136, 0.22);
  --gold: #d9aa61;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--void);
  color: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(0, 255, 136, 0.14), transparent 28%),
    linear-gradient(180deg, #020503, #050b08 48%, #010302);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(90deg, rgba(2, 5, 3, 0.96), rgba(2, 5, 3, 0.46) 48%, rgba(2, 5, 3, 0.96)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
}

body::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 255, 136, 0.12), transparent 36%),
    radial-gradient(circle at 50% 70%, rgba(217, 170, 97, 0.08), transparent 34%);
}

.matrix-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 5, 3, 0.72);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1), inset 0 0 22px rgba(0, 255, 136, 0.06);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.matrix-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.matrix-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 255, 136, 0.64);
  border-radius: 50%;
  color: var(--green);
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.72);
}

.matrix-brand strong,
.matrix-brand small {
  display: block;
}

.matrix-brand strong {
  color: var(--green-soft);
  letter-spacing: 0.18em;
}

.matrix-brand small,
.matrix-nav {
  color: var(--muted);
  font-size: 13px;
}

.matrix-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.matrix-nav a {
  transition: color 160ms ease, text-shadow 160ms ease;
}

.matrix-nav a:hover {
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
}

.matrix-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 255, 136, 0.26);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
  cursor: pointer;
}

.matrix-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.42);
  transition: transform 180ms ease, opacity 180ms ease;
}

.matrix-section,
.matrix-hero {
  position: relative;
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
}

.matrix-hero {
  display: grid;
  align-items: center;
  min-height: min(820px, 100svh);
  padding-top: 136px;
  padding-bottom: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 40px;
  align-items: center;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 255, 136, 0.07), rgba(0, 255, 136, 0.02)),
    rgba(2, 5, 3, 0.78);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), inset 0 0 28px rgba(0, 255, 136, 0.04);
}

.terminal-card::before {
  display: block;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.18);
  color: var(--green);
  font-size: 12px;
  content: "root@atmika:~$ awaken --mode=consciousness";
}

.terminal-inner {
  padding: clamp(24px, 5vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 255, 136, 0.32);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 22px 0;
  color: var(--white);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.02;
  overflow-wrap: break-word;
  text-shadow: 0 0 26px rgba(0, 255, 136, 0.28);
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
}

p {
  color: rgba(245, 255, 248, 0.78);
  line-height: 1.65;
}

.hero-text {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
}

.matrix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.matrix-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(0, 255, 136, 0.42);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.12);
  color: var(--green-soft);
  font-weight: 900;
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.1);
}

.matrix-button.primary {
  background: var(--green);
  color: #02120a;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(245, 255, 248, 0.82);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(260px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  margin-bottom: 0;
  font-size: 19px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.matrix-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 8px;
  background: rgba(5, 12, 8, 0.78);
  box-shadow: inset 0 0 32px rgba(0, 255, 136, 0.03);
}

.matrix-panel::before {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(0, 255, 136, 0.38);
  font-size: 12px;
  content: attr(data-code);
}

.matrix-panel .tag,
.matrix-price {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.matrix-price {
  margin-top: 18px;
  font-size: 19px;
}

.matrix-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 460px;
  align-items: center;
}

.matrix-gallery figure {
  position: relative;
  height: clamp(280px, 42vw, 520px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  background: #07100b;
  transform: translateY(calc((var(--i) - 2) * 18px));
}

.matrix-gallery img,
.matrix-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.matrix-gallery figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 6px;
  text-shadow: 0 2px 14px #000;
}

.matrix-gallery figcaption span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-carousel {
  --ink: #f7f1e5;
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
}

.gallery-stage {
  position: relative;
  width: min(100%, 1040px);
  height: clamp(460px, 58vw, 620px);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.gallery-slide {
  --offset: 0;
  --distance: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(230px, 25vw, 330px);
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 229, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 241, 229, 0.08), rgba(247, 241, 229, 0.02)),
    #101615;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(217, 170, 97, 0.05) inset;
  opacity: calc(1 - var(--distance) * 0.18);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * clamp(142px, 18vw, 245px)))
    translateZ(calc(42px - var(--distance) * 78px))
    rotateY(calc(var(--offset) * -15deg))
    scale(calc(1 - var(--distance) * 0.11));
  transition:
    transform 620ms cubic-bezier(0.2, 0.82, 0.2, 1),
    opacity 360ms ease,
    filter 360ms ease;
}

.gallery-slide[aria-current] {
  border-color: rgba(217, 170, 97, 0.44);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.58),
    0 0 52px rgba(217, 170, 97, 0.16);
}

.gallery-slide[aria-hidden="true"] {
  pointer-events: none;
}

.gallery-media,
.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
}

.gallery-media {
  position: absolute;
  inset: 0;
}

.gallery-media img,
.gallery-media video {
  display: block;
  object-fit: cover;
}

.gallery-slide::before,
.gallery-slide::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.gallery-slide::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 11, 13, 0.04), rgba(8, 11, 13, 0.38) 68%, rgba(8, 11, 13, 0.82)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 28% 74%, rgba(0, 0, 0, 0.18));
}

.gallery-slide::after {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.gallery-slide figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.gallery-slide figcaption span {
  justify-self: start;
  padding: 5px 9px;
  border: 1px solid rgba(217, 170, 97, 0.34);
  border-radius: 999px;
  background: rgba(8, 11, 13, 0.34);
  color: #f0c878;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-slide figcaption strong {
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.66);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(247, 241, 229, 0.18);
  border-radius: 50%;
  background: rgba(8, 11, 13, 0.54);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.gallery-arrow:hover {
  border-color: rgba(217, 170, 97, 0.46);
  background: rgba(217, 170, 97, 0.16);
  color: #f0c878;
}

.gallery-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow-prev {
  left: 0;
}

.gallery-arrow-next {
  right: 0;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.gallery-dots button {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 241, 229, 0.2);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.gallery-dots button.is-active {
  width: 54px;
  background: #e8c07e;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1.14fr);
  gap: 28px;
}

.check-stack,
.timeline,
.outcome-list {
  display: grid;
  gap: 12px;
}

.check-item,
.outcome-item,
.timeline-item {
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 6, 0.7);
}

.check-item,
.outcome-item {
  padding: 18px;
}

.check-item::before,
.outcome-number {
  color: var(--green);
  font-weight: 900;
}

.check-item::before {
  margin-right: 10px;
  content: "✓";
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  min-height: 260px;
  padding: 22px;
}

.timeline-item .step {
  color: var(--green);
  font-weight: 900;
}

.story-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.quote {
  display: grid;
  align-items: center;
  color: var(--green-soft);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-links a {
  padding: 14px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.06);
}

.white-rabbit {
  position: fixed;
  right: clamp(12px, 3vw, 34px);
  top: clamp(92px, 14vh, 150px);
  z-index: 40;
  display: block;
  width: 150px;
  height: 150px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  filter: drop-shadow(0 0 20px rgba(245, 255, 248, 0.32)) drop-shadow(0 0 30px rgba(0, 255, 136, 0.14));
  transform: translate3d(var(--rabbit-x, 0px), var(--rabbit-y, 0px), 0) rotate(var(--rabbit-tilt, 0deg));
  transform-origin: 50% 78%;
  transition: opacity 180ms ease, filter 180ms ease;
  will-change: transform;
}

.white-rabbit:hover {
  filter: drop-shadow(0 0 24px rgba(245, 255, 248, 0.48)) drop-shadow(0 0 36px rgba(0, 255, 136, 0.22));
}

.rabbit-bubble {
  position: absolute;
  top: 24px;
  right: 112px;
  display: grid;
  align-items: center;
  width: 238px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 255, 248, 0.42);
  border-radius: 12px 12px 2px;
  background:
    linear-gradient(135deg, rgba(245, 255, 248, 0.08), transparent),
    rgba(2, 8, 5, 0.86);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.28;
  text-align: left;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.48);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.12), inset 0 0 18px rgba(245, 255, 248, 0.04);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rabbit-bubble::after {
  position: absolute;
  right: -9px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(245, 255, 248, 0.42);
  border-bottom: 1px solid rgba(245, 255, 248, 0.42);
  background: rgba(2, 8, 5, 0.86);
  content: "";
  transform: skewX(-20deg) rotate(-5deg);
}

.rabbit-body {
  position: relative;
  display: block;
  width: 74px;
  height: 88px;
  margin: 48px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 54% 52% 46% 44%;
  background:
    radial-gradient(circle at 62% 24%, rgba(255, 255, 255, 0.95), transparent 18%),
    linear-gradient(135deg, #ffffff, #dbe6dc 62%, #bac8bf);
  box-shadow: inset -13px -18px 20px rgba(55, 76, 64, 0.22), inset 10px 8px 18px rgba(255, 255, 255, 0.7);
}

.rabbit-body::before {
  position: absolute;
  left: -12px;
  top: 42px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d3ded5);
  content: "";
  box-shadow: inset -5px -5px 8px rgba(58, 78, 66, 0.14);
}

.rabbit-body::after {
  position: absolute;
  right: 6px;
  bottom: -6px;
  width: 54px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 255, 248, 0.36);
  content: "";
  filter: blur(8px);
}

.rabbit-head {
  position: absolute;
  top: -32px;
  left: 16px;
  width: 50px;
  height: 47px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 52% 48% 50% 48%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, #ffffff, #dce8df 70%, #becbc2);
  box-shadow: inset -8px -9px 12px rgba(55, 76, 64, 0.16);
}

.rabbit-head::before,
.rabbit-head::after {
  position: absolute;
  content: "";
}

.rabbit-head::before {
  left: 29px;
  top: 19px;
  width: 18px;
  height: 11px;
  border-radius: 55% 45% 50% 50%;
  background: rgba(255, 246, 248, 0.9);
}

.rabbit-head::after {
  right: -8px;
  top: 27px;
  width: 16px;
  height: 1px;
  background: rgba(245, 255, 248, 0.76);
  box-shadow: 0 5px 0 rgba(245, 255, 248, 0.54), -2px -5px 0 rgba(245, 255, 248, 0.46);
}

.rabbit-ear {
  position: absolute;
  top: -66px;
  width: 18px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: linear-gradient(90deg, #fafffb, #e0ebe2);
  transform-origin: bottom;
  box-shadow: inset -5px -8px 8px rgba(55, 76, 64, 0.12);
}

.rabbit-ear::before {
  position: absolute;
  inset: 8px 5px 12px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 188, 204, 0.62), rgba(255, 228, 234, 0.14));
  content: "";
}

.rabbit-ear-left {
  left: 20px;
  transform: rotate(-18deg);
}

.rabbit-ear-right {
  right: 11px;
  height: 58px;
  transform: rotate(20deg);
}

.rabbit-eye {
  position: absolute;
  top: 17px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #050907;
  box-shadow: -20px -1px 0 #050907, 0 0 8px rgba(0, 255, 136, 0.36);
}

.rabbit-nose {
  position: absolute;
  right: 2px;
  bottom: 13px;
  width: 7px;
  height: 6px;
  border-radius: 50%;
  background: #f0a5b8;
  box-shadow: -4px 5px 0 -2px rgba(90, 54, 62, 0.7);
}

@media (max-width: 900px) {
  .matrix-header {
    position: fixed;
    top: 10px;
    align-items: center;
    gap: 12px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 8px 10px 8px 12px;
    z-index: 70;
  }

  .matrix-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .matrix-mark {
    width: 38px;
    height: 38px;
  }

  .matrix-brand strong {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .matrix-brand small {
    font-size: 11px;
  }

  .matrix-menu-toggle {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
  }

  .matrix-header.is-menu-open .matrix-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .matrix-header.is-menu-open .matrix-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .matrix-header.is-menu-open .matrix-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .matrix-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(2, 5, 3, 0.94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44), inset 0 0 22px rgba(0, 255, 136, 0.05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      padding 180ms ease,
      transform 180ms ease,
      border-color 180ms ease;
  }

  .matrix-header.is-menu-open .matrix-nav {
    max-height: 240px;
    padding: 8px;
    border-color: rgba(0, 255, 136, 0.22);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .matrix-nav a {
    min-height: 42px;
    padding: 12px;
    border: 1px solid rgba(0, 255, 136, 0.14);
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.045);
    color: var(--green-soft);
    text-align: center;
  }

  .matrix-nav a:last-child {
    grid-column: 1 / -1;
  }

  .matrix-hero {
    padding-top: 110px;
  }

  .hero-grid,
  .section-head,
  .two-column,
  .story-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .matrix-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matrix-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matrix-gallery figure {
    transform: none;
  }

  .gallery-stage {
    height: 560px;
  }

  .gallery-arrow-prev {
    left: 8px;
  }

  .gallery-arrow-next {
    right: 8px;
  }
}

@media (max-width: 640px) {
  #matrix-app,
  main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .matrix-section,
  .matrix-hero {
    max-width: 100vw;
    overflow-x: hidden;
    padding-right: 16px;
    padding-left: 16px;
  }

  .matrix-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    height: 520px;
    width: calc(100vw - 32px);
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .gallery-slide {
    width: min(68vw, 270px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 132px))
      translateZ(calc(28px - var(--distance) * 56px))
      rotateY(calc(var(--offset) * -13deg))
      scale(calc(1 - var(--distance) * 0.1));
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .gallery-arrow-prev {
    left: 10px;
  }

  .gallery-arrow-next {
    right: 10px;
  }

  .gallery-dots {
    margin-top: 16px;
  }

  .gallery-dots button {
    width: 28px;
  }

  .gallery-dots button.is-active {
    width: 42px;
  }

  .white-rabbit {
    right: 10px;
    top: auto;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: min(330px, calc(100vw - 20px));
    height: 74px;
    padding: 0;
    filter: drop-shadow(0 0 14px rgba(245, 255, 248, 0.22)) drop-shadow(0 0 20px rgba(0, 255, 136, 0.12));
  }

  .rabbit-bubble {
    position: static;
    width: min(220px, calc(100vw - 104px));
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(245, 255, 248, 0.06), transparent),
      rgba(2, 8, 5, 0.94);
    font-size: 13px;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  }

  .rabbit-bubble::after {
    right: -7px;
    bottom: 16px;
    width: 12px;
    height: 12px;
    transform: rotate(-45deg);
  }

  .rabbit-body {
    flex: 0 0 auto;
    width: 44px;
    height: 54px;
    margin: 16px 4px 0 0;
  }

  .rabbit-head {
    top: -21px;
    left: 9px;
    width: 32px;
    height: 31px;
  }

  .rabbit-ear {
    top: -45px;
    width: 11px;
    height: 42px;
  }

  .rabbit-ear-left {
    left: 12px;
  }

  .rabbit-ear-right {
    right: 7px;
    height: 39px;
  }

  .rabbit-eye {
    top: 11px;
    right: 9px;
    width: 4px;
    height: 4px;
    box-shadow: -13px -1px 0 #050907, 0 0 8px rgba(0, 255, 136, 0.36);
  }

  .rabbit-nose {
    right: 1px;
    bottom: 8px;
    width: 5px;
    height: 4px;
  }
}

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

  .white-rabbit,
  .rabbit-bubble {
    transition: none;
  }
}
