:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(204, 255, 0, 0.16), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(204, 255, 0, 0.1), transparent 16%),
    radial-gradient(circle at 50% 110%, rgba(204, 255, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #020202 0%, #050505 42%, #010101 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.07) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3)),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

.seo-fallback {
  width: min(860px, calc(100% - 2rem));
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid rgba(204, 255, 0, 0.28);
  border-radius: 1.5rem;
  background: rgba(4, 4, 4, 0.96);
  color: #f5f7f0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

.seo-fallback h1,
.seo-fallback h2 {
  line-height: 1.08;
  color: #ffffff;
}

.seo-fallback a {
  color: #ccff00;
  font-weight: 700;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.section-shell {
  position: relative;
  overflow: hidden;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(2rem - 1px);
  pointer-events: none;
  border: 1px solid rgba(204, 255, 0, 0.1);
}

.glass-line {
  border: 1px solid rgba(204, 255, 0, 0.24);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(204, 255, 0, 0.08) inset;
}

.soft-gradient {
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.98), rgba(3, 3, 3, 0.99)),
    radial-gradient(circle at top left, rgba(204, 255, 0, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(204, 255, 0, 0.08), transparent 22%);
}

.dark-panel {
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 1), rgba(178, 245, 0, 1));
  color: #050505;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  isolation: isolate;
  background: #090909;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 600ms ease,
    filter 600ms ease;
}

.project-card {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.project-card:hover {
  border-color: rgba(204, 255, 0, 0.42);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(204, 255, 0, 0.09) inset;
}

.project-card:hover .image-frame img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.case-frame {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.96), rgba(3, 3, 3, 0.99)),
    radial-gradient(circle at top left, rgba(204, 255, 0, 0.06), transparent 36%);
}

.case-frame::after {
  display: none;
}

.case-frame img {
  object-fit: contain;
  object-position: center;
  background: #090909;
  border-radius: 1.15rem;
}

.project-card:hover .case-frame img {
  transform: scale(1.016);
  filter: saturate(1.04);
}

.modal-image-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(204, 255, 0, 0.35) rgba(255, 255, 255, 0.04);
}

.modal-image-stage {
  position: relative;
  display: block;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.98), rgba(2, 2, 2, 1)),
    radial-gradient(circle at top left, rgba(204, 255, 0, 0.08), transparent 40%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.modal-image-stage::after {
  content: "Open full size";
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid rgba(204, 255, 0, 0.24);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.modal-image-stage:hover {
  transform: translateY(-1px);
  border-color: rgba(204, 255, 0, 0.45);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(204, 255, 0, 0.12) inset;
}

.modal-image-stage img {
  width: 100%;
  height: auto;
}

.button-elevated {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.button-elevated:hover {
  transform: translateY(-1px);
}

.button-elevated:focus-visible {
  outline: 2px solid rgba(204, 255, 0, 0.7);
  outline-offset: 2px;
}

.primary-cta,
.primary-cta:visited,
.primary-cta:hover,
.primary-cta:active,
.primary-cta:focus-visible {
  color: #050505 !important;
  -webkit-text-fill-color: #050505;
}

.marquee-shell {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-shell:hover .marquee-track {
  animation-play-state: paused;
}

.brand-tile {
  display: grid;
  grid-template-columns: 104px minmax(120px, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-width: 270px;
  border-radius: 1.2rem;
  border: 1px solid rgba(204, 255, 0, 0.34);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(4, 4, 4, 0.99)),
    radial-gradient(circle at top left, rgba(204, 255, 0, 0.12), transparent 40%);
  padding: 0.75rem;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(204, 255, 0, 0.07) inset;
}

.brand-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.3rem;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #050505;
}

.case-action {
  min-height: 56px;
  padding-inline: 1.35rem;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(204, 255, 0, 0.06) inset;
}

.section-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(204, 255, 0, 0.42);
  background: rgba(4, 4, 4, 0.76);
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(204, 255, 0, 0.05) inset;
}

.section-toggle-pill-open {
  background: #ccff00;
  color: #050505;
  border-color: rgba(204, 255, 0, 0.82);
}

.section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.14);
  color: #ccff00;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.section-toggle-pill-open .section-toggle-icon {
  background: rgba(0, 0, 0, 0.14);
  color: #050505;
}

.modal-backdrop {
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.72);
}

.rise-in {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 700ms ease forwards;
}

.rise-delay-1 {
  animation-delay: 80ms;
}

.rise-delay-2 {
  animation-delay: 160ms;
}

.rise-delay-3 {
  animation-delay: 240ms;
}

.number-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(204, 255, 0, 0.6);
  background: #ccff00;
  box-shadow:
    0 0 0 1px rgba(204, 255, 0, 0.14) inset,
    0 10px 24px rgba(0, 0, 0, 0.42);
  font-weight: 700;
  color: #0a0a0a;
}

.section-anchor-offset {
  scroll-margin-top: 100px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .brand-tile {
    min-width: 280px;
    grid-template-columns: 1fr;
  }

  .brand-name {
    white-space: normal;
  }
}
