:root {
  color-scheme: dark;
  --bg: #07100b;
  --panel: #101a14;
  --panel-2: #17261d;
  --text: #f3fff6;
  --muted: #a9b9ad;
  --line: rgba(202, 255, 214, 0.16);
  --green: #63f28b;
  --green-2: #24c96b;
  --mint: #b9ffd0;
  --lime: #d6ff62;
  /* Keep glow alphas restrained; future glow effects should use about half-strength opacity. */
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(99, 242, 139, 0.32);
  color: var(--text);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 64px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12);
}

.hero-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(99, 242, 139, 0.04), transparent 28%),
    linear-gradient(90deg, rgba(7, 16, 11, 0.28), rgba(7, 16, 11, 0.08) 48%, rgba(7, 16, 11, 0.28)),
    linear-gradient(0deg, rgba(7, 16, 11, 0.42), rgba(7, 16, 11, 0) 34%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.hero-centered {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.logo-stage {
  position: relative;
  width: min(68vw, 520px);
  min-width: 300px;
  min-height: 330px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(99, 242, 139, 0.05);
  filter: blur(28px);
}

.hero-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(210px, 36vw, 330px);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
  transition: transform 220ms ease, filter 220ms ease;
}

.hero-logo:hover {
  transform: scale(1.04) rotate(-2deg);
  filter: drop-shadow(0 28px 56px rgba(99, 242, 139, 0.13));
}

.hero-logo:active {
  transform: scale(0.98);
}

.hero-logo img {
  width: 100%;
}

.sprite-cycle {
  width: min(680px, 100%);
  min-height: clamp(143px, 20.7vw, 196px);
  margin-top: 6px;
}

.sprite-cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 22px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.sprite-cycle-grid.is-fading {
  opacity: 0;
  transform: translateY(10px);
}

.sprite-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.sprite-card:hover {
  filter: brightness(1.08);
  transform: translateY(-5px) scale(1.04);
}

.sprite-card:active {
  transform: translateY(1px) scale(0.98);
}

.sprite-frame {
  width: min(100%, 170px);
  aspect-ratio: var(--frame-aspect, 1);
  background-image: var(--sprite-url);
  background-repeat: no-repeat;
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: 0 0;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.38));
  transition: filter 180ms ease;
}

.sprite-card:hover .sprite-frame {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(99, 242, 139, 0.08));
}

.sprite-card span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 6vw, 6.5rem);
  line-height: 0.96;
  max-width: 12ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1;
}

h3 {
  font-size: 1.12rem;
}

.hero-actions,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
}

.button,
.price-card a,
.category-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button.primary,
.price-card a {
  background: var(--green);
  color: #031009;
  box-shadow: 0 0 0 rgba(99, 242, 139, 0);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(99, 242, 139, 0.06);
}

.button:hover,
.price-card a:hover,
.category-button:hover {
  border-color: rgba(185, 255, 208, 0.6);
  box-shadow: 0 16px 36px rgba(36, 201, 107, 0.11);
  transform: translateY(-3px);
}

.button.primary:hover,
.price-card a:hover {
  background: var(--mint);
}

.button:active,
.price-card a:active,
.category-button:active {
  box-shadow: 0 8px 20px rgba(36, 201, 107, 0.08);
  transform: translateY(1px) scale(0.97);
}

.button:focus-visible,
.price-card a:focus-visible,
.category-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b160f;
}

.stats-band div {
  min-height: 128px;
  padding: 26px clamp(20px, 4vw, 46px);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.stats-band div:hover {
  background: rgba(99, 242, 139, 0.035);
  transform: translateY(-2px);
}

.stats-band div:active {
  transform: translateY(0) scale(0.99);
}

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

.stats-band strong {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 1.15rem;
}

.stats-band span {
  color: var(--muted);
}

.section,
.contact-section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.contact-section p,
.price-card p,
.service-list p,
.process-list span,
.contact-checklist p {
  color: var(--muted);
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 112px;
}

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

.category-button {
  width: 100%;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  border-color: var(--line);
  background: rgba(16, 26, 20, 0.86);
  color: var(--text);
  text-align: left;
}

.category-button strong {
  font-size: 1rem;
}

.category-button span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.category-button.is-active {
  border-color: rgba(99, 242, 139, 0.72);
  background:
    linear-gradient(135deg, rgba(99, 242, 139, 0.1), rgba(214, 255, 98, 0.04)),
    var(--panel-2);
  box-shadow: inset 4px 0 0 var(--green);
}

.category-button.is-active span {
  color: var(--mint);
}

.category-button strong,
.category-button span {
  transition: transform 180ms ease, color 180ms ease;
}

.category-button:hover strong {
  transform: translateX(3px);
}

.category-results {
  scroll-margin-top: 96px;
}

.results-heading {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(99, 242, 139, 0.05), transparent 42%),
    rgba(16, 26, 20, 0.72);
}

