:root {
  color-scheme: light;
  --ink: #1d2523;
  --muted: #64706c;
  --line: #dde5e1;
  --paper: #ffffff;
  --soft: #f4f7f4;
  --green: #1f8a5b;
  --green-dark: #146943;
  --orange: #e58b2a;
  --blue: #317fb4;
  --glow-mint: rgba(31, 138, 91, 0.16);
  --glow-cyan: rgba(49, 127, 180, 0.16);
  --glow-gold: rgba(229, 139, 42, 0.14);
  --electric: rgba(31, 231, 201, 0.56);
  --electric-blue: rgba(50, 145, 255, 0.46);
  --electric-white: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 45px rgba(31, 47, 42, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: -22% -14%;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 17%,
      rgba(31, 138, 91, 0.11) 27%,
      rgba(49, 127, 180, 0.1) 42%,
      transparent 56%,
      transparent 68%,
      rgba(229, 139, 42, 0.08) 78%,
      transparent 90%
    ),
    repeating-linear-gradient(90deg, rgba(31, 138, 91, 0.04) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(49, 127, 180, 0.035) 0 1px, transparent 1px 76px);
  background-position: 0% 50%, 0 0, 0 0;
  background-size: 180% 180%, 76px 76px, 76px 76px;
  opacity: 0.8;
  animation: pageGlowDrift 18s ease-in-out infinite alternate;
}

#matrix-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: transparent;
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
  transform-origin: center;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(221, 229, 225, 0.8);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px clamp(18px, 4vw, 56px);
  box-shadow: 0 12px 32px rgba(31, 47, 42, 0.05);
  backdrop-filter: blur(14px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--electric), var(--electric-white), var(--electric-blue), transparent);
  background-size: 240% 100%;
  opacity: 0.86;
  box-shadow: 0 0 18px rgba(31, 231, 201, 0.48);
  animation: electricRail 3.6s linear infinite;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  inset: -40%;
  content: "";
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.78) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: markSheen 4.8s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1440px, 100%);
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  margin: 0 auto;
  background: var(--paper);
}

.side-menu {
  position: sticky;
  top: 67px;
  align-self: start;
  height: calc(100svh - 67px);
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 24px 18px;
  overflow: auto;
}

.side-menu-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-menu nav {
  display: grid;
  gap: 6px;
}

.side-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
}

.side-menu a:hover,
.side-menu a:focus-visible,
.side-menu a.active {
  background: #eef8f1;
  color: var(--green-dark);
  outline: none;
}

.side-menu a.active {
  box-shadow: inset 3px 0 0 var(--green);
}

.side-contact {
  display: grid;
  gap: 10px;
  margin: 18px -8px 0;
  border: 1px solid rgba(31, 138, 91, 0.24);
  border-radius: var(--radius);
  background: #eef8f1;
  padding: 14px;
}

.side-contact span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.side-contact a {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(31, 138, 91, 0.16);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

.side-contact-item {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(31, 138, 91, 0.16);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  line-height: 1.25;
}

.side-contact a:hover,
.side-contact a:focus-visible {
  background: #f8fffa;
  color: var(--green-dark);
}

.side-contact a::before {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-contact-item b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-contact-item strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.side-contact a[href^="mailto"]::before {
  content: "Email";
}

.side-contact a[href^="mailto"] {
  padding-inline: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.side-contact a[href^="tel"]::before {
  content: "Phone";
}

.page-content {
  min-width: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 247, 0.92) 100%),
    linear-gradient(130deg, rgba(31, 138, 91, 0.08), rgba(49, 127, 180, 0.08), rgba(229, 139, 42, 0.06));
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: -30% -18%;
  background:
    linear-gradient(105deg, transparent 8%, var(--glow-mint) 29%, var(--glow-cyan) 48%, var(--glow-gold) 64%, transparent 84%),
    linear-gradient(24deg, transparent 20%, rgba(255, 255, 255, 0.54) 49%, transparent 74%);
  opacity: 0.88;
  transform: translate3d(-12%, 0, 0);
  animation: heroLightSweep 11s ease-in-out infinite alternate;
}

.hero::after {
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(31, 138, 91, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 127, 180, 0.075) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 48px 48px;
  opacity: 0.36;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 74%, transparent);
  animation: gridDrift 24s linear infinite;
}

.hero-copy,
.hero-board {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 0 rgba(31, 231, 201, 0),
    0 0 0 rgba(50, 145, 255, 0);
  animation: electricTitlePulse 4.6s ease-in-out infinite;
}