.results-heading h3 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

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

.work-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  border-color: rgba(99, 242, 139, 0.48);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.work-card:active {
  transform: translateY(-1px) scale(0.99);
}

.empty-work-card {
  min-height: 220px;
  align-items: center;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050806;
  overflow: hidden;
}

.video-shell video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
}

.work-card-content {
  padding: 20px;
}

.work-card-content p {
  color: var(--muted);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  background: #0c150f;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
  margin-bottom: 0;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article,
.price-card,
.process-list li,
.contact-checklist article {
  border: 1px solid var(--line);
  background: var(--panel);
}

.service-list article {
  padding: 24px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-list article:hover,
.process-list li:hover,
.contact-checklist article:hover {
  border-color: rgba(99, 242, 139, 0.42);
  background: linear-gradient(135deg, rgba(99, 242, 139, 0.04), transparent 55%), var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.service-list article:active,
.process-list li:active,
.contact-checklist article:active {
  transform: translateY(-1px) scale(0.99);
}

.service-list span {
  color: var(--green);
  font-weight: 900;
}

.pricing-section {
  background: #08120c;
}

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

.price-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 26px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.price-card:hover {
  border-color: rgba(99, 242, 139, 0.46);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
  transform: translateY(-5px);
}

.price-card:active {
  transform: translateY(-2px) scale(0.99);
}

.price-card.featured {
  border-color: rgba(99, 242, 139, 0.66);
  background:
    linear-gradient(180deg, rgba(99, 242, 139, 0.065), transparent 42%),
    var(--panel);
}

.tier {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin: 8px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.price-card li:hover {
  color: var(--text);
  transform: translateX(4px);
}

.price-card li::before {
  content: "+";
  margin-right: 10px;
  color: var(--lime);
}

.price-card a {
  margin-top: auto;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 190px;
  padding: 24px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.process-list strong {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
}

.links-section {
  background: #0a130d;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 132px;
  align-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.link-card strong {
  color: var(--text);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.link-card:hover {
  border-color: rgba(99, 242, 139, 0.46);
  background: linear-gradient(135deg, rgba(99, 242, 139, 0.05), transparent 55%), var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.link-card:active {
  transform: translateY(-1px) scale(0.99);
}

.link-card.reveal-on-scroll {
  transition:
    opacity 680ms ease,
    transform 140ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    color 120ms ease;
  transition-delay: 0ms;
}

.link-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  justify-self: start;
  grid-row: 1 / span 2;
  border: 1px solid rgba(99, 242, 139, 0.28);
  background: rgba(99, 242, 139, 0.06);
  color: var(--green);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.link-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.link-card:hover .link-icon {
  background: rgba(99, 242, 139, 0.14);
  border-color: rgba(214, 255, 98, 0.46);
  color: var(--lime);
  transform: rotate(-4deg) scale(1.06);
}

.link-card > span:not(.link-icon),
.link-card strong {
  grid-column: 2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(99, 242, 139, 0.08), transparent 34%),
    #0f1a13;
}

.contact-checklist {
  display: grid;
  gap: 14px;
}

.contact-checklist article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 20px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-checklist span {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(99, 242, 139, 0.36);
  color: var(--green);
  font-size: 0;
  font-weight: 900;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-checklist article:hover span {
  background: rgba(99, 242, 139, 0.08);
  border-color: rgba(214, 255, 98, 0.48);
  transform: rotate(-4deg) scale(1.05);
}

.contact-checklist span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

.contact-checklist p {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

.site-footer a:active {
  transform: translateY(1px) scale(0.97);
}

.reveal-on-scroll {
  transition:
    opacity 680ms ease,
    transform 680ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    filter 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  transition-delay: 0ms;
}

.price-card.reveal-on-scroll:not(.is-visible),
.service-list article.reveal-on-scroll:not(.is-visible),
.process-list li.reveal-on-scroll:not(.is-visible),
.contact-checklist article.reveal-on-scroll:not(.is-visible) {
  pointer-events: none;
}

@media (max-width: 980px) {
  .work-grid,
  .pricing-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-panel {
    position: static;
  }

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

  .section-split,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .sticky-heading {
    position: static;
  }

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

  .stats-band div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 88vh;
    padding: 48px 20px 56px;
  }

  .logo-stage {
    width: min(88vw, 380px);
    min-width: 260px;
    min-height: 300px;
  }

  .sprite-cycle-grid {
    gap: 10px;
  }

  .sprite-card span {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
    max-width: 11ch;
  }

  .work-grid,
  .pricing-grid,
  .process-list,
  .links-grid {
    grid-template-columns: 1fr;
  }

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

  .category-button {
    min-height: 66px;
  }

  .price-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