.lead {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.hero-tags span,
.feature-tags li {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(31, 138, 91, 0.2);
  border-radius: 999px;
  background: #eef8f1;
  color: var(--green-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 22px;
  font-weight: 900;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.62) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(120%);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 138, 91, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
  align-items: stretch;
  isolation: isolate;
  animation: panelFloat 7.5s ease-in-out infinite;
}

.hero-board::before {
  position: absolute;
  z-index: -1;
  inset: -14px;
  border-radius: 14px;
  content: "";
  background: conic-gradient(from 110deg, rgba(31, 138, 91, 0.28), rgba(49, 127, 180, 0.26), rgba(229, 139, 42, 0.2), rgba(31, 138, 91, 0.28));
  filter: blur(18px);
  opacity: 0.42;
  animation: boardGlow 9s linear infinite;
}

.hero-board img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  padding: 10px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-board img:first-child {
  grid-row: span 2;
  min-height: 360px;
}

.quick-strip {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.quick-strip a {
  display: block;
  min-height: 104px;
  padding: 20px;
  background: #fff;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.quick-strip a:hover,
.quick-strip a:focus-visible {
  background: #eef8f1;
  color: var(--green-dark);
  outline: none;
  transform: translateY(-1px);
}

.quick-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.quick-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.top-toy-section {
  padding-top: clamp(34px, 5vw, 62px);
}

.section-header {
  width: min(760px, 100%);
  margin: 0 auto clamp(30px, 5vw, 46px);
  text-align: center;
}

.section-header h2,
.service-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.balanced-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.28em;
  row-gap: 0.04em;
}

.balanced-title span {
  white-space: nowrap;
}

.toy-section-header h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.28em;
  row-gap: 0.04em;
}

.toy-section-header h2 span {
  white-space: nowrap;
}

.section-header p,
.service-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.company-section {
  background: #fff;
}

.company-layout {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
  margin: 0 auto;
}

.company-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.company-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.company-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.company-pill-grid span {
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid rgba(31, 138, 91, 0.2);
  border-radius: 7px;
  background: #eef8f1;
  color: var(--green-dark);
  padding: 0 14px;
  font-weight: 900;
}

.company-advantage-grid {
  margin-top: 14px;
}

.company-advantage-grid span {
  border-color: rgba(100, 112, 108, 0.18);
  background: #f7faf7;
  color: var(--ink);
}

.company-media-grid {
  display: grid;
  gap: 14px;
}

.company-media-grid figure {
  margin: 0;
  padding: 12px;
  box-shadow: var(--shadow);
}

.company-media-grid img {
  width: 100%;
  aspect-ratio: 523 / 348;
  border-radius: 7px;
  object-fit: cover;
}

.company-media-grid figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 900;
}

.category-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.category-card,
.gallery-grid article,
.toy-detail,
.company-media-grid figure,
.scope-grid article,
.process-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.category-card,
.company-section,
.muted-section,
.gallery-section,
.scope-section,
.service-section,
.process-section,
.hero,
.quick-strip,
.site-footer {
  scroll-margin-top: 92px;
}

.category-card img {
  width: 100%;
  height: 250px;
  background: #fff;
  object-fit: contain;
  padding: 12px;
}

.category-card div {
  padding: 22px;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
}

.category-card h3,
.gallery-grid h3,
.toy-detail h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.category-card p,
.toy-detail p {
  color: var(--muted);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-card .feature-tags li {
  min-height: 28px;
  border-color: rgba(100, 112, 108, 0.18);
  background: #f7faf7;
  color: var(--muted);
  font-size: 12px;
}

.featured {
  box-shadow: var(--shadow);
}

.muted-section {
  background: var(--soft);
}

.toy-tabs {
  display: flex;
  width: min(860px, 100%);
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 22px;
}

.toy-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.toy-tabs button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.toy-detail {
  display: grid;
  width: min(1080px, 100%);
  gap: 18px;
  margin: 0 auto;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(31, 47, 42, 0.08);
}

.toy-detail-copy {
  display: grid;
  max-width: 820px;
  gap: 6px;
}

.toy-detail-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.toy-detail img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

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

.toy-image-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.toy-detail h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.gallery-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.gallery-groups {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.gallery-group {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gallery-group-title {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 1.15rem;
}

.gallery-group .gallery-grid {
  width: 100%;
}

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

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

.gallery-grid article {
  padding: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

.gallery-grid-wide img {
  aspect-ratio: 523 / 348;
}

.gallery-grid h3 {
  margin: 14px 6px 4px;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  background: #eef5ef;
}

.service-copy {
  max-width: 620px;
  justify-self: end;
}

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

.service-list span {
  display: flex;
  min-height: 76px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 18px;
  font-weight: 900;
}

.scope-section {
  background: #f8faf8;
}

.scope-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.scope-grid article {
  padding: 24px;
}

.scope-grid span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.scope-grid h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

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

.scope-note {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.process-section {
  background: #fff;
}

.process-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.process-grid article {
  min-height: 210px;
  padding: 22px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green-dark);
  font-weight: 900;
}

.process-grid h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.45fr);
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 56px);
  background: #18221f;
  color: #fff;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.contact-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.contact-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.contact-card a,
.contact-card strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  img:hover {
    filter: brightness(1.08) saturate(1.08);
    transform: scale(1.035);
  }

  .category-card,
  .gallery-grid article,
  .company-media-grid figure,
  .scope-grid article,
  .process-grid article {
    transition:
      box-shadow 180ms ease,
      transform 180ms ease,
      border-color 180ms ease;
  }

  .category-card:hover,
  .gallery-grid article:hover,
  .company-media-grid figure:hover,
  .scope-grid article:hover,
  .process-grid article:hover {
    border-color: rgba(31, 138, 91, 0.28);
    box-shadow: 0 20px 42px rgba(31, 47, 42, 0.12);
    transform: translateY(-4px);
  }

  .hero-board img:hover {
    filter: brightness(1.08) saturate(1.08);
    box-shadow: 0 22px 52px rgba(31, 47, 42, 0.16);
    transform: translateY(-3px) scale(1.035);
  }
}

@keyframes pageGlowDrift {
  0% {
    background-position: 0% 46%, 0 0, 0 0;
    transform: translate3d(-1.5%, -1%, 0);
  }

  100% {
    background-position: 100% 54%, 38px 0, 0 38px;
    transform: translate3d(1.5%, 1%, 0);
  }
}

@keyframes heroLightSweep {
  0% {
    transform: translate3d(-18%, -2%, 0) scale(1);
  }

  100% {
    transform: translate3d(12%, 2%, 0) scale(1.04);
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 96px 48px, 48px 96px;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes boardGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes markSheen {
  0%,
  56% {
    transform: translateX(-130%);
  }

  78%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes electricRail {
  0% {
    background-position: 220% 0;
  }

  100% {
    background-position: -220% 0;
  }
}

@keyframes electricTitlePulse {
  0%,
  100% {
    text-shadow:
      0 0 0 rgba(31, 231, 201, 0),
      0 0 0 rgba(50, 145, 255, 0);
  }

  50% {
    text-shadow:
      0 0 18px rgba(31, 231, 201, 0.22),
      0 0 34px rgba(50, 145, 255, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.mobile-contact-bar {
  display: none;
}

@media (max-width: 1180px) {
  .company-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-shell {
    display: block;
  }

  .side-menu {
    position: sticky;
    top: 67px;
    z-index: 12;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    overflow: hidden;
  }

  .side-menu-title {
    display: none;
  }

  .side-menu nav {
    display: flex;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-menu nav::-webkit-scrollbar {
    display: none;
  }

  .side-menu a {
    min-height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 12px;
    white-space: nowrap;
  }

  .side-menu a.active {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .side-contact {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 10px;
    margin: 10px 0 0;
    padding: 10px 12px;
  }

  .side-contact span {
    grid-column: 1 / -1;
  }

  .side-contact a {
    min-height: 52px;
    border: 1px solid rgba(31, 138, 91, 0.16);
    background: #fff;
    padding: 8px 10px;
    white-space: normal;
  }

  .side-contact a[href^="mailto"] {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero,
  .company-layout,
  .toy-detail,
  .service-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-contacts,
  .scope-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .toy-image-grid img:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-board img:first-child {
    min-height: 380px;
  }

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

  .service-copy {
    max-width: none;
    justify-self: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.9rem, 13vw, 4.4rem);
  }

  .hero-board {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 14px;
  }

  .hero-board img,
  .hero-board img:first-child {
    min-height: auto;
    aspect-ratio: 1;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .section-header {
    text-align: left;
  }

  .section-header h2,
  .service-copy h2,
  .company-copy h2,
  .toy-detail h3 {
    overflow-wrap: break-word;
  }

  .toy-section-header h2 {
    justify-content: flex-start;
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .balanced-title {
    justify-content: flex-start;
  }

  .balanced-title span,
  .toy-section-header h2 span {
    max-width: 100%;
    white-space: normal;
  }

  .category-grid,
  .gallery-grid,
  .gallery-grid-compact,
  .gallery-grid-wide,
  .company-pill-grid,
  .scope-grid,
  .process-grid,
  .footer-contacts,
  .service-list {
    grid-template-columns: 1fr;
  }

  .toy-image-grid {
    grid-template-columns: 1fr;
  }

  .toy-image-grid img:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
  }

  .category-card img {
    height: auto;
    aspect-ratio: 1;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1px solid rgba(31, 138, 91, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    box-shadow: 0 14px 34px rgba(31, 47, 42, 0.18);
    backdrop-filter: blur(12px);
  }

  .mobile-contact-bar a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-contact-bar a:first-child {
    background: var(--green);
    color: #fff;
  }

  .mobile-contact-bar a:last-child {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--green-dark);
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.6rem, 18vw, 3.4rem);
  }

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

  .side-contact {
    grid-template-columns: 1fr;
  }

  .toy-tabs {
    justify-content: flex-start;
  }

  .toy-tabs button {
    flex: 1 1 calc(50% - 10px);
  }

  .mobile-contact-bar a {
    font-size: 0.82rem;
  }
}
